/* ============================================================================
   Claraven — Cinematic landing overlay (additive).
   ALL rules are scoped under body.cinematic-landing, a class that
   cinematic.js toggles ONLY while the auth/landing screen is visible — so
   none of this touches the logged-in app. Built modularly (10 agents):
   1 design-system · 2 hero-bg · 3 hero-type · 4 auth-card · 5 why-cards
   6 sources · 7 stats · 8 how-it-works · 10 topbar/responsive/a11y.
   To remove: delete the cinematic.css/.js <link>/<script> in index.html.
   ============================================================================ */

/* ======================== a1 ======================== */
/* Agent 1 — Design System foundation: tokens, base stage, global keyframes, scroll-reveal utility, reduced-motion master guard */

/* 1. Shared tokens */
body.cinematic-landing {
  --cin-bg:        #0a0a0b;   /* stage base */
  --cin-bg-2:      #131316;   /* raised */
  --cin-ink:       #f5f5f3;   /* primary text */
  --cin-ink-soft:  #c8c8cc;
  --cin-muted:     #8c8c93;   /* secondary text */
  --cin-line:      rgba(255,255,255,.10);
  --cin-card:      rgba(255,255,255,.045);
  --cin-card-2:    rgba(255,255,255,.07);
  --cin-stroke:    rgba(255,255,255,.12);
  --cin-glow:      rgba(190,205,255,.55);  /* subtle cool light, use sparingly */
  --cin-white:     #ffffff;
  --cin-ease:      cubic-bezier(.2,.7,.2,1);
  --cin-ease-out:  cubic-bezier(.16,1,.3,1);
  --cin-maxw:      1140px;
  --cin-pad:       clamp(20px, 5vw, 64px);
  /* type scale */
  --cin-display:   clamp(2.7rem, 7.5vw, 6.25rem);  /* hero h1 */
  --cin-h2:        clamp(1.8rem, 4vw, 3rem);
  --cin-h3:        clamp(1.15rem, 2vw, 1.4rem);
  --cin-lede:      clamp(1.05rem, 1.6vw, 1.35rem);
}

/* 2. Base stage */
body.cinematic-landing {
  /* styles.css forces `body { background:#fff !important }` — must beat it with
     !important or the fixed topbar's clearance strip shows white. */
  background-color: var(--cin-bg) !important;
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(190,205,255,.08) 0%, rgba(190,205,255,.03) 28%, transparent 60%) !important;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--cin-ink);
  font-family: -apple-system, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.cinematic-landing a {
  color: var(--cin-ink);
}
body.cinematic-landing a:hover {
  color: var(--cin-white);
}
/* The footer sits on its own white background below the dark cinematic stage
   (see .app-footer in styles.css); the blanket link-color rule above turns its
   links near-white-on-white otherwise. Restore the footer's own link colors. */
body.cinematic-landing .app-footer a {
  color: #55554e;
}
body.cinematic-landing .app-footer a:hover {
  color: #141414;
}
body.cinematic-landing .muted,
body.cinematic-landing .hero-disclaimer.muted {
  color: var(--cin-muted);
}

body.cinematic-landing #authScreen.auth-landing {
  position: relative;
  background-color: var(--cin-bg);
  background-image:
    radial-gradient(90% 50% at 50% 0%, rgba(190,205,255,.06) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, transparent 22%, transparent 100%);
  background-repeat: no-repeat;
  color: var(--cin-ink);
  overflow: hidden;
}

/* 3. Global @keyframes (shared animation contract) */
@keyframes cinFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cinAurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1);   opacity: .85; }
  50%  { transform: translate3d(4%, 3%, 0)  scale(1.12); opacity: 1; }
  100% { transform: translate3d(-4%, -2%, 0) scale(1);   opacity: .85; }
}

@keyframes cinFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

@keyframes cinShimmer {
  0%   { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}

@keyframes cinGrain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -3%); }
  20%  { transform: translate(-8%, 2%); }
  30%  { transform: translate(3%, -6%); }
  40%  { transform: translate(-2%, 7%); }
  50%  { transform: translate(-9%, 3%); }
  60%  { transform: translate(6%, 1%); }
  70%  { transform: translate(-1%, -7%); }
  80%  { transform: translate(7%, 4%); }
  90%  { transform: translate(-5%, -2%); }
  100% { transform: translate(0, 0); }
}

@keyframes cinLineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes cinGlowPulse {
  0%   { opacity: .55; filter: blur(0); }
  50%  { opacity: 1;   filter: blur(.5px); }
  100% { opacity: .55; filter: blur(0); }
}

/* 4. Scroll-reveal utility */
body.cinematic-landing.cin-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
body.cinematic-landing [data-reveal] {
  transition:
    opacity .9s var(--cin-ease-out),
    transform .9s var(--cin-ease-out);
  will-change: opacity, transform;
}
body.cinematic-landing [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 5. Reduced-motion master guard */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing,
  body.cinematic-landing * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  body.cinematic-landing [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ======================== a2 ======================== */
/* Agent 2 — Cinematic Hero Background (light layers, grain, vignette) */

/* Library backdrop photo (Unsplash). Desaturated + darkened so it reads as a
   monochrome texture behind the gradient light layers, with the hero text kept
   high-contrast. Sits at the bottom of the stack (first child of .cin-hero-bg). */
body.cinematic-landing .cin-photo {
  position: absolute;
  inset: 0 0 auto 0;          /* anchored to the top: covers the hero only */
  height: 94vh;
  z-index: 0;
  background-image: url("./assets/library.jpg");
  background-size: cover;
  background-position: 70% center;   /* favour the shelves; keep bright busts off the text */
  filter: grayscale(0.35) contrast(1.08) brightness(0.82);
  opacity: 0.9;
  /* fade the photo out before the cards so they sit on pure black */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 92%);
}
body.cinematic-landing .cin-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darker on the left where the hero copy sits, library clearly visible on the right */
  background: linear-gradient(90deg,
    rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.42) 46%, rgba(10, 10, 11, 0.04) 100%);
}
@media (max-width: 760px) {
  /* text spans full width on mobile, so darken more + keep the photo shorter */
  body.cinematic-landing .cin-photo { opacity: 0.55; height: 72vh; background-position: center; }
  body.cinematic-landing .cin-photo::after {
    background: linear-gradient(180deg,
      rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.62) 55%, rgba(10, 10, 11, 0.45) 100%);
  }
}

/* Modals (pricing, onboarding guide, etc.) render on a light/white .modal-card.
   The cinematic landing sets light body text, which is invisible on that card,
   so force the modal text to the dark theme ink. Children that use --muted keep
   their muted grey; only the inherited-light elements (titles, plan names,
   prices, feature rows) are corrected. */
body.cinematic-landing .modal-card {
  color: var(--text);
}

body.cinematic-landing .cin-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Shared base for the drifting light layers */
body.cinematic-landing .cin-layer {
  position: absolute;
  inset: -25%;
  z-index: 0;
  will-change: transform, opacity;
  background-repeat: no-repeat;
}

/* Layer 1 — primary cool-white spotlight, upper-left bias, slow drift */
body.cinematic-landing .cin-layer-1 {
  background-image:
    radial-gradient(42% 38% at 28% 22%,
      var(--cin-glow) 0%,
      rgba(190, 205, 255, 0.14) 32%,
      transparent 68%),
    radial-gradient(34% 30% at 30% 24%,
      rgba(255, 255, 255, 0.10) 0%,
      transparent 60%);
  opacity: 0.55;
  filter: blur(34px);
  animation: cinAurora 38s var(--cin-ease) infinite alternate;
}

/* Layer 2 — secondary aurora glow, lower-right bias, different cadence */
body.cinematic-landing .cin-layer-2 {
  background-image:
    radial-gradient(46% 40% at 76% 74%,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(190, 205, 255, 0.10) 38%,
      transparent 70%);
  opacity: 0.5;
  filter: blur(46px);
  animation: cinAurora 52s var(--cin-ease) infinite alternate-reverse;
  animation-delay: -12s;
}

