/* wasally.app — product landing page
 *
 * One stylesheet, in layers that read top to bottom:
 *   tokens → themes → base → components → sections → motion
 * Logical properties throughout (inline-start/end, block), so switching
 * <html dir> between rtl and ltr needs no mirrored rules; only directional
 * icons flip (.icon--dir).
 * Brand colours mirror WasallyColors in lib/core/theme/app_theme.dart.
 */

/* ───────────────────────── tokens ───────────────────────── */
:root {
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-400: #60A5FA;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --cyan-600: #0891B2;
  --teal-600: #17758E;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --green-500: #22C55E;
  --navy-950: #070F1F;
  --navy-900: #0A1628;
  --navy-800: #12213F;
  --navy-700: #1F3157;

  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;

  /* 7-step type scale (px): 14 / 16 / 18 / 22 / 28 / 40 / 56 */
  --fs-1: .875rem; --fs-2: 1rem; --fs-3: 1.125rem; --fs-4: 1.375rem;
  --fs-5: 1.75rem; --fs-6: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem);
  --fs-7: clamp(2.25rem, 1.2rem + 4.4vw, 3.5rem);

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(64px, 9vw, 120px);

  --e1: 0 1px 2px rgb(11 18 32 / .06), 0 1px 1px rgb(11 18 32 / .04);
  --e2: 0 14px 30px -14px rgb(11 18 32 / .28);
  --e3: 0 40px 80px -32px rgb(0 0 0 / .55);
  --edge-dark: inset 0 1px 0 rgb(255 255 255 / .06);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms; --t-mid: 250ms; --t-slow: 400ms;
}

/* ───────────────────────── themes ─────────────────────────
 * Each section declares data-theme; components read these roles only. */
[data-theme="light"], :root {
  --bg: #F6F8FC; --surface: #FFFFFF; --surface-2: #F1F5F9;
  --text: #0B1220; --muted: #475569; --border: #E2E8F0;
  --accent: var(--blue-600); --accent-text: var(--blue-700);
  --focus: var(--blue-600);
}
[data-theme="dark"] {
  --bg: var(--navy-950); --surface: var(--navy-800); --surface-2: #0E1D3A;
  --text: #F8FAFC; --muted: #A9B8D0; --border: var(--navy-700);
  --accent: var(--blue-400); --accent-text: #93C5FD;
  --focus: var(--blue-400);
}
[data-theme="brand"] {
  --bg: var(--blue-600); --surface: #FFFFFF; --surface-2: #F1F5F9;
  --text: #FFFFFF; --muted: #DBEAFE; --border: rgb(255 255 255 / .25);
  --accent: #FFFFFF; --accent-text: #FFFFFF;
  --focus: #FFFFFF;
}
/* A dark-mode reader isn't flashed with white light sections. */
@media (prefers-color-scheme: dark) {
  [data-theme="light"] {
    --bg: #0B1426; --surface: #111F3A; --surface-2: #0E1A33;
    --text: #F1F5F9; --muted: #A9B8D0; --border: #22365E;
    --accent: var(--blue-400); --accent-text: #93C5FD; --focus: var(--blue-400);
  }
}

/* ───────────────────────── base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-2); line-height: 1.7;
  color: var(--text); background: var(--navy-950);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[data-theme] { background: var(--bg); color: var(--text); }
img { max-inline-size: 100%; block-size: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.015em; } /* never on Arabic: it breaks letter joins */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: #fff; color: var(--navy-950); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { inset-block-start: 12px; }
html.lang-pending body { visibility: hidden; } /* main.js reveals once English copy is applied */

.container { inline-size: 100%; max-inline-size: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-inline-size: 820px; }

.icon { inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--dir { transition: transform var(--t-fast) var(--ease-out); }
[dir="ltr"] .icon--dir { transform: scaleX(-1); }
.icon--ok { color: var(--green-500); stroke-width: 2.4; }

/* ───────────────────────── components ───────────────────────── */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 700; font-size: var(--fs-2);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), background-color var(--t-mid);
}
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn:hover { box-shadow: var(--e2); }
  .btn:hover .icon--dir { transform: translateX(-3px); }
  [dir="ltr"] .btn:hover .icon--dir { transform: scaleX(-1) translateX(-3px); }
}
.btn--sm { min-block-size: 44px; padding: 8px 16px; font-size: var(--fs-1); }
.btn--lg { min-block-size: 54px; padding: 14px 28px; font-size: var(--fs-3); }
.btn--block { inline-size: 100%; }
.btn--primary { --btn-bg: var(--blue-600); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--blue-700); }
.btn--amber { --btn-bg: var(--amber-400); --btn-fg: var(--navy-950); }
.btn--dark { --btn-bg: var(--navy-900); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-950); }
.btn--outline { --btn-bg: transparent; border-color: var(--border); }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: #fff; border-color: var(--navy-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--muted); }

