/* /home.css: the Tasilab homepage, English "/" and Arabic "/ar/" (direction D).
   Slice 1, 2026-11-22: tokens, type, nav, footer, buttons, pills, focus ring.
   Slice 2, 2026-11-22: the hero and the stage (tabs, the Majlis and Lab panels,
   their cards), filled by /home.js and /home-chart.js.
   Slice 3, 2026-11-22: the Orbit and Launchpad panels (static HTML; no script)
   and their motion.
   Slice 4, 2026-11-22: the sections under the stage (trust band, paper trading
   with its price chips, pricing, FAQ). The pages' legacy inline section CSS and
   its token aliases are gone.
   Slice 6, 2026-11-22 (D548): the hero's TASI candles frame, beside the text on
   desktop and under it on phones.

   One file for both locales. Arabic differences hang off html:lang(ar) and [dir=rtl].

   Colour tokens are the share-card system, app/services/share_card_system.py THEMES
   (HANDOFF section 4): light on :root, dark under prefers-color-scheme (D516: the
   visitor's own system setting, no toggle, no JavaScript). Hex only. The Majlis chart
   (slice 2) hands these to a canvas library, and canvas libraries reject oklch() and
   color-mix() (memory: reference_oklch_breaks_vendored_chart_libs).
   tests/js/test_home_css.mjs holds the light and dark sets to the same names and to
   the share-card values.

   Motion lives only inside @media (prefers-reduced-motion: no-preference). */

/* ── tokens: light ─────────────────────────────────────────────────────── */
:root{
  --surface:#FBF9F3;
  --panel:#F3F0E9;
  --panel2:#ECE8DE;
  --rule:#DED9CC;
  --rule2:#A9A291;
  --grid:#EAE5D9;
  --fg:#15181C;
  --fg2:#2A2E35;
  --mut:#5F5C54;
  --acc:#A8854B;
  --acct:#785F36;
  --on-acc:#1A1206;
  --up:#2D6852;
  --down:#A04A3C;
  --bar:#BDB5A2;
  --tile:#15181C;
  --tile-fg:#F3F0E9;
  --focus:#785F36;
}

/* ── tokens: dark ──────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark){
  :root{
    --surface:#0E1116;
    --panel:#171B21;
    --panel2:#1F242C;
    --rule:#2B323C;
    --rule2:#5C6573;
    --grid:#1D232B;
    --fg:#F3F0E9;
    --fg2:#CFD1D6;
    --mut:#9AA1AC;
    --acc:#C6A368;
    --acct:#D8BC8B;
    --on-acc:#1A1206;
    --up:#4FA37C;
    --down:#C56B5C;
    --bar:#566070;
    --tile:#C6A368;
    --tile-fg:#0E1116;
    --focus:#C6A368;
  }
}

/* A block that cannot be made readable in dark by tokens alone keeps the light
   palette here until it is replaced. Slice 1 pinned #product; slice 2 removed
   #product, so nothing on the pages uses the class today. It stays because
   tests/js/test_home_css.mjs holds it to the light set (a later slice that
   needs a pinned block gets a correct one). */
.hp-pin-light{
  --surface:#FBF9F3;
  --panel:#F3F0E9;
  --panel2:#ECE8DE;
  --rule:#DED9CC;
  --rule2:#A9A291;
  --grid:#EAE5D9;
  --fg:#15181C;
  --fg2:#2A2E35;
  --mut:#5F5C54;
  --acc:#A8854B;
  --acct:#785F36;
  --on-acc:#1A1206;
  --up:#2D6852;
  --down:#A04A3C;
  --bar:#BDB5A2;
  --tile:#15181C;
  --tile-fg:#F3F0E9;
  --focus:#785F36;
  color-scheme:light;
  background:var(--surface);
  color:var(--fg);
}

/* ── type ──────────────────────────────────────────────────────────────── */
:root{color-scheme:light dark}
html{
  --num:"Source Serif 4","Source Serif Pro",Georgia,serif;   /* big figures, both locales */
  --serif:"Source Serif 4","Source Serif Pro",Georgia,serif;
  --sans:"Inter Tight","Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --hw:400;      /* headline weight */
  --hlh:1.1;     /* headline line-height */
  --lh:1.55;     /* text line-height */
}
/* Arabic: Cairo everywhere, a heavier headline, taller lines. */
html:lang(ar){
  --serif:"Cairo","Cairo Fallback","Cairo Fallback Android","Tajawal",sans-serif;
  --sans:"Cairo","Cairo Fallback","Cairo Fallback Android","Tajawal","Inter Tight","Helvetica Neue",sans-serif;
  --mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,Menlo,"Cairo",monospace;
  --hw:700;
  --hlh:1.4;
  --lh:1.8;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--surface);color:var(--fg);font-family:var(--sans);-webkit-font-smoothing:antialiased}
.wrap{max-width:1240px;margin-inline:auto;padding-inline:32px}
@media (max-width:720px){.wrap{padding-inline:20px}}

/* Keyboard focus: visible on every surface, both themes. */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:999px;border:1px solid transparent;font-family:var(--sans);font-size:15px;font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer}
html:lang(ar) .btn{font-weight:600}
.btn-primary{background:var(--tile);color:var(--tile-fg);border-color:var(--tile)}
.btn-primary:hover{opacity:.88}
.btn-ghost{background:transparent;color:var(--fg);border-color:var(--rule2)}
.btn-ghost:hover{background:var(--panel)}
.btn-sm{height:40px;padding:0 18px;font-size:14.5px}
.btn-lg{height:52px;padding:0 26px;font-size:16px}

