/* Rasmy landing v2. House tokens (cream / forest / lime + ink-indigo accent). Logical properties only, so English mirrors Arabic. */

@font-face {
  font-family: "Alexandria"; src: url(assets/alexandria-arabic.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Alexandria"; src: url(assets/alexandria-latin.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: "Geist"; src: url(assets/geist-latin.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #F4F1EA; --forest: #0F1A16; --lime: #C8EE5A;

  --bg: #F4F1EA;
  --surface: #FDFCF8;
  --surface-3: #ECE7DB;
  --line: #E1DBCD;
  --line-strong: #CFC7B5;
  --ink: #0F1A16;
  --ink-2: #2B3832;
  --muted: #4A554F;
  --focus: #0F1A16;
  --scrim: rgba(15, 26, 22, .5);

  /* Accent: ink indigo, two tones (CONCEPT.md §2). Light tone never on forest, dark tone never on cream. */
  --rasmy: #3A36A8;
  --rasmy-on: #F4F1EA;
  --rasmy-soft: #E4E3F6;

  --cta-bg: var(--lime); --cta-ink: var(--forest);
  --wipe-bg: var(--forest); --wipe-ink: var(--cream);

  --sans: "Alexandria", "Geist", "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, "Alexandria", monospace;

  --fs-body: 17px;
  --lh: 1.7;
  --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: 20px;
  --max: 1240px;
  --section: clamp(96px, 11vw, 168px);
  --header-h: 64px;
}
:lang(en) { --sans: "Geist", "Alexandria", system-ui, sans-serif; --lh: 1.5; }

/* Dark tokens. .on-dark scopes them to the forest panel and the close band in either theme. */
[data-theme="dark"], .on-dark {
  --bg: #0F1A16;
  --surface: #16231E;
  --surface-3: #24352E;
  --line: #2A3C35;
  --line-strong: #3A5047;
  --ink: #F4F1EA;
  --ink-2: #DCD9D0;
  --muted: #B9BDB4;
  --focus: #C8EE5A;
  --rasmy: #A7A9F8;
  --rasmy-on: #0F1A16;
  --rasmy-soft: rgba(167, 169, 248, .16);
  --wipe-bg: var(--cream); --wipe-ink: var(--forest);
}
[data-theme="dark"] { color-scheme: dark; --scrim: rgba(3, 8, 6, .7); }

/* ───── Base ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh) var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
b { font-weight: 600; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--forest); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }

.skip { position: absolute; z-index: 100; inset-inline-start: 12px; inset-block-start: -80px; padding: 12px 18px; border-radius: var(--r-md); background: var(--lime); color: var(--forest); font-weight: 600; text-decoration: none; }
.skip:focus { inset-block-start: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; margin-inline: 0; margin-inline: max(0px, (100% - var(--max)) / 2); }
@media (min-width: 720px) { :root { --pad: 40px; --fs-body: 18px; } }

/* ───── Type ───── */
.display { font-weight: 700; font-size: clamp(48px, 9.4vw, 136px); line-height: 1.12; text-wrap: balance; }
:lang(en) .display { letter-spacing: -.04em; line-height: .98; }
.h2 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 700; line-height: 1.2; text-wrap: balance; max-width: 18ch; }
:lang(en) .h2 { letter-spacing: -.035em; line-height: 1.02; }
.lede { font-size: clamp(19px, 2vw, 24px); color: var(--muted); line-height: 1.6; text-wrap: pretty; max-width: 34ch; margin-block-start: 18px; }
:lang(en) .lede { line-height: 1.45; letter-spacing: -.01em; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); }
.section { padding-block: var(--section) 0; }

.h2:has(.h-link) { position: relative; padding-inline-end: .55em; }
.h-link { text-decoration: none; display: inline; }
.h-link .ext {
  position: absolute; inset-inline-end: 0; inset-block-start: .22em;
  width: .34em; height: .34em;
  fill: none; stroke: var(--rasmy); stroke-width: 1.6; stroke-linecap: round; opacity: .7;
}
[dir="rtl"] .h-link .ext { transform: scaleX(-1); }
.h-link:hover span { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; text-decoration-color: var(--rasmy); }
.h-link:hover .ext { opacity: 1; }