.icon-btn { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn--outline { border-color: var(--border); }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 6px; }
.link-quiet:hover { color: var(--text); }

.eyebrow { color: var(--accent-text); font-weight: 600; font-size: var(--fs-1); margin-block-end: 10px; }
.eyebrow--chip { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid #1F3A6E; background: #0E1D3A; color: #93C5FD; }
.eyebrow--amber { color: var(--amber-400); }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-block-size: 54px; padding: 8px 18px;
  border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); text-decoration: none;
  transition: border-color var(--t-mid), background-color var(--t-mid);
}
.store-badge:hover { border-color: var(--muted); }
.store-badge .icon { inline-size: 24px; block-size: 24px; fill: currentColor; stroke: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge small { font-size: 11px; color: var(--muted); }
.store-badge strong { font-size: var(--fs-2); }

/* Device frames around REAL app captures (test/marketing/). */
.device { margin: 0; position: relative; }
.device--phone {
  inline-size: min(300px, 78vw); aspect-ratio: 390 / 844; padding: 9px;
  border-radius: 42px; background: #0B1220; border: 1px solid #2A3F66;
  box-shadow: var(--e3), var(--edge-dark);
}
.device--phone .device__screen { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.device--small { inline-size: min(240px, 64vw); }
.device--browser {
  border-radius: var(--r-md); overflow: hidden; background: var(--navy-800); border: 1px solid var(--navy-700);
  box-shadow: var(--e3), var(--edge-dark);
}
.device__bar { display: flex; align-items: center; gap: 6px; block-size: 34px; padding-inline: 12px; background: var(--navy-800); }
.device__bar i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #3B4E73; }
.device__bar span { flex: 1; margin-inline-start: 10px; block-size: 20px; display: flex; align-items: center; padding-inline: 10px; border-radius: 6px; background: var(--navy-950); color: var(--muted); font-size: 11px; }
.device--browser .device__screen { inline-size: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }

/* ───────────────────────── nav ───────────────────────── */
.nav { position: sticky; inset-block-start: 0; z-index: 50; transition: background-color var(--t-mid), box-shadow var(--t-mid); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--navy-700); }
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgb(7 15 31 / .78); backdrop-filter: blur(14px) saturate(140%); }
}
@media (prefers-reduced-transparency: reduce) { .nav.is-scrolled { background: var(--navy-950); backdrop-filter: none; } }
.nav__row { display: flex; align-items: center; gap: 16px; min-block-size: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: var(--fs-4); color: #fff; }
.brand__mark { inline-size: 38px; block-size: 23px; color: var(--blue-400); }
.nav__links { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: var(--fs-1); font-weight: 500; padding: 10px 10px; border-radius: 8px; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav__menu { display: none; border-color: var(--navy-700); }
@media (max-width: 1023px) {
  .nav__links {
    position: absolute; inset-inline: 0; inset-block-start: 100%; flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 16px; background: var(--navy-950); border-block-end: 1px solid var(--navy-700);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; font-size: var(--fs-2); }
  .nav__menu { display: inline-grid; }
  .nav__signin { display: none; }
}
@media (max-width: 639px) {
  .lang-toggle { padding-inline: 8px; }
  .nav__open { display: none; } /* the sticky bottom bar carries it on phones */
}

.returning { border-block-end: 1px solid var(--navy-700); }
.returning__row { display: flex; justify-content: center; align-items: center; gap: 12px; min-block-size: 44px; font-size: var(--fs-1); color: var(--muted); }
.returning a { display: inline-flex; align-items: center; gap: 6px; color: #93C5FD; font-weight: 600; text-decoration: none; }

/* ───────────────────────── hero ───────────────────────── */
.hero { overflow: clip; }
.hero__grid { display: grid; gap: 48px; padding-block: clamp(40px, 7vw, 88px) 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.hero__title { font-size: var(--fs-7); line-height: 1.3; margin-block: 18px 18px; }
.hero__title span { display: block; }
.hero__title-accent { color: var(--blue-400); }
.hero__lead { font-size: var(--fs-3); color: var(--muted); max-inline-size: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-block-start: 16px; color: var(--muted); font-size: var(--fs-1); }
@media (max-width: 639px) { .hero__ctas .btn { inline-size: 100%; } .hero__ctas .store-badge { inline-size: 100%; justify-content: center; } }

.hero__stage { --svc: var(--blue-600); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__stage[data-service="wasalni"] { --svc: var(--cyan-600); }
.hero__stage[data-service="anqali"] { --svc: var(--teal-600); }
.preview { position: relative; inline-size: 100%; max-inline-size: 540px; display: grid; justify-items: center; padding-block: 12px 24px; }
.preview::before { /* a soft service-coloured light behind the phone, not a wash */
  content: ""; position: absolute; inset: 18% 14%; border-radius: 50%; background: var(--svc);
  filter: blur(70px); opacity: .32; transition: background-color var(--t-slow) var(--ease-out);
}
.preview__browser { display: none; }
@media (min-width: 1024px) {
  .preview { min-block-size: 560px; }
  .preview__browser { display: block; position: absolute; inline-size: 92%; inset-inline-end: -16%; inset-block-start: 40px; opacity: .9; }
}
.preview__phone { position: relative; }
/* The three service captures are stacked inside the frame (which holds its
   own aspect ratio); only the active one is visible. */
.device--phone .preview__shot { position: absolute; inset: 9px; inline-size: calc(100% - 18px); block-size: calc(100% - 18px); opacity: 0; transform: translateY(8px) scale(.99); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.device--phone .preview__shot.is-active { opacity: 1; transform: none; }

.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  font-size: var(--fs-1); font-weight: 600; color: #fff; background: rgb(18 33 63 / .82); border: 1px solid var(--navy-700);
  box-shadow: var(--e2); opacity: 0; transform: translateY(10px);
  animation: rise var(--t-slow) var(--ease-out) forwards;
}
@supports (backdrop-filter: blur(1px)) { .chip-float { background: rgb(18 33 63 / .6); backdrop-filter: blur(12px); } }
/* Anchored to the preview's outer edges so they overlap the phone's sides,
   never its middle. */
.chip-float--a { inset-block-end: 72px; inset-inline-end: 0; animation-delay: .6s; }
.chip-float--b { inset-block-start: 96px; inset-inline-start: 0; animation-delay: .75s; z-index: 1; }
.chip-float__dot { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgb(34 197 94 / .2); }
.chip-float .icon { color: var(--amber-400); }
@media (max-width: 639px) { .chip-float--b { display: none; } .chip-float--a { inset-block-end: 40px; } }

.services { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.services__btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  min-block-size: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: var(--fs-1); cursor: pointer;
  transition: background-color var(--t-mid), color var(--t-mid);
}
.services__btn[aria-pressed="true"] { background: var(--svc); color: #fff; }
.services__progress { position: absolute; inset-inline-start: 0; inset-block-end: 0; block-size: 3px; inline-size: 100%; background: rgb(255 255 255 / .55); transform-origin: right; transform: scaleX(0); }
[dir="ltr"] .services__progress { transform-origin: left; }
.services.is-playing .services__btn[aria-pressed="true"] .services__progress { animation: progress var(--cycle, 5s) linear forwards; }
.services__pause { inline-size: 40px; block-size: 40px; border: 0; color: var(--muted); }
.services__pause .icon--play { display: none; }
.services__pause[aria-pressed="true"] .icon--play { display: block; }
.services__pause[aria-pressed="true"] .icon--pause { display: none; }
.services__pause .icon { fill: currentColor; }

.trust { border-block-start: 1px solid var(--navy-700); padding-block: 22px 18px; }
.trust__list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: var(--fs-1); }
.trust__list li { display: inline-flex; align-items: center; gap: 8px; }
.trust__list .icon { color: var(--blue-400); }
.trust__foot { text-align: center; color: #7C8BA4; font-size: 12px; margin-block-start: 8px; }

/* ───────────────────────── sections ───────────────────────── */
.section { padding-block: var(--section-y); }
.section--tight-top { padding-block-start: calc(var(--section-y) / 2); }
.section__head { text-align: center; max-inline-size: 40rem; margin: 0 auto 48px; }
.section__head--start { text-align: start; margin-inline: 0; margin-block-end: 28px; }
.section__head h2 { font-size: var(--fs-6); }
.section__lead { margin-block-start: 12px; color: var(--muted); font-size: var(--fs-3); }

/* Bento: explicit tracks per breakpoint (an auto-fit grid with spans
   overflows at phone width). */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--wide, .tile--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .tile--full { grid-column: 1 / -1; }
}
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--e1); text-decoration: none; color: var(--text);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
@media (hover: hover) { a.tile:hover { transform: translateY(-2px); box-shadow: var(--e2); } }
.tile h3 { font-size: var(--fs-4); }
.tile p { color: var(--muted); }
.tile__icon { inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center; }
.tile__icon .icon { inline-size: 24px; block-size: 24px; }
.tile__icon--blue { background: #DBEAFE; color: #1D4ED8; }
.tile__icon--green { background: #DCFCE7; color: #15803D; }
.tile__icon--rose { background: #FFE4E6; color: #BE123C; }
.tile__icon--violet { background: #EDE9FE; color: #6D28D9; }
.tile__icon--cyan { background: #CFFAFE; color: #0E7490; }
.tile__icon--teal { background: var(--teal-600); color: #fff; }
.tile__more { margin-block-start: auto; color: var(--accent-text); font-weight: 700; }
.tile__shot { margin: 0; }
.tile__shot img { border-radius: 18px; box-shadow: var(--e2); }
.tile__shot--peek { margin-block: 12px -40px; margin-inline: auto; inline-size: 72%; block-size: 220px; overflow: hidden; border-radius: 18px 18px 0 0; }
.tile__shot--peek img { border-radius: 18px 18px 0 0; object-fit: cover; object-position: top; }
.tile--wide, .tile--full { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }
.tile--wide .tile__text, .tile--full .tile__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.tile--wide .tile__shot, .tile--full .tile__shot { flex: 0 1 230px; block-size: 300px; overflow: hidden; margin-block-end: -26px; border-radius: 18px 18px 0 0; align-self: flex-end; }
.tile--wide .tile__shot img, .tile--full .tile__shot img { object-fit: cover; object-position: top; block-size: 100%; inline-size: 100%; border-radius: 18px 18px 0 0; }
.tile--dark { background: var(--navy-900); border-color: var(--navy-700); color: #fff; box-shadow: var(--edge-dark); }
.tile--dark p { color: #A9B8D0; }
.tile--dark .tile__more { color: #5EEAD4; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--media-first .split__media { order: -1; }
}
.split__media { display: grid; justify-items: center; }
.device--wide { inline-size: 100%; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-weight: 700; }
.steps h3 { font-size: var(--fs-3); }
.steps p { color: var(--muted); }
.perks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .icon { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.features-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 20px; }
.features-list li { display: flex; gap: 14px; }
.features-list__icon { flex: none; inline-size: 42px; block-size: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--blue-400); box-shadow: var(--edge-dark); }
.features-list h3 { font-size: var(--fs-3); }
.features-list p { color: var(--muted); }

.section--band { padding-block: calc(var(--section-y) / 2); }
.band { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--e1); }
.band .device { margin-block: -8px -64px; align-self: flex-end; }
@media (max-width: 639px) { .band { justify-content: center; } .band .device { order: 2; } }
.band__text { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.band__text h2 { font-size: var(--fs-5); }
.ticks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .icon { color: var(--green-500); stroke-width: 2.4; }

/* Evolving every day */
.evo { display: grid; gap: 24px; }
@media (min-width: 1024px) { .evo { grid-template-columns: 1fr 1fr; } }
.evo__col { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--e1); }
.evo__heading { display: flex; align-items: center; gap: 10px; font-size: var(--fs-3); margin-block-end: 18px; }
.evo__heading .icon { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding-inline-start: 26px; padding-block-end: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 5px; inset-block: 10px -8px; inline-size: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 7px; inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface); }
.timeline time { font-size: 12px; color: var(--muted); }
.timeline h4 { font-size: var(--fs-2); }
.timeline p { color: var(--muted); font-size: var(--fs-1); }
.tag { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.votes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.vote { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.vote h4 { font-size: var(--fs-2); }
.vote p { color: var(--muted); font-size: var(--fs-1); }
.vote__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-1); font-weight: 600; cursor: pointer; }
.vote__btn[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; cursor: default; }
.vote__count { min-inline-size: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
.idea { display: grid; gap: 10px; }
.idea label { font-weight: 600; }
.idea textarea, .idea input { inline-size: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.idea__row { display: flex; gap: 10px; }
.idea__row input { flex: 1; min-inline-size: 0; }
.idea__status { min-block-size: 1.5em; font-size: var(--fs-1); color: var(--muted); }
.idea__status.is-error { color: #F87171; }
.idea__status.is-ok { color: var(--green-500); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding-inline: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; min-block-size: 44px; font-weight: 600; font-size: var(--fs-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4em; line-height: 1; color: var(--muted); transition: transform var(--t-mid) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-block-end: 18px; }

/* Get started: web | app */
.get__title { text-align: center; font-size: var(--fs-6); margin-block-end: 40px; }
.get__grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 1024px) { .get__grid { grid-template-columns: 1fr auto 1fr; gap: 20px; } }
.get__or { display: grid; place-items: center; font-weight: 700; color: #DBEAFE; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--r-lg); }
.panel h3 { font-size: var(--fs-5); }
.panel--light { background: #fff; color: var(--navy-950); }
.panel--light p { color: #475569; }
.panel--dark { background: var(--navy-900); color: #fff; box-shadow: var(--edge-dark); }
.panel--dark .store-badge { --border: var(--navy-700); color: #fff; }
.panel__icon { inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center; background: #DBEAFE; color: #1D4ED8; }
.panel--dark .panel__icon { background: var(--navy-800); color: #93C5FD; }
.panel__icon .icon { inline-size: 24px; block-size: 24px; }
.panel__note { color: #A9B8D0; }
.panel__fine { color: #7C8BA4; font-size: 12px; }
.urlbar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid #CBD5E1; border-radius: 12px; color: #334155; }
.urlbar span { flex: 1; }
.urlbar__copy { min-block-size: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: #F1F5F9; color: var(--navy-950); font: inherit; font-weight: 600; font-size: var(--fs-1); cursor: pointer; }
.get__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.qr { margin: 0; display: flex; align-items: center; gap: 12px; }
.qr img { inline-size: 104px; block-size: 104px; border-radius: 12px; background: #fff; padding: 6px; }
.qr figcaption { font-size: var(--fs-1); color: #A9B8D0; max-inline-size: 9em; }
.ios-steps { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; color: #DBE7FF; }
.ios-steps li { display: list-item; }
.ios-steps .icon { display: inline-block; vertical-align: -3px; }

/* Platform-aware app panel (platform.js sets html[data-platform]). */
.platform--ios { display: none; }
html[data-platform="ios"] .platform--ios { display: flex; flex-direction: column; gap: 12px; }
html[data-platform="ios"] .platform--android { display: none; }
.platform--desktop-only { display: none; }
html[data-platform="desktop"] .platform--desktop-only { display: flex; }
html[data-platform="ios"] .store-badge--android { display: none; } /* no Play app on iPhone */

.footer { padding-block: 56px 28px; border-block-start: 1px solid var(--navy-700); color: var(--muted); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer__brand p { margin-block-start: 10px; font-size: var(--fs-1); }
.footer h2 { font-size: var(--fs-2); color: #fff; margin-block-end: 6px; }
.footer nav { display: flex; flex-direction: column; }
.footer nav a { color: var(--muted); text-decoration: none; padding-block: 8px; font-size: var(--fs-1); }
.footer nav a:hover { color: #fff; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--navy-700); font-size: 13px; }

/* Mobile sticky CTA: only on phones, after the hero (nav.js toggles). */
.sticky-cta { display: none; }
@media (max-width: 639px) {
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96);
    border-block-start: 1px solid #E2E8F0; box-shadow: 0 -10px 30px -16px rgb(7 15 31 / .35);
    transform: translateY(110%); transition: transform var(--t-mid) var(--ease-out);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: 1; }
  .sticky-cta__play { --border: #CBD5E1; color: var(--navy-950); }
  .sticky-cta__play .icon { fill: currentColor; stroke: none; }
  body { padding-block-end: 0; }
}

/* ───────────────────────── motion ─────────────────────────
 * Visible by default (no JS = no hidden content). JS adds .js on <html>;
 * reveals use scroll-driven animation where supported, else reveal.js. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
  @supports not (animation-timeline: view()) {
    html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
    html.js .reveal { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip-float { animation: none; opacity: 1; transform: none; }
  .preview__shot { transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* View-transition crossfade for the hero service switch (preview.js). */
::view-transition-old(preview-shot) { animation: .22s ease both fade-out; }
::view-transition-new(preview-shot) { animation: .32s var(--ease-out) .06s both fade-in-up; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(8px); } }

/* Content-visibility: skip layout/paint of far-off sections on slow phones. */
#evolving, #faq, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
