/* ============================================================================
   NarrationOS website — site.css
   Layout, sections, components, and motion. Loads after base.css.
   ========================================================================== */

/* ---- Layout primitives ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tint { background: var(--ground-raise); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 0.9rem; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* Ambient page texture — echoes the app's globals.css: warm corner glows +
   stacked sine-wave contour SVG on the flat ground. Fixed, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ground);
  background-image:
    radial-gradient(95% 70% at 0% -5%, rgba(232,168,124,0.13), transparent 60%),
    radial-gradient(95% 70% at 100% -5%, rgba(232,168,124,0.09), transparent 58%),
    radial-gradient(120% 90% at 50% 118%, rgba(180,200,255,0.045), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='180' viewBox='0 0 1200 180'%3E%3Cg fill='none' stroke='%23E8A87C' stroke-width='1.2'%3E%3Cpath d='M0 60 C 150 20, 300 100, 450 60 S 750 20, 900 60 S 1200 100, 1200 60' opacity='0.06'/%3E%3Cpath d='M0 105 C 150 65, 300 145, 450 105 S 750 65, 900 105 S 1200 145, 1200 105' opacity='0.045'/%3E%3Cpath d='M0 150 C 150 110, 300 190, 450 150 S 750 110, 900 150 S 1200 190, 1200 150' opacity='0.035'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 100% 100%, 1200px 180px;
  background-position: 0 0, 0 0, 0 0, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
@media (prefers-contrast: more) { body::before { background-image: none; } }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--step-0);
  line-height: 1; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: #1a0f07;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 55%, var(--ember));
  box-shadow: 0 10px 30px -10px rgba(232,168,124,0.55);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(232,168,124,0.7); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

.btn--discord {
  color: #fff;
  background: #5865F2;
  box-shadow: 0 10px 30px -12px rgba(88,101,242,0.6);
}
.btn--discord:hover { background: #4a56e0; }

.btn--sm { padding: 0.6rem 1.05rem; font-size: var(--step--1); }

/* "Coming soon" pill on store CTAs */
.soon {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15em 0.5em; border-radius: 999px;
  background: rgba(255,255,255,0.14); color: var(--text);
  margin-left: 0.1rem;
}
.btn--primary .soon { background: rgba(26,15,7,0.22); color: #1a0f07; }

/* ---- Nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.nav__brand img { width: 34px; height: 34px; }
.nav__brand b {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.nav__brand b span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: var(--step--1); color: var(--text-dim); font-weight: 500; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 0.7rem; }
.nav__toggle { display: none; }

/* mobile nav */
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn span.soon { }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line);
  }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__drawer-wrap { position: relative; }
  .nav__links, .nav__cta {
    position: absolute; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0.4rem;
    padding: 1rem; margin: 0 var(--gutter);
    background: var(--panel-raise); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open .nav__links, .nav.is-open .nav__cta { display: flex; }
  .nav__links a { padding: 0.6rem 0.4rem; color: var(--text); }
  .nav__links a::after { display: none; }
  .nav__cta { top: auto; position: static; margin: 0.5rem var(--gutter) 0; border: 0; padding: 0; background: none; box-shadow: none; }
  .nav.is-open .nav__cta { display: flex; }
  .nav__cta .btn { justify-content: center; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; min-height: min(76vh, 660px); display: flex; align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); }
.hero > .wrap { position: relative; z-index: 2; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  /* The cinematic burning-book art sits ~65% across, lower-centre of the source
     panorama. With `cover` the image overflows horizontally; position ~62% so
     the glowing book lands in the right half of the hero (not the dark edge). */
  background-position: 62% 58%; background-size: cover; background-repeat: no-repeat;
  opacity: 1;
  /* Horizontal fade: hide the art under the text column (left) and let the
     glowing book show on the right. */
  -webkit-mask-image: linear-gradient(90deg, transparent 14%, rgba(0,0,0,0.4) 34%, #000 52%);
          mask-image: linear-gradient(90deg, transparent 14%, rgba(0,0,0,0.4) 34%, #000 52%);
}
/* Left-side scrim so the text column always has enough contrast over the art. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ground) 8%, rgba(10,10,11,0.68) 32%, transparent 60%);
}
.hero::after {
  /* bottom fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--ground)); pointer-events: none;
}
@media (max-width: 760px) {
  /* On narrow screens the book would sit behind the text; drop it low and dim. */
  .hero__bg { -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 75%, transparent 100%);
              mask-image: linear-gradient(180deg, transparent 35%, #000 75%, transparent 100%);
              opacity: 0.45; }
  .hero::before { background: linear-gradient(180deg, var(--ground) 30%, rgba(10,10,11,0.6) 70%); }
}
.hero__inner { display: grid; gap: 1.6rem; max-width: 40rem; }
.hero h1 { margin-top: 0.4rem; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-bright), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); color: var(--text-dim); max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero__trust { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; }
.hero__trust svg { width: 1.05em; height: 1.05em; color: var(--good); }