.text-link, .link-btn {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--rasmy); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, var(--rasmy) 40%, transparent);
}
.link-btn { background: none; border: 0; padding: 0; text-align: start; }
.text-link:hover, .link-btn:hover { text-decoration-color: currentColor; }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid currentColor; font-size: 13px; font-weight: 600; line-height: 1; color: var(--rasmy);
}
/* Placeholder: dashed mono chip. Never replaced by a guess. */
.ph {
  display: inline-block; padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 6px;
  font-family: var(--mono); font-size: .82em; font-weight: 500; color: var(--muted); line-height: 1.5; white-space: nowrap;
}

/* ───── «اؤمر»: lime at rest, a forest wipe from inline-start says «حاضر» ───── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-grid; place-items: center; min-height: 52px; min-width: 120px; padding: 0 30px;
  border-radius: var(--r-pill); border: 0;
  background: var(--cta-bg); color: var(--cta-ink);
  font-weight: 700; font-size: 18px; line-height: 1; white-space: nowrap;
}
.cta > span { grid-area: 1 / 1; }
.cta-active {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--wipe-bg); color: var(--wipe-ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 260ms var(--ease);
}
[dir="rtl"] .cta-active { clip-path: inset(0 0 0 100%); }
.cta:hover .cta-active, .cta:focus-visible .cta-active, .cta:active .cta-active, .cta.go .cta-active { clip-path: inset(0 0 0 0); }
.cta:focus-visible { outline-offset: 4px; }
.cta-sm { min-height: 44px; min-width: 96px; padding: 0 20px; font-size: 16px; }
.cta-xl { min-height: 68px; min-width: 176px; padding: 0 44px; font-size: 24px; }
:lang(en) .cta-xl { font-size: 21px; }
/* Hero only: a soft ring leaves the button every 4s, echoing the lockup ripple. Stops after the first interaction. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.pulsed) [data-hero-cta] { animation: ring 4s var(--ease) 1.8s infinite; }
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 85%, transparent); }
  30%, 100% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--lime) 0%, transparent); }
}

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
  border-block-end: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { position: relative; display: block; border-radius: 8px; flex: none; }
.lockup { height: 34px; width: auto; }
/* Ripple on the rings: one ring at the mark's centre (the mark sits at the inline-start end, height × height). */
.brand::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .brand::after { animation: ripple 2.6s var(--ease) .6s 1; }
  .brand:hover::after, .brand:focus-visible::after { animation: ripple 1.8s var(--ease) infinite; }
}
@keyframes ripple { from { transform: scale(.55); opacity: .4; } to { transform: scale(1.45); opacity: 0; } }
.product-name {
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  padding-inline-start: 14px; border-inline-start: 1px solid var(--line-strong); line-height: 1.4;
}
.nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav-sep { width: 1px; height: 16px; background: var(--line-strong); margin-inline: 6px; }
.actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); flex: none;
}
.icon-btn:hover { background: var(--surface-3); }
.lang-btn { font-size: 15px; font-weight: 700; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn .m-close, .menu-btn[aria-expanded="true"] .m-open { display: none; }
.menu-btn[aria-expanded="true"] .m-close { display: inline; }
.desktop-only { display: none; }
.actions .cta { margin-inline-start: 10px; }
.menu { border-block-start: 1px solid var(--line); background: var(--bg); }
.menu .wrap { display: grid; padding-block: 8px 16px; }
.menu a { display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 600; text-decoration: none; border-block-end: 1px solid var(--line); }
.menu a:last-child { border: 0; }
@media (max-width: 380px) { .product-name { display: none; } }
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .desktop-only { display: flex; }
  .menu-btn { display: none; }
  .actions { margin-inline-start: 0; }
  .lockup { height: 38px; }
}