/* Layer 3 — faint deep halo for atmospheric depth, gentle float */
body.cinematic-landing .cin-layer-3 {
  background-image:
    radial-gradient(56% 52% at 52% 40%,
      rgba(190, 205, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.03) 40%,
      transparent 72%);
  opacity: 0.45;
  filter: blur(60px);
  animation: cinFloat 64s var(--cin-ease) infinite alternate;
  animation-delay: -24s;
}

/* Cleaner, more photographic hero: drop the cool-glow aurora washes that read
   as a grey haze over the copy. The library photo now carries the mood. */
body.cinematic-landing .cin-layer-1,
body.cinematic-landing .cin-layer-2,
body.cinematic-landing .cin-layer-3 { display: none; }

/* Fine film grain — inline fractalNoise SVG, overlay blend, subtle drift */
body.cinematic-landing .cin-grain {
  position: absolute;
  inset: -120px;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  will-change: transform;
  animation: cinGrain 7s steps(6) infinite;
}

/* Filmic edge darkening */
body.cinematic-landing .cin-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 110% at 50% 38%,
      transparent 52%,
      rgba(0, 0, 0, 0.35) 82%,
      rgba(0, 0, 0, 0.62) 100%);
}

/* Reduced motion — freeze all drift, keep the static look */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .cin-layer-1,
  body.cinematic-landing .cin-layer-2,
  body.cinematic-landing .cin-layer-3,
  body.cinematic-landing .cin-grain {
    animation: none !important;
  }
}


/* ======================== a3 ======================== */
/* Agent 3 — Hero typography & entrance */

/* ── Hero container ───────────────────────────────────────────── */
body.cinematic-landing .hero {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.6vw, 2rem);
  padding-block: clamp(0.5rem, 3vw, 2rem);
}

/* ── Chat-first solo layout: the chatbox owns the first screen ─────
   Auth moved to the top nav + a modal, so the hero is a single centered
   column with the "Tell us what happened" box front and center. */
body.cinematic-landing .auth-screen-grid--solo {
  display: block;
  max-width: 680px;
  margin-inline: auto;
  /* Keep the first screen tight: the chatbox CTA must fit a 13-inch fold. */
  margin-top: 2px;
}
body.cinematic-landing .auth-screen-grid--solo .hero {
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
}
body.cinematic-landing .auth-screen-grid--solo .hero {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  align-items: center;
  /* Short on purpose: the chatbox must be visible without scrolling on a
     13-inch laptop (~800px viewport). */
  padding-block: clamp(0.75rem, 2.5vh, 1.75rem);
}
/* The chatbox + step forms stay left-aligned for readability. */
body.cinematic-landing .auth-screen-grid--solo .cv-try {
  width: 100%;
  text-align: left;
  margin-top: 6px;
}
body.cinematic-landing .auth-screen-grid--solo .hero-freenote { align-self: center; }

/* ── Auth modal: clean WHITE card, matching the pricing modal ─────────
   Scoped with #authModal (an ID) so every rule beats the dark glassy
   `.auth-card` styling regardless of source order. Inputs, selects and
   textareas share ONE rule so all fields are the exact same size. */
body.cinematic-landing #authModal { padding: 24px; }
#authModal .auth-card.auth-modal-card {
  position: relative;
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  margin: 0;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid #e7e7e3;
  border-radius: 18px;
  padding: 30px clamp(22px, 3vw, 34px) 28px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 8px 24px -12px rgba(0, 0, 0, .4);
}
#authModal .auth-card.auth-modal-card:hover {
  border-color: #e7e7e3;
  transform: none;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 8px 24px -12px rgba(0, 0, 0, .4);
}

/* Headings + subtitle (dark on white). */
#authModal .auth-card .auth-h1 { color: #141414; }
#authModal .auth-card .auth-h1-pre { color: #6b7280; }
#authModal .auth-card .auth-h1-strong {
  color: #141414 !important;
  -webkit-text-fill-color: #141414 !important;
}
#authModal .auth-card .auth-sub { color: #6b7280; }
#authModal .auth-card label { color: #374151; }

/* Every field shares one rule -> identical height + look. */
#authModal .auth-card input:not([type="checkbox"]),
#authModal .auth-card select,
#authModal .auth-card textarea {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 0 13px;
  font: inherit;
  font-size: .95rem;
  color: #1a1a18;
  background: #ffffff;
  border: 1px solid #d9d9d4;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}
#authModal .auth-card textarea { height: auto; min-height: 80px; padding: 11px 13px; }
#authModal .auth-card input::placeholder { color: #9ca3af; opacity: 1; }
/* Custom chevron so selects clearly read as dropdowns. */
#authModal .auth-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
#authModal .auth-card input:focus,
#authModal .auth-card select:focus,
#authModal .auth-card textarea:focus {
  outline: none;
  border-color: #141414;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 20, 20, .12);
}
/* Keep autofill on the light theme. */
#authModal .auth-card input:-webkit-autofill,
#authModal .auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a18;
  caret-color: #1a1a18;
  box-shadow: 0 0 0 1000px #ffffff inset;
}
/* Consent checkbox stays its natural size. */
#authModal .auth-card input[type="checkbox"] { width: auto; height: auto; }
#authModal .auth-card label.row { color: #374151; }

/* Primary button: solid dark, like the pricing "Choose plan". */
#authModal .auth-card button.primary {
  height: 46px;
  color: #ffffff;
  background: #141414;
  border-color: #141414;
}
#authModal .auth-card button.primary:hover {
  background: #000000;
  transform: none;
  box-shadow: none;
}

/* Tabs: dark ink + dark underline. */
#authModal .auth-card .tabs { border-bottom-color: #e7e7e3; }
#authModal .auth-card .tab { color: #6b7280; }
#authModal .auth-card .tab:hover,
#authModal .auth-card .tab.active { color: #141414; }
#authModal .auth-card .tab::after { background: #141414; }

/* Google / OAuth button: white with a light border. */
#authModal .auth-card .oauth-btn {
  color: #1a1a18;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid #d9d9d4;
}
#authModal .auth-card .oauth-btn:hover {
  background: #f7f7f5;
  border-color: #c9c9c4;
  transform: none;
  box-shadow: none;
}
#authModal .auth-card .oauth-divider { color: #9ca3af; }
#authModal .auth-card .oauth-divider::before,
#authModal .auth-card .oauth-divider::after { background: #e7e7e3; }

/* Links + close button: dark on white. */
#authModal .auth-card a { color: #141414; border-bottom-color: #d9d9d4; }
#authModal .auth-card a:hover { color: #000000; border-bottom-color: #141414; }
#authModal .samples-close { color: #6b7280; }
#authModal .samples-close:hover { background: #f0f0ee; color: #1a1a18; }

/* ── Top-nav auth buttons (logged-out only) ──────────────────────────
   Scoped to beat the generic `.user-area button` rule above (which pins
   width + sets overflow:hidden via .primary, clipping "Create account",
   and leaves the ghost button dark-on-dark). */
body.cinematic-landing header.topbar .user-area .nav-auth-btn {
  width: auto;
  flex: 0 0 auto;
  overflow: visible;
  white-space: nowrap;
  font-weight: 600;
}
/* "Create account": solid white pill, the primary call to action. */
body.cinematic-landing header.topbar .user-area .nav-auth-btn.primary {
  background: var(--cin-white);
  color: #0a0a0b;
  border-color: var(--cin-white);
}
body.cinematic-landing header.topbar .user-area .nav-auth-btn.primary:hover {
  background: #ffffff;
  color: #0a0a0b;
  border-color: #ffffff;
}
/* "Sign in": quiet ghost, light text on the dark bar.
   `!important` beats the styles.css `.ghost { color: #1a1a18 !important }`. */
