/* Cashtrail landing page
   Visual system: landing-page-design skill, Part B.
   Type sizes mirror Tailwind's default scale; spacing uses only the B2 tokens. */

:root {
  /* Dark backgrounds (B4 list only) */
  --bg: #000000;
  --bg-1: #181818;
  --bg-2: #1F1F1F;
  --bg-3: #272727;
  --line: #313131;
  --bg-warm: #131209;

  /* Text */
  --text: #FFFFFF;
  --text-2: #9B9B9B;
  --text-3: #6E6E6E;

  /* Accent */
  --lime: #C6F35E;
  --lime-hover: #D4F77F;
  --lime-soft: rgba(198, 243, 94, 0.08);
  --lime-line: rgba(198, 243, 94, 0.32);
  --coral: #FF7A66;
  --coral-soft: rgba(255, 122, 102, 0.08);

  /* Spacing tokens (B2) */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius (Tailwind values) */
  --r-sm: 4px;   /* rounded */
  --r-lg: 8px;   /* rounded-lg */
  --r-2xl: 16px; /* rounded-2xl */
  --r-3xl: 24px; /* rounded-3xl */
  --r-full: 9999px;

  /* Motion (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --move: 500ms;
  --fade: 300ms;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  color-scheme: dark;
}

[lang="ar"] {
  --font: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6, .balance { text-wrap: balance; }
p, li, dd, summary, label { text-wrap: pretty; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.pos { color: var(--lime); }
.neg { color: var(--coral); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Text styles (B1) ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
/* Body 7: lead paragraphs, built from text-lg */
.body-7 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.button-xsm { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

@media (min-width: 768px) {
  .md\:heading-2 { font-size: 3rem; line-height: 1; }
  .md\:heading-3 { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:body-7 { font-size: 1.125rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
  .lg\:heading-1 { font-size: 3.75rem; line-height: 1; }
  .lg\:heading-2 { font-size: 3rem; line-height: 1; }
}

/* Arabic script needs room above and below; the scale's line height of 1 clips it. */
[lang="ar"] .heading-1, [lang="ar"] .heading-2,
[lang="ar"] .md\:heading-2, [lang="ar"] .lg\:heading-1, [lang="ar"] .lg\:heading-2 { line-height: 1.25; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: var(--s-200);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-400); } }

.section { padding-block: var(--s-700); }
@media (min-width: 1024px) { .section { padding-block: var(--s-900); } }
.section--raised { background: var(--bg-1); }

.narrow { max-width: 680px; }
.br-md .line { display: inline; }
@media (min-width: 768px) { .br-md .line { display: block; } }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  color: var(--lime);
  margin-bottom: var(--s-200);
}
.section-head { margin-bottom: var(--s-600); }
.section-head p { margin-top: var(--s-200); color: var(--text-2); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; inset-inline-start: var(--s-200); top: var(--s-200); z-index: 100;
  background: var(--lime); color: #000; text-decoration: none;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  transform: translateY(-200%);
  transition: transform var(--move) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--fade) var(--ease),
    border-color var(--fade) var(--ease),
    color var(--fade) var(--ease),
    transform var(--move) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--lime); color: #000; }
.btn--primary:hover { background: var(--lime-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-3); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50;
  top: var(--s-200);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--s-400));
  max-width: max-content;
  display: flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75);
  border-radius: var(--r-2xl);
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(49, 49, 49, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
@media (max-width: 1023px) { .nav { max-width: none; justify-content: space-between; } }

.brand {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-75);
  text-decoration: none;
  border-radius: var(--r-lg);
}
.brand svg { width: 24px; height: 24px; }

.nav__links { display: none; align-items: center; gap: var(--s-50); }
@media (min-width: 1024px) { .nav__links { display: flex; margin-inline: var(--s-200); } }
.nav__link {
  position: relative;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--fade) var(--ease), background-color var(--fade) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-3); }
.nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--s-25);
  width: 4px; height: 4px; margin-inline: auto; border-radius: var(--r-full);
  background: var(--lime);
}

.nav__actions { display: flex; align-items: center; gap: var(--s-75); }
.lang {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--text-2); text-decoration: none;
  transition: color var(--fade) var(--ease), background-color var(--fade) var(--ease);
}
.lang:hover { color: var(--text); background: var(--bg-3); }
.nav .lang { display: none; }
@media (min-width: 640px) { .nav .lang { display: inline-flex; } }
.nav .nav__cta { display: none; }
@media (min-width: 400px) { .nav .nav__cta { display: inline-flex; } }

