/* The public surfaces: marketing site and authentication.
 *
 * These are the only screens in the product allowed to be expressive. The
 * workspace is a tool someone uses for six hours a day and its job is to get
 * out of the way; the landing page is seen once, for about eight seconds, and
 * its job is to be worth the ninth.
 *
 * What keeps that from becoming decoration: every visual flourish here is
 * carrying an argument the product actually makes. The hero mock shows a real
 * transcript with a real citation highlight, because "every score links to the
 * words behind it" is the product and a stock illustration would be a claim
 * about nothing. The amber highlight in it is `--marker`, the same token the
 * review screen uses for the same meaning. Nothing here invents a visual
 * language that the app then contradicts.
 *
 * Sections fade up on scroll via `.reveal`, driven by IntersectionObserver in
 * site.js. The class does nothing without JS — content is visible by default
 * and the observer opts it *into* animation — so a failed script or a bot gets
 * a fully readable page rather than a blank one.
 */

/* ─────────────────────────────────────────────────────────── site nav ── */

.site { background: var(--canvas); }

.sitebar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.sitebar.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.sitebar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: min(1180px, 100% - var(--sp-8));
  min-height: 66px;
  margin: 0 auto;
}
.sitenav { display: flex; gap: var(--sp-1); }
.sitenav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: var(--text-md);
  font-weight: 550;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.sitenav a:hover { background: var(--surface); color: var(--ink); }
.sitebar-menu { display: none; }
.sitenav .only-sm { display: none; }

@media (max-width: 860px) {
  /* The bar keeps the brand, one call to action and the menu. Everything else
   * moves into the dropdown — at 375px the full row is ~450px of content in
   * 343px of space, and something has to give. */
  .sitebar .theme-toggle,
  .sitebar .btn.quiet { display: none; }
  .sitenav .only-sm { display: inline-flex; }
  .sitenav {
    position: absolute;
    left: var(--sp-4);
    right: var(--sp-4);
    top: 100%;
    flex-direction: column;
    padding: var(--sp-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
  }
  .sitenav[hidden] { display: none; }
  .sitenav a { min-height: 42px; }
  .sitebar-menu { display: inline-grid; order: 3; }
  .sitebar-inner { position: relative; gap: var(--sp-3); }
}

/* ──────────────────────────────────────────────────────────── layout ── */

.band { width: min(1180px, 100% - var(--sp-8)); margin: 0 auto; }
.band.tight { width: min(920px, 100% - var(--sp-8)); }
.site-section { padding: clamp(64px, 9vw, 118px) 0; }
.site-section.pad-sm { padding: clamp(40px, 5vw, 64px) 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 600;
}
.kicker b {
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.display {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.2rem);
  font-weight: 680;
  letter-spacing: -.032em;
  line-height: 1.02;
}
.display .grad {
  background: linear-gradient(104deg, var(--a-500) 8%, var(--a-300) 52%, var(--m-400) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .display .grad,
:root:not([data-theme="light"]) .display .grad { --a-500: #5fd3bd; }

.site-lede {
  max-width: 56ch;
  margin: var(--sp-5) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, .95rem + .35vw, 1.18rem);
  line-height: 1.6;
}
.site-h2 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  font-weight: 660;
  letter-spacing: -.026em;
  line-height: 1.1;
}
.site-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.site-head.centred { margin-inline: auto; text-align: center; }
.site-head.centred .site-h2, .site-head.centred .site-lede { margin-inline: auto; }

/* ────────────────────────────────────────────────────────────── hero ── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: clip;
}
/* An aurora, not a gradient rectangle: three soft radials at different scales
 * that never fully resolve, so the eye reads depth rather than a band. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 780px;
  background:
    radial-gradient(46% 42% at 18% 34%, color-mix(in srgb, var(--a-300) 34%, transparent), transparent 70%),
    radial-gradient(38% 40% at 78% 22%, color-mix(in srgb, var(--m-300) 26%, transparent), transparent 68%),
    radial-gradient(52% 48% at 52% 68%, color-mix(in srgb, var(--a-500) 16%, transparent), transparent 72%);
  filter: blur(26px);
  opacity: .62;
  pointer-events: none;
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(-3%, 2%, 0) scale(1.07); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 76%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 76%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero-note { margin-top: var(--sp-4); color: var(--ink-muted); font-size: var(--text-sm); }
.hero-note b { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .display { max-width: 20ch; }
}

/* ── the product mock ── */

.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
  transition: transform var(--t-slower) var(--ease-out);
}
.mock:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.mock-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-title { color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; }
.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ok-fg);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.mock-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.8s var(--ease-in-out) infinite;
}
@keyframes pulse-dot { 50% { opacity: .3; transform: scale(.8); } }