body.cinematic-landing header.topbar .user-area .nav-auth-btn.ghost {
  color: var(--cin-ink) !important;
  background: transparent;
  border-color: var(--cin-stroke);
}
body.cinematic-landing header.topbar .user-area .nav-auth-btn.ghost:hover {
  color: var(--cin-white) !important;
  border-color: var(--cin-glow);
}

/* ── Hero title ───────────────────────────────────────────────── */
body.cinematic-landing .hero-title {
  margin: 0;
  font-size: var(--cin-display);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 650;
  color: var(--cin-ink);
  text-wrap: balance;
}

/* ── Luminous accent: gradient text + soft shimmer sweep ──────── */
body.cinematic-landing .hero-title-accent {
  display: inline-block;
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #f3f5fb 38%,
    #c4cbdb 62%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cinShimmer 7s var(--cin-ease) infinite;
}

/* ── Lede ─────────────────────────────────────────────────────── */
body.cinematic-landing .hero-lede {
  margin: 0;
  max-width: 58ch;
  font-size: var(--cin-lede);
  line-height: 1.62;
  color: var(--cin-ink-soft);
  font-weight: 400;
}

/* ── 3-second differentiator, right under the headline ────────── */
body.cinematic-landing .hero-diff {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cin-ink-soft);
  text-wrap: balance;
}

/* ── Free-first reassurance line, just under the lede ─────────── */
body.cinematic-landing .hero-freenote {
  margin: 10px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cin-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.cinematic-landing .hero-freenote::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46c08a;
  box-shadow: 0 0 0 3px rgba(70, 192, 138, 0.22);
  flex: none;
}

/* ── Disclaimer ───────────────────────────────────────────────── */
body.cinematic-landing .hero-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cin-muted);
  opacity: 0.85;
}

/* ── One-time staggered entrance on first load ────────────────── */
body.cinematic-landing .hero-title,
body.cinematic-landing .hero-lede {
  animation: cinFadeUp 0.9s var(--cin-ease-out) both;
}
body.cinematic-landing .hero-title { animation-delay: 0.08s; }
body.cinematic-landing .hero-lede  { animation-delay: 0.24s; }

/* The accent keeps shimmering after the fade-up entrance settles. */
body.cinematic-landing .hero-title.cin-entered .hero-title-accent {
  animation: cinShimmer 7s var(--cin-ease) infinite;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .hero-title,
  body.cinematic-landing .hero-lede,
  body.cinematic-landing .hero-title-accent {
    animation: none !important;
  }
  body.cinematic-landing .hero-title-accent {
    -webkit-text-fill-color: var(--cin-ink) !important;
    color: var(--cin-ink) !important;
    background: none !important;
  }
}


/* ======================== a4 ======================== */
/* Agent 4 — Auth card (login/register) as floating glassmorphism panel */

/* ───────── Floating glass panel ───────── */
body.cinematic-landing .auth-card {
  position: relative;
  z-index: 1;
  background: var(--cin-card);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--cin-stroke);
  border-radius: clamp(18px, 2.4vw, 26px);
  padding: clamp(22px, 3.2vw, 40px);
  box-shadow:
    0 28px 70px -18px rgba(0, 0, 0, .72),
    0 8px 24px -10px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .015);
  transition:
    box-shadow .5s var(--cin-ease),
    border-color .5s var(--cin-ease),
    transform .5s var(--cin-ease);
}

body.cinematic-landing .auth-card:hover {
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    0 34px 84px -18px rgba(0, 0, 0, .78),
    0 10px 28px -10px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(190, 205, 255, .10),
    0 0 46px -8px var(--cin-glow),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* ───────── Titles / subtitle ───────── */
body.cinematic-landing .auth-h1 {
  margin: 0 0 6px;
  font-size: var(--cin-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--cin-ink);
}

body.cinematic-landing .auth-h1-pre {
  font-weight: 400;
  color: var(--cin-muted);
}

body.cinematic-landing .auth-h1-strong {
  font-weight: 700;
  /* styles.css forces #141414 with !important + -webkit-text-fill-color; both
     must be overridden or the heading is black-on-dark (unreadable). */
  color: var(--cin-white) !important;
  -webkit-text-fill-color: var(--cin-white) !important;
}

body.cinematic-landing .auth-sub {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--cin-muted);
}

/* ───────── Form fields ───────── */
body.cinematic-landing .auth-card label {
  display: block;
  margin: 14px 0 6px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--cin-ink-soft);
}

body.cinematic-landing .auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--cin-ink);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--cin-stroke);
  border-radius: 11px;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color .25s var(--cin-ease),
    background .25s var(--cin-ease),
    box-shadow .25s var(--cin-ease);
}

body.cinematic-landing .auth-card input::placeholder {
  color: var(--cin-muted);
  opacity: .85;
}

body.cinematic-landing .auth-card input:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .055);
}

body.cinematic-landing .auth-card input:focus {
  outline: none;
  border-color: rgba(210, 222, 255, .55);
  background: rgba(255, 255, 255, .07);
  box-shadow:
    0 0 0 3px rgba(190, 205, 255, .22),
    0 0 18px -4px var(--cin-glow);
}

/* autofill — keep dark-themed */
body.cinematic-landing .auth-card input:-webkit-autofill,
body.cinematic-landing .auth-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cin-ink);
  caret-color: var(--cin-ink);
  transition: background-color 9999s ease 0s;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, .045) inset;
}

/* ───────── Primary button ───────── */
body.cinematic-landing .auth-card button.primary {
  display: block;
  width: 100%;
  margin-top: clamp(16px, 2.4vw, 22px);
  padding: 13px 18px;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #0a0a0b;
  background: var(--cin-white);
  border: 1px solid var(--cin-white);
  border-radius: 11px;
  cursor: pointer;
  transition:
    transform .25s var(--cin-ease),
    background .25s var(--cin-ease),
    color .25s var(--cin-ease),
    box-shadow .3s var(--cin-ease);
}

body.cinematic-landing .auth-card button.primary:hover {
  transform: translateY(-1px);
  background: #f5f5f3;
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, .6),
    0 0 30px -6px var(--cin-glow);
}

body.cinematic-landing .auth-card button.primary:active {
  transform: translateY(0);
}

body.cinematic-landing .auth-card button.primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(10, 10, 11, .9),
    0 0 0 5px rgba(190, 205, 255, .55);
}

body.cinematic-landing .auth-card button.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* secondary links inside the card */
body.cinematic-landing .auth-card a {
  color: var(--cin-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: color .2s var(--cin-ease), border-color .2s var(--cin-ease);
}

body.cinematic-landing .auth-card a:hover {
  color: var(--cin-white);
  border-color: rgba(255, 255, 255, .5);
}

body.cinematic-landing .auth-card a:focus-visible {
  outline: 2px solid rgba(190, 205, 255, .7);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ───────── Tabs ───────── */
body.cinematic-landing .auth-card .tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 4px 0 clamp(16px, 2.2vw, 22px);
  border-bottom: 1px solid var(--cin-line);
}

body.cinematic-landing .auth-card .tab {
  position: relative;
  flex: 1 1 auto;
  padding: 11px 8px;
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: var(--cin-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .25s var(--cin-ease);
}

body.cinematic-landing .auth-card .tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cin-white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--cin-ease-out);
}

body.cinematic-landing .auth-card .tab:hover {
  color: var(--cin-ink-soft);
}

body.cinematic-landing .auth-card .tab.active {
  color: var(--cin-white);
}

body.cinematic-landing .auth-card .tab.active::after {
  transform: scaleX(1);
}

body.cinematic-landing .auth-card .tab:focus-visible {
  outline: 2px solid rgba(190, 205, 255, .7);
  outline-offset: -3px;
  border-radius: 6px;
}