.menu-toggle {
  position: relative;
  width: 36px; height: 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--fade) var(--ease);
}
.menu-toggle:hover { background: var(--bg-3); }
.menu-toggle span {
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 2px;
  border-radius: var(--r-full); background: var(--text);
  transition: transform var(--move) var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(0) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--move) var(--ease), visibility 0s linear var(--move);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--move) var(--ease); }
.mobile-menu__list { display: flex; flex-direction: column; gap: var(--s-75); }
.mobile-menu__item {
  opacity: 0; transform: translateY(var(--s-300));
  transition: opacity var(--move) var(--ease), transform var(--move) var(--ease);
  transition-delay: 0ms;
}
.mobile-menu.is-open .mobile-menu__item { opacity: 1; transform: translateY(0); transition-delay: var(--d, 0ms); }
.mobile-menu__link {
  display: block; padding: var(--s-75) 0;
  color: var(--text); text-decoration: none;
}
.mobile-menu__link[aria-current="true"] { color: var(--lime); }
.mobile-menu__foot { margin-top: var(--s-500); display: flex; flex-direction: column; gap: var(--s-200); align-items: flex-start; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .float-cta { opacity: 0; pointer-events: none; }
/* Wordmark stays in Geist on the Arabic pages too */
.brand .title-3 { font-family: "Geist", var(--font); }
[dir="rtl"] input[dir="ltr"] { text-align: right; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-900); padding-bottom: var(--s-700); }
@media (min-width: 1024px) { .hero__copy { padding-top: var(--s-600); } }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.badge__dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--lime); }
.hero__title {
  max-width: 680px;
  margin-top: var(--s-300);
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[dir="rtl"] .hero__title { background: linear-gradient(270deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; }
.hero__title .line { display: inline; }
@media (min-width: 768px) { .hero__title .line { display: block; } }
.hero__sub { max-width: 680px; margin-top: var(--s-300); color: var(--text-2); }
.hero__cta { margin-top: var(--s-400); display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.risk { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75) var(--s-200); color: var(--text-2); }
.risk li { display: inline-flex; align-items: center; gap: var(--s-50); }
.risk .icon { color: var(--lime); }

.connects { margin-top: var(--s-600); display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.connects__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75) var(--s-300); max-width: 800px; color: var(--text-2); }

/* ---------- Dashboard mockup ---------- */
.dash {
  margin-top: var(--s-600);
  margin-inline: auto;
  max-width: 1040px;
  padding: var(--s-75);
  border-radius: var(--r-3xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.dash__panel {
  padding: var(--s-100);
  border-radius: var(--r-2xl);
  background: var(--bg);
  border: 1px solid var(--line);
  text-align: start;
}
.dash__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); padding: var(--s-50) var(--s-50) var(--s-100); }
.dash__brand { display: flex; align-items: center; gap: var(--s-75); min-width: 0; }
.dash__brand svg { width: 20px; height: 20px; }
.dash__meta { display: flex; align-items: center; gap: var(--s-75); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.sample-tag { color: var(--text-3); }

.dash__grid { display: grid; gap: var(--s-100); }
@media (min-width: 900px) { .dash__grid { grid-template-columns: 1fr 1.6fr; } }

.tile {
  padding: var(--s-200);
  border-radius: var(--r-sm); /* 16 outer − 12 gap */
  background: var(--bg-2);
}
.tile__label { display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); color: var(--text-2); }
.tile__value { margin-top: var(--s-75); }

.money { display: flex; flex-direction: column; gap: var(--s-100); }
.money__total { color: var(--text-2); }
.stack { display: flex; height: 8px; gap: var(--s-25); margin-top: var(--s-200); }
.stack span { display: block; height: 100%; border-radius: var(--r-full); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-200); margin-top: var(--s-100); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-50); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-full); }
.money__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-100); }

.rank { display: flex; flex-direction: column; }
.rank__head, .rank__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1.1fr;
  gap: var(--s-100);
  align-items: center;
}
.rank__head { padding: var(--s-100) var(--s-100) var(--s-75); color: var(--text-3); }
.rank__head span:not(:first-child), .rank__row > span:not(:first-child) { text-align: end; }
.rank__row { padding: var(--s-100); border-radius: var(--r-sm); }
.rank__row + .rank__row { margin-top: var(--s-25); }
.rank__row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.rank__row--bad { background: var(--coral-soft) !important; }
.rank__name { display: flex; flex-direction: column; min-width: 0; }
.rank__name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__cell-label { display: none; font-family: var(--font); white-space: nowrap; }
@media (max-width: 639px) {
  .rank__head { display: none; }
  .rank__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-75); }
  .rank__row .rank__name { grid-column: 1 / -1; }
  .rank__row > span:not(:first-child) { text-align: start; display: flex; flex-direction: column; }
  .rank__cell-label { display: block; color: var(--text-3); }
}

