/* Fonts are served from this site (latin subset), so the page never waits on a third-party stylesheet. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.65850a373e25.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin.5d2835174326.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================================
   Design system
   ========================================================================= */
:root {
  color-scheme: light dark;

  /* Every entrance animation on the page uses these, so they all move at the same pace. */
  --enter: .8s;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --stagger: 90ms;

  /* Palette — light */
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #0b1020;
  --text-soft: #2b3144;
  --muted: #5b6378;
  --muted-2: #8891a5;
  --line: #e6e8f0;
  --line-strong: #d6d9e5;

  /* Brand gradient — deep indigo to warm violet, with a hint of French flair */
  --accent: #4f46e5;          /* indigo-600 */
  --accent-2: #7c3aed;        /* violet-600 */
  --accent-3: #06b6d4;        /* cyan-500, used sparingly */
  --accent-strong: #3730a3;
  --accent-soft: #eef0ff;
  --accent-soft-2: #f3eefe;
  --on-accent: #ffffff;

  --ok: #0f8f66;
  --ok-soft: #e3f6ec;
  --warn: #b4610b;
  --warn-soft: #fdf1dc;
  --err: #c0392b;
  --err-soft: #fdecea;

  --highlight: #ffe66b;

  /* Depth */
  --shadow-xs: 0 1px 2px rgba(10, 15, 40, .05);
  --shadow-sm: 0 1px 2px rgba(10, 15, 40, .05), 0 2px 6px rgba(10, 15, 40, .04);
  --shadow-md: 0 2px 4px rgba(10, 15, 40, .04), 0 12px 32px rgba(10, 15, 40, .08);
  --shadow-lg: 0 4px 10px rgba(10, 15, 40, .06), 0 30px 60px rgba(10, 15, 40, .12);
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: var(--font-sans);
  --font-display: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a14;
    --bg-elev: #0f1222;
    --surface: #10142a;
    --surface-2: #141833;
    --text: #eef0fa;
    --text-soft: #c7cbdd;
    --muted: #959cb3;
    --muted-2: #6c7391;
    --line: #212647;
    --line-strong: #2d3357;

    --accent: #8b85ff;
    --accent-2: #a78bfa;
    --accent-3: #22d3ee;
    --accent-strong: #a5a0ff;
    --accent-soft: #1b1f45;
    --accent-soft-2: #241f49;
    --on-accent: #0b0d1e;

    --ok: #4ade80;
    --ok-soft: #0e2a21;
    --warn: #f4b65d;
    --warn-soft: #2a1f0e;
    --err: #ff8a7e;
    --err-soft: #341818;

    --highlight: #ffd84d;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .5), 0 30px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;

  background:
    radial-gradient(1200px 700px at 50% -220px, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 92%, var(--accent-soft)) 40%, var(--bg));
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fine grid pattern tiled with the whole document, fading at the edges */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, rgba(0,0,0,.55) 42%, transparent 85%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, rgba(0,0,0,.55) 42%, transparent 85%);
  opacity: .55;
}
@media (prefers-color-scheme: dark) { body::before { opacity: .32; } }

/* Three large, soft color blobs fixed to the viewport so they drift as the
   page scrolls past, keeping the ambient color through the whole page. */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.page-glow::before,
.page-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.page-glow::before {
  width: 620px; height: 620px;
  top: -220px; left: -140px;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: .42;
  animation: glowDriftA 22s ease-in-out infinite alternate;
}
.page-glow::after {
  width: 720px; height: 720px;
  top: -260px; right: -180px;
  background: radial-gradient(closest-side, var(--accent-2), transparent);
  opacity: .42;
  animation: glowDriftB 26s ease-in-out infinite alternate;
}
.page-glow > span {
  position: absolute;
  width: 560px; height: 560px;
  left: 50%; top: 40%;
  margin-left: -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-3), transparent);
  opacity: .22;
  animation: glowDriftC 30s ease-in-out infinite alternate;
}
@media (prefers-color-scheme: dark) {
  .page-glow::before { opacity: .48; }
  .page-glow::after { opacity: .48; }
  .page-glow > span { opacity: .3; }
}

@keyframes glowDriftA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.08); }
}
@keyframes glowDriftB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-50px, 30px, 0) scale(1.1); }
}
@keyframes glowDriftC {
  from { transform: translate3d(-40px, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -40px, 0) scale(1.12); }
}


@media (prefers-reduced-motion: reduce) {
  .page-glow::before, .page-glow::after, .page-glow > span { animation: none; }
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; text-wrap: balance; color: var(--text); }
h1 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.025em; }
h2 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--accent); }

/* =========================================================================
   Layout
   ========================================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px;
}
.wide .topbar, .wide main { max-width: 1180px; }

/* Home page gets a sticky, glassy top bar */
.home .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.home .topbar.is-scrolled { border-bottom-color: var(--line); }
.home main { padding-top: 24px; }
.home-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.nav-anchors {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: auto;
  margin-left: 32px;
}
.nav-anchors a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-anchors a:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); }
@media (max-width: 900px) { .nav-anchors { display: none; } }

main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 72px;
  flex: 1;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding: 20px 20px 32px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(6px);
}
footer a, .auth .note a { color: var(--accent); font-weight: 600; text-decoration: none; }
footer a:hover, .auth .note a:hover { text-decoration: underline; }

