/* FluentMiles website, creator center and admin: one stylesheet.
   Dark ("Night Drive") is the default, matching the app; light follows the visitor's setting.
   Colors come from brand/BRAND.md. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0A1330;            /* Night Drive */
  --surface: #14244F;
  --surface-2: #1F3270;
  --line: #2A3D7A;
  --text: #F5F7FF;          /* Headlight */
  --text-2: #A9B4D6;        /* Fog */
  --mint: #2EE6A6;          /* Signal Mint (fills) */
  --mint-text: #2EE6A6;
  --on-mint: #0A1330;
  --amber: #FFB627;         /* Lane Amber */
  --amber-text: #FFB627;
  --danger: #FF5A5F;
  --on-danger: #0A1330;
  --focus: #FFB627;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.25);

  --display: "Outfit", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-s: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F5F7FF;
    --surface: #FFFFFF;
    --surface-2: #E8EDFA;
    --line: #D3DBF0;
    --text: #0A1330;
    --text-2: #4A5680;
    --mint-text: #087A59;
    --amber-text: #985A00;
    --danger: #D12F36;
    --on-danger: #FFFFFF;
    --focus: #087A59;
    --shadow: 0 1px 2px rgba(10, 19, 48, 0.06), 0 10px 28px rgba(10, 19, 48, 0.08);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F7FF; --surface: #FFFFFF; --surface-2: #E8EDFA; --line: #D3DBF0;
  --text: #0A1330; --text-2: #4A5680; --mint-text: #087A59; --amber-text: #985A00;
  --danger: #D12F36; --on-danger: #FFFFFF; --focus: #087A59;
  --shadow: 0 1px 2px rgba(10, 19, 48, 0.06), 0 10px 28px rgba(10, 19, 48, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mint-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 16px; }
.stack-l { display: grid; gap: 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 40px; color: var(--text-2); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h4 { font-family: var(--display); color: var(--text); margin: 0 0 8px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-tight { padding-block: 32px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 700 1rem var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-ghost { background: transparent; color: var(--mint-text); padding: 0 10px; }
.btn-s { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Forms */
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .hint { font-weight: 400; color: var(--text-2); font-size: 0.85rem; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 400 1rem var(--body); }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--mint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form { display: grid; gap: 16px; max-width: 560px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill-good { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint-text); }
.pill-warn { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-text); }
.pill-bad { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }

/* Notices */
.notice { border-radius: var(--radius-s); padding: 12px 16px; background: var(--surface-2); color: var(--text); }
.notice-good { background: color-mix(in srgb, var(--mint) 16%, var(--surface)); }
.notice-bad { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Long-form text (legal, help) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }

/* App shell (creator center and admin) */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { border-right: 1px solid var(--line); padding: 20px 12px; display: grid; align-content: start; gap: 4px; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-2); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.side a:hover { background: var(--surface); color: var(--text); }
.side a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.main { padding: 28px var(--gutter) 64px; min-width: 0; }
.main > .stack-l { max-width: 1000px; }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 8px var(--gutter); }
  .side a { white-space: nowrap; }
}
.stat { display: grid; gap: 4px; }
.stat .value { font-family: var(--display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--text-2); font-size: 0.9rem; }
.empty { text-align: center; color: var(--text-2); padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--radius-s); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--mint); width: 0; transition: width 0.2s; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); }

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

/* Public pages */
/* Everything below styles the public pages (home, creators, support, legal, 404). Body has class "pub". */

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--mint); color: var(--on-mint); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 10px; }

/* Header on public pages: 44px tap targets, wrap instead of scrolling on phones */
.pub .nav a { min-height: 44px; display: inline-flex; align-items: center; }
.pub .nav .nav-signin { color: var(--text); border: 1px solid var(--line); margin-left: 4px; }
.pub .nav .nav-signin:hover { background: var(--surface); }
@media (max-width: 720px) {
  .pub .site-header { position: static; }
  .pub .nav { flex-wrap: wrap; overflow-x: visible; gap: 2px; margin-inline: -8px; width: calc(100% + 16px); }
  .pub .nav a { padding: 8px 10px; font-size: 0.92rem; }
  .pub .nav .nav-signin { margin-left: 0; }
}