.suggest {
  display: flex; align-items: flex-start; gap: var(--s-100);
  margin-top: var(--s-100);
  padding: var(--s-100);
  border-radius: var(--r-sm);
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
}
.suggest .icon { color: var(--lime); margin-top: var(--s-25); }
.suggest__text { flex: 1; }
.suggest__tag { color: var(--lime); }

/* ---------- Problem / comparison ---------- */
.source { display: inline-flex; align-items: center; gap: var(--s-50); margin-top: var(--s-200); color: var(--text-3); text-decoration: none; transition: color var(--fade) var(--ease); }
.source:hover { color: var(--text); }

.compare { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__card {
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.compare__card--true { border-color: var(--lime-line); }
.compare__title { display: flex; align-items: center; gap: var(--s-75); color: var(--text-2); }
.compare__card--true .compare__title { color: var(--lime); }
.compare dl { margin-top: var(--s-300); display: flex; flex-direction: column; gap: var(--s-200); }
.compare dl > div { display: flex; flex-direction: column; gap: var(--s-25); }
.compare dt { color: var(--text-3); }
.compare__big { padding-top: var(--s-200); border-top: 1px solid var(--line); }
.compare__note { margin-top: var(--s-200); color: var(--text-3); }

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(2, 1fr); } .benefit:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .benefits { grid-template-columns: repeat(6, 1fr); }
  .benefit { grid-column: span 2; }
  .benefit:nth-child(4), .benefit:nth-child(5) { grid-column: span 3; }
}
.benefit {
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: border-color var(--fade) var(--ease), transform var(--move) var(--ease);
}
.benefit:hover { border-color: #3D3D3D; transform: translateY(-2px); }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  background: var(--bg-3);
  color: var(--lime);
}
.benefit h3 { margin-top: var(--s-300); }
.benefit p { margin-top: var(--s-75); color: var(--text-2); }

/* ---------- Tagline reveal (B11) ---------- */
.tagline { padding-block: var(--s-900); background: var(--bg-warm); }
@media (min-width: 1024px) { .tagline__text { padding-block: var(--s-700); } }
.tagline__text { max-width: 680px; margin-inline: auto; }
.tagline__text .line { display: block; }
.word { color: rgba(255, 255, 255, 0.3); transition: color var(--fade) var(--ease); }
.word.is-on { color: var(--text); }
.word--brand.is-on { color: var(--lime); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--s-200); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num { color: var(--lime); }
.step h3 { margin-top: var(--s-300); }
.step p { margin-top: var(--s-75); color: var(--text-2); }