/* ── pills ─────────────────────────────────────────────────────────────── */
.pill{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--acc);border-radius:999px;padding:4px 16px;color:var(--acct);font-size:14px;line-height:1.4;white-space:nowrap}
.pill.mut{border-color:var(--rule2);color:var(--fg2)}
/* The BETA mark beside the wordmark: a small mono pill. */
.hp-beta{display:inline-flex;align-items:center;border:1px solid var(--rule2);border-radius:999px;padding:2px 8px;font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:.08em;line-height:1.4;color:var(--mut);white-space:nowrap}

/* ── founding banner (text, dismiss and storage key unchanged; restyled) ─ */
.hp-founding{position:relative;z-index:60;background:var(--panel2);color:var(--fg);border-bottom:1px solid var(--rule);font-size:13px;line-height:1.5;font-weight:500;text-align:center;padding:10px 44px 10px 16px;padding-inline:16px 44px}
.hp-founding-x{position:absolute;top:6px;inset-inline-end:8px;background:transparent;color:var(--fg2);border:0;border-radius:4px;padding:6px 10px;font:inherit;font-size:16px;line-height:1;cursor:pointer}
.hp-founding-x:hover{color:var(--fg)}

/* ── nav ───────────────────────────────────────────────────────────────── */
.hp-nav{position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:1px solid var(--rule)}
.hp-nav .nav-row{display:flex;align-items:center;gap:36px;height:72px}
.hp-lockup{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--fg);text-decoration:none}
.hp-mark{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:var(--tile);color:var(--tile-fg)}
.hp-mark svg{display:block;width:24px;height:24px}
.hp-wm{font-family:var(--serif);font-size:23px;font-weight:500;letter-spacing:-.01em;line-height:1;white-space:nowrap}
html:lang(ar) .hp-wm{font-weight:700;letter-spacing:0}
.hp-lockup .hp-beta{margin-inline-start:2px}
.hp-nav .nav-links{display:flex;align-items:center;gap:28px;min-width:0}
.hp-nav .nav-link{font-size:15px;line-height:1.4;color:var(--fg2);text-decoration:none;white-space:nowrap}
.hp-nav .nav-link:hover{color:var(--fg)}
.hp-nav .nav-cta{display:flex;align-items:center;gap:18px;flex:none;margin-inline-start:auto}
.lang-toggle{display:inline-flex;align-items:center;border:1px solid var(--rule);border-radius:999px;padding:6px 14px;font-size:13.5px;line-height:1.4;color:var(--fg2);text-decoration:none;white-space:nowrap}
.lang-toggle:hover{color:var(--fg);border-color:var(--rule2)}
.nav-mobile-toggle{display:none;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--fg);cursor:pointer}
.nav-mobile-toggle:hover{background:var(--panel)}
.nav-mobile-toggle svg{display:block}
.nav-mobile-panel{display:none;flex-direction:column;position:absolute;top:100%;inset-inline:0;background:var(--surface);border-bottom:1px solid var(--rule);padding:4px 20px 12px;box-shadow:0 12px 24px rgba(0,0,0,.08)}
.nav-mobile-panel.open{display:flex}
.nav-mobile-panel a{padding:13px 0;font-size:15px;line-height:1.4;color:var(--fg);border-bottom:1px solid var(--rule);text-decoration:none}
.nav-mobile-panel a:last-child{border-bottom:0}

/* The full row needs about 890px in English and 990px in Arabic (measured
   2026-11-22, signed out); below 1081 the links move into the menu. With JavaScript off the menu button cannot open
   anything, so the menu's links show under the bar instead. */
@media (max-width:1080px){
  .hp-nav .nav-links{display:none}
  html.js .nav-mobile-toggle{display:inline-flex}
  html:not(.js) .nav-mobile-panel{display:flex;position:static;box-shadow:none;border-bottom:0;padding:0 20px 8px}
  html:not(.js) .hp-nav{position:relative}  /* a header that tall must not stick over the page */
}
/* Phones: Sign in moves into the menu, BETA steps aside. */
@media (max-width:760px){
  .hp-nav .nav-row{height:64px;gap:12px}
  .hp-nav .nav-cta{gap:10px}
  .hp-nav .nav-cta .nav-link{display:none}
  .hp-lockup .hp-beta{display:none}
}
/* Small phones: the lockup, the language pill, Start free (or, signed in, the
   wider «لوحة التحكم») and the menu button share what is left of 360-440px. */
@media (max-width:440px){
  .hp-nav .nav-row{gap:8px}
  .hp-nav .nav-cta{gap:6px}
  .hp-nav .hp-mark{width:28px;height:28px;border-radius:7px}
  .hp-nav .hp-mark svg{width:21px;height:21px}
  .hp-nav .hp-wm{font-size:20px}
  html:lang(ar) .hp-nav .hp-wm{font-size:19px}
  .hp-nav .hp-lockup{gap:8px}
  .lang-toggle{padding:6px 10px;font-size:13px}
  .hp-nav .btn-sm{padding:0 12px;font-size:14px}
  .nav-mobile-toggle{width:34px}
}
@media (max-width:380px){
  .hp-nav .nav-cta{gap:4px}
  .lang-toggle{padding:6px 8px}
  .hp-nav .btn-sm{padding:0 10px}
  .nav-mobile-toggle{width:32px}
}