/* ───── Hero ───── */
.hero { padding-block: 28px 0; }
.hero-grid {
  display: grid; align-items: start;
  grid-template-areas: "eyebrow" "h1" "tag" "panel" "cta" "sub";
}
.hero-grid > .eyebrow { grid-area: eyebrow; }
.h1 {
  grid-area: h1; margin-block-start: 6px;
  font-weight: 800; white-space: nowrap; line-height: 1.15;
  max-width: 100%;
  /* Fit «الطابور علينا.» on one line in the column; JS tightens if the font still overflows. */
  font-size: min(13.4vw, 64px);
}
:lang(en) .h1 { white-space: normal; letter-spacing: -.05em; line-height: .95; font-size: min(15vw, 116px); text-wrap: balance; }
.tagline { grid-area: tag; font-size: clamp(24px, 3.2vw, 40px); font-weight: 600; line-height: 1.35; color: var(--rasmy); margin-block-start: 2px; }
:lang(en) .tagline { letter-spacing: -.025em; margin-block-start: 12px; }
.hero-sub { grid-area: sub; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); margin-block-start: 14px; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-block-start: 22px; }

/* Live file panel: forest in both themes, the hero's one high-contrast object. */
.panel {
  grid-area: panel; margin-block-start: 22px;
  background: var(--forest); color: var(--ink);
  border-radius: var(--r-xl); padding: 18px 18px 8px;
  box-shadow: 0 40px 80px -40px rgba(15, 26, 22, .55);
}
[data-theme="dark"] .panel { background: #16231E; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 55%, transparent); }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-title { font-weight: 700; font-size: 17px; }
.replay { margin-inline-start: auto; color: var(--muted); }
.replay:hover { color: var(--ink); }
[dir="rtl"] .replay .i { transform: scaleX(-1); }

.sentence { margin-block: 8px 14px; font-size: clamp(21px, 2.1vw, 27px); font-weight: 500; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }
:lang(en) .sentence { letter-spacing: -.015em; line-height: 1.55; }
.chip-glue { white-space: nowrap; }
.chip-wrap { position: relative; display: inline-block; vertical-align: baseline; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px; white-space: nowrap;
  padding: .02em .5em .06em; margin-inline: .06em;
  border: 0; border-radius: .38em; background: var(--rasmy-soft); color: var(--rasmy);
  font-weight: 700; line-height: 1.3;
  transition: background-color 160ms var(--ease);
}
.chip:hover, .chip[aria-expanded="true"] { background: color-mix(in srgb, var(--rasmy) 28%, transparent); }
.chev { width: .5em; height: .5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sent-punct { margin-inline-start: .06em; }
.listbox {
  position: absolute; z-index: 30; inset-block-start: calc(100% + 8px); inset-inline-start: 0;
  min-width: max(100%, 240px); max-width: calc(100vw - 24px); padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .45);
  font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); letter-spacing: 0;
}
.listbox [role="option"] { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.listbox [role="option"]:hover, .listbox [role="option"]:focus { background: var(--surface-3); outline: none; }
.listbox [role="option"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.listbox [aria-selected="true"] { color: var(--rasmy); font-weight: 700; }
.listbox [aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline-start: auto; }

.rec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.rec-title { font-size: 19px; font-weight: 700; }
.fact { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--lime); color: var(--forest); font-weight: 700; font-size: 15px; line-height: 1.45; }
.rec .link-btn { flex-basis: 100%; min-height: 36px; font-size: 15px; }

.mini { border-block-start: 1px solid var(--line); }
.mrow button {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 8px 2px; background: none; border: 0; border-block-end: 1px solid var(--line);
  text-align: start; color: var(--ink); font-size: 16px; line-height: 1.4;
}
.mrow button:hover .mname { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.mname { min-width: 0; }
.mstate { font-size: 13px; color: var(--muted); white-space: nowrap; }
.st-done .mname { color: var(--muted); }
.st-active .mname { font-weight: 700; }
.st-active .mstate { padding: 3px 9px; border-radius: var(--r-pill); background: var(--lime); color: var(--forest); font-weight: 600; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); }

/* State dots */
.dot { position: relative; width: 14px; height: 14px; border-radius: 50%; justify-self: center; flex: none; }
.dot-done { background: var(--ink); }
.dot-done::after { content: ""; position: absolute; inset: 3px 4px 4.5px; border: solid var(--bg); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.on-dark .dot-done::after { border-color: var(--forest); }
[data-theme="dark"] .panel .dot-done::after { border-color: #16231E; }
.dot-next { border: 1.5px solid var(--line-strong); }
.dot-active { background: var(--lime); box-shadow: 0 0 0 1.5px var(--forest); }
.on-dark .dot-active { box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot-active::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--lime); animation: beat 2.2s ease-out infinite; }
}
@keyframes beat { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 599px) {
  /* Keep «اؤمر» in the first screen: three rows, no foot (the full file is one scroll away). */
  .mini .mrow:nth-child(n+4),
  .panel-foot { display: none; }
  .hero { padding-block-start: 16px; }
  .panel { margin-block-start: 14px; padding: 14px 14px 6px; }
  .sentence { margin-block: 4px 8px; font-size: 19px; line-height: 1.6; }
  .mrow button { min-height: 44px; padding: 6px 2px; }
  .hero-cta { margin-block-start: 16px; }
  .cta-xl { min-height: 60px; }
}
@media (min-width: 1000px) {
  .hero { padding-block: clamp(36px, 4.5vw, 64px) 0; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 80px);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas: ". panel" "eyebrow panel" "h1 panel" "tag panel" "sub panel" "cta panel" ". panel";
  }
  .h1 { font-size: min(6.3vw, 90px); }
  :lang(en) .h1 { font-size: min(7.6vw, 112px); }
  .panel { margin: 0; padding: 22px 26px 10px; }
  .hero-sub { margin-block-start: 22px; }
  .hero-cta { margin-block-start: 30px; }
}