/* ───────── OAuth buttons ───────── */
body.cinematic-landing .auth-card .oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 12px 16px;
  font: inherit;
  font-size: .94rem;
  font-weight: 500;
  color: var(--cin-ink);
  text-decoration: none;
  background: var(--cin-card-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cin-stroke);
  border-radius: 11px;
  cursor: pointer;
  transition:
    background .25s var(--cin-ease),
    border-color .25s var(--cin-ease),
    transform .25s var(--cin-ease),
    box-shadow .3s var(--cin-ease);
}

body.cinematic-landing .auth-card .oauth-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6);
}

body.cinematic-landing .auth-card .oauth-btn:focus-visible {
  outline: 2px solid rgba(190, 205, 255, .7);
  outline-offset: 2px;
}

body.cinematic-landing .auth-card .oauth-btn img,
body.cinematic-landing .auth-card .oauth-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Apple variant — keep mark visible on dark */
body.cinematic-landing .auth-card .oauth-apple {
  background: rgba(255, 255, 255, .92);
  color: #0a0a0b;
  border-color: rgba(255, 255, 255, .92);
}

body.cinematic-landing .auth-card .oauth-apple:hover {
  background: #fff;
  border-color: #fff;
}

/* keep dark Apple glyph legible on its light button */
body.cinematic-landing .auth-card .oauth-apple img,
body.cinematic-landing .auth-card .oauth-apple svg {
  filter: none;
}

/* ───────── OAuth divider ───────── */
body.cinematic-landing .auth-card .oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(14px, 2vw, 18px) 0;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cin-muted);
}

body.cinematic-landing .auth-card .oauth-divider::before,
body.cinematic-landing .auth-card .oauth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--cin-line);
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .auth-card,
  body.cinematic-landing .auth-card *,
  body.cinematic-landing .auth-card .tab::after {
    transition: none !important;
  }
  body.cinematic-landing .auth-card:hover,
  body.cinematic-landing .auth-card button.primary:hover,
  body.cinematic-landing .auth-card .oauth-btn:hover {
    transform: none !important;
  }
}


/* ======================== a5 ======================== */
/* Agent 5 — "Why Claraven, not ChatGPT?" feature list (.hero-why) */

/* Container spacing */
body.cinematic-landing .hero-why {
  margin-top: clamp(28px, 4vw, 44px);
}

/* Section label / eyebrow */
body.cinematic-landing .hero-why-title {
  margin: 0 0 clamp(14px, 2vw, 20px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cin-muted);
}

/* About section: intro paragraph above the checklist, and a second label
   ("Why the reports hold up") reusing .hero-why-title's eyebrow style. */
body.cinematic-landing .about-lede {
  margin: 0 0 clamp(24px, 3vw, 34px);
  max-width: 68ch;
  font-size: var(--cin-lede);
  line-height: 1.6;
  color: var(--cin-ink-soft);
}
body.cinematic-landing .about-sub {
  margin-top: 0;
}

/* List reset + responsive glass-card layout */
body.cinematic-landing .hero-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.4vw, 14px);
}

@media (min-width: 720px) {
  body.cinematic-landing .hero-why-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual glass card */
body.cinematic-landing .hero-why-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 1.8vw, 20px) clamp(16px, 1.8vw, 20px) clamp(16px, 1.8vw, 20px)
    clamp(38px, 3vw, 44px);
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  transform: translateY(0) perspective(900px) rotateX(0deg);
  transform-origin: center bottom;
  transition: transform 0.45s var(--cin-ease), border-color 0.45s var(--cin-ease),
    background 0.45s var(--cin-ease), box-shadow 0.45s var(--cin-ease);
  will-change: transform;
}

/* Leading checkmark marker (CSS-only) */
body.cinematic-landing .hero-why-list li::before {
  content: "";
  position: absolute;
  left: clamp(16px, 1.8vw, 20px);
  top: clamp(18px, 2vw, 22px);
  width: 13px;
  height: 8px;
  border-left: 1.6px solid var(--cin-ink-soft);
  border-bottom: 1.6px solid var(--cin-ink-soft);
  transform: rotate(-45deg);
  opacity: 0.8;
  transition: border-color 0.45s var(--cin-ease), opacity 0.45s var(--cin-ease);
}

/* Hover: tasteful lift + cool glow + brighter border + subtle tilt */
body.cinematic-landing .hero-why-list li:hover {
  background: var(--cin-card-2);
  border-color: var(--cin-glow);
  transform: translateY(-5px) perspective(900px) rotateX(2.5deg);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 32px -10px var(--cin-glow);
}

body.cinematic-landing .hero-why-list li:hover::before {
  border-color: var(--cin-glow);
  opacity: 1;
}

/* Headline + body type */
body.cinematic-landing .hero-why-list li strong {
  color: var(--cin-ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
}

body.cinematic-landing .hero-why-list li span {
  color: var(--cin-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .hero-why-list li,
  body.cinematic-landing .hero-why-list li::before {
    transition: none !important;
  }
  body.cinematic-landing .hero-why-list li:hover {
    transform: none !important;
  }
}


/* ======================== a6 ======================== */
/* Agent 6 — "Grounded in official legal sources" trust row (.hero-sources) */

body.cinematic-landing .hero-sources {
  margin-top: clamp(20px, 3vw, 32px);
}

/* Eyebrow label: small, muted, uppercase */
body.cinematic-landing .hero-sources-label {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cin-muted);
}

/* Row of monochrome chips — wraps gracefully on mobile */
body.cinematic-landing .hero-sources-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

/* Refined monochrome chip */
body.cinematic-landing .hero-sources-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  color: var(--cin-ink-soft);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    color .35s var(--cin-ease),
    border-color .35s var(--cin-ease),
    background .35s var(--cin-ease),
    transform .35s var(--cin-ease-out);
}

/* Gentle shimmer sweep so the chips feel alive (staggered) */
body.cinematic-landing .hero-sources-row span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, .10) 48%,
    rgba(255, 255, 255, .04) 56%,
    transparent 72%
  );
  background-size: 220% 100%;
  background-position: 220% 0;
  animation: cinShimmer 7s var(--cin-ease) infinite;
  pointer-events: none;
}
body.cinematic-landing .hero-sources-row span:nth-child(2)::after { animation-delay: .9s; }
body.cinematic-landing .hero-sources-row span:nth-child(3)::after { animation-delay: 1.8s; }
body.cinematic-landing .hero-sources-row span:nth-child(4)::after { animation-delay: 2.7s; }
body.cinematic-landing .hero-sources-row span:nth-child(5)::after { animation-delay: 3.6s; }
body.cinematic-landing .hero-sources-row span:nth-child(6)::after { animation-delay: 4.5s; }

/* Stronger, lifted look on hover/focus */
body.cinematic-landing .hero-sources-row span:hover,
body.cinematic-landing .hero-sources-row span:focus-visible {
  color: var(--cin-ink);
  background: var(--cin-card-2);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

/* Reduced motion: kill the shimmer + hover lift */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .hero-sources-row span::after {
    animation: none !important;
  }
  body.cinematic-landing .hero-sources-row span:hover,
  body.cinematic-landing .hero-sources-row span:focus-visible {
    transform: none !important;
  }
}


/* ======================== a7 ======================== */
/* Agent 7 — Stats band (.landing-stats / .lstat / .lstat-v / .lstat-l) */

body.cinematic-landing .landing-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  width: 100%;
  max-width: var(--cin-maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--cin-pad);
  box-sizing: border-box;
  /* Override the light-theme white card from styles.css — the tiles carry their
     own glass background; the band wrapper must be transparent on the dark stage. */
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body.cinematic-landing .lstat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 10px);
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2vw, 26px);
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 18px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  transition: transform .5s var(--cin-ease-out),
              border-color .5s var(--cin-ease-out),
              background .5s var(--cin-ease-out),
              box-shadow .5s var(--cin-ease-out);
}

