/* ============================================================
   Seraglio — landing site
   Dark / premium. Editorial serif display + clean grotesque body.
   Palette anchored to app: #0a0a0a bg, #d7b3ff accent.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(215,179,255,0.28); color: #fff; }

/* ---------- Tokens ---------- */
:root {
  --bg:        #08070a;
  --bg-1:      #0c0a10;   /* panels */
  --bg-2:      #110e16;   /* raised panels */
  --bg-3:      #17131f;   /* hover / chips */

  --accent:    #d7b3ff;
  --accent-2:  #c79bf5;
  --accent-deep: #8a63c9;

  --text:      #ece8f2;
  --text-dim:  #a8a2b6;
  --text-mute: #6f6a7d;

  --line:      rgba(215,179,255,0.10);
  --line-soft: rgba(236,232,242,0.06);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --brand: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans:  "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);

  --glow-sm: 0 0 18px rgba(215,179,255,0.16);
  --glow-md: 0 0 42px rgba(215,179,255,0.22);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Ambient backdrop glow — restrained, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 50% -8%, rgba(138,99,201,0.14), transparent 60%),
    radial-gradient(40vw 40vh at 88% 18%, rgba(215,179,255,0.06), transparent 60%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.78;
}
.lede { color: var(--text-dim); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: #6a45a8;   /* solid → identical at any button size (header == hero) */
  color: #f7f2ff;
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #7a52bf;
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary .strike { color: rgba(255,255,255,0.5); text-decoration: line-through; font-weight: 500; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.012);
}
.btn-ghost:hover { border-color: rgba(215,179,255,0.3); background: var(--bg-3); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,7,10,0.82), rgba(8,7,10,0.45));
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8,7,10,0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { font-family: var(--serif); color: var(--accent); line-height: 1; text-shadow: 0 0 14px rgba(215,179,255,0.5), 0 0 30px rgba(138,99,201,0.35); }
.brand .brand-mark { font-size: 26px; }
.brand .wordmark { font-family: var(--brand); font-size: 21px; font-weight: 600; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.link-list a { color: var(--text-dim); font-size: 14.5px; transition: color .2s; }
.link-list a:hover { color: var(--text); }
.nav .btn { padding: 10px 20px; font-size: 14.5px; }
.link-list { display: flex; align-items: center; gap: 34px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .brand .wordmark { font-size: 16px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,7,10,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .site-header.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links .link-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links .link-list a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .nav-demo { display: none; }   /* the live demo is desktop-only */
  .nav .btn { width: 100%; justify-content: center; margin-top: 16px; padding: 15px; }
  #demo { display: none; }                   /* hide the interactive demo on mobile */
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.hero .eyebrow { display: inline-block; margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 98px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 15ch;
}
.hero h1 .glow { color: #fff; text-shadow: 0 0 36px rgba(215,179,255,0.45), 0 0 90px rgba(138,99,201,0.3); }
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--accent);
  margin-top: 30px;
}
.hero .positioning {
  max-width: 56ch; margin: 26px auto 0;
  color: var(--text-dim);
  font-size: clamp(16px, 1.8vw, 18.5px);
}
.hero-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.platform-line {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--text-mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.platform-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .55; box-shadow: 0 0 6px var(--accent); }

/* ============================================================
   DEMO — content-agnostic animated "video wall"
   ============================================================ */
.demo { padding-block: clamp(36px, 5vw, 60px); }
.demo-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(138,99,201,0.12), transparent 55%),
    var(--bg-1);
  padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 40px 120px -50px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
/* faux app chrome */
.demo-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.demo-chrome .lights { display: flex; gap: 7px; }
.demo-chrome .lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a2533; display: block; }
.demo-chrome .title { font-family: var(--mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.06em; }
.demo-chrome .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* BPM pulse pill */
.bpm-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(215,179,255,0.05);
}
.bpm-pill .beat {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: beat 0.469s infinite cubic-bezier(.4,0,.2,1); /* ~128 BPM */
}
@keyframes beat {
  0%   { transform: scale(0.7); opacity: .55; }
  18%  { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.7); opacity: .55; }
}