/* hero waveform canvas — sits under the headline, echoing the logo */
.hero__wave { width: 100%; max-width: 34rem; height: 150px; margin-top: 0.2rem; opacity: 0.95; }
@media (max-width: 560px) { .hero__wave { height: 104px; } }

/* ---- Feature pillars -------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 1.6rem; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--panel-raise), var(--panel));
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(232,168,124,0.5); box-shadow: var(--shadow-soft); }
.pillar__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 1rem; color: var(--accent);
  background: radial-gradient(120% 120% at 30% 20%, rgba(232,168,124,0.22), rgba(232,168,124,0.05));
  border: 1px solid rgba(232,168,124,0.28);
}
.pillar__ic svg { width: 24px; height: 24px; }
.pillar h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.pillar p { color: var(--text-dim); font-size: var(--step--1); line-height: 1.55; }

/* ---- How it works ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.step__n {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: var(--ember); line-height: 1; margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--text-dim); font-size: var(--step--1); }
.steps__connector { display: none; }

/* ---- Experimental badge (used on full-cast copy) ---------------------- */
.badge-exp {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28em 0.6em; border-radius: 999px; vertical-align: middle;
  background: rgba(232,168,124,0.14); color: var(--accent-bright);
  border: 1px solid rgba(232,168,124,0.35);
}