.mock-body { display: grid; gap: var(--sp-3); padding: var(--sp-4); }
.mock-turn {
  max-width: 88%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md) var(--r-md) var(--r-md) 5px;
  background: var(--surface-sunk);
  font-size: var(--text-sm);
  line-height: 1.55;
  animation: turn-in var(--t-slow) var(--ease-out) both;
}
.mock-turn.you {
  margin-left: auto;
  border-radius: var(--r-md) var(--r-md) 5px var(--r-md);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}
.mock-turn:nth-child(2) { animation-delay: .12s; }
.mock-turn:nth-child(3) { animation-delay: .24s; }
@keyframes turn-in { from { opacity: 0; transform: translateY(8px); } }
.mock-who {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.mock-mark {
  border-radius: 3px;
  background: var(--marker);
  box-shadow: 0 0 0 2px var(--marker);
  color: var(--ink);
}
.mock-score {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-1) var(--sp-4) var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.mock-score-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.mock-score-copy b { display: block; font-size: var(--text-sm); font-weight: 620; }
.mock-score-copy span { color: var(--ink-muted); font-size: var(--text-xs); }

/* The waveform is CSS-only: 22 bars on staggered delays. No canvas, no JS.
 *
 * The stagger is written here rather than as `style="animation-delay:…"` on each
 * bar because `style-src` carries no 'unsafe-inline' — an inline style attribute
 * is dropped by the browser and every bar would animate in lockstep, which reads
 * as a progress bar rather than as audio. Keep `WAVE_BARS` in site.py equal to
 * the highest `nth-child` below. */
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; }
.wave i {
  width: 3px;
  height: 30%;
  border-radius: var(--r-full);
  background: var(--accent);
  opacity: .55;
  animation: wave 1.1s var(--ease-in-out) infinite alternate;
}
.wave i:nth-child(1)  { animation-delay: 0ms; }
.wave i:nth-child(2)  { animation-delay: 70ms; }
.wave i:nth-child(3)  { animation-delay: 140ms; }
.wave i:nth-child(4)  { animation-delay: 210ms; }
.wave i:nth-child(5)  { animation-delay: 280ms; }
.wave i:nth-child(6)  { animation-delay: 350ms; }
.wave i:nth-child(7)  { animation-delay: 420ms; }
.wave i:nth-child(8)  { animation-delay: 490ms; }
.wave i:nth-child(9)  { animation-delay: 560ms; }
.wave i:nth-child(10) { animation-delay: 630ms; }
.wave i:nth-child(11) { animation-delay: 700ms; }
.wave i:nth-child(12) { animation-delay: 770ms; }
.wave i:nth-child(13) { animation-delay: 840ms; }
.wave i:nth-child(14) { animation-delay: 910ms; }
.wave i:nth-child(15) { animation-delay: 980ms; }
.wave i:nth-child(16) { animation-delay: 1050ms; }
.wave i:nth-child(17) { animation-delay: 1120ms; }
.wave i:nth-child(18) { animation-delay: 1190ms; }
.wave i:nth-child(19) { animation-delay: 1260ms; }
.wave i:nth-child(20) { animation-delay: 1330ms; }
.wave i:nth-child(21) { animation-delay: 1400ms; }
.wave i:nth-child(22) { animation-delay: 1470ms; }
@keyframes wave { to { height: 100%; opacity: 1; } }

/* ───────────────────────────────────────────────────────── logo wall ── */