/* masonry wall */
.wall {
  position: relative;
  columns: 4 160px;
  column-gap: 12px;
  animation: wall-pulse 0.938s infinite ease-in-out; /* half-time of 128bpm */
}
@keyframes wall-pulse {
  0%, 100% { filter: brightness(1); }
  10% { filter: brightness(1.08); }
}
.tile {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.tile .thumb {
  position: relative;
  width: 100%;
  background-size: 200% 200%;
  animation: drift 9s linear infinite;
}
@keyframes drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
/* abstract, content-agnostic gradient "footage" — varied per tile via nth-child */
.tile:nth-child(7n+1) .thumb { background-image: linear-gradient(135deg,#2a2440,#3a2d5c,#1a1626); height: 132px; }
.tile:nth-child(7n+2) .thumb { background-image: linear-gradient(135deg,#1f2438,#33405e,#171a26); height: 96px; }
.tile:nth-child(7n+3) .thumb { background-image: linear-gradient(135deg,#3a2c4e,#5a4276,#241b33); height: 156px; }
.tile:nth-child(7n+4) .thumb { background-image: linear-gradient(135deg,#241f33,#403258,#191525); height: 108px; }
.tile:nth-child(7n+5) .thumb { background-image: linear-gradient(135deg,#2d2740,#473a66,#1d1929); height: 140px; }
.tile:nth-child(7n+6) .thumb { background-image: linear-gradient(135deg,#21283c,#394a6a,#161b28); height: 92px; }
.tile:nth-child(7n+7) .thumb { background-image: linear-gradient(135deg,#332846,#523f72,#211a30); height: 120px; }
/* sheen sweep — like a frame advancing */
.tile .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(215,179,255,0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 6s infinite;
}
.tile:nth-child(3n) .thumb::after { animation-delay: 2s; }
.tile:nth-child(3n+1) .thumb::after { animation-delay: 4s; }
@keyframes sheen { 0%,70% { transform: translateX(-100%); } 88%,100% { transform: translateX(100%); } }
/* tiny play glyph + duration */
.tile .meta {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 7px 9px;
  background: linear-gradient(0deg, rgba(8,7,10,0.55), transparent 55%);
}
.tile .dur { font-family: var(--mono); font-size: 10px; color: rgba(236,232,242,0.7); letter-spacing: .04em; }
.tile .play { width: 9px; height: 9px; border-radius: 2px; background: rgba(215,179,255,0.35); }
/* a couple of tiles "resampling" */
.tile.sampling .thumb { animation: resample 4.5s infinite ease-in-out; }
@keyframes resample { 0%,82%,100% { opacity: 1; } 88%,94% { opacity: 0.25; } }
.tile.sampling::before {
  content: "sampling"; position: absolute; top: 7px; left: 7px; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  color: var(--accent); background: rgba(8,7,10,0.7);
  padding: 2px 6px; border-radius: 4px; opacity: 0;
  animation: resample-label 4.5s infinite ease-in-out;
}
@keyframes resample-label { 0%,82%,100% { opacity: 0; } 86%,94% { opacity: 1; } }

/* popout player — floating window */
.popout {
  position: absolute;
  right: clamp(18px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 40px);
  width: clamp(190px, 30%, 290px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(215,179,255,0.22);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.85), var(--glow-sm);
  background: var(--bg-2);
  animation: float 7s infinite ease-in-out;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.popout .bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.popout .bar .lights { display: flex; gap: 5px; }
.popout .bar .lights i { width: 8px; height: 8px; border-radius: 50%; background: #2a2533; }
.popout .bar .lbl { font-family: var(--mono); font-size: 10px; color: var(--text-mute); letter-spacing: .08em; margin-left: auto; }
.popout .screen { position: relative; height: 150px; background-image: linear-gradient(135deg,#39295a,#5b4286,#231a36); background-size: 200% 200%; animation: drift 7s linear infinite; }
.popout .screen .loop {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,7,10,0.6); padding: 3px 8px; border-radius: 999px;
}
.popout .screen .loop .ring { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* progress scrubber w/ loop markers */
.popout .scrub { height: 3px; background: rgba(236,232,242,0.1); position: relative; }
.popout .scrub::before { content:""; position:absolute; left:18%; right:34%; top:0; bottom:0; background: var(--accent); opacity:.5; }
.popout .scrub::after { content:""; position:absolute; top:-2px; height:7px; width:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: scrubmove 2.4s infinite linear; }
@keyframes scrubmove { 0% { left:18%; } 100% { left:66%; } }

/* cam overlay bubble — "put yourself in the action" */
.cam {
  position: absolute;
  left: clamp(18px, 4vw, 40px);
  bottom: clamp(18px, 4vw, 40px);
  width: clamp(82px, 12%, 116px);
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(215,179,255,0.3);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8);
  background:
    radial-gradient(60% 70% at 50% 38%, rgba(215,179,255,0.18), transparent 60%),
    linear-gradient(160deg,#171320,#221a30);
}
.cam .silhouette {
  position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%);
  width: 56%; height: 86%;
  background: rgba(215,179,255,0.16);
  border-radius: 50% 50% 18% 18% / 60% 60% 40% 40%;
}
.cam .silhouette::before { content:""; position:absolute; top:-26%; left:50%; transform:translateX(-50%); width:48%; aspect-ratio:1; border-radius:50%; background: rgba(215,179,255,0.2); }
.cam .tag {
  position: absolute; top: 6px; left: 7px; z-index: 2;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.cam .rec { position:absolute; top:7px; right:7px; width:6px; height:6px; border-radius:50%; background:#ff5a7a; box-shadow:0 0 6px #ff5a7a; animation: beat 1.4s infinite; }

.demo-caption {
  text-align: center; margin-top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head p { color: var(--text-dim); margin-top: 18px; font-size: clamp(16px,1.8vw,19px); }

/* ---------- Features ---------- */
.features-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px; overflow: hidden;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-1);
  padding: clamp(26px, 3vw, 38px);
  transition: background .3s;
}
.feature:hover { background: var(--bg-2); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(215,179,255,0.06);
  border: 1px solid var(--line);
  margin-bottom: 22px;
  color: var(--accent);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 25px; font-weight: 600; letter-spacing: -0.005em; }
.feature p { color: var(--text-dim); margin-top: 10px; font-size: 15.5px; line-height: 1.6; }

/* ---------- Positioning band ---------- */
.band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(138,99,201,0.10), transparent 60%);
}
.band .inner { text-align: center; max-width: 30ch; margin-inline: auto; }
.band h2 { font-size: clamp(32px, 5vw, 54px); }
.band .pull { font-family: var(--serif); font-style: italic; font-size: clamp(22px,3vw,30px); color: var(--accent); margin-bottom: 22px; }
.band p { color: var(--text-dim); max-width: 58ch; margin: 20px auto 0; font-size: clamp(16px,1.8vw,18.5px); }
.assurances { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.assurances .a { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--text-dim); }
.assurances .a svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing .price-card {
  margin-top: clamp(36px,4vw,52px);
  max-width: 540px; margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: clamp(34px, 4vw, 52px);
  text-align: center;
  box-shadow: 0 50px 130px -60px rgba(138,99,201,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(70% 50% at 50% 0%, rgba(215,179,255,0.10), transparent 60%);
}
.price-card .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); opacity:.8; }
.price-card .amount { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 18px; }
.price-card .amount .now { font-family: var(--serif); font-size: clamp(64px, 10vw, 92px); font-weight: 600; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(215,179,255,0.3); }
.price-card .amount .was { font-family: var(--serif); font-size: 34px; color: var(--text-mute); text-decoration: line-through; }
.price-card .once { color: var(--text-dim); margin-top: 8px; }
.price-card .incl { list-style: none; margin: 28px auto 0; max-width: 330px; text-align: left; display: grid; gap: 13px; }
.price-card .incl li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 15.5px; }
.price-card .incl li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.price-card .btn-primary { margin-top: 32px; width: 100%; justify-content: center; padding: 17px; font-size: 17px; }
.price-card .platform-line { margin-top: 20px; justify-content: center; display: flex; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(32px,4vw,48px); max-width: 800px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; text-align: left;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; color: var(--text);
  transition: color .2s;
}
.faq-q:hover { color: #fff; }
.faq-q .pm { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--accent); border-radius: 2px; transition: transform .3s ease; }
.faq-q .pm::before { left: 0; right: 0; top: 10px; height: 2px; }
.faq-q .pm::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a .inner { padding: 0 4px 28px; color: var(--text-dim); font-size: 16.5px; max-width: 64ch; line-height: 1.7; }
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 40px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-mark { font-size: 23px; }
.footer-brand .wordmark { font-family: var(--brand); font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-mute);
}
.footer-bottom .wink { color: var(--text-dim); font-style: italic; font-family: var(--serif); font-size: 15px; letter-spacing: 0; }

/* ---------- Entrance (kept visible by default — robust to paused/backgrounded paint) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-block: clamp(48px, 8vw, 90px); }
.legal .back { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--text-mute); display: inline-flex; gap: 8px; align-items:center; margin-bottom: 36px; }
.legal .back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 40px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 16.5px; line-height: 1.75; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