/* ---- Editor spotlight + full-cast spotlight --------------------------- */
.spotlight { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.spotlight--rev { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .spotlight--rev { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .spotlight--rev .spotlight__copy { order: -1; } }

/* Narration-Editor mockup — a click-to-edit line + pronunciation/audition panel */
.edit-demo {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-raise), #0e0b09);
  padding: 1.3rem; box-shadow: var(--shadow); display: grid; gap: 0.9rem;
}
.edit-demo__reader {
  font-family: var(--font-read); font-size: 0.98rem; line-height: 1.65; color: var(--text-dim);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 0.9rem 1rem; background: #0c0908;
}
.edit-demo__reader .picked {
  background: rgba(232,168,124,0.18); border-bottom: 2px solid var(--accent);
  border-radius: 4px; padding: 0 3px; color: var(--text); cursor: pointer;
}
.edit-demo__reader .sfx { color: var(--ember); font-style: italic; }
.edit-panel {
  border: 1px solid rgba(232,168,124,0.28); border-radius: var(--r-sm);
  background: radial-gradient(120% 120% at 0% 0%, rgba(232,168,124,0.08), transparent 60%), var(--panel);
  padding: 0.9rem 1rem; display: grid; gap: 0.7rem;
}
.edit-panel__row { display: flex; align-items: center; gap: 0.6rem; }
.edit-panel__label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.edit-panel__word { font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.edit-panel__field {
  flex: 1; font-family: var(--font-ui); font-size: 0.85rem; color: var(--accent-bright);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.6rem;
}
.edit-panel__audition {
  display: inline-flex; align-items: center; gap: 0.45rem; align-self: start;
  font-size: 0.78rem; font-weight: 600; color: #1a0f07;
  background: var(--accent); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.edit-panel__audition svg { width: 0.9em; height: 0.9em; }
.edit-panel__wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.edit-panel__wave i { width: 3px; border-radius: 2px; background: var(--accent); display: block; opacity: 0.85; }

@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight__copy { display: grid; gap: 1rem; }
.spotlight__list { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.spotlight__list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-dim); font-size: var(--step--1); }
.spotlight__list svg { width: 1.15em; height: 1.15em; color: var(--accent); flex: none; margin-top: 0.15em; }

/* cast panel — a mini "attribution" visual */
.cast {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-raise), #100c09);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.cast__line { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem; border-radius: var(--r-sm); }
.cast__line + .cast__line { margin-top: 0.35rem; }
.cast__line.is-lit { background: rgba(232,168,124,0.07); }
.cast__who {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28em 0.6em; border-radius: 999px; white-space: nowrap; flex: none; min-width: 92px; text-align: center;
}
.cast__txt { font-family: var(--font-read); font-size: 0.95rem; color: var(--text-dim); line-height: 1.4; }
.cast__txt b { color: var(--text); font-weight: 400; }
/* per-speaker chips (distinct hues, all warm-family + one cool for contrast) */
.who--narr { background: rgba(138,127,114,0.2); color: #cdbfae; }
.who--a { background: rgba(232,168,124,0.18); color: var(--accent-bright); }
.who--b { background: rgba(127,150,200,0.18); color: #a9c0ee; }
.who--c { background: rgba(190,120,110,0.2); color: #e6a99f; }

/* ---- Screenshot gallery (faithful HTML/CSS app mockups) -------------- */
.gallery__tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.gtab {
  padding: 0.55rem 1.1rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600;
  border: 1px solid var(--line); color: var(--text-dim); background: rgba(255,255,255,0.02);
  transition: all 0.2s var(--ease);
}
.gtab[aria-selected="true"] { color: #1a0f07; background: var(--accent); border-color: var(--accent); }
.gtab:hover:not([aria-selected="true"]) { color: var(--text); border-color: var(--accent); }

.gpanel { display: none; }
.gpanel.is-active { display: block; animation: fadeUp 0.5s var(--ease); }
.gnote { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); text-align: center; }
.gnote a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }

/* Real screenshot frame */
.shot { margin: 0; }
.shot picture, .shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--ground);
}
.shot figcaption { margin-top: 0.9rem; text-align: center; font-size: var(--step--1); color: var(--text-dim); }

/* The app window chrome (mirrors the real dark, decorations:false titlebar) */
.appwin {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--ground); box-shadow: var(--shadow); position: relative;
}
.appwin__bar {
  display: flex; align-items: center; gap: 0.7rem; height: 44px; padding: 0 0.9rem;
  background: #0d0c0d; border-bottom: 1px solid var(--line-soft);
}
.appwin__brand { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.appwin__brand img { width: 20px; height: 20px; }
.appwin__nav { display: flex; gap: 1rem; margin-left: 1rem; font-size: 0.78rem; color: var(--muted); }
.appwin__nav .on { color: var(--accent); }
.appwin__win { margin-left: auto; display: flex; gap: 0.5rem; color: var(--muted); }
.appwin__win i { width: 12px; height: 2px; background: currentColor; display: block; }
.appwin__body { padding: 1.3rem; min-height: 320px; background:
    radial-gradient(90% 60% at 0% 0%, rgba(232,168,124,0.06), transparent 60%), var(--ground); }

/* Library mockup */
.mk-lib__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.mk-lib__head h4 { font-family: var(--font-display); font-size: 1.3rem; }
.mk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 620px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }
.mk-book { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel-raise); }
.mk-book__cover { aspect-ratio: 3/4; display: grid; place-items: center; padding: 0.6rem; text-align: center; }
.mk-book__cover span { font-family: var(--font-display); font-size: 0.82rem; color: #1a0f07; font-weight: 600; line-height: 1.15; }
.mk-book__meta { padding: 0.5rem 0.6rem; }
.mk-book__meta b { font-size: 0.72rem; display: block; }
.mk-book__meta small { font-size: 0.64rem; color: var(--muted); }
.mk-chip { font-size: 0.58rem; padding: 0.1em 0.5em; border-radius: 999px; background: rgba(127,184,138,0.16); color: var(--good); }

/* Editor mockup */
.mk-ed { display: grid; grid-template-columns: 150px 1fr; gap: 0.9rem; }
@media (max-width: 620px) { .mk-ed { grid-template-columns: 1fr; } }
.mk-ed__cast { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.8rem; background: var(--panel); }
.mk-ed__cast h5 { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.6rem; }
.mk-ed__voice { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; padding: 0.35rem 0; color: var(--text-dim); }
.mk-ed__voice .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.mk-ed__reader { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem 1.1rem; background: #0e0b09; font-family: var(--font-read); line-height: 1.7; font-size: 0.9rem; color: var(--text-dim); }
.mk-ed__reader .q { color: var(--accent-bright); }
.mk-ed__reader .sel { background: rgba(232,168,124,0.16); border-bottom: 2px solid var(--accent); border-radius: 3px; padding: 0 2px; color: var(--text); }
.mk-ed__reader .sfx { color: var(--ember); font-style: italic; }

/* Player mockup */
.mk-play { display: grid; gap: 1rem; max-width: 520px; margin-inline: auto; padding-top: 0.5rem; }
.mk-play__cover { width: 120px; height: 160px; border-radius: var(--r-sm); margin-inline: auto; display: grid; place-items: center; text-align: center; padding: 0.5rem; }
.mk-play__cover span { font-family: var(--font-display); color: #1a0f07; font-weight: 600; font-size: 0.85rem; }
.mk-play__title { text-align: center; }
.mk-play__title b { font-family: var(--font-display); font-size: 1.05rem; }
.mk-play__title small { display: block; color: var(--muted); font-size: 0.72rem; }
.mk-karaoke { text-align: center; font-family: var(--font-read); font-size: 1rem; line-height: 1.6; color: var(--muted); padding: 0 0.5rem; }
.mk-karaoke .done { color: var(--text-dim); }
.mk-karaoke .now { color: var(--accent-bright); background: rgba(232,168,124,0.14); border-radius: 4px; padding: 0 3px; }
.mk-seek { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.14); position: relative; }
.mk-seek::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--accent); border-radius: 999px; }
.mk-seek::after { content: ""; position: absolute; left: 38%; top: 50%; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); border: 2px solid var(--ground); transform: translate(-50%,-50%); }
.mk-times { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-transport { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--text); }
.mk-transport button { display: grid; place-items: center; }
.mk-transport svg { width: 20px; height: 20px; }
.mk-transport .play { width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: #1a0f07; }
.mk-transport .play svg { width: 22px; height: 22px; }

/* cover gradients (reused) */
.cov-1 { background: linear-gradient(150deg, #E8A87C, #8A431F); }
.cov-2 { background: linear-gradient(150deg, #7f96c8, #2c3350); }
.cov-3 { background: linear-gradient(150deg, #be786e, #5a2420); }
.cov-4 { background: linear-gradient(150deg, #c9b18a, #6b5334); }

/* ---- Local-first / GPU ------------------------------------------------ */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .local { grid-template-columns: 1fr; } }
.gpu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
@media (max-width: 480px) { .gpu-grid { grid-template-columns: 1fr; } }
.gpu {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel);
  font-size: var(--step--1);
}
.gpu b { font-weight: 600; }
.gpu small { color: var(--muted); display: block; font-size: 0.72rem; }
.gpu__tag { margin-left: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.privacy-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; background: linear-gradient(180deg, var(--panel-raise), var(--panel)); display: grid; gap: 1rem; align-content: start; }
.privacy-card ul { display: grid; gap: 0.7rem; }
.privacy-card li { display: flex; gap: 0.7rem; font-size: var(--step--1); color: var(--text-dim); }
.privacy-card svg { width: 1.2em; height: 1.2em; color: var(--good); flex: none; margin-top: 0.15em; }

/* ---- Comparison table ------------------------------------------------- */
.cmp-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--step--1); }
.cmp th, .cmp td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { background: var(--panel); font-weight: 600; }
.cmp thead th:first-child { border-top-left-radius: var(--r-md); }
.cmp col.us, .cmp .us { background: rgba(232,168,124,0.06); }
.cmp thead .us { color: var(--accent-bright); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--text-dim); font-weight: 500; }
.cmp .mk { display: inline-flex; align-items: center; gap: 0.4rem; }
.cmp .mk svg { width: 1.15em; height: 1.15em; }
.cmp .yes { color: var(--good); }
.cmp .no { color: var(--bad); }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.6rem; }
.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; text-align: left; font-weight: 600; font-size: var(--step-0);
  transition: background 0.2s var(--ease);
}
.acc__q:hover { background: rgba(255,255,255,0.03); }
.acc__ic { flex: none; width: 22px; height: 22px; position: relative; }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease); }
.acc__ic::before { left: 3px; right: 3px; top: 10px; height: 2px; }
.acc__ic::after { top: 3px; bottom: 3px; left: 10px; width: 2px; }
.acc[open] .acc__ic::after { transform: scaleY(0); }
.acc__a { padding: 0 1.3rem 1.2rem; color: var(--text-dim); font-size: var(--step--1); line-height: 1.6; }
.acc__a a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Solo-dev note ---------------------------------------------------- */
.dev-note {
  max-width: 720px; margin-inline: auto; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--panel);
  display: grid; gap: 0.9rem; justify-items: center;
}
.dev-note p { color: var(--text-dim); font-size: var(--step-0); max-width: 55ch; }

