/* =====================================================================
   GetApps Product Suite — Shared Base
   Source of truth: sites/_shared/css/base.css
   Do NOT edit the per-site copies under assets/css/ — run tools/sync-shared.sh
   Tokens → Base → Layout → Controls → Components → Ads → Motion → A11y
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --ink:        #06070B;
  --ink-2:      #0A0C12;
  --ink-3:      #0F111A;
  --surface:    rgba(255, 255, 255, 0.028);
  --surface-2:  rgba(255, 255, 255, 0.055);
  --surface-3:  rgba(255, 255, 255, 0.085);
  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.16);

  --text:       #EEF0F6;
  --muted:      #98A1B2;
  --faint:      #646D7E;

  --brand:      #6D5EF8;
  --brand-soft: #8B7DFF;
  --brand-2:    #22D3EE;
  --brand-3:    #FF7A59;
  --ok:         #3DDC97;
  --warn:       #FFB86B;
  --bad:        #FF6B6B;

  --grad:      linear-gradient(115deg, var(--brand) 0%, #8B5CF6 32%, var(--brand-2) 100%);
  --grad-warm: linear-gradient(120deg, var(--brand-3), #FFB86B);

  --glow:     0 0 0 1px rgba(109, 94, 248, .35), 0 18px 60px -18px rgba(109, 94, 248, .55);
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-2: 0 30px 80px -30px rgba(0,0,0,.85);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --pad:   clamp(20px, 5vw, 40px);
  --maxw:  1240px;
  --nav-h: 68px;

  --font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease:    cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --ink:        #FBFBFD;
  --ink-2:      #FFFFFF;
  --ink-3:      #F3F4F9;
  --surface:    rgba(10, 12, 20, 0.022);
  --surface-2:  rgba(10, 12, 20, 0.05);
  --surface-3:  rgba(10, 12, 20, 0.08);
  --line:       rgba(10, 12, 20, 0.10);
  --line-2:     rgba(10, 12, 20, 0.18);
  --text:       #0A0C14;
  --muted:      #566072;
  --faint:      #838C9E;
  --brand:      #5A46F0;
  --brand-soft: #6D5EF8;
  --shadow-1:   0 1px 2px rgba(16,20,40,.06), 0 10px 30px -16px rgba(16,20,40,.24);
  --shadow-2:   0 40px 90px -40px rgba(16,20,40,.32);
  --glow:       0 0 0 1px rgba(90, 70, 240, .22), 0 18px 60px -22px rgba(90, 70, 240, .45);
}

/* Per-product accent. Set data-product on <html>.
   The fallback must come first: :root and [data-product] have equal
   specificity, so whichever is written last would otherwise win. */
:root                     { --accent: #6D5EF8; --accent-2: #22D3EE; }
[data-product="interest"] { --accent: #3DDC97; --accent-2: #22D3EE; }
[data-product="pdf"]      { --accent: #FF7A59; --accent-2: #FFB86B; }
[data-product="json"]     { --accent: #22D3EE; --accent-2: #6D5EF8; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.62;
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.42rem); letter-spacing: -0.028em; }
h4 { font-size: 1.02rem; letter-spacing: -0.022em; }
p  { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-size: .85rem; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 860px; }

.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5.5vw, 68px); }

.sec-head { max-width: 680px; margin-bottom: clamp(30px, 4vw, 50px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .705rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-text {
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { height: 1px; background: var(--line); border: 0; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* Ambient background wash */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(120px); opacity: .13;
  animation: drift 32s var(--ease-io) infinite alternate;
}
.aurora i:nth-child(1) { width: 42vw; height: 42vw; left: -14vw; top: -18vw; background: var(--brand); }
.aurora i:nth-child(2) { width: 36vw; height: 36vw; right: -12vw; top: 4vh;  background: var(--accent); animation-delay: -11s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 36vw;  top: 66vh;  background: var(--accent-2); animation-delay: -19s; opacity: .08; }
[data-theme="light"] .aurora i { opacity: .10; }
/* Keep the wash behind the fold so hero type never loses contrast. */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 55%, transparent) 0%, transparent 45%);
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw, 6vh, 0) scale(1.18); }
}