/* ── footer ────────────────────────────────────────────────────────────── */
.hp-foot{border-top:1px solid var(--rule);padding:96px 0 48px;color:var(--fg)}
.hp-foot-cta{text-align:center}
.hp-foot-cta h2{margin:0;font-family:var(--serif);font-weight:var(--hw);font-size:46px;line-height:var(--hlh);letter-spacing:-.018em}
html:lang(ar) .hp-foot-cta h2{font-size:38px;letter-spacing:0}
.hp-foot-cta .cta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:36px}
.hp-foot-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:32px;margin-top:80px;padding-top:48px;border-top:1px solid var(--rule)}
.hp-foot-brand p{margin:14px 0 0;max-width:280px;font-size:14px;line-height:var(--lh);color:var(--mut)}
.hp-foot-title{margin:0 0 14px;font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--fg)}
html:lang(ar) .hp-foot-title{font-family:var(--sans);font-size:13.5px;font-weight:700;letter-spacing:0;text-transform:none}
.hp-foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hp-foot-col a{font-size:14px;line-height:var(--lh);color:var(--fg2);text-decoration:none}
.hp-foot-col a:hover{color:var(--fg)}
.hp-social{display:inline-block;margin-top:16px;font-size:14px;line-height:var(--lh);color:var(--fg2);text-decoration:none}
.hp-social:hover{color:var(--fg);text-decoration:underline}
.hp-foot-bottom{display:grid;justify-items:center;gap:12px;margin-top:40px;padding-top:24px;border-top:1px solid var(--rule);text-align:center}
.hp-foot-bottom .disc{margin:0;max-width:60em;font-size:13px;line-height:var(--lh);color:var(--mut)}
.hp-copy{font-family:var(--mono);font-size:12px;letter-spacing:.02em;color:var(--mut)}
html:lang(ar) .hp-copy{font-family:var(--sans);font-size:13px;letter-spacing:0}
@media (max-width:980px){.hp-foot-grid{grid-template-columns:1.5fr 1fr 1fr}}
@media (max-width:760px){
  .hp-foot{padding:64px 0 40px}
  .hp-foot-cta h2{font-size:32px}
  html:lang(ar) .hp-foot-cta h2{font-size:28px}
  .hp-foot-cta .cta{margin-top:26px}
  .hp-foot-cta .cta .btn{flex:1 1 100%}
  .hp-foot-grid{grid-template-columns:1fr 1fr;margin-top:56px;padding-top:36px}
  .hp-foot-brand{grid-column:1/-1}
}

/* ── hero (slice 2) ────────────────────────────────────────────────────── */
.hp-hero{padding:84px 0 72px}
.hp-hero-in{text-align:center}
.hp-h1{margin:0;font-family:var(--serif);font-weight:var(--hw);font-size:72px;line-height:1.06;letter-spacing:-.022em;color:var(--fg)}
html:lang(ar) .hp-h1{font-size:58px;line-height:1.35;letter-spacing:0}
.hp-sub{margin:24px auto 0;max-width:34em;font-size:20px;line-height:var(--lh);color:var(--fg2)}
.hp-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px}
.hp-hero-in .hp-cta,.hp-micro{justify-content:center}
.hp-micro{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:20px;font-size:13.5px;line-height:1.5;color:var(--mut)}
.hp-simchip{display:inline-flex;align-items:center;border:1px solid var(--rule2);border-radius:999px;padding:3px 12px;color:var(--fg2);white-space:nowrap}

/* ── the hero's TASI candles (slice 6, 2026-11-22, D548) ──────────────── */
/* Shown only with JavaScript (html.js is set in <head>, before this sheet):
   without it the hero is the text alone, as before the slice. Every row of
   the frame has a fixed height from the first paint (header, figure,
   switches, chart, caption), and the unavailable line sits over the chart's
   own box, so neither the data nor its failure moves anything. */