/* =========================================================================
   Brand
   ========================================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--accent)));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* =========================================================================
   Account nav
   ========================================================================= */
.account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.account span {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent),
    0 1px 2px rgba(10, 15, 40, .18);
  letter-spacing: -.005em;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px color-mix(in srgb, var(--accent) 36%, transparent), 0 2px 4px rgba(10, 15, 40, .22); }
.button:active { transform: translateY(0); filter: brightness(.97); }
.button:focus-visible, .ghost:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-sm);
}
.button[disabled] { opacity: .6; cursor: progress; filter: grayscale(.2); }
.button svg { width: 18px; height: 18px; }
.button.block { width: 100%; }
.button.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

.ghost {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s, transform .05s;
}
.ghost:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.ghost:active { transform: translateY(1px); }
.ghost.big { padding: 12px 20px; font-size: 16px; border-radius: 12px; }
a.ghost { text-decoration: none; }

/* =========================================================================
   Messages
   ========================================================================= */
.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.messages li {
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: var(--shadow-xs);
}
.messages li.success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.messages li.error, .messages li.danger { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.messages li.warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }

/* =========================================================================
   Hero (dashboard / small-pages)
   ========================================================================= */
.hero { padding: 28px 0 32px; }
.hero h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.1; }
.hero p { color: var(--muted); margin-top: 10px; font-size: 17px; max-width: 42em; }

/* =========================================================================
   Steps (dashboard)
   ========================================================================= */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 22px;
}
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(to bottom, var(--line) 0%, var(--line) 70%, transparent);
}
.step:last-child::before { display: none; }
.step.is-done::before { background: linear-gradient(to bottom, var(--ok), color-mix(in srgb, var(--ok) 40%, var(--line))); }

.marker {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}
.marker svg { width: 18px; height: 18px; }
.is-current .marker {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent), 0 8px 18px color-mix(in srgb, var(--accent) 25%, transparent);
}
.is-done .marker { border-color: transparent; background: var(--ok); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--ok) 30%, transparent); }

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.is-current > .card { box-shadow: var(--shadow-md); }
.is-locked .card { box-shadow: none; background: color-mix(in srgb, var(--surface) 60%, transparent); border-style: dashed; }
.is-locked .card h2 { color: var(--muted); }
.card h2 { font-size: 20px; font-family: var(--font-heading); font-weight: 600; letter-spacing: -.015em; }
.card p { color: var(--muted); margin-top: 6px; }
.card p strong { color: var(--text); font-weight: 600; }
.card .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card form { margin: 0; }

/* =========================================================================
   Status pill
   ========================================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
}
.status svg { width: 16px; height: 16px; flex: none; }

/* =========================================================================
   Document tile
   ========================================================================= */
.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.doc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
  flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-title { font-weight: 700; overflow-wrap: anywhere; letter-spacing: -.01em; }
.doc-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.doc-meta strong { color: var(--text); }

/* =========================================================================
   Form fields
   ========================================================================= */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; color: var(--text-soft); }
textarea,
input[type=text],
input[type=password],
input[type=email],
input[type=tel],
select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea:hover,
input[type=text]:hover,
input[type=password]:hover,
input[type=email]:hover,
input[type=tel]:hover,
select:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); }
textarea:focus,
input:focus, select:focus { border-color: var(--accent); background: var(--surface); }
textarea {
  display: block;
  margin-top: 16px;
  min-height: 180px;
  resize: vertical;
  font: 12.5px/1.55 var(--font-mono);
  word-break: break-all;
}
textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
textarea.plain { font: inherit; min-height: 0; margin-top: 0; word-break: normal; }
.errorlist { list-style: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--err-soft); color: var(--err); font-size: 14.5px; border: 1px solid color-mix(in srgb, var(--err) 25%, transparent); }

input[type=file] { font: inherit; width: 100%; padding: 10px 0; }
input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================================
   Auth (login)
   ========================================================================= */
.auth { max-width: 440px; margin: 0 auto; padding-top: clamp(16px, 8vh, 72px); }
.auth .card { padding: 36px 30px; box-shadow: var(--shadow-md); }
.auth-mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.auth-mark svg { width: 28px; height: 28px; }
.auth h1 { font-size: 28px; }
.auth .lead { color: var(--muted); margin-top: 6px; }
.auth .button { margin-top: 24px; }
.auth .note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* =========================================================================
   Help details
   ========================================================================= */
.help { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px; }
.help summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.help summary::before { content: "+"; width: 16px; display: inline-block; text-align: center; font-weight: 700; }
.help[open] summary::before { content: "–"; }
.help ul, .help ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.help p { font-size: 14.5px; color: var(--muted); }
.help li { margin-top: 6px; }
.help li strong { color: var(--text); }

.hint { font-size: 14.5px; color: var(--muted); }
.card .hint { margin-top: 14px; }

/* =========================================================================
   Mobile tweaks for steps
   ========================================================================= */