/* ---------- 4. Buttons / chips ---------- */
.btn {
  --bg: var(--brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-size: .93rem; font-weight: 600; letter-spacing: -0.01em;
  background: var(--bg); color: #fff; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .45s var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:hover:not(:disabled)::after { opacity: 1; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::after { background: var(--surface-2); }
.btn--accent { background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #04060A; }
.btn--accent::after { background: linear-gradient(115deg, var(--accent-2), var(--accent)); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .83rem; }
.btn--block { width: 100%; }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 11px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .8rem; color: var(--muted); backdrop-filter: blur(12px);
}
.chip b { color: var(--text); font-weight: 600; }

.tag {
  font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.tag--live { background: rgba(61,220,151,.13); color: var(--ok); }
.tag--beta { background: rgba(34,211,238,.13); color: var(--brand-2); }
.tag--warn { background: rgba(255,184,107,.14); color: var(--warn); }
.tag--bad  { background: rgba(255,107,107,.14); color: var(--bad); }

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.stuck {
  height: 58px;
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__in { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.035em; }
.brand__tld { color: var(--faint); font-weight: 500; }
.brand__mark { flex: none; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__link { padding: 8px 13px; border-radius: var(--r-pill); font-size: .89rem; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-pill); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s, box-shadow .3s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.theme-btn .moon { display: none; }
[data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .moon { display: block; }

/* Cross-product switcher */
.switcher { position: relative; }
.switcher__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--r-pill); font-size: .87rem; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s; }
.switcher__btn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.switcher__btn svg:last-child { transition: transform .3s var(--ease); }
.switcher[open] .switcher__btn svg:last-child { transform: rotate(180deg); }
.switcher__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 288px; padding: 8px;
  border-radius: var(--r-md); background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 20;
}
.switcher[open] .switcher__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.switcher__item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-sm); transition: background .25s; }
.switcher__item:hover { background: var(--surface-2); }
.switcher__item b { display: block; font-size: .9rem; font-weight: 600; }
.switcher__item span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.switcher__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }

.burger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.burger i { width: 15px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 6900;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  backdrop-filter: blur(20px);
  padding: 28px var(--pad); display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer a { padding: 14px 4px; font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }

/* ---------- 6. Panels & cards ---------- */
.panel {
  position: relative; border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  backdrop-filter: blur(14px);
}
.panel--pad { padding: clamp(20px, 3vw, 30px); }
.panel--flush { background: var(--ink-2); backdrop-filter: none; }

.card {
  position: relative; padding: 24px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 7. Form controls ---------- */
.field { display: block; margin-bottom: 18px; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field__label span:first-child { font-size: .86rem; font-weight: 500; color: var(--muted); }
.field__hint { font-size: .74rem; color: var(--faint); font-family: var(--mono); }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--ink-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease), background .3s;
  font-size: .95rem;
}
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { font-family: var(--mono); font-size: .85rem; line-height: 1.6; resize: vertical; min-height: 160px; }
.select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398A1B2' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }

.input-money { position: relative; }
.input-money .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; color: var(--faint); pointer-events: none; font-family: var(--mono); }
.input-money .input { padding-left: 46px; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Range slider */
.range { width: 100%; height: 28px; background: none; appearance: none; cursor: grab; }
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 40%), var(--surface-3) var(--fill, 40%));
}
.range::-moz-range-track { height: 5px; border-radius: 3px; background: var(--surface-3); }
.range::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; margin-top: -6.5px;
  border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 3px var(--ink), 0 2px 10px rgba(0,0,0,.5);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--ink); }
.range:hover::-webkit-slider-thumb { transform: scale(1.18); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px color-mix(in oklab, var(--accent) 45%, transparent); }

/* Segmented tabs */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); position: relative; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  position: relative; z-index: 1; padding: 9px 17px; border-radius: var(--r-pill);
  font-size: .87rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.seg__btn[aria-selected="true"] { color: var(--text); }
.seg__ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0;
  border-radius: var(--r-pill); background: var(--ink-2);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .87rem; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 40px; height: 23px; border-radius: var(--r-pill); background: var(--surface-3); position: relative; transition: background .3s var(--ease); flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--text); transition: transform .3s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(17px); background: #04060A; }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent); }