/* ---- Final CTA -------------------------------------------------------- */
.cta {
  text-align: center; position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid rgba(232,168,124,0.3);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232,168,124,0.16), transparent 60%),
    linear-gradient(180deg, var(--panel-raise), var(--panel));
}
.cta h2 { margin-bottom: 1rem; }
.cta__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; }
.cta__mark { width: 88px; height: 88px; margin: 0 auto 1.2rem; opacity: 0.95; }

/* ---- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 3.5rem 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: grid; gap: 0.8rem; align-content: start; }
.footer__brand .b { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.footer__brand img { width: 30px; height: 30px; }
.footer__brand p { color: var(--muted); font-size: var(--step--1); max-width: 34ch; }
.footer h4 { font-family: var(--font-ui); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; }
.footer__col a { display: block; padding: 0.3rem 0; color: var(--text-dim); font-size: var(--step--1); }
.footer__col a:hover { color: var(--accent-bright); }
.footer__col button { color: var(--text-dim); font-size: var(--step--1); padding: 0.3rem 0; display: block; }
.footer__col button:hover { color: var(--accent-bright); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--step--1); }

/* ---- Updates page ----------------------------------------------------- */
.updates { max-width: 780px; margin-inline: auto; display: grid; gap: 1.5rem; }
.post { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: clamp(1.4rem, 4vw, 2.2rem); }
.post__meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.post__date { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25em 0.65em; border-radius: 999px; }
.tag--release { background: rgba(232,168,124,0.16); color: var(--accent-bright); }
.tag--news { background: rgba(127,150,200,0.16); color: #a9c0ee; }
.tag--fix { background: rgba(127,184,138,0.16); color: var(--good); }
.post h2 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.post__body { color: var(--text-dim); display: grid; gap: 0.9rem; }
.post__body p { line-height: 1.7; }
.post__body ul { display: grid; gap: 0.5rem; }
.post__body li { display: flex; gap: 0.6rem; }
.post__body li::before { content: "›"; color: var(--accent); font-weight: 700; }
.post__body h3 { font-family: var(--font-ui); font-size: var(--step-0); font-weight: 600; color: var(--text); margin-top: 0.4rem; }
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.page-hero .eyebrow { justify-self: center; }

/* ---- Legal page ------------------------------------------------------- */
.legal-note {
  max-width: 780px; margin: 0 auto clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid rgba(232,168,124,0.28); border-radius: var(--r-md);
  background: rgba(232,168,124,0.06); padding: 1rem 1.2rem;
  color: var(--text-dim); font-size: var(--step--1); line-height: 1.6;
}
.legal-note strong { color: var(--text); }
.legal-doc .post h2 { font-size: var(--step-1); }
.legal-doc .post__body a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { text-align: center; color: var(--muted); font-size: var(--step--1); margin-top: 1.5rem; }
.link-btn { display: inline; padding: 0; color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.link-btn:hover { color: var(--accent); }

/* ---- Motion ----------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gpanel.is-active { animation: none; }
  .btn:hover, .pillar:hover { transform: none; }
}

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #1a0f07; padding: 0.6rem 1rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip:focus { left: 0; }

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