@media (max-width: 520px) {
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .marker { width: 36px; height: 36px; font-size: 14px; }
  .step::before { left: 17px; top: 40px; }
  .card { padding: 20px; }
  .account span { display: none; }
  .topbar { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================================
   PUBLIC HOME PAGE
   ========================================================================= */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero-split h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin-top: 18px;
  letter-spacing: -.028em;
}
.hero-split h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 18.5px;
  margin-top: 20px;
  max-width: 34em;
  line-height: 1.55;
}

.hero-split .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chips li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Phone / video mock */

.video-switch {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
  position: relative;
  z-index: 1;
}
.video-switch a {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.video-switch a:hover { color: var(--text); }
.video-switch a.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 32%, transparent);
}
.video-switch a:focus-visible { outline: none; box-shadow: var(--ring); }

/* =========================================================================
   Section bands
   ========================================================================= */
.band {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
  position: relative;
}
.band > h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 48em; line-height: 1.55; }

.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}
.tile h3 { margin: 0; font-size: 17.5px; letter-spacing: -.01em; font-family: var(--font-sans); font-weight: 700; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 15.5px; line-height: 1.55; }

/* Problem tiles — subtle warning accent */
.tile.problem {
  border-left: 3px solid var(--err);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--err-soft) 50%, transparent), transparent 40%),
    var(--surface);
}

/* Feature tiles — icon badge */
.tile.feature svg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.answer {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 100% at 0% 0%, color-mix(in srgb, var(--ok) 10%, transparent), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.answer::before {
  content: "✓";
  position: absolute;
  top: 20px; right: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--ok) 30%, transparent);
}
.answer h3 { margin: 0; font-size: 20px; font-family: var(--font-heading); font-weight: 600; letter-spacing: -.015em; padding-right: 44px; }
.answer p { margin-top: 10px; max-width: 54em; color: var(--text-soft); font-size: 16px; }

/* =========================================================================
   Sample article
   ========================================================================= */
.sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sample:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sample-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.sample h4 {
  margin: 20px 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.sample p { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); }
.sample p[lang="fr"] { font-family: var(--font-display); font-weight: 400; font-size: 16.5px; font-variation-settings: "opsz" 14; }

mark {
  background: color-mix(in srgb, var(--highlight) 70%, transparent);
  color: #141826;
  padding: 1px 4px;
  border-radius: 4px;
  box-decoration-break: clone;
}
.slot {
  color: var(--err);
  font-weight: 600;
  background: color-mix(in srgb, var(--err-soft) 60%, transparent);
  padding: 1px 4px;
  border-radius: 4px;
  box-decoration-break: clone;
}
.fineprint { color: var(--muted); font-size: 14.5px; margin-top: 18px; }
.card p a, .fineprint a, .prose a { color: var(--accent); font-weight: 600; }

.trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}
.trust svg {
  width: 24px; height: 24px;
  padding: 4px;
  color: var(--ok);
  flex: none;
  background: var(--ok-soft);
  border-radius: 8px;
}

/* =========================================================================
   How-it-works list
   ========================================================================= */
.how {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.how li {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.how li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.how span {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
}
.how h3 { margin: 2px 0 0; font-size: 17px; font-family: var(--font-sans); font-weight: 700; }
.how p { color: var(--muted); margin-top: 6px; font-size: 15.5px; line-height: 1.55; }

/* =========================================================================
   Request form
   ========================================================================= */
.request {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.request .card { padding: 28px; box-shadow: var(--shadow-md); }
.request label:first-of-type { margin-top: 0; }
.optional { color: var(--muted-2); font-weight: 500; font-size: 12.5px; }
.request .button { margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.form-status.bad { background: var(--err-soft); color: var(--err); margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); color: var(--accent); border-color: var(--accent); }
.faq p { color: var(--muted); margin-top: 10px; line-height: 1.55; }

/* Responsive */
@media (max-width: 820px) {
  .hero-split, .request { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grid.three, .how { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 36px 0; }
  .hero-split { padding: 24px 0 28px; }
}
@media (max-width: 620px) {
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .sample { padding: 22px; }
  .answer { padding: 22px; }
}
@media (max-width: 520px) {
  nav.account .button.small { display: none; }
}

/* =========================================================================
   Contact support dialog
   ========================================================================= */
dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(8, 10, 20, .55); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 22px; font-family: var(--font-heading); font-weight: 600; }
dialog p { color: var(--muted); }
dialog .button { margin-top: 20px; }
dialog .form-status { margin-bottom: 4px; }
.linklike { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* =========================================================================
   Terms (prose)
   ========================================================================= */
.prose { max-width: 740px; padding-top: 20px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); font-family: var(--font-heading); font-weight: 600; }
.prose h2 { font-size: 20px; margin-top: 32px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.prose p, .prose ul { color: var(--text-soft); margin-top: 10px; line-height: 1.65; }
.prose p strong { color: var(--text); }
.prose li { margin-top: 8px; }

label.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
label.check:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--surface); }
label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

/* =========================================================================
   Right-to-left (Persian) tweaks
   ========================================================================= */
[lang="fa"] { font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif; direction: rtl; unicode-bidi: isolate; }

/* =========================================================================
   HOME — new patterns (stat strip, band head, route grid, split band,
   method flow, tabbed sample, bento, trust bar, dark band, CTA shell,
   site footer)
   ========================================================================= */

/* Hero size bump for the redesigned page */
.home .hero-split { padding: 40px 0 48px; gap: 64px; }
.home .hero-split h1 { margin-top: 20px; }

/* Stat strip beneath hero */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-xs);
}
.stat-strip > div { padding: 0 12px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; padding-left: 0; }
.stat-strip dt {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.stat-strip dd {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text);
}
@media (max-width: 680px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px 0; padding: 12px; }
  .stat-strip > div { border-left: 0; padding: 0 8px; }
  .stat-strip > div:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* Band header */