/* ───── Proof strip ───── */
.proof { padding-block: clamp(40px, 5vw, 64px) 0; }
.proof-grid { display: grid; gap: 12px; }
.tile {
  display: grid; align-content: start; gap: 6px; padding: 22px 24px 24px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.tile-who { justify-self: start; display: inline-flex; align-items: center; min-height: 32px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.tile-fig { justify-self: start; font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; line-height: 1.1; text-decoration: none; }
:lang(en) .tile-fig { letter-spacing: -.04em; }
.tile-fig:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.tile-line { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 32ch; }
.tile.lit { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.tile.lit .tile-who, .tile.lit .tile-line { color: var(--forest); }
@media (min-width: 760px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

/* ───── Dollars ───── */
.usd { display: grid; gap: 36px; }
.keys { display: grid; gap: 10px; margin-block-start: 32px; }
.key {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 20px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface);
  font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; text-align: start;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}
.key:active:not(:disabled) { transform: scale(.98); }
.key-box { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line-strong); transition: background-color 180ms var(--ease); }
.key[aria-pressed="true"] { border-color: var(--ink); }
.key[aria-pressed="true"] .key-box { background: var(--lime); border-color: var(--forest); }
.key[aria-pressed="true"] .key-box::after { content: ""; position: absolute; inset: 4px 5px 7px; border: solid var(--forest); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.key:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1.5px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; margin-block-start: 18px; border-radius: var(--r-pill); background: var(--surface-3); }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: none; font-weight: 600; font-size: 16px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.usd-result { display: grid; align-content: start; gap: 14px; }
.result-tile {
  display: grid; place-items: center; min-height: clamp(220px, 28vw, 360px);
  border: 2px dashed var(--line-strong); border-radius: var(--r-xl);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.result-fig { font-size: clamp(48px, 7vw, 96px); font-weight: 800; color: var(--muted); line-height: 1; }
.result-tile.full { background: var(--lime); border: 2px solid var(--lime); }
.result-tile.full .result-fig { color: var(--forest); font-size: clamp(110px, 17vw, 240px); letter-spacing: -.04em; }
.result-line { min-height: 1.6em; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.usd-ours { color: var(--muted); font-size: 18px; }
@media (min-width: 900px) { .usd { grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; } }

/* ───── No company ───── */
.noco .display { max-width: 12ch; }
.noco-big { margin-block-start: 28px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.35; color: var(--rasmy); max-width: 22ch; }
:lang(en) .noco-big { letter-spacing: -.025em; line-height: 1.15; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-block-start: 22px; padding: 0 24px;
  border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: none; font-weight: 700; font-size: 17px;
}
.arrow-link:hover { background: var(--ink); color: var(--bg); }
.arr { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ───── Law 6 ───── */
.bands {
  display: flex; gap: 8px; margin-block-start: 30px; padding-block: 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
}
.bands::-webkit-scrollbar { display: none; }
.bands button {
  flex: none; scroll-snap-align: center; min-height: 52px; padding: 0 20px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: none;
  font-weight: 600; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.bands button:hover { border-color: var(--ink); }
.bands [aria-checked="true"] { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.law6-out { display: grid; gap: 24px; margin-block-start: 36px; }
.rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.rate-fig { font-size: clamp(96px, 16vw, 220px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.rate-of { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: var(--muted); }
.law6-lines { display: grid; gap: 10px; align-content: end; font-size: 17px; color: var(--muted); }
.law6-lines li { padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.law6-lines .strong { color: var(--ink); font-weight: 700; font-size: 19px; }
@media (min-width: 900px) {
  .bands { margin-inline: 0; padding-inline: 0; overflow: visible; flex-wrap: wrap; }
  .law6-out { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 56px; }
}

/* ───── Old way flip ───── */
.seg-old { margin-block-start: 30px; }
.flips { margin-block-start: 24px; border-block-start: 1px solid var(--line); }
.flip { display: grid; padding-block: 18px; border-block-end: 1px solid var(--line); perspective: 900px; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.35; font-weight: 600; }
:lang(en) .flip { letter-spacing: -.02em; }
.face { grid-area: 1 / 1; backface-visibility: hidden; transform-origin: 50% 50%; transition: transform 360ms var(--ease), opacity 240ms var(--ease); transition-delay: calc(var(--i) * 60ms); }
.f-old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 500; }
.f-new { color: var(--rasmy); }
.flips[data-side="old"] .f-new { transform: rotateX(-90deg); opacity: 0; }
.flips[data-side="new"] .f-old { transform: rotateX(90deg); opacity: 0; }
@media (min-width: 900px) {
  /* Both columns at rest; the switch lights one. */
  .seg-old { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-lg); }
  .seg-old button { border-radius: 14px; min-height: 52px; font-size: 18px; }
  .flip { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .face { grid-area: auto; }
  .flips .face { transform: none !important; opacity: 1; transition: opacity 240ms var(--ease), color 240ms var(--ease); }
  .flips[data-side="old"] .f-new, .flips[data-side="new"] .f-old { opacity: .3 !important; }
}

/* ───── Our clock ───── */
.promises { display: grid; gap: 12px; margin-block-start: 40px; }
.promise { padding: 26px 26px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.promise-fig { font-size: clamp(40px, 4.8vw, 68px); font-weight: 800; line-height: 1.15; color: var(--rasmy); }
:lang(en) .promise-fig { letter-spacing: -.04em; }
.promise p:last-child { margin-block-start: 8px; color: var(--muted); }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 28px; }
.tech li { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.tech .i { color: var(--rasmy); }
.gafi { display: grid; gap: 14px; margin-block-start: 56px; padding-block-start: 28px; border-block-start: 2px solid var(--ink); }
.gafi-title { font-size: 20px; font-weight: 600; color: var(--muted); }
.gafi-figs { display: grid; gap: 14px 48px; }
.gafi-figs p { display: grid; gap: 2px; font-size: 17px; color: var(--muted); }
.gafi-fig { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; color: var(--ink); line-height: 1.15; }
:lang(en) .gafi-fig { letter-spacing: -.04em; }
.src-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-underline-offset: 4px; }
.gafi-ours { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); } .gafi-figs { grid-template-columns: auto auto; justify-content: start; } }

/* ───── The file (full tracker) ───── */
.file-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.file-head .badge { height: 32px; font-size: 15px; padding: 0 14px; }
.file-count { margin-block-start: 14px; font-weight: 600; color: var(--muted); }
.tracker { margin-block-start: 28px; border-block-start: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; row-gap: 8px; align-items: center;
  padding-block: 16px; border-block-end: 1px solid var(--line);
  transition: opacity 160ms var(--ease);
}
.row:focus-visible { outline-offset: -2px; border-radius: 10px; }
.tracker:has(.row:hover, .row:focus-within) .row:not(:hover, :focus-within) { opacity: .45; }
.rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.rname { font-size: 18px; font-weight: 500; line-height: 1.45; min-width: 0; flex: 1 1 12ch; }
.row.st-done .rname { color: var(--muted); }
.row.st-active .rname { font-weight: 700; }
.rstate { flex: none; padding: 2px 10px; border-radius: var(--r-pill); background: var(--lime); color: var(--forest); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rmeta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.who, .mark, .clock { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13.5px; line-height: 1.3; white-space: nowrap; }
.who { font-family: var(--mono); font-weight: 500; border: 1px solid var(--line-strong); color: var(--muted); }
.who-us { background: var(--rasmy-soft); border-color: transparent; color: var(--rasmy); font-weight: 600; }
.mark { border: 1px solid var(--ink); color: var(--ink); font-weight: 600; }
.clock { background: var(--surface-3); color: var(--ink-2); text-decoration: none; white-space: normal; }
.clock b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.clock-ours b { color: var(--rasmy); }
a.clock { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a.clock:hover { text-decoration-color: currentColor; }
#fileMore { margin-block-start: 20px; }
.file-end { margin-block-start: 26px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
@media (min-width: 900px) {
  .row { grid-template-columns: 22px minmax(0, 5fr) minmax(0, 7fr); }
  .rhead { grid-column: 2; }
  .rmeta { grid-column: 3; justify-content: end; }
}

/* ───── Price ───── */
.market { display: grid; gap: 10px; margin-block-start: 32px; }
.market-list { display: flex; flex-wrap: wrap; gap: 10px; }
.market-list a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); font-size: 19px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.market-list a[href]:hover { border-color: var(--ink); }
.market-fair { font-size: 13.5px; color: var(--muted); }
.market-quote { margin-block-start: 8px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
.market-quote a { text-decoration: none; unicode-bidi: isolate; }
.foot-src a { unicode-bidi: isolate; }
.market-quote a[href]:hover { text-decoration: underline; text-underline-offset: 5px; }
.vs { margin-block-start: 48px; border-block-start: 2px solid var(--ink); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 16px; border-block-end: 1px solid var(--line); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.45; }
.vs-row > :first-child { color: var(--muted); }
.vs-row > :last-child { font-weight: 700; }
.vs-head { font-size: 14px; font-weight: 600; }
.vs-head > :last-child { color: var(--rasmy); }
.our-price { display: grid; gap: 12px; margin-block-start: 40px; }
.our-price > div { display: grid; gap: 8px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.our-price dt { font-weight: 600; color: var(--muted); font-size: 16px; }
.our-price dd { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
@media (min-width: 760px) { .our-price { grid-template-columns: repeat(3, 1fr); } }

/* ───── What you get ───── */
.get { display: grid; gap: 1px; margin-block-start: 40px; background: var(--line); border-block: 1px solid var(--line); }
.get li { display: grid; gap: 6px; padding: 24px 0; background: var(--bg); }
.get h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.3; }
.get p { color: var(--muted); }
@media (min-width: 900px) {
  .get { grid-template-columns: repeat(5, 1fr); background: none; border: 0; gap: 0; }
  .get li { padding: 22px 22px 0 0; padding-inline: 0 22px; border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
  .get li:first-child { border: 0; padding-inline-start: 0; }
}

/* ───── Claude and ChatGPT ───── */
.ai { display: grid; gap: 40px; }
.ai-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 30px; }
.ai-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.ai-steps li + li::before { content: ""; width: 26px; height: 2px; background: var(--rasmy); margin-inline-end: 4px; }
.ai-dev { margin-block-start: 22px; color: var(--muted); font-size: 15px; }
.chat { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.chat .badge { justify-self: start; }
.bubble { max-width: 85%; padding: 14px 18px; border-radius: 20px; font-size: 18px; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--surface-3); border-end-end-radius: 6px; }
.bubble.them { justify-self: start; background: var(--forest); color: var(--cream); font-weight: 600; border-end-start-radius: 6px; }
[data-theme="dark"] .bubble.them { background: var(--lime); color: var(--forest); }
@media (min-width: 900px) { .ai { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; } }

/* ───── Bundle ───── */
.fam { display: grid; margin-block-start: 36px; border-block-start: 1px solid var(--line-strong); }
.fam-row {
  display: flex; align-items: center; gap: 18px; width: 100%; min-height: 84px; padding-block: 14px;
  border: 0; border-block-end: 1px solid var(--line); background: none; text-decoration: none; text-align: start;
  font-size: clamp(19px, 2.2vw, 28px); font-weight: 600; line-height: 1.35;
}
.fam-row img { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.fam-row .arr { margin-inline-start: auto; width: 26px; height: 26px; color: var(--muted); transition: transform 200ms var(--ease); }
.fam-row:hover .arr { color: var(--ink); transform: translateX(4px); }
[dir="rtl"] .fam-row:hover .arr { transform: scaleX(-1) translateX(4px); }
.fam-dot { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--lime); }
.fam-dot { display: grid; place-items: center; }
.fam-dot::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--forest); }
.fam-bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block-start: 22px; font-size: 19px; font-weight: 700; }

/* ───── Who does the work ───── */
#net .h2 { max-width: 20ch; }

/* ───── Proof slots ───── */
.slots { display: grid; gap: 12px; margin-block-start: 36px; }
.slot { display: grid; place-items: center; min-height: 140px; padding: 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: center; }
.slots-logo { grid-template-columns: repeat(2, 1fr); margin-block-start: 12px; }
.slots-logo .slot { min-height: 88px; }
#slots .btn-quiet { margin-block-start: 24px; }
@media (min-width: 760px) { .slots { grid-template-columns: repeat(3, 1fr); } .slots-logo { grid-template-columns: repeat(4, 1fr); } }

/* ───── Questions ───── */
.search { position: relative; display: flex; align-items: center; margin-block-start: 30px; }
.search > .i { position: absolute; inset-inline-start: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 58px; padding-inline: 50px 56px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 18px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-pill); }
.kbd { position: absolute; inset-inline-end: 14px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
@media (hover: none) { .kbd { display: none; } }
.faq { margin-block-start: 20px; border-block-start: 1px solid var(--line-strong); }
.qa { border-block-end: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px; cursor: pointer; list-style: none; font-size: clamp(19px, 2vw, 23px); font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.plus { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 200ms var(--ease); }
.qa[open] .plus { transform: rotate(45deg); }
.qa p { padding-block-end: 20px; color: var(--muted); font-size: 18px; max-width: 56ch; }
.faq-empty { margin-block-start: 20px; font-size: 22px; font-weight: 700; }
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: none; font-weight: 600; }
.btn-quiet:hover { border-color: var(--ink); }

/* ───── Close ───── */
.close { margin-block-start: var(--section); padding-block: clamp(96px, 13vw, 180px); background: var(--forest); color: var(--ink); }
[data-theme="dark"] .close { background: #16231E; border-block: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); }
.close .wrap { display: grid; justify-items: start; gap: 18px; }
.close .display { font-size: clamp(56px, 12vw, 176px); }
.close-sub { font-size: clamp(24px, 3vw, 40px); font-weight: 600; color: var(--rasmy); margin-block-end: 18px; }

/* ───── Footer ───── */
.foot { padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { display: grid; gap: 10px; justify-items: start; color: var(--muted); }
.lockup-foot { height: 32px; }
.foot-links { display: grid; align-content: start; }
.foot-links a, .foot-src a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links a:hover, .foot-src a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-h { font-weight: 700; margin-block-end: 4px; }
.foot-src ul { display: grid; }
.foot-src a { color: var(--muted); font-size: 14px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-block-start: 36px; padding-block-start: 20px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr 2fr; gap: 56px; } .foot-src ul { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* ───── Mobile bottom pill: solid, hidden while the hero CTA, the close or the footer is on screen ───── */
.pill { display: none; }
@media (max-width: 899px) {
  main { padding-block-end: calc(84px + env(safe-area-inset-bottom)); }
  .close { margin-block-end: calc(-84px - env(safe-area-inset-bottom)); padding-block-end: calc(clamp(96px, 13vw, 180px) + 84px); }
  .pill {
    position: fixed; z-index: 35; inset-inline: 12px; inset-block-end: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; padding: 6px; padding-inline-start: 20px;
    border-radius: var(--r-pill); background: var(--forest); color: var(--cream);
    box-shadow: 0 16px 40px -12px rgba(15, 26, 22, .5);
    transition: transform 240ms var(--ease), opacity 240ms var(--ease);
  }
  [data-theme="dark"] .pill { background: #1B2A24; box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px -12px rgba(0, 0, 0, .7); }
  .pill .cta { --wipe-bg: var(--cream); --wipe-ink: var(--forest); flex: none; }
  .pill-off .pill, .dialog-open .pill { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
.pill-status { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───── Start dialog ───── */
.dialog {
  width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 100px -24px rgba(15, 26, 22, .5);
}
.dialog::backdrop { background: var(--scrim); }
.dlg-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }
#startForm { display: grid; gap: 18px; }
.dlg-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.3; padding-inline-end: 44px; }
:lang(en) .dlg-title { letter-spacing: -.03em; line-height: 1.1; }
.dlg-path { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 8px 18px; border-radius: var(--r-md); background: var(--rasmy-soft); }
.dlg-summary { flex: 1; font-weight: 600; color: var(--rasmy); }
.dlg-chips { flex-basis: 100%; padding-block: 6px 10px; font-size: 18px; line-height: 1.9; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.dialog input {
  width: 100%; min-height: 52px; padding: 10px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 18px; font-weight: 400;
}
.dialog input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-radius: var(--r-md); }
[dir="rtl"] .dialog input[type="tel"] { text-align: end; }
.dialog [aria-invalid="true"] { border-color: #B42318; }
[data-theme="dark"] .dialog [aria-invalid="true"] { border-color: #F28B82; }
.err { font-size: 14px; color: #B42318; font-weight: 600; }
[data-theme="dark"] .err { color: #F28B82; }
.dialog .cta { justify-self: start; margin-block-start: 4px; min-height: 56px; font-size: 20px; }
.dialog .cta { --wipe-bg: var(--forest); --wipe-ink: var(--cream); }
[data-theme="dark"] .dialog .cta { --wipe-bg: var(--cream); --wipe-ink: var(--forest); }
.dlg-done { padding-block: 40px 24px; font-size: clamp(64px, 14vw, 112px); font-weight: 800; line-height: 1; outline: none; }

/* ───── Motion: hero entrance, blocks rise once. All off under reduced motion. ───── */
@media (prefers-reduced-motion: no-preference) {
  .js .h1 { animation: rise 320ms var(--ease) both; }
  .js .tagline, .js .hero-sub, .js .hero-cta { animation: rise 320ms var(--ease) 60ms both; }
  .js .panel { animation: rise 360ms var(--ease) 120ms both; }
  .js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