/* Footer */
.pub .site-footer .footer-h { font-family: var(--display); color: var(--text); margin: 0 0 8px; font-size: 1rem; }
.pub .site-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-about { display: grid; gap: 10px; align-content: start; }
.footer-about .brand { color: var(--text); }
.footer-legal { margin-top: 12px; }

/* Shared bits */
.ico { width: 24px; height: 24px; flex: none; }
.section-head { display: grid; gap: 12px; max-width: 760px; }
.section-band { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-block: 1px solid var(--line); }
.btn-store[aria-disabled="true"] { opacity: 1; background: var(--surface); color: var(--text); border-color: var(--line); cursor: default; }
.btn-store[aria-disabled="true"]:hover { filter: none; }

.step-ico, .feature-ico, .trait-ico, .earn-ico, .rule-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px; color: var(--mint-text);
  background: color-mix(in srgb, var(--mint) 14%, transparent);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.hero .wrap { position: relative; }
.lanes {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background:
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--amber) 55%, transparent) 0 34px, transparent 34px 78px) 6% 0 / 3px 200% no-repeat,
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--amber) 55%, transparent) 0 34px, transparent 34px 78px) 94% 0 / 3px 200% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--bg) 25%, var(--bg) 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, var(--bg) 25%, var(--bg) 75%, transparent);
  animation: lanes-roll 3.2s linear infinite;
}
@keyframes lanes-roll { from { background-position: 6% -78px, 94% -78px; } to { background-position: 6% 0, 94% 0; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 4.6rem); }
.hero-copy { justify-items: start; }
.hero-narrow { max-width: 820px; justify-items: start; }

/* "Night" palette: the Drive Mode phone and highway signs stay dark in both themes, like the app's Drive Mode. */
.phone, .exit-sign { --scr-bg: var(--bg); --scr-fg: var(--text); --scr-fg2: var(--text-2); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .phone, :root:not([data-theme="dark"]) .exit-sign {
    --scr-bg: var(--text); --scr-fg: var(--bg); --scr-fg2: color-mix(in srgb, var(--bg) 70%, var(--text));
  }
}
:root[data-theme="light"] .phone, :root[data-theme="light"] .exit-sign {
  --scr-bg: var(--text); --scr-fg: var(--bg); --scr-fg2: color-mix(in srgb, var(--bg) 70%, var(--text));
}

.hero-visual { position: relative; width: min(100%, 440px); justify-self: center; padding-top: 112px; }
@media (min-width: 920px) { .hero-visual { justify-self: end; } }