.hp-tasi{display:none}
html.js .hp-tasi{display:block}
.hp-tasi{margin:44px auto 0;max-width:760px;padding:18px 20px 12px;background:var(--panel);border:1px solid var(--rule);border-radius:18px;color:var(--fg);text-align:start}
.hp-tasi [hidden]{display:none!important}
.hp-tasi-head{display:flex;align-items:center;justify-content:space-between;gap:12px;height:22px;white-space:nowrap}
.hp-tasi-name{font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:.12em;line-height:22px;color:var(--fg)}
html:lang(ar) .hp-tasi-name{font-family:var(--sans);font-size:14.5px;font-weight:700;letter-spacing:0}
.hp-tasi-date{font-size:13.5px;line-height:22px;color:var(--mut)}
.hp-tasi-fig{display:flex;align-items:baseline;gap:14px;height:46px;margin-top:2px;white-space:nowrap}
.hp-tasi-close{font-family:var(--num);font-size:36px;font-weight:400;line-height:46px;letter-spacing:-.01em}
.hp-tasi-close bdi{font-family:var(--num)}
.hp-tasi-close small{font-size:.5em;letter-spacing:0}
.hp-tasi-chg{font-size:15px;font-weight:500;line-height:22px;color:var(--fg2)}
.hp-tasi-chg i{font-style:normal;font-size:.8em}
.hp-tasi-chg.up{color:var(--up)}
.hp-tasi-chg.dn{color:var(--down)}
.hp-tasi-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:10px}
.hp-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--rule);border-radius:999px;background:var(--surface)}
.hp-seg-b{height:28px;min-width:38px;padding:0 11px;border:0;border-radius:999px;background:none;font-family:var(--sans);font-size:13px;font-weight:500;line-height:28px;color:var(--fg2);white-space:nowrap;cursor:pointer}
html:lang(ar) .hp-seg-b{font-weight:600}
.hp-seg-b:hover{color:var(--fg)}
.hp-seg-b[aria-pressed="true"]{background:var(--tile);color:var(--tile-fg)}
.hp-seg-b:focus-visible{outline-offset:1px}
.hp-tasi-plot{position:relative;height:300px;margin-top:12px}
.hp-tasi-chart{position:absolute;inset:0}
.hp-tasi[data-state="off"] .hp-tasi-chart{visibility:hidden}
.hp-tasi-off{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0 16px;font-size:15px;line-height:1.5;color:var(--fg2);text-align:center}
.hp-tasi-cap{height:20px;margin-top:8px;font-size:13px;line-height:20px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* D579/D583: shown only while a session waits for its certified close (home.js tcNote). */
.hp-tasi-note{margin:2px 0 0;font-size:13px;line-height:20px;color:var(--mut)}
/* Desktop: the text at the start, the chart at the end (both mirror in
   Arabic through the grid; the canvas stays left to right). The text keeps
   its sizes; it is no longer centred. */
@media (min-width:1081px){
  html.js .hp-hero-in{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:56px;text-align:start}
  html.js .hp-hero-in .hp-sub{margin-inline:0}
  html.js .hp-hero-in .hp-cta,html.js .hp-hero-in .hp-micro{justify-content:flex-start}
  html.js .hp-tasi{margin:0;max-width:none}
}

/* ── stage: tabs and panels (slice 2: Majlis, Lab; slice 3: Orbit, Launchpad) */
.hp-stage{margin-top:64px}
.hp-stage [hidden]{display:none!important}
.hp-tabs{display:flex;justify-content:center;gap:6px;border-bottom:1px solid var(--rule);scroll-margin-top:88px}
.hp-tab{margin:0 0 -1px;padding:14px 28px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-family:var(--serif);font-size:22px;font-weight:var(--hw);line-height:1.3;color:var(--mut);white-space:nowrap;cursor:pointer}
html:lang(ar) .hp-tab{font-size:20px}
.hp-tab:hover{color:var(--fg)}
.hp-tab[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--acc)}
.hp-tab:focus-visible{outline-offset:-2px}
/* Without JavaScript the buttons could not switch anything: they hide, and
   every panel shows, stacked, Majlis first. With it, only the selected panel
   shows, from the first paint (html.js is set in <head>), so nothing shifts. */
html:not(.js) .hp-tabs{display:none}
html:not(.js) .hp-panel + .hp-panel{border-top:1px solid var(--rule)}
html.js .hp-panel:not(.is-active){display:none}
.hp-panel{display:grid;grid-template-columns:5fr 6fr;gap:72px;align-items:center;min-height:620px;padding:56px 8px 8px;scroll-margin-top:150px}
.hp-pt{min-width:0}
.hp-pv{min-width:0}
.hp-kick{margin:0 0 14px;font-family:var(--mono);font-size:12.5px;letter-spacing:.14em;line-height:1.4;text-transform:uppercase;color:var(--acct)}
html:lang(ar) .hp-kick{font-family:var(--sans);font-size:14px;letter-spacing:0;text-transform:none}
.hp-h2{margin:0;font-family:var(--serif);font-weight:var(--hw);font-size:54px;line-height:1.1;letter-spacing:-.018em;color:var(--fg);text-wrap:balance}
html:lang(ar) .hp-h2{font-size:44px;line-height:1.4;letter-spacing:0}
.hp-lede{margin:16px 0 0;max-width:38em;font-size:18px;line-height:var(--lh);color:var(--fg2)}
.hp-ticks{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:14px;font-size:17px;line-height:var(--lh);color:var(--fg2)}
/* Not a flex row (design audit F4, 2026-11-22): every inline element in a
   flex line becomes its own flex item, so the Arabic <bdi>10:00</bdi> got the
   14px gap on both sides. The dot is positioned instead, centred on line 1. */
.hp-ticks li{position:relative;padding-inline-start:21px}
.hp-ticks li::before{content:"";position:absolute;inset-inline-start:0;top:calc(.5em * var(--lh) - 3.5px);width:7px;height:7px;border-radius:50%;background:var(--acc)}
.hp-panel .hp-cta{justify-content:flex-start}
.hp-hint{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--mut)}