/* faint top sheen on each tile */
body.cinematic-landing .lstat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 38%);
  pointer-events: none;
}

body.cinematic-landing .lstat:hover {
  transform: translateY(-6px);
  background: var(--cin-card-2);
  border-color: var(--cin-glow);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.7),
              0 0 0 1px rgba(255,255,255,.04),
              0 0 40px -14px var(--cin-glow);
}

body.cinematic-landing .lstat-v {
  position: relative;
  font-family: -apple-system, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  /* Lower min so the longest value ("Minutes") fits a narrow tile instead of
     being clipped by the tile's overflow:hidden. */
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cin-ink);
  text-shadow: 0 0 26px rgba(190,205,255,.18);
  max-width: 100%;
  /* Never break a value mid-word ("Minute/s"): stay on one line; cinematic.js
     fitStatValues() shrinks the font until the value fits its tile. */
  white-space: nowrap;
  overflow-wrap: normal;
}

/* subtle luminous breathing on the big numerals */
body.cinematic-landing .lstat-v {
  animation: cinGlowPulse 6s var(--cin-ease) infinite;
}
body.cinematic-landing .lstat:nth-child(2) .lstat-v { animation-delay: .6s; }
body.cinematic-landing .lstat:nth-child(3) .lstat-v { animation-delay: 1.2s; }
body.cinematic-landing .lstat:nth-child(4) .lstat-v { animation-delay: 1.8s; }

body.cinematic-landing .lstat-l {
  font-size: clamp(.7rem, 1vw, .82rem);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cin-muted);
  line-height: 1.3;
}

/* tablet / large phone: 2-up. Cap the value size so "Minutes" fits the
   half-width tile, and tighten padding a touch. */
@media (max-width: 880px) {
  body.cinematic-landing .landing-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  body.cinematic-landing .lstat {
    padding: clamp(16px, 3.4vw, 24px) clamp(14px, 3vw, 22px);
  }
  body.cinematic-landing .lstat-v {
    font-size: clamp(1.5rem, 5.2vw, 2.1rem);
  }
}

/* mobile: stacked, full-width tiles can carry a slightly larger value again. */
@media (max-width: 520px) {
  body.cinematic-landing .landing-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.cinematic-landing .lstat-v {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .lstat,
  body.cinematic-landing .lstat-v {
    transition: none !important;
    animation: none !important;
  }
  body.cinematic-landing .lstat:hover {
    transform: none !important;
  }
}


/* ======================== a8 ======================== */
/* Agent 8 — "How it works" section (.landing-sections / .landing-band / steps / sample CTA) */

/* ---- Section shell: cinematic spacing, centered, above bg ---- */
body.cinematic-landing .landing-sections {
  position: relative;
  z-index: 1;
  max-width: var(--cin-maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 160px) var(--cin-pad);
}

body.cinematic-landing .landing-band {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ---- Section heading ---- */
body.cinematic-landing .landing-h2 {
  font-family: -apple-system, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--cin-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--cin-ink);
  text-align: center;
  margin: 0 auto clamp(40px, 7vh, 80px);
  max-width: 18ch;
}

/* subtle accent underline */
body.cinematic-landing .landing-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: clamp(16px, 3vh, 28px) auto 0;
  background: linear-gradient(90deg, transparent, var(--cin-glow), transparent);
  opacity: .7;
}

/* ---- Steps grid (3-up, stacks on mobile) ---- */
body.cinematic-landing .landing-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

/* Connecting line between the steps on desktop — grows when revealed */
body.cinematic-landing .landing-steps::before {
  content: "";
  position: absolute;
  top: 38px; /* aligns with center of icon badges */
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cin-line) 12%, var(--cin-line) 88%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 0;
  pointer-events: none;
}

body.cinematic-landing .landing-steps.is-in::before,
body.cinematic-landing .landing-steps:not(.cin-ready *)::before {
  animation: cinLineGrow .9s var(--cin-ease-out) .25s both;
}

/* Fallback: if JS never runs the line should still be visible */
body.cinematic-landing:not(.cin-ready) .landing-steps::before {
  transform: scaleX(1);
  animation: none;
}

/* ---- Step card (glass) ---- */
body.cinematic-landing .lstep {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 30px) clamp(30px, 3.2vw, 42px);
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 18px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform .5s var(--cin-ease-out),
              border-color .5s var(--cin-ease),
              background .5s var(--cin-ease),
              box-shadow .5s var(--cin-ease);
}

/* ---- Circular glowing icon badge ---- */
body.cinematic-landing .lstep-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--cin-ink);
  background: radial-gradient(circle at 50% 35%, var(--cin-card-2), var(--cin-card));
  border: 1px solid var(--cin-stroke);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02),
              0 8px 30px -12px var(--cin-glow);
  margin-bottom: clamp(18px, 2.4vw, 26px);
  transition: box-shadow .5s var(--cin-ease), color .5s var(--cin-ease), transform .5s var(--cin-ease-out);
}

body.cinematic-landing .lstep-ico svg {
  width: 28px;
  height: 28px;
  display: block;
  /* inline SVG inherits currentColor */
  color: inherit;
  fill: none;
  stroke: currentColor;
}

/* ---- Step label / heading / body ---- */
body.cinematic-landing .lstep-n {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cin-muted);
  margin-bottom: 10px;
}

body.cinematic-landing .lstep h3 {
  font-size: var(--cin-h3);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cin-ink);
  margin: 0 0 10px;
}

body.cinematic-landing .lstep p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cin-muted);
  margin: 0;
  max-width: 34ch;
}

/* ---- Hover: lift + glow ---- */
body.cinematic-landing .lstep:hover {
  transform: translateY(-6px);
  background: var(--cin-card-2);
  border-color: var(--cin-stroke);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.7),
              0 0 0 1px rgba(255,255,255,.04);
}

body.cinematic-landing .lstep:hover .lstep-ico {
  color: var(--cin-white);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06),
              0 0 28px -4px var(--cin-glow),
              0 14px 38px -16px var(--cin-glow);
}

/* ---- Responsive: stack on mobile ---- */
@media (max-width: 860px) {
  body.cinematic-landing .landing-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* connecting line is horizontal-only; hide when stacked */
  body.cinematic-landing .landing-steps::before {
    display: none;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .landing-steps::before,
  body.cinematic-landing .landing-steps.is-in::before {
    animation: none !important;
    transform: scaleX(1) !important;
  }
  body.cinematic-landing .lstep,
  body.cinematic-landing .lstep-ico {
    transition: none !important;
  }
  body.cinematic-landing .lstep:hover,
  body.cinematic-landing .lstep:hover .lstep-ico {
    transform: none !important;
  }
}


/* ======================== a10 ======================== */
/* Agent 10 — Topbar, Responsive & Accessibility polish */

/* ============================================================
   1. TOPBAR over the dark hero
   ============================================================ */
body.cinematic-landing header.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  background: transparent;
  border-block-end: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    background-color .4s var(--cin-ease),
    border-color .4s var(--cin-ease),
    backdrop-filter .4s var(--cin-ease),
    -webkit-backdrop-filter .4s var(--cin-ease),
    box-shadow .4s var(--cin-ease);
}

