/* KiBuxs website. Layout: a ledger-like page, ruled sections on a quiet blue-grey ground, with the app itself as the hero. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14171c;
  --muted: #5b636e;
  --line: #e2e6eb;
  --blue: #1f5fbf;
  --blue-deep: #174ea6;
  --blue-soft: #e8f0fb;
  --gold: #f4b740;
  --gold-edge: #c98a1c;
  --on-blue: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(16, 24, 40, .2);
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --wrap: 78rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --ink: #eef0f3; --muted: #a3aab4; --line: #282e36;
    --blue: #6aa5f5; --blue-deep: #2a6fd6; --blue-soft: #16243a; --on-blue: #0f1216;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --ink: #eef0f3; --muted: #a3aab4; --line: #282e36;
  --blue: #6aa5f5; --blue-deep: #2a6fd6; --blue-soft: #16243a; --on-blue: #0f1216;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow { font: 600 .78rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.tm { font-size: .55em; vertical-align: super; font-weight: 500; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand img { height: 2.1rem; width: auto; }
.logo-dark { display: none; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .site-header .wrap { gap: .75rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border-radius: 10px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: var(--blue); color: var(--on-blue); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { padding: .55rem .95rem; font-size: .92rem; }
.btn small { font-weight: 400; opacity: .8; }
.coin { width: .7em; height: .7em; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-edge); flex: none; }

/* Hero */
.hero { padding-block: 4.5rem 3rem; }
.hero .wrap { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { font-size: .92rem; color: var(--muted); }
.beta-pill { justify-self: start; display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font: 600 .82rem/1.2 var(--font-body); }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.window-bar { display: flex; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.window-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-block: 2.5rem 2rem; } }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip ul { list-style: none; margin: 0 auto; padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: space-between; }
.strip li { display: flex; gap: .55rem; align-items: center; font-weight: 500; font-size: .97rem; }

/* Sections */
section.block { padding-block: 5rem; }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.6rem; max-width: 44rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.feature + .feature { padding-left: 0; }
.feature h3 { display: flex; gap: .6rem; align-items: baseline; }
.feature h3 span { font: 500 .78rem/1 var(--font-mono); color: var(--muted); }
.feature p { color: var(--muted); font-size: .98rem; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature { padding-right: 0; } }