/* The Lab's five tools: icon and name. */
.hp-tools{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hp-tools li{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid var(--rule);border-radius:14px;padding:10px 14px;font-size:15.5px;line-height:1.4;color:var(--fg)}
.hp-tools b{font-weight:500;white-space:nowrap}
html:lang(ar) .hp-tools b{font-weight:600}
.hp-ico{flex:none;width:54px;height:30px;fill:none;stroke:var(--fg2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hp-ico .g{fill:var(--surface);stroke:var(--acc);stroke-width:2.2}
.hp-ico .gf{fill:var(--acc);stroke:none}
.hp-ico .f{fill:var(--bar);stroke:none}
.hp-ico .d{stroke-dasharray:3 4}
.hp-ico .dr{stroke-dasharray:1;stroke-dashoffset:0}

/* ── the cards (share-card look) ───────────────────────────────────────── */
.hp-card{background:var(--panel);border:1px solid var(--rule);border-radius:18px;padding:32px;color:var(--fg)}
.hp-crow{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.hp-live{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:1.4;color:var(--fg2);white-space:nowrap}
.hp-live i,.hp-dotl i{position:relative;display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--acc)}
.hp-cq{margin:24px 0 0;font-family:var(--serif);font-size:28px;font-weight:400;line-height:1.3;color:var(--fg);text-wrap:balance}
html:lang(ar) .hp-cq{font-size:24px;font-weight:500;line-height:1.6}
.hp-cq-static{font-size:22px;color:var(--fg2)}
html:lang(ar) .hp-cq-static{font-size:20px}
.hp-qcard[data-state="empty"] .hp-cq{font-size:20px;color:var(--fg2)}
.hp-num{margin-top:20px;font-family:var(--num);font-size:clamp(52px,5.8vw,84px);font-weight:400;line-height:1.05;letter-spacing:-.02em;white-space:nowrap}
.hp-num bdi{font-family:var(--num)}
.hp-num small{font-size:.44em;letter-spacing:0}
html:lang(ar) .hp-num{font-family:var(--sans);font-size:clamp(40px,4.4vw,64px);font-weight:500;line-height:1.3}
html:lang(ar) .hp-num bdi{font-size:clamp(52px,5.8vw,84px);font-weight:400}
.hp-dotl{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:15px;line-height:1.5;color:var(--fg2)}
.hp-chart{position:relative;height:200px;margin-top:22px}
.hp-cap{margin-top:6px;font-size:13.5px;line-height:1.5;color:var(--mut)}
.hp-cfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 20px;margin-top:22px;padding-top:20px;border-top:1px solid var(--rule)}
.hp-cfoot-t{display:grid;gap:2px;min-width:0}
.hp-cfoot b{display:block;font-size:15.5px;font-weight:600;line-height:1.5}
.hp-cfoot-t > span,.hp-terms{display:block;font-size:13.5px;line-height:1.5;color:var(--mut)}
.hp-cfoot-t > .hp-count{font-variant-numeric:tabular-nums;color:var(--fg2)}
.hp-bars{display:grid;gap:14px;margin-top:26px}
.hp-brow{display:grid;grid-template-columns:92px 1fr 64px;align-items:center;gap:12px;font-size:14px;line-height:1.4;color:var(--fg2)}
html:lang(ar) .hp-brow{grid-template-columns:110px 1fr 64px}
.hp-brow > span{white-space:nowrap}
.hp-brow bdi{text-align:end;font-weight:500;color:var(--fg)}
.hp-bt{display:flex;height:22px;border-radius:4px;overflow:hidden;background:var(--grid)}
.hp-bf{height:100%;background:var(--bar)}
.hp-bf.is-gold{background:var(--acc)}

/* ── Orbit and Launchpad panels (slice 3) ──────────────────────────────── */
/* The kicker and the status pill (D533) share one row. */
.hp-head{margin-bottom:14px}
.hp-head .hp-kick{margin:0}
.hp-fine{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--mut)}
.hp-fine + .hp-fine{margin-top:6px}

/* Orbit's picture: three rings, five dots, one centre. An illustration with no
   text in it (D199). The static picture is the one a reduced-motion visitor
   sees; the dots turn only under no-preference, below. */
.hp-gfx{display:grid;place-items:center;min-height:500px;padding:40px}
.hp-orbit{display:block;width:100%;max-width:460px;height:auto}
.hp-orbit .ring{fill:none;stroke:var(--rule2);stroke-width:1.2}
.hp-orbit .core{fill:var(--fg)}
.hp-orbit .hit,.hp-orbit .halo{fill:var(--acc)}
.hp-orbit .mis{fill:var(--bar)}
.hp-ob{transform-origin:180px 150px}   /* the rings' centre, in the viewBox */

/* Launchpad's replay card: the ten roles, then four recorded events on a
   timeline. Every line is visible in the static card. */
.hp-rpcard{padding:36px}
.hp-roles{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:26px;font-size:14px;line-height:1.4;color:var(--mut)}
.hp-roles > span:last-child{white-space:nowrap}
.hp-rdots{display:flex;gap:9px}
.hp-rdots i{display:block;width:11px;height:11px;border-radius:50%;border:1.5px solid var(--rule2)}
.hp-rpl{list-style:none;margin:26px 0 0;padding:0;border-inline-start:1px solid var(--rule2)}
.hp-rpl li{position:relative;display:grid;justify-items:start;gap:6px;padding:0 0 26px;padding-inline-start:26px}
.hp-rpl li:last-child{padding-bottom:4px}
.hp-rpl li::before{content:"";position:absolute;top:5px;inset-inline-start:-5px;width:9px;height:9px;border-radius:50%;background:var(--acc)}
.hp-rt{font-family:var(--mono);font-size:13px;line-height:1.4;color:var(--mut);white-space:nowrap}
.hp-rd{font-size:16.5px;line-height:1.5;color:var(--fg2)}
/* The event pills, in the app's legend colours (HANDOFF section 3): a paper
   order is gold, a check is an outline, a record is ink (light) / bone (dark). */
.hp-ek{display:inline-flex;align-items:center;border:1.5px solid transparent;border-radius:999px;padding:3px 15px;font-size:15px;font-weight:600;line-height:1.4;white-space:nowrap}
.hp-ek.is-order{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.hp-ek.is-check{border-color:var(--rule2);color:var(--fg)}
.hp-ek.is-record{background:var(--fg);border-color:var(--fg);color:var(--surface)}
.hp-rpcard .hp-cap{margin-top:14px}

/* ── under the stage (slice 4): trust band, paper trading, pricing, FAQ ─── */
.hp-sec{padding:96px 0;scroll-margin-top:72px}
.hp-sec [hidden]{display:none!important}
.hp-band{background:var(--panel)}
.hp-band .hp-card{background:var(--surface)}
.hp-sech{max-width:64em}
.hp-h2s{margin:0;font-family:var(--serif);font-weight:var(--hw);font-size:46px;line-height:1.1;letter-spacing:-.018em;color:var(--fg);text-wrap:balance}
html:lang(ar) .hp-h2s{font-size:38px;line-height:1.4;letter-spacing:0}

/* A row of facts: the figure, then what it counts. The trust band's first two
   figures are fetched; their facts are hidden until a figure arrives, so the
   first VISIBLE fact is the one that loses its start padding. */
.hp-facts{list-style:none;margin:44px 0 0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-top:1px solid var(--rule)}
.hp-fact{min-width:0;padding:26px 24px 6px;border-inline-end:1px solid var(--rule)}
.hp-fact:not(.hp-fact:not([hidden]) ~ .hp-fact){padding-inline-start:0}
.hp-fact:last-child{border-inline-end:0}
.hp-fn{display:block;font-family:var(--num);font-size:44px;font-weight:400;line-height:1.15;letter-spacing:-.02em;color:var(--fg);white-space:nowrap}
.hp-fn bdi{font-family:var(--num)}
html:lang(ar) .hp-fn{font-family:var(--sans);font-size:34px;font-weight:500;line-height:1.5;letter-spacing:0}
html:lang(ar) .hp-fn bdi{font-size:44px;font-weight:400;letter-spacing:-.02em}
.hp-fl{display:block;margin-top:6px;font-size:14.5px;line-height:1.5;color:var(--fg2)}
.hp-cmaline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;margin-top:32px;font-size:14.5px;line-height:1.5;color:var(--mut)}
.hp-cmaline b{font-weight:600;color:var(--fg)}

/* The price chips: the market's state and the delay label, then one chip per
   quote. The track is display:contents so its chips flow in the same row. */
.hp-quotes{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:36px}
.hp-tkl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;margin-inline-end:6px;font-size:13.5px;line-height:1.5;color:var(--mut)}
.hp-tkl > span{white-space:nowrap}
/* The Arabic delay label is about 330px long: on the smallest phones it may
   wrap (it is a sentence, not a chip); the market state never does. */