.band-head { max-width: 760px; }
.band-head.center { max-width: 760px; margin: 0 auto; text-align: center; }
.band-head.center .eyebrow { margin-bottom: 14px; }
.band-head > h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -.025em;
  margin-top: 14px;
  line-height: 1.1;
}
.eyebrow-plain {
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: .16em;
  color: var(--accent-strong);
}
.eyebrow-plain::before { display: none; }

/* ───── Routes ───── */
.route-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-card {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.route-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .2s;
}
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.route-card:hover::before { opacity: 1; }
.route-flag {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.route-flag svg { width: 24px; height: 24px; }
.route-card h3 { font-size: 18px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.route-card p { color: var(--muted); margin-top: 6px; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 820px) { .route-grid { grid-template-columns: minmax(0, 1fr); } }

.problem-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.problem-row:last-child { border-bottom: 1px solid var(--line); }
.problem-row h3 { font-size: 20px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.problem-row p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ───── Method flow ───── */
.band-method {
  background:
    radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    transparent;
  border-top-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
.method-flow {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.method-flow::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.method-step { position: relative; z-index: 1; }
.method-marker {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--line-strong));
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 0 0 6px var(--bg), 0 6px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}
.method-step h3 {
  text-align: center;
  font-size: 17.5px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.01em;
}
.method-step > p {
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .method-flow { grid-template-columns: minmax(0, 1fr); }
  .method-flow::before { display: none; }
}

/* ───── Tabbed sample ───── */
.sample-shell {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tabs {
  display: flex;
  gap: 0;
  padding: 10px 10px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tab {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: color .15s, border-color .15s, background .15s;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--line);
  border-bottom-color: var(--surface);
}
.sample-pane { padding: 32px; }
.sample-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
}
.sample-col h4 {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}
.sample-col h4 + p { margin-bottom: 20px; }
.sample-col p { font-size: 15.5px; line-height: 1.7; color: var(--text-soft); }
.sample-col p[lang="fr"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.sample-foot {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.sample-foot .fineprint { margin: 0; }
@media (max-width: 760px) {
  .sample-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sample-pane { padding: 24px; }
  .sample-foot { padding: 14px 24px 20px; }
}

/* ───── Bento feature grid ───── */
.bento {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}
.bento-tile {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.bento-tile svg {
  width: 42px; height: 42px;
  padding: 9px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
  color: var(--accent);
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.bento-tile h3 { font-size: 17.5px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.bento-tile p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.bento-feature-hero {
  grid-column: span 3;
  grid-row: span 2;
  background:
    radial-gradient(80% 100% at 100% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  padding: 32px;
}
.bento-feature-hero svg { width: 52px; height: 52px; padding: 11px; }
.bento-feature-hero h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.015em;
  margin-top: 4px;
}
.bento-feature-hero p { font-size: 16.5px; max-width: 32em; }
.bento-tile:nth-of-type(2) { grid-column: span 3; }
.bento-tile:nth-of-type(3) { grid-column: span 3; }
.bento-tile:nth-of-type(4) { grid-column: span 2; }
.bento-tile:nth-of-type(5) { grid-column: span 2; }
.bento-tile:nth-of-type(6) { grid-column: span 2; }
@media (max-width: 820px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: span 1 !important; grid-row: auto !important; }
}

/* Trust bar replacement */
.trust-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.trust-bar > svg {
  width: 32px; height: 32px;
  padding: 6px;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 10px;
  flex: none;
}
.trust-bar div { display: flex; flex-direction: column; }
.trust-bar strong { color: var(--text); font-weight: 700; }
.trust-bar span { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* ───── Dark band (how it works) ───── */
.band-dark {
  margin-top: 24px;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 70%),
    linear-gradient(135deg, #0f1222, #12163a);
  color: #eef0fa;
  position: relative;
  overflow: hidden;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.08'/></svg>");
  background-size: 24px 24px;
  pointer-events: none;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark .eyebrow { color: #c4b9ff; background: color-mix(in srgb, #8b85ff 20%, transparent); border-color: color-mix(in srgb, #8b85ff 35%, transparent); }
.band-dark .eyebrow::before { background: #c4b9ff; box-shadow: 0 0 0 3px color-mix(in srgb, #8b85ff 30%, transparent); }
.band-dark h2 { color: #ffffff; }
.band-dark .section-lead { color: #c7cbdd; }
.band-dark .how { margin-top: 44px; }
.band-dark .how li {
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
  color: #eef0fa;
  box-shadow: none;
}
.band-dark .how li:hover { background: color-mix(in srgb, #ffffff 10%, transparent); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.band-dark .how h3 { color: #ffffff; }
.band-dark .how p { color: #c7cbdd; }
.band-dark .how span { background: #ffffff; color: #0f1222; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.band-dark .fineprint { color: #a5aac1; text-align: center; margin-top: 28px; }
.band-dark .fineprint a { color: #c4b9ff; }
.center { text-align: center; }
@media (max-width: 820px) { .band-dark { padding: 48px 24px; } }

/* ───── CTA band ───── */
.band-cta { padding: 56px 0; border-top: 1px solid var(--line); }
.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}
.cta-reassure { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cta-reassure li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 15px; }
.cta-reassure svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.cta-card {
  padding: 32px;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(80% 100% at 100% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
    var(--surface);
}
@media (max-width: 820px) {
  .cta-shell { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta-card { padding: 24px; }
}

/* ───── Multi-column site footer (home) ───── */
.home footer { background: transparent; backdrop-filter: none; padding: 0; border-top: 0; }
.site-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: left;
}
.site-foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text);
}
.site-foot-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.site-foot-brand .brand-mark svg { width: 18px; height: 18px; }
.site-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.site-foot-nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-foot-nav a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .site-foot { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 24px 20px 40px; justify-items: center; }
  .site-foot-nav { justify-content: center; }
}

/* =========================================================================
   Interactive demo, collapsed form fields, floating chat button
   ========================================================================= */

.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.seg { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.seg:hover { color: var(--text); }
.seg.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 30%, transparent); }



.slot.is-blank { background: transparent; border: 1px dashed color-mix(in srgb, var(--err) 55%, transparent); }
mark.is-linked, .slot.is-linked { outline: 2px solid var(--accent); outline-offset: 1px; }
mark, .slot { transition: outline-color .15s; }


.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.chat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .15s, filter .15s; }
.chat-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.chat-btn svg { width: 20px; height: 20px; }
.chat-telegram { background: #229ed9; }
.chat-whatsapp { background: #25a244; }
@media (max-width: 520px) { .chat-btn span { display: none; } .chat-btn { padding: 13px; } }

.cta-card .button.block { margin-top: 24px; }

/* =========================================================================
   Problem badges, access timeline icons, hero micro-text
   ========================================================================= */
.problem-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 12%, transparent); }
.problem-badge svg { width: 26px; height: 26px; }
.problem-row { align-items: start; }

.how span svg { width: 20px; height: 20px; }
.how-step { margin: 2px 0 0 !important; font-size: 11.5px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; }
.how-step + h3 { margin-top: 4px; }
.band-dark .how-step { color: #c4b9ff !important; }


/* =========================================================================
   Copyright badge under the hero headline
   ========================================================================= */
.cipo-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 16px 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); max-width: 100%; }
.cipo-seal { width: 42px; height: 42px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong), 0 4px 10px rgba(10, 15, 40, .14); }
.cipo-badge strong { display: block; font-family: var(--font-heading); font-size: 14.5px; letter-spacing: -.01em; color: var(--text); line-height: 1.2; }
.cipo-badge span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .cipo-seal { width: 36px; height: 36px; } .cipo-badge { padding: 10px 14px 10px 10px; gap: 10px; } .cipo-badge strong { font-size: 14px; } .cipo-badge span { font-size: 12px; } }

.tabs { flex-wrap: wrap; row-gap: 6px; }
.tabs .segmented { margin: 0 8px 10px auto; align-self: center; }

/* Hero columns start at the same line, so the exam label and the video language switch sit level */
.home .hero-split { align-items: start; }
.home .hero-split .eyebrow { margin-top: 2px; }
@media (max-width: 820px) { .home .hero-split .eyebrow { margin-top: 0; } }

/* The section already has a top border; the first row must not add a second line under it */
.problem-row:first-child { border-top: 0; }


/* =========================================================================
   Hero visual: the method as a short looping animation
   Base styles show the finished state; the keyframes play the story on top,
   so with reduced motion the visual is simply the finished picture.
   ========================================================================= */
.hero-visual { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.hv-stage { position: relative; padding: 6px 4px 22px; }
.hv-stage::before { content: ""; position: absolute; inset: -8% -10%; z-index: -1; background: radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%); filter: blur(14px); }
.hv-card { position: relative; padding: 18px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hv-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hv-card p[lang="fr"] { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.55; color: var(--text); }
.hv-question { animation: hvFloat 7s ease-in-out infinite; }
.hv-structure { margin-top: 0; animation: hvFloat 7s ease-in-out -3.5s infinite; padding-bottom: 28px; }

.hv-key { padding: 0 4px; border-radius: 4px; color: #141826; background: linear-gradient(#ffe66b, #ffe66b) no-repeat left center / 100% 100%; animation: hvKey 10s ease-in-out infinite; }
.hv-key-b { animation-delay: .4s; }

.hv-link { position: relative; height: 46px; margin: 0 auto; width: 2px; background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--accent) 50%, transparent) 0 5px, transparent 5px 10px); }
.hv-dot { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 4px color-mix(in srgb, #ffd84d 30%, transparent); opacity: 0; animation: hvDot 10s ease-in-out infinite; }
.hv-dot-b { margin-left: -5px; animation-delay: .25s; }
.hv-dot-a { margin-left: -5px; }

.hv-slot { display: inline-grid; vertical-align: baseline; }
.hv-blank, .hv-fill { grid-area: 1 / 1; font-style: normal; font-weight: 600; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.hv-blank { color: var(--err); border: 1px dashed color-mix(in srgb, var(--err) 55%, transparent); opacity: 0; animation: hvBlank 10s ease-in-out infinite; }
.hv-fill { color: var(--err); background: color-mix(in srgb, var(--err-soft) 70%, transparent); animation: hvFill 10s ease-in-out infinite; }

.hv-lines { display: grid; gap: 8px; margin-top: 14px; }
.hv-lines span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(100deg, var(--line) 30%, color-mix(in srgb, var(--accent) 22%, var(--line)) 50%, var(--line) 70%) 0 0 / 220% 100%; animation: hvShimmer 2.8s linear infinite; }
.hv-lines span:nth-child(1) { width: 100%; }
.hv-lines span:nth-child(2) { width: 88%; animation-delay: -.6s; }
.hv-lines span:nth-child(3) { width: 58%; animation-delay: -1.2s; }

.hv-badge { position: absolute; right: 18px; bottom: -15px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 18px color-mix(in srgb, var(--ok) 35%, transparent); animation: hvBadge 10s cubic-bezier(.3,1.5,.5,1) infinite; }
.hv-badge svg { width: 15px; height: 15px; }

.hv-demo { display: flex; align-items: center; gap: 12px; margin: 22px auto 0; padding: 8px 20px 8px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s; }
.hv-demo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.hv-demo small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.hv-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.hv-play svg { width: 16px; height: 16px; margin-left: 2px; }
.hv-demo:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-sm); }

@keyframes hvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hvKey { 0%, 8% { background-size: 0% 100%; } 17%, 90% { background-size: 100% 100%; } 96%, 100% { background-size: 0% 100%; } }
@keyframes hvDot { 0%, 19% { opacity: 0; top: 0; } 21% { opacity: 1; top: 0; } 31% { opacity: 1; top: calc(100% - 10px); } 33%, 100% { opacity: 0; top: calc(100% - 10px); } }
@keyframes hvBlank { 0%, 36% { opacity: 1; transform: none; } 43%, 91% { opacity: 0; transform: translateY(-6px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes hvFill { 0%, 36% { opacity: 0; transform: translateY(7px); } 46%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(7px); } }
@keyframes hvBadge { 0%, 56% { opacity: 0; transform: scale(.6) translateY(8px); } 63%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes hvShimmer { to { background-position: -220% 0; } }

/* Demo video dialog */
.demo-dialog { width: min(420px, calc(100vw - 24px)); padding: 16px; }
.demo-dialog .demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-dialog .video-switch { margin: 0; }
.demo-dialog video { display: block; width: 100%; max-height: calc(100vh - 170px); aspect-ratio: 640 / 1140; border-radius: 14px; background: #0b0d1e; object-fit: contain; margin: 0 auto; }
.demo-caption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Page load: hero content rises in, one piece after another */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.home .hero-split > div:first-child > * { animation: riseIn var(--enter) var(--ease-out) both; }
.home .hero-split > div:first-child > :nth-child(2) { animation-delay: calc(1 * var(--stagger)); }
.home .hero-split > div:first-child > :nth-child(3) { animation-delay: calc(2 * var(--stagger)); }
.home .hero-split > div:first-child > :nth-child(4) { animation-delay: calc(3 * var(--stagger)); }
.home .hero-split > div:first-child > :nth-child(5) { animation-delay: calc(4 * var(--stagger)); }
.home .hero-split > div:first-child > :nth-child(6) { animation-delay: calc(5 * var(--stagger)); }
.home .hero-visual { animation: riseIn var(--enter) .2s var(--ease-out) both; }

/* Scroll reveal (classes are added and removed by script, so a page without it stays fully visible) */
body .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--enter) var(--ease-out), transform var(--enter) var(--ease-out); will-change: opacity, transform; }
body .reveal.in { opacity: 1; transform: none; }

/* Reading progress and menu highlight */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 80; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); }
.nav-anchors a.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }

/* Light sweep across primary buttons on hover */
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s ease; }
.button:hover::after { transform: translateX(130%); }

@media (max-width: 820px) { .hero-visual { max-width: 400px; } }
@media (prefers-reduced-motion: reduce) {
  body .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .hv-dot { display: none; }
}
.hv-demo { text-align: left; }

@media (max-width: 680px) { .stat-strip > div:first-child { padding-left: 8px; } }
@media (max-width: 520px) { .hero-visual { max-width: none; } }

/* Chat buttons: round, icon only, at every width */
.chat-btn { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
.chat-btn svg { width: 26px; height: 26px; }
.chat-btn span { display: none; }


/* =========================================================================
   FAQ: questions on the left, a "still have a question" card on the right
   ========================================================================= */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: stretch; margin-top: 24px; }
.faq-layout .faq { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; margin-top: 0; max-width: none; }
.faq-aside { position: static; padding: 24px; border-radius: var(--radius-lg); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.faq-aside h3 { margin-top: 20px; font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.faq-aside p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.faq-actions .button svg { width: 18px; height: 18px; }
.faq-wa { background: #25a244; box-shadow: 0 6px 16px rgba(37, 162, 68, .3); }
.faq-tg { background: #229ed9; box-shadow: 0 6px 16px rgba(34, 158, 217, .3); }

.chat-demo { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.cd-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.cd-q { justify-self: end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-bottom-right-radius: 5px; animation: cdIn 9s ease-in-out infinite; }
.cd-a { justify-self: start; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-bottom-left-radius: 5px; box-shadow: var(--shadow-xs); animation: cdAnswer 9s ease-in-out infinite; }
.cd-typing { display: flex; opacity: 0; justify-self: start; gap: 5px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); animation: cdTyping 9s ease-in-out infinite; }
.cd-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: cdDot 1s ease-in-out infinite; }
.cd-typing i:nth-child(2) { animation-delay: .15s; }
.cd-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes cdIn { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 6%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes cdTyping { 0%, 14% { opacity: 0; } 17%, 32% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes cdAnswer { 0%, 34% { opacity: 0; transform: translateY(8px) scale(.96); } 42%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes cdDot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 820px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .faq-aside { position: static; } }

.cd-q { grid-row: 1; grid-column: 1; }
.cd-a, .cd-typing { grid-row: 2; grid-column: 1; align-self: start; }



/* =========================================================================
   FAQ side: a Reader page with the account name running across it
   ========================================================================= */
.rm-window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-md); }
.rm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rm-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.rm-bar > span:nth-child(1) { background: #ff6b5f; }
.rm-bar > span:nth-child(2) { background: #ffc13d; }
.rm-bar > span:nth-child(3) { background: #3ccf6b; }
.rm-bar em { margin-left: 8px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--text-soft); }
.rm-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 11.5px; font-weight: 700; }
.rm-lock svg { width: 12px; height: 12px; }
.rm-page { position: relative; padding: 20px 18px; height: 190px; overflow: hidden; background: #fff; }
.rm-lines { display: grid; gap: 11px; }
.rm-lines span { display: block; height: 8px; border-radius: 4px; background: #e6e8f0; }
.rm-lines span:nth-child(1) { width: 52%; height: 11px; background: #cfd3e3; }
.rm-lines span:nth-child(2) { width: 100%; }
.rm-lines span:nth-child(3) { width: 94%; }
.rm-lines span:nth-child(4) { width: 98%; }
.rm-lines span:nth-child(5) { width: 70%; }
.rm-lines span:nth-child(6) { width: 100%; }
.rm-lines span:nth-child(7) { width: 86%; }
.rm-watermark { position: absolute; inset: -40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='210' height='110'><text x='105' y='60' text-anchor='middle' transform='rotate(-24 105 55)' font-family='Inter,Arial,sans-serif' font-size='14' font-weight='600' fill='rgb(79,70,229)' fill-opacity='.32'>you@example.com</text></svg>"); background-size: 210px 110px; animation: rmDrift 16s linear infinite; }
.rm-scan { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 16%, transparent), transparent); animation: rmScan 4.5s ease-in-out infinite; }
@keyframes rmDrift { to { background-position: 210px 110px; } }
@keyframes rmScan { 0% { transform: translateY(-70px); } 100% { transform: translateY(260px); } }
@media (prefers-reduced-motion: reduce) { .rm-watermark, .rm-scan { animation: none; } }

/* =========================================================================
   The Reader section
   ========================================================================= */
.reader-visual { position: relative; }
.reader-visual::before { content: ""; position: absolute; inset: -10% -6%; z-index: -1; background: radial-gradient(60% 55% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%); filter: blur(14px); }
.reader-visual .rm-window { box-shadow: var(--shadow-lg); }
.reader-visual .rm-page { height: 300px; padding: 26px 24px; }
.reader-visual .rm-lines { gap: 14px; }
.reader-visual .rm-lines span { height: 9px; }
.reader-visual .rm-lines span:nth-child(1) { height: 13px; }
@media (max-width: 820px) { .reader-visual .rm-page { height: 240px; } }
.rm-lines span:nth-child(8) { width: 96%; }
.rm-lines span:nth-child(9) { width: 90%; }
.rm-lines span:nth-child(10) { width: 100%; }
.rm-lines span:nth-child(11) { width: 64%; }
.rm-lines span:nth-child(12) { width: 94%; }

/* Polish pass */
@media (min-width: 681px) {
  .stat-strip { width: fit-content; max-width: 100%; grid-template-columns: repeat(4, max-content); justify-content: start; }
  .stat-strip > div { padding: 0 22px; }
  .stat-strip > div:first-child { padding-left: 0; }
  .stat-strip > div:last-child { padding-right: 0; }
  .stat-strip dd { white-space: nowrap; }
}
.home .sample-foot { padding: 16px 32px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 760px) { .home .sample-foot { padding: 14px 22px 18px; } }


@media (min-width: 821px) {
  .home .hero-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
  .home .hero-visual { align-self: center; }
}
.hero-split h1 { font-size: clamp(32px, 4.6vw, 50px); }

/* =========================================================================
   Dashboard
   ========================================================================= */
.dash main { max-width: 1060px; }
.dash .topbar { max-width: 1060px; }
.dash-narrow { max-width: 640px; margin: 0 auto; }
.dash-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 28px 0 30px; }
.dash-title h1 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin-top: 10px; }
.dash-title p { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 34em; }
.dash-progress { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dash-progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.dash-progress-top b { color: var(--text); }
.dash-bar { height: 10px; margin-top: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dash-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); transform-origin: 0 50%; animation: barGrow var(--enter) var(--ease-out) both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dash-aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.dash-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dash-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.dash-card p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.dash-help .button { margin-top: 16px; }
.dash-status { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.dash-status li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--text); flex-wrap: wrap; }
.dash-status li em { flex-basis: 100%; margin: -8px 0 0 34px; font-style: normal; font-weight: 500; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.dash-status li > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line-strong); color: #fff; }
.dash-status li.is-ok > span { background: var(--ok); border: 0; box-shadow: 0 4px 10px color-mix(in srgb, var(--ok) 30%, transparent); }
.dash-status li > span svg { width: 12px; height: 12px; }
.dash-status li.is-todo { color: var(--muted); }

@media (max-width: 880px) {
  .dash-head, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-aside { position: static; }
}



.support-alt { margin-top: 14px; text-align: center; font-size: 14px; }
.support-alt a { color: var(--accent); font-weight: 600; }

/* Level scale in the feature tile: a plain graphic, deliberately not button-shaped */
.level-scale { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 340px; margin-top: auto; padding-top: 24px; user-select: none; cursor: default; }
.ls { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ls i { display: block; height: 6px; margin-bottom: 8px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 20%, var(--line)); }
.ls-3 { color: var(--accent-strong); }

.hv-label { display: flex; justify-content: space-between; gap: 12px; }
.hv-label .hv-task { font-weight: 700; color: var(--muted); }

/* Progress cue for the level scale: the bars fill in one after another, then the loop restarts */
.level-progress { margin-top: auto; padding-top: 24px; }
.ls-caption { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.level-progress .level-scale { margin-top: 22px; padding-top: 0; }
.ls i { position: relative; overflow: hidden; }

/* Both hero examples occupy the same cell; the hidden one still takes up its space, so the card height never changes */
.hv-stack { display: grid; }
.hv-stack > .hv-var { grid-area: 1 / 1; }
.hv-stage[data-example="writing"] .hv-var-s, .hv-stage[data-example="speaking"] .hv-var-w { visibility: hidden; }

/* Level scale: B2 fills, then B2+, then C1, with a marker riding the leading edge and an arrow at the end.
   One 7s timeline drives everything, so the three steps always stay in order. */
.ls i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; }
.ls-1 i::after { animation: lsFill1 7s var(--ease-out) infinite; }
.ls-2 i::after { animation: lsFill2 7s var(--ease-out) infinite; }
.ls-3 i::after { animation: lsFill3 7s var(--ease-out) infinite; }
.ls-runner { position: absolute; top: -4px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); opacity: 0; animation: lsRun 7s var(--ease-out) infinite; }
@keyframes lsFill1 { 0% { transform: scaleX(0); opacity: 1; } 20%, 92% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lsFill2 { 0%, 20% { transform: scaleX(0); opacity: 1; } 40%, 92% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lsFill3 { 0%, 40% { transform: scaleX(0); opacity: 1; } 60%, 92% { transform: scaleX(1); opacity: 1; } 99%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lsRun { 0% { left: 0; opacity: 0; } 3% { left: 0; opacity: 1; } 20% { left: calc((100% - 20px) / 3); opacity: 1; } 40% { left: calc((100% - 20px) * 2 / 3 + 10px); opacity: 1; } 60% { left: 100%; opacity: 1; } 68%, 100% { left: 100%; opacity: 0; } }

/* Labels light up only when their own bar is full (final state is the base, so reduced motion shows all reached) */
.ls { color: var(--accent-strong); }
.ls-1 { animation: lsLabel1 7s var(--ease-out) infinite; }
.ls-2 { animation: lsLabel2 7s var(--ease-out) infinite; }
.ls-3 { animation: lsLabel3 7s var(--ease-out) infinite; }
@keyframes lsLabel1 { 0%, 8% { color: var(--muted); } 20%, 92% { color: var(--accent-strong); } 99%, 100% { color: var(--muted); } }
@keyframes lsLabel2 { 0%, 28% { color: var(--muted); } 40%, 92% { color: var(--accent-strong); } 99%, 100% { color: var(--muted); } }
@keyframes lsLabel3 { 0%, 48% { color: var(--muted); } 60%, 92% { color: var(--accent-strong); } 99%, 100% { color: var(--muted); } }

/* =========================================================================
   Merged section: Why CLB 7 + the real obstacle
   ========================================================================= */
.band-routes .route-grid { margin-top: 26px; }
.band-routes .route-card { padding: 22px 24px; }
.obstacle { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.obstacle-title { margin-top: 12px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.025em; }
.obstacle-rows .problem-row:first-child { padding-top: 0; }
@media (max-width: 820px) { .obstacle { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; padding-top: 28px; } }


/* The Reader section (its own section again) */
.reader-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.reader-copy > h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -.025em; line-height: 1.1; margin-top: 14px; }
.reader-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.reader-steps li { display: flex; gap: 14px; align-items: flex-start; }
.reader-steps li > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent); }
.reader-steps h3 { font-size: 17px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
.reader-steps p { margin-top: 3px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.rm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.rm-chips li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: 13px; font-weight: 600; }
@media (max-width: 820px) { .reader-split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