.phone {
  position: relative; z-index: 1; margin-left: auto; width: clamp(224px, 64vw, 272px); aspect-ratio: 9 / 18.6;
  border-radius: 44px; padding: 10px;
  background: color-mix(in srgb, var(--scr-fg) 16%, var(--scr-bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--scr-fg) 22%, transparent), 0 30px 60px color-mix(in srgb, var(--scr-bg) 45%, transparent);
}
.phone-screen {
  height: 100%; border-radius: 35px; background: var(--scr-bg); color: var(--scr-fg);
  display: flex; flex-direction: column; align-items: center; padding: 30px 18px 22px; gap: 10px; overflow: hidden;
}
.drive-label { align-self: flex-start; color: var(--scr-fg2); font-weight: 600; font-size: 0.95rem; }
.orb { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: auto 0 6px; }
.orb-halo { position: absolute; inset: -14px; border-radius: 50%; background: color-mix(in srgb, var(--mint) 22%, transparent); animation: orb-pulse 1.6s ease-in-out infinite; }
.orb-core { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--mint); color: var(--on-mint); }
.orb-ico { width: 52px; height: 52px; }
@keyframes orb-pulse { 0%, 100% { transform: scale(0.9); opacity: 0.55; } 50% { transform: scale(1.08); opacity: 1; } }
.drive-status { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; text-align: center; }
.drive-progress { width: 100%; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--scr-fg) 14%, transparent); margin-top: auto; overflow: hidden; }
.drive-progress > span { display: block; height: 100%; width: 58%; background: var(--mint); border-radius: inherit; }
.drive-miles { align-self: flex-start; color: var(--amber); font-weight: 700; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.drive-hint { color: var(--scr-fg2); font-weight: 600; font-size: 0.85rem; }

/* Highway exit sign */
.exit-sign { position: absolute; left: 0; top: 0; z-index: 2; display: grid; justify-items: start; width: min(64%, 236px); }
.exit-tab {
  justify-self: end; margin-right: 14px; padding: 4px 12px; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--scr-fg); background: color-mix(in srgb, var(--mint) 36%, var(--scr-bg));
  border: 2px solid var(--scr-fg); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.exit-panel {
  position: relative; display: grid; gap: 2px; width: 100%; padding: 14px 52px 14px 16px; border-radius: 12px;
  color: var(--scr-fg); background: color-mix(in srgb, var(--mint) 36%, var(--scr-bg));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--mint) 36%, var(--scr-bg)), inset 0 0 0 5px var(--scr-fg), 0 14px 30px color-mix(in srgb, var(--scr-bg) 35%, transparent);
}
.exit-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.exit-sub { font-size: 0.82rem; font-weight: 600; opacity: 0.9; }
.exit-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
.exit-post { width: 100%; height: 26px; background:
  linear-gradient(var(--scr-fg2), var(--scr-fg2)) 28% 0 / 6px 100% no-repeat,
  linear-gradient(var(--scr-fg2), var(--scr-fg2)) 72% 0 / 6px 100% no-repeat; opacity: 0.7; }

/* How it works */
.wave { display: flex; align-items: center; gap: 5px; height: 56px; max-width: 520px; color: var(--mint); }
.wave span { flex: 1; min-width: 3px; max-width: 8px; height: 30%; border-radius: 99px; background: currentColor; opacity: 0.8; transform-origin: center; animation: wave-bob 1.4s ease-in-out infinite; }
.wave span:nth-child(2n) { height: 55%; animation-delay: -0.3s; }
.wave span:nth-child(3n) { height: 85%; animation-delay: -0.6s; }
.wave span:nth-child(5n) { height: 45%; animation-delay: -0.9s; }
.wave span:nth-child(7n) { height: 100%; animation-delay: -1.1s; }
@keyframes wave-bob { 0%, 100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: grid; gap: 10px; align-content: start; }

/* Languages */
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.lang-card { display: grid; gap: 2px; align-content: start; padding: 18px 18px 16px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--mint); min-width: 0; }
.lang-native { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.lang-name { font-weight: 700; }
.lang-variety { color: var(--text-2); font-size: 0.92rem; }
.lang-roman { margin-top: 8px; justify-self: start; font-size: 0.8rem; font-weight: 700; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 14%, transparent); padding: 2px 10px; border-radius: 999px; }
.request-line { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.request-line .ico { color: var(--mint-text); margin-top: 1px; }
.request-line a { font-weight: 700; display: inline-block; padding-block: 10px; margin-block: -10px; }

/* Course */
.route-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.route-stop { display: grid; gap: 2px; align-content: start; justify-items: start; padding-top: 14px; border-top: 4px dashed color-mix(in srgb, var(--amber) 70%, transparent); }
.route-free { border-top-style: solid; border-top-color: var(--mint); }
.route-num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text); }
.route-free .route-num { color: var(--mint-text); }
.route-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.route-stop .pill { margin-top: 4px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 20px; }

/* Safety */
.trait { display: flex; gap: 14px; align-items: flex-start; }
.trait h3 { margin-bottom: 6px; }
.safety-note { border-left: 4px solid var(--amber); }

/* Pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); align-items: stretch; }
.price { position: relative; display: grid; gap: 12px; align-content: start; }
.price-best { border: 2px solid var(--mint); }
.price-flag { position: absolute; top: 20px; right: 20px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.price-amount .per { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--text-2); }
.price-trial { color: var(--mint-text); font-weight: 700; }
.price-note { max-width: 80ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.42em; width: 12px; height: 7px; border-left: 2.5px solid var(--mint-text); border-bottom: 2.5px solid var(--mint-text); transform: rotate(-45deg); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--mint-text); border-bottom: 2.5px solid var(--mint-text); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--mint-text); }
.faq-a { padding: 0 4px 18px; color: var(--text-2); max-width: 72ch; display: grid; gap: 10px; }
.faq-a strong { color: var(--text); }

/* Final call to action */
.cta { text-align: center; }
.cta-inner { display: grid; gap: 18px; justify-items: center; }
.cta-road { width: 4px; height: 64px; border-radius: 2px; background: repeating-linear-gradient(to bottom, var(--amber) 0 14px, transparent 14px 26px); }
.cta .lede { margin-inline: auto; }
.cta-row { justify-content: center; }

/* Creators */
.who-grid { gap: 28px; }
.earn { display: grid; gap: 10px; align-content: start; }
.lane-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; position: relative; }
.lane-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.lane-step::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 4px; width: 4px; background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--amber) 70%, transparent) 0 10px, transparent 10px 20px); }
.lane-step:last-child { padding-bottom: 0; }
.lane-step:last-child::before { display: none; }
.lane-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint); color: var(--on-mint); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.lane-step h3 { margin: 10px 0 4px; }
.rule { display: grid; gap: 10px; align-content: start; }
.rule-safety { border: 2px solid var(--amber); background: color-mix(in srgb, var(--amber) 9%, var(--surface)); }
.rule-safety .rule-ico { color: var(--amber-text); background: color-mix(in srgb, var(--amber) 18%, transparent); }
.pay-grid { align-items: start; }
.pay-list { gap: 12px; font-size: 1.05rem; }

/* Page hero (support, legal) */
.page-hero { padding-block: clamp(40px, 6vw, 72px) 24px; }

/* Support */
.chip-nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.chip-nav a:hover { background: var(--surface-2); }
.help-layout { display: grid; gap: clamp(40px, 6vw, 64px); padding-top: 24px; }
.help-group { display: grid; gap: 14px; scroll-margin-top: 88px; }
.help-group h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.contact { display: grid; gap: 24px; scroll-margin-top: 88px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.contact-form { max-width: none; }
.contact-form .btn { justify-self: start; }
.email-line { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.1rem; }
.email-line .ico { color: var(--mint-text); }
.selectable { -webkit-user-select: all; user-select: all; overflow-wrap: anywhere; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; }

/* Legal */
.legal-layout { display: grid; gap: 32px; padding-top: 8px; }
@media (min-width: 980px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; } .legal-toc { position: sticky; top: 88px; } }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; }
.legal-toc-h { font-family: var(--display); font-weight: 700; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; color: var(--text-2); font-size: 0.92rem; }
.legal-toc a { display: inline-block; padding-block: 4px; color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal h2 { scroll-margin-top: 88px; }
.legal section:first-of-type h2 { margin-top: 24px; }
.legal-callout { border-left: 4px solid var(--amber); background: var(--surface); padding: 14px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.legal a { overflow-wrap: anywhere; }

/* 404 */
.notfound-inner { justify-items: start; max-width: 720px; }
.exit-sign-404 { position: static; width: min(100%, 280px); }
.pub .brand { min-height: 44px; }
.pub .site-footer li a { min-height: 44px; }
.pub .site-footer ul { gap: 0; }
.legal-toc ol { gap: 0; }
.legal-toc a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lang-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 760px) { .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lang-roman { border-radius: 8px; padding: 3px 8px; line-height: 1.35; }
.trait h3, .feature h3, .step h3 { text-wrap: pretty; }
.lanes { left: max(2px, calc((100% - var(--max)) / 2 - 40px)); right: max(2px, calc((100% - var(--max)) / 2 - 40px)); background-position: 0 0, 100% 0; animation-name: lanes-roll-edge; }
@keyframes lanes-roll-edge { from { background-position: 0 -78px, 100% -78px; } to { background-position: 0 0, 100% 0; } }
.wrap.hero-narrow { max-width: var(--max); }
.hero-narrow > * { max-width: 820px; }
.who-grid, .rules-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