@media (max-width:440px){.hp-tkl > [data-slot="tk-label"]{white-space:normal}}
.hp-mk{position:relative;display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--rule2)}
.hp-mk.is-open{background:var(--acc)}
.hp-tks{display:contents}
.hp-tk{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--rule);border-radius:999px;padding:5px 14px;background:var(--surface);font-size:14px;line-height:1.4;color:var(--fg);white-space:nowrap}
.hp-tk b{font-weight:600}
.hp-tk bdi{font-variant-numeric:tabular-nums}
.hp-tk .up{color:var(--up)}
.hp-tk .dn{color:var(--down)}

/* Pricing: the one Free card, and beside it the Founding Period sentence and
   the one line of code (no paid-plans line: D545, 2026-11-22). */
.hp-price{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;margin-top:44px}
.hp-fig{margin-top:20px;font-family:var(--num);font-size:68px;font-weight:400;line-height:1.05;letter-spacing:-.02em;white-space:nowrap}
.hp-fig bdi{font-family:var(--num)}
html:lang(ar) .hp-fig{font-family:var(--sans);font-size:56px;font-weight:500;line-height:1.3;letter-spacing:0}
html:lang(ar) .hp-fig bdi{font-size:68px;font-weight:400}
.hp-dots{list-style:none;margin:22px 0 28px;padding:0;display:grid;gap:10px;font-size:16px;line-height:1.5;color:var(--fg2)}
.hp-dots li{position:relative;padding-inline-start:19px}
.hp-dots li::before{content:"";position:absolute;inset-inline-start:0;top:calc(.75em - 3.5px);width:7px;height:7px;border-radius:50%;background:var(--acc)}
.hp-found{margin:0;font-family:var(--serif);font-size:22px;line-height:1.45;color:var(--fg)}
html:lang(ar) .hp-found{font-size:20px;font-weight:500;line-height:1.8}
.hp-api{display:grid;gap:4px;margin-top:28px;padding-top:22px;border-top:1px solid var(--rule);font-size:15px;line-height:1.5;color:var(--fg2)}
.hp-api b{font-weight:600;color:var(--fg)}
.hp-api code{justify-self:start;margin-top:10px;padding:12px 16px;border-radius:10px;background:var(--panel2);font-family:var(--mono);font-size:14.5px;color:var(--fg);white-space:nowrap}

/* FAQ: one ruled list of <details>, no card per question. */
.hp-faq{max-width:880px;margin-top:36px;border-top:1px solid var(--rule)}
.hp-qa{border-bottom:1px solid var(--rule)}
.hp-qa summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;list-style:none;cursor:pointer;font-family:var(--serif);font-size:20px;line-height:1.35;color:var(--fg)}
html:lang(ar) .hp-qa summary{font-size:18px;font-weight:600;line-height:1.6}
.hp-qa summary::-webkit-details-marker{display:none}
.hp-qa summary::after{content:"+";flex:none;font-family:var(--mono);font-size:20px;line-height:1;color:var(--mut)}
.hp-qa[open] summary::after{content:"\2212";color:var(--acct)}
.hp-qa-a{max-width:46em;padding:0 0 24px;font-size:16px;line-height:var(--lh);color:var(--fg2)}
.hp-qa-a strong{font-weight:600;color:var(--fg)}
.hp-qa-a a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.hp-qa-a code{padding:1px 6px;border-radius:4px;background:var(--panel2);font-family:var(--mono);font-size:14px;color:var(--fg)}