.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-inner { display: grid; gap: var(--sp-6); padding: var(--sp-8) 0; }
.proof-label { color: var(--ink-faint); font-size: var(--text-xs); font-weight: 650; letter-spacing: var(--tracking-wide); text-align: center; text-transform: uppercase; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 56px); align-items: center; }
/* Deliberately neutral wordmarks, not invented company names — see views.py. */
.proof-mark {
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 640;
  letter-spacing: -.02em;
  opacity: .7;
  transition: opacity var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.proof-mark:hover { opacity: 1; color: var(--ink-soft); }

/* ─────────────────────────────────────────────────────────── metrics ── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); }
.stat {
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem);
  font-weight: 690;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-n .unit { color: var(--accent); }
.stat p { margin: var(--sp-3) 0 0; color: var(--ink-muted); font-size: var(--text-md); line-height: 1.5; }

/* ────────────────────────────────────────────────────────── features ── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 8vw, 112px); }
.feature:nth-child(even) .feature-art { order: -1; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .feature:nth-child(even) .feature-art { order: 0; }
}
.feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.feature h3 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -.024em;
  line-height: 1.15;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.6; }
.feature-list { display: grid; gap: var(--sp-2); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--ink-soft); font-size: var(--text-md); }
.feature-list svg { flex: none; margin-top: 3px; color: var(--accent); }

.feature-art {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent-wash) 70%, transparent), transparent 60%),
    var(--surface-sunk);
  box-shadow: var(--shadow-sm);
}

/* ── art: evidence card ── */
.art-card {
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.art-card + .art-card { margin-top: var(--sp-3); }
.art-row { display: flex; align-items: center; gap: var(--sp-3); }
.art-row + .art-row { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.art-bar { flex: 1; height: 6px; border-radius: var(--r-full); background: var(--surface-sunk); overflow: hidden; }
.art-bar i {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--a-400), var(--a-500));
}
/* Widths live here, not as style attributes, for the same CSP reason as the
 * waveform. These bars are decorative and fixed; the numbers beside them are
 * the content. */
.art-card .art-row:nth-child(1) .art-bar i { width: 82%; }
.art-card .art-row:nth-child(2) .art-bar i { width: 64%; }
.art-card .art-row:nth-child(3) .art-bar i { width: 91%; }
.art-label { min-width: 108px; font-size: var(--text-sm); font-weight: 580; }
.art-n { color: var(--ink-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.art-quote {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-left: 3px solid var(--marker-strong);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-sunk);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────- steps ── */

.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-5); counter-reset: step; }
.howto-step {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.howto-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
}
.howto-step h3 { margin: 0 0 var(--sp-2); font-size: var(--text-lg); font-weight: 640; }
.howto-step p { margin: 0; color: var(--ink-muted); font-size: var(--text-md); line-height: 1.55; }

/* ──────────────────────────────────────────────────────────- security ── */

.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); }
.trust-item { display: grid; gap: var(--sp-3); }
.trust-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.trust-item b { font-size: var(--text-md); font-weight: 640; }
.trust-item p { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); line-height: 1.55; }

/* ───────────────────────────────────────────────────────────────- FAQ ── */

.faq { display: grid; gap: var(--sp-2); max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease-out);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  color: var(--ink);
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { margin: 0; padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-soft); font-size: var(--text-md); line-height: 1.65; }

