/* NEXTWISE — design tokens (see DESIGN.md) */
:root {
  --paper: #f6f5fa;      /* page background */
  --paper-2: #eceaf4;    /* tinted bands, quiet surfaces */
  --card: #ffffff;       /* raised surfaces on paper */
  --ink: #16152e;        /* main text */
  --muted: #5d5b73;      /* secondary text, 6.3:1 on paper */
  --line: #dcd9e8;       /* borders and rules */
  --night: #0e0e1b;      /* console, contact band, footer */
  --night-2: #1a1930;    /* raised surfaces on night */
  --night-line: #2c2a4a;
  --on-night: #ecebf6;
  --on-night-muted: #a9a7c2;
  --purple: #763adf;     /* primary: buttons, links, focus */
  --purple-ink: #5b25c2; /* hover/pressed */
  --purple-soft: #efe8fd;/* tint behind purple-led sections */
  --purple-night: #b79bff;/* purple text on night */
  --amber: #f59f0a;      /* money and outcomes, on night or as fill */
  --amber-ink: #9a5900;  /* money text on paper, 5.2:1 */
  --live: #1f9d6b;

  --f-sans: "Commissioner Variable", "Commissioner", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-ar: "IBM Plex Sans Arabic", "Commissioner Variable", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --wrap: 1200px;
  --shadow: 0 1px 0 rgba(22, 21, 46, 0.04), 0 12px 32px -16px rgba(22, 21, 46, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "FLAR" 0;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--f-ar); }
img { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-ink); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-variation-settings: "FLAR" 100; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-s); }
.skip:focus { top: var(--s3); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-s);
  font: 600 16px/1.2 var(--f-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-ink); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--amber { background: var(--amber); color: var(--night); }
.btn--amber:hover { background: #ffb43a; color: var(--night); }
.btn--quiet { background: transparent; color: var(--on-night-muted); padding-inline: var(--s3); }
.btn--quiet:hover { color: var(--on-night); }
.btn--sm { min-height: 40px; font-size: 15px; padding: 0 var(--s4); }
.btn--lg { min-height: 56px; font-size: 18px; padding: 0 var(--s6); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.mark { font-weight: 800; letter-spacing: .2em; color: var(--purple); text-decoration: none; font-size: 17px; }
.mark--light { color: var(--purple-night); }
.nav { display: flex; gap: var(--s5); margin-inline-start: var(--s4); }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.bar-tools { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s2); }

.pick { position: relative; }
.pick summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; font-size: 14px; font-weight: 600; background: var(--card); }
.pick summary::-webkit-details-marker { display: none; }
.pick summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-inline-start: 4px; opacity: .6; }
.pick[open] summary { border-color: var(--purple); }
.pick-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: var(--s3); min-width: 240px; z-index: 60; }
.pick-pop--langs { width: min(420px, 86vw); }
.pick-pop--langs ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.pick-label { font-size: 13px; color: var(--muted); padding: 0 var(--s2) var(--s2); }
.pick-pop a { display: flex; align-items: center; gap: var(--s2); padding: 8px var(--s2); border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-size: 15px; }
.pick-pop a:hover { background: var(--paper-2); }
.pick-pop a[aria-current] { color: var(--purple); font-weight: 700; }
.flag { font-size: 16px; line-height: 1; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(118, 58, 223, .14), rgba(118, 58, 223, 0) 70%);
  pointer-events: none;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: start; position: relative; }