/* Below 1081 the two columns are too narrow for the card's figures: stack. */
@media (max-width:1080px){
  .hp-panel{grid-template-columns:1fr;gap:40px;min-height:0;padding:48px 0 0}
  .hp-pv{max-width:680px}
}
@media (max-width:760px){
  .hp-hero{padding:44px 0 48px}
  .hp-hero-in{text-align:start}
  .hp-h1{font-size:44px;line-height:1.1}
  html:lang(ar) .hp-h1{font-size:38px;line-height:1.4}
  .hp-sub{margin:18px 0 0;font-size:17.5px}
  .hp-hero-in .hp-cta,.hp-micro{justify-content:flex-start}
  .hp-cta{margin-top:26px}
  .hp-cta .btn{flex:1 1 100%}
  .hp-micro{font-size:13px}
  /* slice 6: the TASI candles, full width under the buttons. */
  .hp-tasi{margin-top:32px;max-width:none;padding:14px 14px 10px;border-radius:16px}
  .hp-tasi-fig{height:40px}
  .hp-tasi-close{font-size:30px;line-height:40px}
  .hp-tasi-plot{height:220px;margin-top:10px}
  .hp-stage{margin-top:40px}
  .hp-tabs{justify-content:flex-start;gap:0;overflow-x:auto}
  /* Four tabs (slice 3) need their side padding to shrink with the screen:
     8px at 360, 16px from about 590 up (measured 2026-11-22). */
  .hp-tab{padding:12px clamp(7px,3.4vw - 4px,16px);font-size:17px}
  html:lang(ar) .hp-tab{font-size:17px}
  .hp-panel{gap:28px;padding:32px 0 0}
  .hp-h2{font-size:34px}
  html:lang(ar) .hp-h2{font-size:30px}
  .hp-lede{font-size:16.5px}
  .hp-ticks{font-size:16px}
  .hp-tools{grid-template-columns:1fr}
  .hp-card{padding:22px;border-radius:16px}
  .hp-cq{font-size:24px}
  html:lang(ar) .hp-cq{font-size:21px}
  .hp-cq-static{font-size:19px}
  .hp-num{font-size:52px}
  html:lang(ar) .hp-num{font-size:40px}
  html:lang(ar) .hp-num bdi{font-size:52px}
  .hp-chart{height:170px}
  .hp-gfx{min-height:320px;padding:24px}
  .hp-rpcard{padding:22px}
  .hp-rpl li{padding-inline-start:20px}
  .hp-rd{font-size:16px}
  .hp-cfoot{flex-direction:column;align-items:stretch}
  .hp-cfoot .btn{width:100%}
  /* slice 4: facts in two columns (paper trading's three in one), ruled
     underneath; the pricing card above its side notes. */
  .hp-sec{padding:60px 0}
  .hp-h2s{font-size:32px}
  html:lang(ar) .hp-h2s{font-size:28px}
  .hp-facts{grid-auto-flow:row;grid-template-columns:1fr 1fr;margin-top:32px}
  .hp-facts.is-col{grid-template-columns:1fr}
  .hp-fact,.hp-fact:not(.hp-fact:not([hidden]) ~ .hp-fact){padding:20px 12px 8px 0;border-inline-end:0;border-bottom:1px solid var(--rule)}
  .hp-fn{font-size:34px}
  html:lang(ar) .hp-fn{font-size:26px}
  html:lang(ar) .hp-fn bdi{font-size:34px}
  .hp-cmaline{flex-direction:column}
  .hp-tkl{flex-basis:100%;margin-inline-end:0}
  .hp-price{grid-template-columns:1fr;gap:32px;margin-top:32px}
  .hp-fig{font-size:52px}
  html:lang(ar) .hp-fig{font-size:40px}
  html:lang(ar) .hp-fig bdi{font-size:52px}
  .hp-free .btn{width:100%}
  .hp-qa summary{font-size:18px;padding:18px 0}
  html:lang(ar) .hp-qa summary{font-size:17px}
}
/* The four Arabic tab names need about 281px at 17px; below 441 they step
   down so all four fit from 360 up without scrolling the tablist. */
@media (max-width:440px){
  html:lang(ar) .hp-tab{font-size:15px}
}
@media (max-width:380px){
  .hp-h1{font-size:40px}
  html:lang(ar) .hp-h1{font-size:34px}
  .hp-brow{grid-template-columns:86px 1fr 56px;gap:10px}
  html:lang(ar) .hp-brow{grid-template-columns:100px 1fr 56px}
}

/* ── motion (only for visitors who have not asked for less) ────────────── */
/* Slice 2 motion, each tied to something true: the open question's dot pulses
   while calls are open; a fetched figure rises in as it arrives; the What-if
   bars grow to their fetched values; the Lab icons draw, grow and pop in turn
   (a 9 s loop, no numbers); a panel rises in when its tab is chosen. */