/* Translucent dark glass once scrolled */
body.cinematic-landing header.topbar.scrolled {
  background: color-mix(in srgb, var(--cin-bg) 72%, transparent);
  border-block-end: 1px solid var(--cin-line);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* Logo: dark-on-transparent SVG → invert so it reads on the dark hero */
body.cinematic-landing header.topbar .brand .logo-img {
  filter: invert(1) brightness(1.6) contrast(1.05);
  transition: filter .4s var(--cin-ease), opacity .4s var(--cin-ease);
}
body.cinematic-landing header.topbar.scrolled .brand .logo-img {
  filter: invert(1) brightness(1.45) contrast(1.05);
}

/* Brand text (if any) legible on dark */
body.cinematic-landing header.topbar .brand {
  color: var(--cin-ink);
}

/* User-area controls → light ghost-on-dark */
body.cinematic-landing header.topbar .user-area button,
body.cinematic-landing header.topbar .user-area #pricingNavBtn,
body.cinematic-landing header.topbar .user-area #logoutBtn,
body.cinematic-landing header.topbar .user-area #uiLangSel {
  color: var(--cin-ink);
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 999px;
  transition:
    background-color .25s var(--cin-ease),
    border-color .25s var(--cin-ease),
    color .25s var(--cin-ease),
    transform .25s var(--cin-ease);
}
body.cinematic-landing header.topbar .user-area button:hover,
body.cinematic-landing header.topbar .user-area #pricingNavBtn:hover,
body.cinematic-landing header.topbar .user-area #logoutBtn:hover {
  background: var(--cin-card-2);
  border-color: var(--cin-glow);
  color: var(--cin-white);
}

/* Language select: make it stand out so visitors spot their own language
   the moment they arrive (brighter, bold, cool accent + a short pulse). */
body.cinematic-landing header.topbar .user-area #uiLangSel {
  /* !important beats the styles.css "white theme" input/select rule */
  color: var(--cin-white) !important;
  font-weight: 700;
  background: rgba(190, 205, 255, .16) !important;
  border-color: var(--cin-glow) !important;
  box-shadow: 0 0 0 1px rgba(190, 205, 255, .14), 0 6px 20px rgba(150, 170, 255, .22);
  cursor: pointer;
  /* one brief attention pulse on arrival, then it settles */
  animation: cinLangAttention 1.6s var(--cin-ease) 1s 3;
}
body.cinematic-landing header.topbar .user-area #uiLangSel:hover {
  background: rgba(190, 205, 255, .26) !important;
  border-color: var(--cin-white) !important;
  color: var(--cin-white) !important;
}
body.cinematic-landing header.topbar .user-area #uiLangSel option {
  background: var(--cin-bg-2);
  color: var(--cin-ink);
  font-weight: 600;
}
@keyframes cinLangAttention {
  0%, 100% { box-shadow: 0 0 0 1px rgba(190,205,255,.14), 0 6px 20px rgba(150,170,255,.22); }
  50%      { box-shadow: 0 0 0 2px rgba(190,205,255,.50), 0 8px 28px rgba(150,170,255,.50); }
}
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing header.topbar .user-area #uiLangSel { animation: none; }
}

/* The hero is dark from the very top, so the topbar reads LIGHT at all scroll
   positions — the light ink + inverted-white logo rules above apply whether or
   not .scrolled is set. (No dark-ink "top" variant: that only makes sense over a
   light page head, which the cinematic landing never has.) */

/* Keep hero content clear of the fixed bar */
body.cinematic-landing main#app {
  padding-block-start: clamp(64px, 9vh, 88px);
}

/* ============================================================
   2. LAYOUT / RESPONSIVE
   ============================================================ */
/* Never allow horizontal scroll on the cinematic stage */
body.cinematic-landing {
  overflow-x: hidden;
}
body.cinematic-landing #authScreen,
body.cinematic-landing .auth-screen-grid,
body.cinematic-landing .landing-sections {
  max-width: 100%;
}
body.cinematic-landing img,
body.cinematic-landing svg,
body.cinematic-landing video {
  max-width: 100%;
}

/* Consistent gutters driven by the shared pad token */
body.cinematic-landing .auth-screen-grid,
body.cinematic-landing .landing-sections {
  padding-inline: var(--cin-pad);
}

/* ≤900px — stack hero above the auth card cleanly */
@media (max-width: 900px) {
  body.cinematic-landing .auth-screen-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 5vw, 48px);
  }
  body.cinematic-landing .auth-screen-grid .hero,
  body.cinematic-landing .auth-screen-grid .card.auth-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ≤640px — mobile: scale type, wrap rows, full-width cards, no overflow */
@media (max-width: 640px) {
  body.cinematic-landing {
    --cin-pad: clamp(16px, 5vw, 24px);
  }

  body.cinematic-landing .auth-screen-grid .hero,
  body.cinematic-landing .auth-screen-grid .card.auth-card {
    max-width: 100%;
  }

  /* Source chips and step rows wrap instead of overflowing */
  body.cinematic-landing .hero-sources-row,
  body.cinematic-landing .landing-stats,
  body.cinematic-landing .landing-steps,
  body.cinematic-landing .tabs {
    flex-wrap: wrap;
  }

  /* Stats: two-up grid so 4 items don't squeeze on one line */
  body.cinematic-landing .landing-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 4vw, 20px);
  }

  /* Steps stack full width */
  body.cinematic-landing .landing-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 5vw, 24px);
  }

  /* Long words / source names break instead of forcing scroll */
  body.cinematic-landing .hero-title,
  body.cinematic-landing .hero-lede,
  body.cinematic-landing .landing-h2,
  body.cinematic-landing .hero-sources-row > span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Topbar on phones: mark-only logo (set in styles.css) + a tight single row
     holding the language picker, Pricing, and ONE auth button. Everything else
     stays a fixed size; only the language select flexes to share leftover room. */
  body.cinematic-landing header.topbar {
    flex-wrap: nowrap;
    gap: 8px;
    padding-inline: 12px;
  }
  body.cinematic-landing header.topbar .brand { flex: 0 0 auto; }
  body.cinematic-landing header.topbar .user-area {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }
  /* Compact pills so the logo never collides with the buttons. */
  body.cinematic-landing header.topbar .user-area #pricingNavBtn,
  body.cinematic-landing header.topbar .user-area .nav-auth-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-block;
    padding: 7px 12px;
    font-size: .85rem;
  }
  body.cinematic-landing header.topbar .user-area #uiLangSel {
    min-width: 0;
    max-width: 30vw;
    flex: 0 1 auto;
    padding: 6px 8px;
  }
}

/* Phones: one stat per row so each tile is full width and the value (incl. the
   longer "Minutes" and its translations) sits comfortably, never clipped.
   Placed after the <=640 two-up rule so it wins for narrow widths. */
@media (max-width: 480px) {
  body.cinematic-landing .landing-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.cinematic-landing .lstat {
    align-items: center;
    text-align: center;
    padding: 18px 20px;
  }
  body.cinematic-landing .lstat-v {
    font-size: 2.1rem;
  }
}

/* ============================================================
   3. ACCESSIBILITY — focus-visible rings + contrast
   ============================================================ */
body.cinematic-landing a:focus-visible,
body.cinematic-landing button:focus-visible,
body.cinematic-landing input:focus-visible,
body.cinematic-landing select:focus-visible,
body.cinematic-landing textarea:focus-visible,
body.cinematic-landing .tab:focus-visible,
body.cinematic-landing .oauth-btn:focus-visible,
body.cinematic-landing [tabindex]:focus-visible {
  outline: 2px solid var(--cin-white);
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px var(--cin-glow);
}

/* Remove the default (non-keyboard) outline only where focus-visible covers it */
body.cinematic-landing a:focus:not(:focus-visible),
body.cinematic-landing button:focus:not(:focus-visible),
body.cinematic-landing input:focus:not(:focus-visible),
body.cinematic-landing select:focus:not(:focus-visible),
body.cinematic-landing textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Topbar focus rings need offset so they don't clip under the glass edge */
body.cinematic-landing header.topbar a:focus-visible,
body.cinematic-landing header.topbar button:focus-visible,
body.cinematic-landing header.topbar select:focus-visible {
  outline-offset: 3px;
}

/* Keep muted text from dropping below readable contrast on the stage */
body.cinematic-landing .hero-disclaimer.muted,
body.cinematic-landing .muted {
  color: var(--cin-muted);
}