/* ─────────────────────────────────────────────────────────── CTA band ── */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--a-700), var(--a-500) 46%, var(--a-400));
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto;
  height: 420px;
  background: radial-gradient(45% 60% at 30% 40%, rgba(255, 255, 255, .28), transparent 70%),
              radial-gradient(40% 50% at 76% 30%, color-mix(in srgb, var(--m-300) 42%, transparent), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 670;
  letter-spacing: -.028em;
  line-height: 1.08;
}
.cta p { max-width: 52ch; margin: var(--sp-4) auto 0; color: rgba(255, 255, 255, .86); font-size: var(--text-lg); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-8); }
.cta .btn.primary {
  --btn-bg: #fff;
  --btn-line: #fff;
  --btn-fg: var(--a-700);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.cta .btn.primary:hover { --btn-bg: #fff; --btn-fg: var(--a-800); }
.cta .btn.ghost {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-line: rgba(255, 255, 255, .38);
  --btn-fg: #fff;
}
.cta .btn.ghost:hover { --btn-bg: rgba(255, 255, 255, .2); --btn-fg: #fff; }

/* ──────────────────────────────────────────────────────────── footer ── */

.sitefoot { border-top: 1px solid var(--line); background: var(--surface); }
.sitefoot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  width: min(1180px, 100% - var(--sp-8));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 var(--sp-10);
}
.sitefoot-brand p { max-width: 34ch; margin: var(--sp-4) 0 0; color: var(--ink-muted); font-size: var(--text-md); line-height: 1.55; }
.sitefoot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-6); }
.sitefoot-cols > div { display: grid; gap: var(--sp-2); align-content: start; }
.sitefoot-head { color: var(--ink); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.sitefoot-cols a { color: var(--ink-muted); font-size: var(--text-md); text-decoration: none; }
.sitefoot-cols a:hover { color: var(--accent); }
.sitefoot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  width: min(1180px, 100% - var(--sp-8));
  margin: 0 auto;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: var(--text-sm);
}
@media (max-width: 800px) {
  .sitefoot-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ──────────────────────────────────────────────────────────────- auth ── */

.auth-body { background: var(--canvas); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-form-side { display: grid; grid-template-rows: auto 1fr auto; padding: var(--sp-6) clamp(var(--sp-5), 5vw, var(--sp-12)); }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-form { display: grid; align-content: center; width: min(400px, 100%); margin: 0 auto; padding: var(--sp-10) 0; }
.auth-form h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 660;
  letter-spacing: -.026em;
}
.auth-form > p { margin: var(--sp-2) 0 var(--sp-8); color: var(--ink-muted); font-size: var(--text-md); }
.auth-bottom { color: var(--ink-muted); font-size: var(--text-sm); }
.auth-bottom a { color: var(--ink-muted); text-decoration: none; }
.auth-bottom a:hover { color: var(--ink); }

.sso { display: grid; gap: var(--sp-2); }
.sso .btn { justify-content: center; }
.sso-glyph { flex: none; width: 17px; height: 17px; }
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
  color: var(--ink-faint);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { margin: var(--sp-6) 0 0; color: var(--ink-muted); font-size: var(--text-md); text-align: center; }
.auth-fine { margin: var(--sp-5) 0 0; color: var(--ink-faint); font-size: var(--text-xs); line-height: 1.55; text-align: center; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.field-row a { font-size: var(--text-xs); font-weight: 600; text-decoration: none; }

.auth-aside {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--sp-8);
  padding: clamp(var(--sp-8), 5vw, var(--sp-16));
  overflow: hidden;
  background: linear-gradient(155deg, var(--a-800), var(--a-600) 52%, var(--a-500));
  color: #fff;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 34% at 26% 28%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(34% 30% at 74% 66%, color-mix(in srgb, var(--m-300) 44%, transparent), transparent 70%);
  filter: blur(16px);
  animation: drift 26s var(--ease-in-out) infinite alternate;
}
.auth-aside > * { position: relative; }
.auth-quote {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
  font-weight: 620;
  letter-spacing: -.024em;
  line-height: 1.2;
}
.auth-quote .u {
  border-radius: 3px;
  background: color-mix(in srgb, var(--m-300) 82%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-300) 82%, transparent);
  color: var(--n-900);
}
.auth-points { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.auth-points li { display: flex; gap: var(--sp-3); align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: var(--text-md); line-height: 1.5; }
.auth-points svg { flex: none; margin-top: 2px; }

@media (max-width: 880px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}

/* ────────────────────────────────────────────────────────────- reveal ── */

/* Opt-in: JS adds `is-ready` to <html>, and only then does anything hide. A
 * page with a broken script is a readable page, not an empty one. */
.js-reveal .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slower) var(--ease-out), transform var(--t-slower) var(--ease-out);
}
.js-reveal .reveal-item.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal-item { opacity: 1; transform: none; transition: none; }
  .hero::before, .auth-aside::before, .mock-turn, .wave i, .mock-live i { animation: none; }
  .mock { transform: none; }
  .mock:hover { transform: none; }
  .howto-step:hover { transform: none; }
}