@media (prefers-reduced-motion: no-preference){
  .btn,.lang-toggle,.nav-link,.nav-mobile-toggle,.hp-foot-col a,.hp-social,.hp-founding-x,.hp-tab{transition:background-color .16s ease,color .16s ease,border-color .16s ease,opacity .16s ease}
  .nav-mobile-panel.open{animation:hp-drop .18s ease-out}
  @keyframes hp-drop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

  .hp-live.is-open i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--acc);animation:hp-ping 2.6s ease-out infinite}
  .hp-num{animation:hp-rise .7s .15s cubic-bezier(.2,.7,.2,1) both}
  .hp-panel.hp-rise{animation:hp-rise .5s cubic-bezier(.2,.7,.2,1) both}
  .hp-bf{transform-origin:left center;animation:hp-growx 1.2s .4s cubic-bezier(.3,0,.2,1) both}
  [dir="rtl"] .hp-bf{transform-origin:right center}
  .hp-bf.is-gold{animation-delay:.7s}
  /* The Lab icons (design audit F2, 2026-11-22): still a 9 s loop, in turn,
     but each draws in within the first ~1.4 s, rests complete until 96% and
     fades for the last ~0.4 s; the five start 0.12 s apart. A still at a
     random moment shows all five complete about three times in four
     (build/s2 shoot.py icons). */
  .hp-tools li:nth-child(2){--d:.12s}
  .hp-tools li:nth-child(3){--d:.24s}
  .hp-tools li:nth-child(4){--d:.36s}
  .hp-tools li:nth-child(5){--d:.48s}
  .hp-ico .dr{animation:hp-drawloop 9s cubic-bezier(.4,0,.2,1) var(--d,0s) infinite}
  .hp-ico .gr{transform-box:fill-box;transform-origin:bottom;animation:hp-growy 9s cubic-bezier(.3,0,.2,1) var(--d,0s) infinite}
  .hp-ico .gr.g2{animation-delay:calc(var(--d,0s) + .08s)}
  .hp-ico .pop{transform-box:fill-box;transform-origin:center;animation:hp-pop 9s var(--d,0s) infinite}
  .hp-ico .pop.p2{animation-delay:calc(var(--d,0s) + .12s)}

  /* Slice 3. Orbit: the five dots circle the same way, clockwise (a positive
     rotate), the inner ring fastest; the gold dot on it pulses, a match
     (HANDOFF section 5). Launchpad: one 14 s loop. The ten role dots light in
     order (each a short flash, 0.35 s apart, back to its outline), then the
     four recorded events rise in one by one, hold together, and fade at the
     loop's end. Nothing that moves is a number. */
  .hp-ob{animation:hp-orbit 70s linear infinite}
  .hp-ob.r2{animation-duration:44s}
  .hp-ob.r1{animation-duration:26s}
  .hp-orbit .halo{transform-box:fill-box;transform-origin:center;animation:hp-ping 3s ease-out infinite}
  .hp-rdots i{animation:hp-role 14s infinite}
  .hp-rdots i:nth-child(1){animation-delay:.2s}
  .hp-rdots i:nth-child(2){animation-delay:.55s}
  .hp-rdots i:nth-child(3){animation-delay:.9s}
  .hp-rdots i:nth-child(4){animation-delay:1.25s}
  .hp-rdots i:nth-child(5){animation-delay:1.6s}
  .hp-rdots i:nth-child(6){animation-delay:1.95s}
  .hp-rdots i:nth-child(7){animation-delay:2.3s}
  .hp-rdots i:nth-child(8){animation-delay:2.65s}
  .hp-rdots i:nth-child(9){animation-delay:3s}
  .hp-rdots i:nth-child(10){animation-delay:3.35s}
  .hp-rpl li{animation:hp-ev1 14s cubic-bezier(.2,.7,.2,1) infinite both}
  .hp-rpl li:nth-child(2){animation-name:hp-ev2}
  .hp-rpl li:nth-child(3){animation-name:hp-ev3}
  .hp-rpl li:nth-child(4){animation-name:hp-ev4}

  /* Slice 4: a fetched trust figure rises in as it arrives; the market dot
     pulses only while the response says open; a price chip lights once, and
     only when its price string changed since the previous fetch (D537). The
     static product facts do not move. */
  .hp-fn.is-in{animation:hp-rise .7s .1s cubic-bezier(.2,.7,.2,1) both}
  .hp-fact + .hp-fact .hp-fn.is-in{animation-delay:.2s}
  .hp-mk.is-open::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--acc);animation:hp-ping 2.6s ease-out infinite}
  .hp-tk.is-lit{animation:hp-lit 2.4s ease-out both}
  @keyframes hp-lit{0%,25%{background-color:var(--panel2);border-color:var(--acc)}100%{background-color:var(--surface);border-color:var(--rule)}}

  @keyframes hp-ping{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(3.4);opacity:0}}
  @keyframes hp-orbit{to{transform:rotate(360deg)}}
  @keyframes hp-role{0%,5%,100%{background-color:transparent;border-color:var(--rule2);transform:none}2%{background-color:var(--acc);border-color:var(--acc);transform:scale(1.3)}}
  /* Event n rises in at 4.2 + 0.9(n-1) s (30%, 36.4%, 42.9%, 49.3% of the
     loop), all four hold from 7.4 s, then fade from 13.2 s (94.3%). */
  @keyframes hp-ev1{0%,30%{opacity:0;transform:translateY(8px)}33.6%,94.3%{opacity:1;transform:none}97.9%,100%{opacity:0;transform:none}}
  @keyframes hp-ev2{0%,36.4%{opacity:0;transform:translateY(8px)}40%,94.3%{opacity:1;transform:none}97.9%,100%{opacity:0;transform:none}}
  @keyframes hp-ev3{0%,42.9%{opacity:0;transform:translateY(8px)}46.4%,94.3%{opacity:1;transform:none}97.9%,100%{opacity:0;transform:none}}
  @keyframes hp-ev4{0%,49.3%{opacity:0;transform:translateY(8px)}52.9%,94.3%{opacity:1;transform:none}97.9%,100%{opacity:0;transform:none}}
  @keyframes hp-rise{from{transform:translateY(.38em);opacity:0}to{transform:none;opacity:1}}
  @keyframes hp-growx{from{transform:scaleX(0)}to{transform:none}}
  @keyframes hp-drawloop{0%{stroke-dashoffset:1}14%,96%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
  @keyframes hp-growy{0%{transform:scaleY(0)}12%,96%{transform:none;opacity:1}100%{opacity:0}}
  @keyframes hp-pop{0%,10%{transform:scale(0);opacity:0}16%,96%{transform:scale(1);opacity:1}100%{opacity:0}}
}