.hero-title { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; font-variation-settings: "FLAR" 100; max-width: 13ch; }
.hero-sub { margin-top: var(--s5); font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--s5); margin: var(--s7) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat dd { margin: 0; white-space: nowrap; font-size: 28px; font-weight: 750; letter-spacing: -0.02em; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* The console: the one bold thing on the page */
.console { background: var(--night); color: var(--on-night); border-radius: var(--r-l); box-shadow: 0 40px 80px -40px rgba(14, 14, 27, .6), inset 0 0 0 1px var(--night-line); overflow: hidden; position: relative; }
.console::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; background: linear-gradient(140deg, rgba(183, 155, 255, .6), rgba(183, 155, 255, 0) 35%, rgba(245, 159, 10, 0) 70%, rgba(245, 159, 10, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px var(--s4); border-bottom: 1px solid var(--night-line); font: 500 12px var(--f-mono); color: var(--on-night-muted); }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-line); }
.console-bar span { margin-inline-start: var(--s2); }
.console-body { padding: var(--s6); }
.console-title { font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.console-sub { margin-top: var(--s2); color: var(--on-night-muted); font-size: 15px; }
.diag-form { margin-top: var(--s5); display: grid; gap: var(--s3); }
.diag-form textarea, .ask-form input {
  width: 100%; resize: vertical; min-height: 96px; padding: var(--s4); border-radius: var(--r-m);
  background: var(--night-2); color: #fff; border: 1px solid var(--night-line);
  font: 400 16px/1.5 var(--f-mono);
}
.diag-form textarea::placeholder { color: #77759a; }
.diag-form textarea:focus { outline: none; border-color: var(--purple-night); box-shadow: 0 0 0 3px rgba(183, 155, 255, .25); }
.chips-label { font-size: 13px; color: var(--on-night-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { text-align: start; border: 1px solid var(--night-line); background: transparent; color: var(--on-night); border-radius: 999px; padding: 6px 12px; font: 400 13px/1.35 var(--f-sans); cursor: pointer; }
.chip:hover { border-color: var(--purple-night); color: #fff; }
.console-note { font-size: 12.5px; color: var(--on-night-muted); line-height: 1.45; }
.diag-out { margin-top: var(--s2); }
.diag-q { font: 400 14px/1.5 var(--f-mono); color: var(--purple-night); padding-bottom: var(--s3); border-bottom: 1px dashed var(--night-line); }
.diag-q::before { content: "> "; color: var(--amber); }
.diag-text { margin-top: var(--s4); font-size: 15.5px; line-height: 1.6; }
.diag-text h4 { font-size: 13px; letter-spacing: .02em; color: var(--amber); margin: var(--s5) 0 var(--s2); font-weight: 700; }
.diag-text h4:first-child { margin-top: 0; }
.diag-text h5 { font-size: 16px; color: #fff; margin: var(--s4) 0 var(--s1); }
.diag-text p { margin: var(--s2) 0; color: var(--on-night); }
.diag-text ul { margin: var(--s2) 0; display: grid; gap: 6px; }
.diag-text li { padding-inline-start: 18px; position: relative; color: var(--on-night); }
.diag-text li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--purple-night); }
.diag-text strong { color: #fff; }
.thinking { display: flex; align-items: center; gap: var(--s3); font: 400 14px var(--f-mono); color: var(--on-night-muted); }
.thinking b { display: inline-block; width: 8px; height: 16px; background: var(--amber); animation: blink 1s steps(2) infinite; }
.caret::after { content: ""; display: inline-block; width: 8px; height: 1em; background: var(--amber); vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.diag-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.diag-err { color: #ffb4a8; }

/* Sections */
.sec { padding: var(--s10) 0; }
.sec--tint { background: var(--paper-2); }
.sec--line { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s7); align-items: end; margin-bottom: var(--s8); }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }

/* Work */
.cases { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: var(--s5); }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.case--lead { grid-row: 1 / span 2; background: var(--night); color: var(--on-night); border-color: var(--night); padding: var(--s7); }
.case--more { grid-column: 1 / -1; background: transparent; border-style: dashed; flex-direction: row; align-items: baseline; gap: var(--s5); flex-wrap: wrap; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.case-name { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.case--lead .case-name { color: var(--purple-night); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.status--live { background: rgba(31, 157, 107, .16); color: #7fe0b5; }
.status--live::before { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.case-sector { font-size: 14px; color: var(--muted); }
.case--lead .case-sector { color: var(--on-night-muted); }
.case-title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-top: var(--s2); }
.case--lead .case-title { font-size: clamp(26px, 2.6vw, 34px); color: #fff; font-variation-settings: "FLAR" 100; }
.case-body { color: var(--muted); }
.case--lead .case-body { color: var(--on-night-muted); }
.case-quote { margin: var(--s4) 0 0; padding-inline-start: var(--s4); border-inline-start: 2px solid var(--amber); font-size: 18px; line-height: 1.5; color: var(--on-night); }
.case-facts { margin-top: auto; padding-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
.case-facts li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.case--lead .case-facts li { background: var(--night-2); color: var(--amber); font-weight: 600; }

/* Systems */
.sys { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s6); align-items: start; }
.sys-tabs { display: flex; flex-direction: column; gap: 2px; }
.sys-tab { display: flex; align-items: baseline; gap: var(--s3); text-align: start; padding: var(--s4); border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font: 600 18px/1.3 var(--f-sans); cursor: pointer; border-inline-start: 2px solid var(--line); border-radius: 0; }
.sys-tab:hover { color: var(--ink); }
.sys-tab[aria-selected="true"] { color: var(--ink); border-inline-start-color: var(--purple); background: var(--card); }
.sys-n { font: 500 13px var(--f-mono); color: var(--purple); min-width: 1.5em; }
.sys-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s7); min-height: 380px; }
.sys-name { font-size: 30px; font-variation-settings: "FLAR" 100; }
.sys-desc { margin-top: var(--s3); font-size: 18px; color: var(--muted); max-width: 52ch; }
.flow-label { margin-top: var(--s7); font-size: 13px; color: var(--muted); }
.flow { margin-top: var(--s3); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.flow::before { content: ""; position: absolute; top: 9px; inset-inline: 9px; height: 2px; background: var(--line); }
.flow::after { content: ""; position: absolute; top: 6px; inset-inline-start: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 159, 10, .25); animation: travel 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes travel { from { inset-inline-start: 0; } to { inset-inline-start: calc(100% - 8px); } }
.node { position: relative; padding-top: 30px; padding-inline-end: var(--s2); font-size: 14px; line-height: 1.35; font-weight: 600; }
.node::before { content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--purple); }
.node:last-child::before { background: var(--purple); }

/* How */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 1px; background: var(--line); }
.step { position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--purple); color: var(--purple); font-weight: 700; position: relative; }
.step:last-child .step-n { background: var(--purple); color: #fff; }
.step-when { margin-top: var(--s4); font: 500 13px var(--f-mono); color: var(--amber-ink); }
.step-title { margin-top: var(--s1); font-size: 24px; }
.step-body { margin-top: var(--s2); color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s8); }
.why h2 { position: sticky; top: 110px; align-self: start; }
.why-list { display: grid; gap: var(--s7); }
.why-item h3 { font-size: 26px; }
.why-item p { margin-top: var(--s2); color: var(--muted); font-size: 18px; max-width: 54ch; }

/* Market */
.mkt { background: var(--purple-soft); }
.mkt-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.mkt-in > div > p { margin: var(--s4) 0 var(--s6); color: var(--muted); font-size: 18px; max-width: 50ch; }
.mkt-points { display: grid; gap: 0; background: var(--card); border-radius: var(--r-l); padding: var(--s3) var(--s6); box-shadow: var(--shadow); }
.mkt-points li { padding: var(--s4) 0 var(--s4) 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.mkt-points li:last-child { border-bottom: 0; }
.mkt-points li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 23px; width: 12px; height: 7px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s6); display: flex; flex-direction: column; }
.tier--pop { border: 2px solid var(--purple); box-shadow: var(--shadow); }
.tier-pop { font-size: 13px; font-weight: 700; color: var(--purple); margin-bottom: var(--s3); }
.tier-name { font-size: 24px; }
.tier-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.tier-price { margin-top: var(--s5); font-size: 38px; font-weight: 750; letter-spacing: -0.03em; color: var(--amber-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tier-terms { font-size: 14px; color: var(--muted); margin-top: var(--s2); min-height: 2.8em; }
.tier-feats { margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); flex: 1; }
.tier-feats li { padding-inline-start: 26px; position: relative; font-size: 15.5px; }
.tier-feats li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg); }
.fine { margin-top: var(--s5); color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.qas { margin-top: var(--s6); border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: var(--s5) 40px var(--s5) 0; font-weight: 650; font-size: 19px; position: relative; }
html[dir="rtl"] .qa summary { padding: var(--s5) 0 var(--s5) 40px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 14px; height: 2px; background: var(--purple); box-shadow: none; }
.qa summary::before { content: ""; position: absolute; inset-inline-end: 12px; top: calc(50% - 6px); width: 2px; height: 14px; background: var(--purple); transition: transform .2s; }
.qa[open] summary::before { transform: scaleY(0); }
.qa p { padding: 0 0 var(--s5); color: var(--muted); max-width: 62ch; }
.ask { position: sticky; top: 100px; background: var(--night); color: var(--on-night); border-radius: var(--r-l); padding: var(--s6); }
.ask h3 { color: #fff; font-size: 24px; }
.ask-sub { margin-top: var(--s2); color: var(--on-night-muted); font-size: 15px; }
.ask-form { display: flex; gap: var(--s2); margin-top: var(--s5); }
.ask-form input { min-height: 48px; resize: none; font-family: var(--f-sans); }
.ask-form input:focus { outline: none; border-color: var(--purple-night); box-shadow: 0 0 0 3px rgba(183, 155, 255, .25); }
.ask-log { margin-top: var(--s4); display: grid; gap: var(--s4); max-height: 420px; overflow: auto; }
.ask-q { font: 400 14px var(--f-mono); color: var(--purple-night); }
.ask-q::before { content: "> "; color: var(--amber); }
.ask-a { font-size: 15.5px; color: var(--on-night); }
.ask-a p + p { margin-top: var(--s2); }

/* Contact band and footer */
.cta-band { background: var(--night); color: var(--on-night); padding: var(--s10) 0; position: relative; overflow: clip; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(118, 58, 223, .35), transparent 70%); pointer-events: none; }
.cta-in { position: relative; }
.cta-in h2 { max-width: 20ch; }
.cta-in h2 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.03em; }
.cta-in > p { margin: var(--s5) 0 var(--s6); color: var(--on-night-muted); font-size: 19px; max-width: 56ch; }
.cta-note { margin-top: var(--s5); color: var(--on-night-muted); font-size: 15px; }
.cta-note a { color: var(--purple-night); }
.foot { background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--night-line); padding: var(--s8) 0 var(--s6); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: var(--s7); }
.foot-brand p:last-child { margin-top: var(--s2); max-width: 32ch; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: var(--s3); }
.foot a { color: var(--on-night-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot ul { display: grid; gap: 6px; }
.foot-langs { grid-template-columns: repeat(7, auto); justify-content: start; gap: 6px 14px !important; font: 500 13px var(--f-mono); }
.foot-legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); font-size: 13px; }

/* Live translation toast */
.toast[hidden] { display: none; }
.toast { position: fixed; inset-inline-start: var(--s4); bottom: var(--s4); z-index: 80; background: var(--night); color: var(--on-night); padding: var(--s3) var(--s4); border-radius: var(--r-m); box-shadow: var(--shadow); font-size: 14px; display: flex; gap: var(--s3); align-items: center; max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: var(--purple-night); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1s steps(2) infinite; flex: none; }

/* Page-load moment: headline and console arrive once */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-sub, .hero-ctas, .stats { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-sub { animation-delay: .08s; } .hero-ctas { animation-delay: .16s; } .stats { animation-delay: .24s; }
  .console { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow::after, .thinking b, .caret::after, .toast .dot { animation: none; }
}

/* RTL */
.stat dd, .tier-price, .case-facts li, .step-when { unicode-bidi: plaintext; }
html[dir="rtl"] .flow::after { animation-name: travel; }
html[dir="rtl"] .diag-q::before, html[dir="rtl"] .ask-q::before { content: "< "; }

/* Tablet */
@media (max-width: 1060px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-title { max-width: 16ch; }
  .sec-head { grid-template-columns: 1fr; gap: var(--s4); }
  .faq, .why, .mkt-in { grid-template-columns: 1fr; gap: var(--s6); }
  .why h2, .ask { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); }
  .steps::before { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 0; background: var(--paper); padding: var(--s4) var(--s5) var(--s5); border-bottom: 1px solid var(--line); margin: 0; gap: var(--s3); }
  .nav.is-open a { font-size: 18px; padding: var(--s2) 0; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: var(--s4); }
  .bar-in { gap: var(--s2); height: 64px; }
  .nav.is-open { top: 64px; }
  .mark { font-size: 15px; letter-spacing: .14em; }
  .bar-cta { display: none; }
  .pick-cur { max-width: 7ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #pick-market .pick-cur { display: none; }
  .hero { padding: var(--s6) 0 var(--s8); }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; gap: var(--s4); }
  .stat { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--s3); }
  .stat dd { font-size: 22px; min-width: 5.5ch; }
  .console-body { padding: var(--s5); }
  .sec { padding: var(--s9) 0; }
  .sec-head { margin-bottom: var(--s6); }
  .cases { grid-template-columns: 1fr; }
  .case--lead { grid-row: auto; padding: var(--s6); }
  .case--more { flex-direction: column; }
  .sys { grid-template-columns: 1fr; }
  .sys-tabs { flex-direction: row; overflow-x: auto; gap: var(--s2); padding-bottom: var(--s2); scrollbar-width: thin; }
  .sys-tab { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
  .sys-tab[aria-selected="true"] { border-color: var(--purple); }
  .sys-panel { padding: var(--s5); min-height: 0; }
  .sys-name { font-size: 24px; }
  .flow { grid-template-columns: 1fr; gap: var(--s3); }
  .flow::before { top: 9px; bottom: 9px; inset-inline: 7px auto; width: 2px; height: auto; }
  .flow::after { display: none; }
  .node { padding-top: 0; padding-inline-start: 30px; }
  .node::before { top: 1px; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier-terms { min-height: 0; }
  .ask-form { flex-direction: column; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-langs { grid-template-columns: repeat(6, auto); }
  .pick-pop { position: fixed; inset-inline: var(--s3); top: 72px; min-width: 0; width: auto; }
  .pick-pop--langs { width: auto; }
  .pick-pop--langs ul { grid-template-columns: repeat(2, 1fr); }
}