/* ============================================================
   4. RTL SAFETY — logical mirroring sanity
   ============================================================ */
body.cinematic-landing[dir="rtl"] .user-area,
body.cinematic-landing [dir="rtl"] .user-area {
  flex-direction: row-reverse;
}
body.cinematic-landing[dir="rtl"] .hero-sources-row,
body.cinematic-landing [dir="rtl"] .hero-sources-row {
  flex-direction: row-reverse;
}
/* Lists/steps keep logical text alignment in RTL */
body.cinematic-landing[dir="rtl"] .hero-why-list,
body.cinematic-landing [dir="rtl"] .hero-why-list {
  text-align: start;
}

/* ============================================================
   5. REDUCED MOTION — safety net (scoped)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing header.topbar,
  body.cinematic-landing header.topbar .brand .logo-img,
  body.cinematic-landing header.topbar .user-area button,
  body.cinematic-landing header.topbar .user-area #pricingNavBtn,
  body.cinematic-landing header.topbar .user-area #logoutBtn,
  body.cinematic-landing header.topbar .user-area #uiLangSel {
    transition: none !important;
  }
}



/* ======================== relocated full-width sections ======================== */
/* .hero-why + .hero-sources were moved out of the narrow hero column into
   .landing-sections so the 3 cards + source chips use the full page width. */
body.cinematic-landing .landing-sections > .hero-why {
  margin-top: clamp(8px, 2vw, 24px);
  margin-bottom: clamp(26px, 4vw, 46px);
}
body.cinematic-landing .landing-sections > .hero-sources {
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--cin-line);  /* override styles.css light border on dark */
}

/* ======================== try-before-signup widget (.cv-try) ======================== */
body.cinematic-landing .cv-try {
  margin-top: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 1.8vw, 18px);
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
body.cinematic-landing .cv-try-label {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cin-ink);
  margin: 0 0 8px;
}
body.cinematic-landing .cv-try textarea,
body.cinematic-landing .cv-try input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}
body.cinematic-landing .cv-try textarea::placeholder,
body.cinematic-landing .cv-try input::placeholder { color: var(--cin-muted); }
body.cinematic-landing .cv-try textarea:focus,
body.cinematic-landing .cv-try input:focus {
  outline: none;
  border-color: var(--cin-glow);
  box-shadow: 0 0 0 3px rgba(190, 205, 255, 0.14);
}
body.cinematic-landing .cv-try-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
body.cinematic-landing .cv-try-row input[type="text"] { flex: 1 1 200px; }
body.cinematic-landing .cv-try .primary {
  background: var(--cin-white);
  color: #0a0a0b;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--cin-ease), box-shadow .2s var(--cin-ease);
}
body.cinematic-landing .cv-try .primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(190, 205, 255, 0.5);
}
body.cinematic-landing .cv-try .primary:disabled { opacity: .6; cursor: default; transform: none; }
/* Step-1 "Analyze my case" and step-2 "Continue" are full-width primary CTAs so
   the first screen is one clean box + one clear button (conversion redesign). */
body.cinematic-landing .cv-try .cv-try-go {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  font-size: 1.02rem;
}
/* One-tap starter chips under the problem box: tap fills the textarea with an
   editable common question, so nobody starts from a blank page. */
body.cinematic-landing .cv-try-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
body.cinematic-landing .cv-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background .2s var(--cin-ease), border-color .2s var(--cin-ease), transform .2s var(--cin-ease);
}
body.cinematic-landing .cv-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--cin-glow);
  transform: translateY(-1px);
}
/* One-shot attention pulse on the CTA after a starter chip fills the box. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cvCtaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
    100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  }
  body.cinematic-landing .cv-try-go.cv-pulse { animation: cvCtaPulse 0.9s var(--cin-ease-out) 2; }
}

/* Trust row under the CTA: three checkmarked objection-killers. */
body.cinematic-landing .cv-try-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
}
body.cinematic-landing .cv-try-trust span {
  font-size: 0.86rem;
  color: var(--cin-muted);
  white-space: nowrap;
}
body.cinematic-landing .cv-try-trust span::before {
  content: "\2713\00a0";
  color: var(--cin-ink);
}
/* On small screens show 2 chips so the CTA button stays above the fold. */
@media (max-width: 520px) {
  body.cinematic-landing .cv-try-chips .cv-chip:nth-child(3),
  body.cinematic-landing .cv-try-chips .cv-chip:nth-child(4) { display: none; }
}
/* Step-2 country picker fills its row (it is no longer inside .cv-try-row). */
body.cinematic-landing #anonCountryStep select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}
body.cinematic-landing .cv-try-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--cin-muted);
}
/* styles.css forces `input { width:100% }`; the consent checkbox must stay its
   natural size or it fills the row and squeezes the label text. */
body.cinematic-landing .cv-try-consent input[type="checkbox"] {
  width: auto;
  flex: none;
  margin: 3px 0 0;
}
body.cinematic-landing .cv-try-consent span { flex: 1; display: block; }

/* conversation thread */
body.cinematic-landing .cv-try-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 12px;
}
body.cinematic-landing .cv-msg {
  padding: 11px 14px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: .95rem;
  white-space: pre-wrap;
  max-width: 92%;
}
body.cinematic-landing .cv-msg-user {
  align-self: flex-end;
  background: rgba(190, 205, 255, 0.14);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
}
body.cinematic-landing .cv-msg-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cin-ink-soft);
  border: 1px solid var(--cin-stroke);
}
body.cinematic-landing .cv-try-reply { display: flex; gap: 10px; }
body.cinematic-landing .cv-try-reply input { flex: 1; }
body.cinematic-landing .cv-try-reply button {
  background: var(--cin-card-2);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}

/* signup gate */
body.cinematic-landing .cv-try-gate {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(190, 205, 255, 0.08);
  border: 1px solid var(--cin-glow);
  text-align: center;
}
body.cinematic-landing .cv-try-gate-title { margin: 0 0 6px; font-weight: 700; color: var(--cin-white); }
body.cinematic-landing .cv-try-gate-sub { margin: 0 0 14px; font-size: .9rem; color: var(--cin-muted); line-height: 1.5; }
body.cinematic-landing .cv-try .error { color: #fca5a5; font-size: .85rem; margin: 10px 0 0; }

/* ======================== make "try it free" the hero focal point ======================== */
/* Reorder the hero so the input widget sits right under a more compact headline,
   above the fold (visitors were scrolling past it). DOM order is unchanged. */
body.cinematic-landing .hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.cinematic-landing .hero-title { order: 0; }
body.cinematic-landing .cv-try     { order: 1; }
body.cinematic-landing .hero-lede  { order: 2; }
body.cinematic-landing .hero-disclaimer { order: 3; }

/* Compact the headline so the widget is visible without scrolling. */
body.cinematic-landing .hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem) !important;
  line-height: 1.06 !important;
  margin: 0 0 16px !important;
}
body.cinematic-landing .hero-lede {
  font-size: clamp(.96rem, 1.2vw, 1.08rem) !important;
  line-height: 1.55;
  margin: 18px 0 0 !important;
  max-width: 58ch;
}

/* Elevate the widget: brighter border, soft glow, a touch more presence. */
body.cinematic-landing .cv-try {
  margin-top: clamp(14px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cin-glow);
  box-shadow:
    0 24px 70px -34px rgba(0, 0, 0, 0.85),
    0 0 70px -34px var(--cin-glow);
}
body.cinematic-landing .cv-try-label {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

/* "Free · no sign-up" badge */
body.cinematic-landing .cv-try-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cin-ink);
  background: rgba(190, 205, 255, 0.16);
  border: 1px solid var(--cin-glow);
}
body.cinematic-landing .cv-try-badge::before { content: "✦"; opacity: .9; }