/* ---------- Media buyers ---------- */
.split { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.split__copy p { color: var(--text-2); }
.checks { margin-top: var(--s-300); display: flex; flex-direction: column; gap: var(--s-100); }
.checks li { display: flex; align-items: flex-start; gap: var(--s-100); }
.checks .icon { color: var(--lime); margin-top: var(--s-25); }

.report {
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: var(--bg);
  border: 1px solid var(--line);
}
.report__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); flex-wrap: wrap; }
.report__key { display: flex; gap: var(--s-200); color: var(--text-2); }
.report__key span { display: inline-flex; align-items: center; gap: var(--s-50); }
.report__key i { width: 8px; height: 8px; border-radius: var(--r-full); display: inline-block; }
.report__rows { margin-top: var(--s-300); display: flex; flex-direction: column; gap: var(--s-300); }
.bars { margin-top: var(--s-75); display: flex; flex-direction: column; gap: var(--s-50); }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-100); }
.bar__track { height: 8px; border-radius: var(--r-full); background: var(--bg-2); overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 100%;
  border-radius: var(--r-full);
  transform-origin: left center;
  transform: scaleX(var(--v, 1));
  transition: transform 800ms var(--ease);
}
[dir="rtl"] .bar__fill { transform-origin: right center; }
.js .report:not(.is-in) .bar__fill { transform: scaleX(0); }
.bar__fill--platform { background: #4A4A4A; }
.bar__fill--true { background: var(--lime); }
.bar__val { min-width: 40px; text-align: end; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .roadmap { grid-template-columns: 1fr 1fr; } }
.road {
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.road__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); }
.soon {
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  border: 1px solid var(--lime-line);
  color: var(--lime);
}
.road h3 { margin-top: var(--s-300); }
.road p { margin-top: var(--s-75); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.faq-grid .section-head { margin-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: var(--s-75); }
.faq details {
  border-radius: var(--r-2xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: border-color var(--fade) var(--ease);
}
.faq details[open] { border-color: #3D3D3D; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-2xl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-2); transition: transform var(--move) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 var(--s-300) var(--s-300); color: var(--text-2); }
.faq details[open] .faq__answer { animation: faq-in var(--move) var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(calc(var(--s-75) * -1)); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Early access form ---------- */
.signup { max-width: 680px; margin-inline: auto; }
.signup__card {
  margin-top: var(--s-600);
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
  text-align: start;
}
@media (min-width: 640px) { .signup__card { padding: var(--s-400); } }
.form-grid { display: grid; gap: var(--s-300) var(--s-200); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: var(--s-75); }
.field label { color: var(--text); }
.field .opt { color: var(--text-3); }
.input, .select {
  width: 100%;
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color var(--fade) var(--ease), background-color var(--fade) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: #444444; }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--lime); outline-offset: 0; border-color: transparent; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--coral); }
.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: var(--s-500); cursor: pointer; }
.select-wrap .icon { position: absolute; inset-inline-end: var(--s-200); top: 50%; margin-top: -8px; color: var(--text-2); pointer-events: none; }
.field__error { color: var(--coral); min-height: 1.25rem; }
.field__error:empty { display: none; }
/* Honeypot: clipped in place (a large negative offset creates scroll overflow in RTL) */
.hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-foot { margin-top: var(--s-400); display: flex; flex-direction: column; gap: var(--s-200); }
.form-alert {
  display: flex; align-items: flex-start; gap: var(--s-75);
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-lg);
  background: var(--coral-soft);
  border: 1px solid rgba(255, 122, 102, 0.4);
  color: var(--text);
}
.form-alert .icon { color: var(--coral); margin-top: var(--s-25); }
.form-alert[hidden] { display: none; }
.btn .saving { display: none; }
.btn.is-loading .saving { display: inline; }
.btn.is-loading .idle { display: none; }
.btn.is-loading::after {
  content: ""; width: 24px; height: 2px; border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.5);
  animation: saving 1.2s var(--ease) infinite;
}
@keyframes saving { 0% { transform: scaleX(0.2); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0.2); opacity: 0.4; } }
.success { text-align: center; padding: var(--s-300) 0; }
.success .icon-box { width: 48px; height: 48px; }
.success h3 { margin-top: var(--s-300); }
.success p { margin-top: var(--s-75); color: var(--text-2); }
.success[hidden], form[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { padding-block: var(--s-600) var(--s-900); border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .footer { padding-bottom: var(--s-600); } }
.footer__row { display: flex; flex-direction: column; gap: var(--s-300); }
@media (min-width: 768px) { .footer__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-100); }
.footer__links a { color: var(--text-2); text-decoration: none; padding: var(--s-50) var(--s-75); border-radius: var(--r-lg); transition: color var(--fade) var(--ease), background-color var(--fade) var(--ease); }
.footer__links a:hover { color: var(--text); background: var(--bg-3); }
.footer__bottom { margin-top: var(--s-300); display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-200); color: var(--text-3); }
.footer__bottom a { color: var(--text-2); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Floating mobile CTA ---------- */
.float-cta {
  position: fixed; z-index: 30;
  inset-inline: var(--s-200);
  bottom: var(--s-200);
  display: flex;
  opacity: 0;
  transform: translateY(150%);
  pointer-events: none;
  transition: opacity var(--move) var(--ease), transform var(--move) var(--ease);
}
.float-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.float-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 1024px) { .float-cta { display: none; } }

/* ---------- Simple pages (legal, 404) ---------- */
.page { padding-top: var(--s-900); padding-bottom: var(--s-900); }
.page > .container { padding-top: var(--s-400); }
.prose { max-width: 680px; }
.prose h1 { margin-bottom: var(--s-200); }
.prose h2 { margin-top: var(--s-500); margin-bottom: var(--s-100); }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: var(--s-200); }
.prose ul { margin-top: var(--s-100); display: flex; flex-direction: column; gap: var(--s-75); padding-inline-start: var(--s-300); list-style: disc; }
.prose a { color: var(--lime); }
.back { display: inline-flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-400); color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound__code { color: var(--lime); }
.notfound p { margin-top: var(--s-200); color: var(--text-2); }
.notfound .actions { margin-top: var(--s-400); display: flex; flex-wrap: wrap; gap: var(--s-100); }

/* ---------- Scroll reveal (B7) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { transform: none; transition: opacity 700ms var(--ease); }
  .btn:hover, .btn:active, .benefit:hover { transform: none; }
  .mobile-menu__item { transform: none; }
  .float-cta { transform: none; }
  .word { transition: none; }
  .js .report:not(.is-in) .bar__fill { transform: scaleX(var(--v, 1)); }
  .bar__fill { transition: none; }
  .menu-toggle span { transition: none; }
}