/* ---------- 8. Tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.tbl th, table.tbl td { padding: 12px 16px; text-align: right; white-space: nowrap; }
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }
table.tbl thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--ink-2); color: var(--muted);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
table.tbl tbody tr { border-bottom: 1px solid var(--line); transition: background .2s; }
table.tbl tbody tr:last-child { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--surface); }
table.tbl td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.tbl th.sortable { cursor: pointer; user-select: none; }
table.tbl th.sortable:hover { color: var(--text); }
table.tbl th.sortable::after { content: "↕"; opacity: .35; margin-left: 6px; font-size: .8em; }
table.tbl th.sortable[data-dir="asc"]::after  { content: "↑"; opacity: 1; color: var(--accent); }
table.tbl th.sortable[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--accent); }

/* ---------- 9. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; text-align: left; font-family: var(--display); font-weight: 600;
  font-size: 1.03rem; letter-spacing: -0.025em; transition: color .3s;
}
.faq__q:hover { color: var(--accent); }
.faq__q i { flex: none; width: 20px; height: 20px; position: relative; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.7px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.open .faq__q i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); font-size: .95rem; padding-bottom: 22px; max-width: 74ch; }

/* ---------- 10. Toast ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 9200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 460px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 11px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2);
  font-size: .88rem; font-weight: 500;
  animation: toastIn .45s var(--ease) both;
}
.toast.out { animation: toastOut .35s var(--ease) both; }
.toast__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.toast--err .toast__dot { background: var(--bad); }
.toast--warn .toast__dot { background: var(--warn); }
@keyframes toastIn  { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- 11. Ad slots (reserved space, no network code) ---------- */
/* Heights are reserved up front so filling a slot never shifts layout. */
.ad {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; overflow: hidden;
  border-radius: var(--r-md);
  contain: layout paint;
}
.ad[hidden] { display: none; }
.ad__inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ad__ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, var(--surface) 9px 18px),
    var(--ink-2);
  color: var(--faint); font-family: var(--mono);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}
.ad__ph b { font-weight: 500; color: var(--faint); opacity: .75; letter-spacing: .1em; }
.ad__label {
  display: block; text-align: center; margin-bottom: 6px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--faint); opacity: .6;
}
/* Reserved geometry per format */
.ad[data-fmt="leaderboard"]  { height: 100px; max-width: 970px; }
.ad[data-fmt="rectangle"]    { height: 280px; max-width: 336px; }
.ad[data-fmt="sidebar"]      { height: 600px; max-width: 300px; }
.ad[data-fmt="native"]       { height: 132px; max-width: 100%; }
.ad[data-fmt="footer"]       { height: 90px;  max-width: 728px; }
.ad-rail { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 1180px) { .ad[data-desktop-only] { display: none; } }
@media (max-width: 720px) {
  .ad[data-fmt="leaderboard"] { height: 100px; max-width: 320px; }
  .ad[data-fmt="footer"]      { height: 100px; max-width: 320px; }
  .ad[data-fmt="native"]      { height: 250px; max-width: 300px; }
}

/* ---------- 12. Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px) 34px; margin-top: 40px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px 28px; margin-bottom: 44px; }
.foot__blurb { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.foot h4 { font-family: var(--font); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 15px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; }
.foot li a { font-size: .9rem; color: var(--muted); transition: color .25s, transform .3s var(--ease); display: inline-block; }
.foot li a:hover { color: var(--text); transform: translateX(3px); }
.foot__base { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }

/* ---------- 13. Motion ---------- */
/* Gated on .js (set by the inline head script) so that with JavaScript
   disabled or broken every section is simply visible rather than blank. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal="fade"] { transform: none; }

.progress { position: fixed; top: 0; left: 0; z-index: 8000; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.shimmer {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 37%, var(--surface) 63%);
  background-size: 400% 100%; animation: shimmer 1.5s linear infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 14. Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .hide-sm { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- 15. A11y ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .nav, .drawer, .ad, .foot, .aurora, .progress, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}