/* "assistant is typing" indicator (anon chat) */
body.cinematic-landing .cv-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: max-content;
}
body.cinematic-landing .cv-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cin-ink-soft);
  animation: cinTypingDot 1.2s var(--cin-ease) infinite;
}
body.cinematic-landing .cv-typing span:nth-child(2) { animation-delay: .18s; }
body.cinematic-landing .cv-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes cinTypingDot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* country dropdown in the try-it widget */
body.cinematic-landing .cv-try select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
body.cinematic-landing .cv-try select:focus {
  outline: none;
  border-color: var(--cin-glow);
  box-shadow: 0 0 0 3px rgba(190, 205, 255, 0.14);
}
body.cinematic-landing .cv-try-row select { flex: 1 1 200px; }
body.cinematic-landing .cv-try select option { background: var(--cin-bg-2); color: var(--cin-ink); }

/* ======================== register form: dropdowns + checkbox fix ======================== */
/* The `.auth-card input` rule (full-width + appearance:none) also hit the
   disclaimer checkbox, breaking it. Restore its native box. */
body.cinematic-landing .auth-card input[type="checkbox"] {
  width: auto;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: #b8c8ff;
  flex: none;
}
/* Country / city dropdowns styled to match the auth-card inputs. */
body.cinematic-landing .auth-card select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--cin-ink);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--cin-stroke);
  border-radius: 11px;
  cursor: pointer;
}
body.cinematic-landing .auth-card select:focus {
  outline: none;
  border-color: rgba(210, 222, 255, .55);
  box-shadow: 0 0 0 3px rgba(190, 205, 255, .22);
}
body.cinematic-landing .auth-card select option { background: var(--cin-bg-2); color: var(--cin-ink); }

/* ======================== Popular legal solutions (photo cards) ======================== */
body.cinematic-landing .cv-examples {
  margin: clamp(8px, 2vw, 24px) 0 clamp(30px, 5vw, 52px);
}
body.cinematic-landing .cv-examples-title {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--cin-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
body.cinematic-landing .cv-examples-sub {
  color: var(--cin-ink-soft);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 clamp(18px, 2vw, 26px);
  max-width: 72ch;
}
body.cinematic-landing .cv-examples-note {
  color: var(--cin-muted);
  font-size: .8rem;
  line-height: 1.5;
  margin: clamp(16px, 2vw, 22px) 0 0;
}
/* ======================== Popular legal solutions (photo cards, LegalZoom-style) ======================== */
/* Responsive 1 / 2 / 3 column grid, equal-height cards */
body.cinematic-landing .cv-examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch;
}
@media (min-width: 620px) {
  body.cinematic-landing .cv-examples-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  body.cinematic-landing .cv-examples-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card: equal height column, photo on top, body padding below, button pinned bottom */
body.cinematic-landing .cv-ex-cat {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cin-card);
  border: 1px solid var(--cin-stroke);
  border-radius: 16px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .25s var(--cin-ease), transform .25s var(--cin-ease), background .25s var(--cin-ease);
}
body.cinematic-landing .cv-ex-cat:hover {
  border-color: var(--cin-glow);
  background: var(--cin-card-2);
  transform: translateY(-3px);
}

/* Photo band: fixed aspect ratio so portrait and landscape sources match.
   object-fit cover crops to fill; rounded top corners follow the card. */
body.cinematic-landing .cv-ex-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--cin-bg-2);
  overflow: hidden;
}
body.cinematic-landing .cv-ex-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .4s var(--cin-ease-out);
}
body.cinematic-landing .cv-ex-cat:hover .cv-ex-media img { transform: scale(1.04); }
/* Bottom-to-top gradient overlay for legibility of any future on-image text */
body.cinematic-landing .cv-ex-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 45%, rgba(10,10,11,.45) 100%);
  pointer-events: none;
}
/* Older browsers without aspect-ratio support: fixed-height fallback */
@supports not (aspect-ratio: 1 / 1) {
  body.cinematic-landing .cv-ex-media { height: 180px; }
}

/* Body wrapper grows to fill, so the button can pin to the bottom */
body.cinematic-landing .cv-ex-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(16px, 1.8vw, 20px);
}

/* Heading: emoji icon + category name */
body.cinematic-landing .cv-ex-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cin-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
body.cinematic-landing .cv-ex-ico { font-size: 1.2rem; line-height: 1; }

/* Short explanation paragraph */
body.cinematic-landing .cv-ex-desc {
  margin: 0 0 14px;
  color: var(--cin-ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}

/* Mini-label above the common-issues bullets */
body.cinematic-landing .cv-ex-helps {
  display: block;
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cin-muted);
}

/* Common issues bullet list */
body.cinematic-landing .cv-ex-list { list-style: none; margin: 0 0 14px; padding: 0; }
body.cinematic-landing .cv-ex-list li {
  position: relative;
  padding: 5px 0 5px 18px;
  color: var(--cin-ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}
body.cinematic-landing .cv-ex-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cin-muted);
}

/* Example-case block: reads like a quote / sample. Tinted bg + left accent. */
body.cinematic-landing .cv-ex-eg {
  margin: 0 0 16px;
  padding: 11px 13px;
  background: rgba(190, 205, 255, .06);
  border: 1px solid var(--cin-stroke);
  border-left: 3px solid var(--cin-glow);
  border-radius: 0 10px 10px 0;
}
body.cinematic-landing .cv-ex-eg-label {
  display: block;
  margin: 0 0 5px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cin-muted);
}
body.cinematic-landing .cv-ex-eg-text {
  display: block;
  margin: 0 0 7px;
  color: var(--cin-ink);
  font-size: .9rem;
  line-height: 1.5;
}
body.cinematic-landing .cv-ex-eg-law {
  display: inline-block;
  padding: 2px 8px;
  background: var(--cin-card-2);
  border: 1px solid var(--cin-stroke);
  border-radius: 999px;
  color: var(--cin-ink-soft);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", "Consolas", monospace;
  font-size: .72rem;
  letter-spacing: .01em;
}

/* 'See a real example' link (crawlable anchor, opens the modal via JS):
   full-width, pinned to card bottom via margin-top auto */
body.cinematic-landing a.cv-ex-example { text-decoration: none; }
body.cinematic-landing .cv-ex-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding: 11px 16px;
  background: var(--cin-card-2);
  color: var(--cin-ink);
  border: 1px solid var(--cin-stroke);
  border-radius: 11px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .2s var(--cin-ease), border-color .2s var(--cin-ease), color .2s var(--cin-ease);
}
body.cinematic-landing .cv-ex-example::after { content: " \2192"; transition: transform .2s var(--cin-ease); }
body.cinematic-landing .cv-ex-example:hover {
  background: rgba(190, 205, 255, .12);
  border-color: var(--cin-glow);
  color: var(--cin-white);
}
body.cinematic-landing .cv-ex-example:hover::after { transform: translateX(3px); }
body.cinematic-landing .cv-ex-example:focus-visible {
  outline: 2px solid var(--cin-glow);
  outline-offset: 2px;
}

/* Reduced motion: drop the hover lift and image zoom */
@media (prefers-reduced-motion: reduce) {
  body.cinematic-landing .cv-ex-cat:hover { transform: none; }
  body.cinematic-landing .cv-ex-cat:hover .cv-ex-media img { transform: none; }
  body.cinematic-landing .cv-ex-example:hover::after { transform: none; }
}

/* FAQ band: crawlable common legal questions on the landing */
body.cinematic-landing .faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
body.cinematic-landing .faq-item h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--cin-white); }
body.cinematic-landing .faq-item p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--cin-ink); }
body.cinematic-landing .faq-item a { color: var(--cin-glow); text-decoration: underline; text-underline-offset: 2px; }
body.cinematic-landing .sheet-full-link { margin: 0 0 10px; font-size: .9rem; }
@media (max-width: 720px) {
  body.cinematic-landing .faq-list { grid-template-columns: 1fr; }
}