/* Screens gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.gallery figure { margin: 0; display: grid; gap: .7rem; min-width: 0; }
.gallery figcaption { font-size: .93rem; color: var(--muted); }
.gallery figcaption b { color: var(--ink); font-weight: 600; }
.g-wide { grid-column: span 7; } .g-narrow { grid-column: span 5; } .g-half { grid-column: span 6; }
.gallery .shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.gallery .tall { max-height: 30rem; overflow: hidden; }
@media (max-width: 760px) { .g-wide, .g-narrow, .g-half { grid-column: 1 / -1; } }

/* Privacy band */
.band { background: linear-gradient(135deg, #174ea6, #2a6fd6); color: #fff; border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.band .eyebrow { color: var(--gold); }
.band p { color: rgba(255,255,255,.86); }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.band li { padding-left: 1.6rem; position: relative; }
.band li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-edge); }
.band li b { color: #fff; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* Deadline ledger */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.ledger th, .ledger td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger th { font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ledger td.when { font-family: var(--font-mono); font-size: .9rem; color: var(--blue); white-space: nowrap; }
.ledger td.who { color: var(--muted); font-size: .95rem; }
.ledger-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 56rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; display: grid; gap: 1.2rem; align-content: start; }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan .tag { justify-self: start; font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: .4rem .65rem; border-radius: 6px; background: var(--gold); color: #3a2600; }
.plan .tag.later { background: var(--blue-soft); color: var(--blue); }
.price { display: flex; align-items: baseline; gap: .5rem; }
.price b { font: 700 3.4rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.plan li { padding-left: 1.5rem; position: relative; font-size: .98rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan .fine { font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Download */
.download { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.download dl { margin: 1rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-size: .95rem; }
.download dt { color: var(--muted); }
.download dd { margin: 0; }
@media (max-width: 720px) { .download { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* Legal pages */
.legal { padding-block: 3.5rem 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .7rem; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin: .7rem 0; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.draft { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: 10px; background: color-mix(in srgb, var(--gold) 20%, var(--surface)); border: 1px solid var(--gold-edge); font-size: .95rem; }
.ph { background: color-mix(in srgb, var(--gold) 30%, transparent); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 3rem 2.5rem; font-size: .93rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer h4 { margin: 0 0 .7rem; font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer .brand img { height: 1.8rem; margin-bottom: .9rem; }
.site-footer .legal-line { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; font-size: .85rem; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Motion and interaction ---------- */
.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(23, 78, 166, .55); }
.btn:active { transform: translateY(0); }
.brand img { transition: transform .25s ease; }
.brand:hover img { transform: scale(1.04); }
.nav a { position: relative; transition: color .15s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.feature { transition: background-color .2s ease; border-radius: 0; }
.feature h3 { transition: color .2s ease; }
.feature:hover h3 { color: var(--blue); }
.feature h3::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-edge); flex: none; align-self: center; transition: transform .25s ease, opacity .25s ease; }
.feature:hover h3::before { transform: scale(1.35); }
.plan { transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.faq summary { transition: color .15s ease; }
.faq summary:hover { color: var(--blue); }
.faq details[open] p { animation: drop .3s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Hero entrance */
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero .window { animation: rise-shot .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-shot { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.coin { animation: none; }
.beta-pill .coin { animation: spin 3.5s 1s ease-in-out infinite; }
@keyframes spin { 0%, 70%, 100% { transform: scaleX(1); } 80% { transform: scaleX(.15); } 90% { transform: scaleX(1); } }

/* Scroll reveal (added by site.js only, so content is visible without it) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Zoomable screenshots */
[data-zoom] { cursor: zoom-in; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.zoomable { position: relative; overflow: hidden; }
.zoomable:hover [data-zoom] { transform: scale(1.035); }
.zoomable::after { content: "Click to enlarge"; position: absolute; right: .8rem; bottom: .8rem; padding: .4rem .7rem; border-radius: 8px; background: rgba(20, 23, 28, .78); color: #fff; font: 600 .78rem/1 var(--font-body); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.zoomable:hover::after { opacity: 1; transform: none; }
.lb { border: 0; padding: 0; background: transparent; color: #fff; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; }
.lb[open] { display: grid; place-items: center; padding: 1rem 4.5rem; }
@media (max-width: 600px) { .lb[open] { padding: 4rem .75rem 1rem; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 1rem; transform: none; } }
.lb::backdrop { background: rgba(10, 12, 16, .86); backdrop-filter: blur(4px); }
.lb[open] { animation: lb-in .25s ease both; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lb figure { margin: 0; display: grid; gap: .8rem; justify-items: center; }
.lb img { max-height: 82vh; max-width: 100%; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb figcaption { font-size: .95rem; color: #e7e9ec; text-align: center; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background-color .15s ease; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb .lb-prev { left: 1rem; } .lb .lb-next { right: 1rem; }
.lb .lb-close { top: 1.5rem; right: 1rem; transform: none; font-size: 1.2rem; }

/* Theme picker */
.theme-picker { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; }
.tp-controls { display: grid; gap: 1.4rem; }
.tp-label { font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .85rem .55rem .55rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .92rem/1 var(--font-body); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.swatch:hover { transform: translateY(-1px); border-color: var(--blue); }
.swatch[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.swatch i { width: 1.3rem; height: 1.3rem; border-radius: 50%; flex: none; }
.modes { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface); }
.modes button { border: 0; background: transparent; color: var(--ink); font: 600 .92rem/1 var(--font-body); padding: .55rem 1rem; border-radius: 7px; cursor: pointer; transition: background-color .15s ease; }
.modes button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }
.tp-shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.tp-shot img { transition: opacity .3s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.tp-shot img.swap { opacity: .25; }
@media (max-width: 880px) { .theme-picker { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.gallery .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ---------- Header actions and phone menu ---------- */
.header-cta { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 1.1rem; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: nowrap; justify-content: space-between; position: relative; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: .5rem 1.25rem 1rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(16, 24, 40, .3); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a:not(.btn)::after { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip ul { justify-content: flex-start; gap: .7rem 1.8rem; }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .window { max-width: 44rem; }
  section.block { padding-block: 3.5rem; }
  .strip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download dl { grid-template-columns: max-content minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 1rem; }
  .brand img { height: 1.8rem; }
  .hero { padding-block: 1.75rem 1.5rem; }
  .hero-actions .btn, .download .btn, .plan .btn { width: 100%; justify-content: center; }
  .download > div:last-child { justify-items: stretch !important; }
  .btn { flex-wrap: wrap; text-align: center; }
  .lede { font-size: 1.05rem; }
  .strip ul { grid-template-columns: 1fr; gap: .55rem; }
  section.block { padding-block: 2.75rem; }
  .section-head { margin-bottom: 1.6rem; }
  .gallery { gap: 1.1rem; }
  .band { border-radius: 14px; padding: 1.5rem; gap: 1.6rem; }
  .plan { padding: 1.4rem; }
  .price b { font-size: 2.8rem; }
  .swatch { padding: .5rem .75rem .5rem .5rem; font-size: .88rem; }
  .zoomable::after { content: "Tap to enlarge"; opacity: 1; transform: none; font-size: .72rem; }
  /* Deadline table becomes a list of cards */
  .ledger { background: transparent; border: 0; overflow: visible; }
  .ledger table { min-width: 0; }
  .ledger thead { display: none; }
  .ledger table, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .7rem; }
  .ledger td { border: 0; padding: .15rem 0; }
  .ledger td.who[data-label]::before { content: "To: "; }
  .site-footer .legal-line { font-size: .8rem; }
}
@media (hover: none) { .zoomable::after { content: "Tap to enlarge"; opacity: 1; transform: none; } }

@media (min-width: 1101px) { .strip ul { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 1.5rem; } .strip li { font-size: .93rem; } }

/* Name wordplay */
.say-line { font: 500 1.02rem/1.5 var(--font-body); color: var(--ink); margin-top: -.4rem; }
.say-line i { font-style: normal; color: var(--blue); font-weight: 600; }
.say { color: var(--blue); }
.name-play { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.np { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.6rem 1.8rem; display: grid; gap: .55rem; align-content: start; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.np:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.np-word { font: 700 clamp(1.9rem, 3vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -.02em; margin-bottom: .5rem; }
.np-word .k { color: var(--blue); }
.np-word .b { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 100% .22em; background-position: 0 92%; padding-bottom: .05em; transition: background-size .35s ease; }
.np:hover .np-word .b { background-size: 100% .45em; }
.np p:not(.np-word) { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .name-play { grid-template-columns: 1fr; } .np { padding: 1.3rem 1.3rem 1.5rem; } }
.g-full { grid-column: 1 / -1; } .gallery .g-full .shot img { aspect-ratio: 16 / 7; }

/* ---------- Skip link, breadcrumbs, footer extras ---------- */
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--blue-deep); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s ease; }
.skip:focus { top: 1rem; }
.crumbs { padding-block: 1.1rem 0; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs + .block, .crumbs + .legal { padding-top: 2rem; }
.site-footer .cols-4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .site-footer .cols-4 { grid-template-columns: 1fr 1fr; } .site-footer .cols-4 > :first-child { grid-column: 1 / -1; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--blue); }
.legal .link-btn { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.social span { font: 600 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-right: .3rem; }
.social a { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: color .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease; }
.social a:hover { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }
.see-also { margin-top: 3rem !important; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* ---------- Thank-you and 404 pages ---------- */
.status-page .wrap { max-width: 46rem; display: grid; gap: 1.2rem; justify-items: start; }
.steps { margin: .5rem 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .8rem; width: 100%; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.steps li::before { content: counter(s); grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.steps b { font-weight: 600; } .steps span { color: var(--muted); font-size: .95rem; }
.big-code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--blue); display: flex; align-items: center; gap: .1em; }
.coin-lg { width: .72em; height: .72em; box-shadow: inset 0 0 0 .08em var(--gold-edge); animation: spin 3.5s .6s ease-in-out infinite; }
.quick-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.quick-links a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; transition: border-color .15s ease; }
.quick-links a:hover { border-color: var(--blue); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden], .mobile-cta[hidden] { display: none !important; }
.cookie-in { pointer-events: auto; max-width: 46rem; width: 100%; display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: 0 20px 50px -18px rgba(16, 24, 40, .45); animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.cookie p { font-size: .93rem; flex: 1 1 18rem; min-width: 0; }
.cookie-btns { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Sticky phone button ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(16, 24, 40, .35); transform: translateY(110%); transition: transform .3s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta div { display: grid; line-height: 1.25; min-width: 0; }
  .mobile-cta b { font-size: .95rem; } .mobile-cta span { font-size: .8rem; color: var(--muted); }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .cookie { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); left: .75rem; right: .75rem; }
  .cookie-btns { width: 100%; } .cookie-btns .btn { flex: 1; justify-content: center; }
}

/* Updates page */
.narrow-wrap { max-width: 56rem; }
.download.latest { margin-top: 1.5rem; }
.note-line { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold, #f4b740); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.releases { display: grid; gap: .6rem; margin-top: 1rem; }
.rel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s; }
.rel:hover, .rel[open] { border-color: var(--blue); }
.rel summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .4rem 1rem; align-items: baseline; padding: .9rem 1.1rem; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary b { font: 600 .95rem/1.2 var(--font-mono); color: var(--blue); }
.rel summary time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.rel ul { margin: 0; padding: 0 1.1rem 1rem 2.6rem; display: grid; gap: .45rem; }
@media (max-width: 560px) { .rel summary { grid-template-columns: 4rem 1fr; } .rel summary time { grid-column: 2; } }
.download.latest code { white-space: nowrap; }

/* Pricing: three cards (free trial, Founders, Standard) */
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 1000px) { .plans.plans-3 { grid-template-columns: 1fr; max-width: 34rem; } }
.plan li.no { color: var(--muted); } .plan li.no::before { content: "–"; color: var(--muted); }
.soon { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .82em; font-weight: 600; white-space: nowrap; }
