/* REVO landing page. Mobile first, RTL, logical properties throughout.
   Motion: transform and opacity only; every animated state has a still end state
   (used as-is under prefers-reduced-motion and without JavaScript). */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Latin letters and digits only; everything else falls through to Plex Arabic. */
@font-face { font-family: "Schibsted"; src: url("fonts/SchibstedGrotesk-Variable-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0030-0039, U+0041-005A, U+0061-007A; }

/* ---------- Colour tokens (two sets; config.js picks one) ---------- */
:root,
[data-palette="prompt"] {
  --ink: #060810;            /* Deep Black */
  --paper: #F8FAFC;          /* White */
  --accent: #3B7DD8;         /* Electric Blue */
  --accent-strong: #2F6BC0;  /* darker Electric Blue: the call to action (5:1) */
  --accent-press: #285EA9;
  --accent-on-dark: #3B7DD8;
  --on-accent: #F8FAFC;
  --signal: #2F6BC0;         /* selection, status, links, focus */
  --mark: #3B7DD8;
  --blue: #3B7DD8;           /* Electric Blue: numbers, lines, progress */
  --blue-strong: #2F6BC0;    /* Electric Blue for fills under white text (5:1) */
  --marigold: #F2A33A;       /* highlighter behind key words (REVO extended colour) */
  --surface: #FFFFFF;
  --tint: rgb(59 125 216 / 0.08);
  --tint-strong: rgb(59 125 216 / 0.16);
  --bubble-customer: #FFFFFF;
  --dark-surface: #0F1320;
  --logo-light: #000000;     /* official black wordmark */
  --logo-dark: #FFFFFF;      /* official white wordmark */
}
[data-palette="brand"] {
  --ink: #002147;            /* Oxford */
  --paper: #EDF5F8;          /* Icy */
  --accent: #BB3C20;         /* Persimmon: the call to action, and nothing else */
  --accent-strong: #BB3C20;
  --accent-press: #A13419;
  --accent-on-dark: #BDDCEC; /* Pale Sky carries accents on Oxford */
  --on-accent: #EDF5F8;
  --signal: #2F6BC0;         /* Electric Blue carries selection, status, links, focus */
  --mark: #3B7DD8;
  --blue: #3B7DD8;           /* Electric Blue (added 2026-11-08 for attention) */
  --blue-strong: #2F6BC0;
  --marigold: #F2A33A;       /* REVO extended colour, used as a highlighter */
  --surface: #FFFFFF;
  --tint: rgb(189 220 236 / 0.35);
  --tint-strong: rgb(189 220 236 / 0.6);
  --bubble-customer: #BDDCEC;
  --dark-surface: #0A2C55;
  --logo-light: #002147;     /* official Oxford wordmark */
  --logo-dark: #EDF5F8;      /* official Icy wordmark */
}

/* ---------- System tokens ---------- */
:root {
  /* Secondary text is near full strength: it has to be read, not skimmed past. */
  --ink-soft: color-mix(in srgb, var(--ink) 90%, var(--paper));
  --ink-muted: color-mix(in srgb, var(--ink) 80%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);
  --on-dark: var(--paper);
  --on-dark-soft: color-mix(in srgb, var(--paper) 90%, var(--ink));
  --dark-line: color-mix(in srgb, var(--paper) 16%, transparent);

  /* Type */
  --font: "Schibsted", "Plex Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --fs-xs: 0.8125rem;        /* 13 */
  --fs-small: 0.9375rem;     /* 15 */
  --fs-body: 1.0625rem;      /* 17 */
  --fs-h3: 1.25rem;          /* 20 */
  --fs-h2: clamp(1.55rem, 1.1rem + 1.9vw, 2.35rem);
  --fs-h1: clamp(2rem, 1.2rem + 4vw, 3.85rem);

  /* Space (4-based) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: 20px;
  --max: 1120px;
  --section-y: clamp(64px, 6vw + 36px, 112px);

  /* Shape */
  --r-control: 12px;
  --r-slip: 14px;
  --r-panel: 20px;
  --r-device: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 160ms;
  --dur-state: 280ms;
  --dur-step: 420ms;
  --dur-enter: 560ms;
}
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.8; font-weight: 400;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
dl, dd { margin: 0; }
.defs { position: absolute; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.js-only { display: none; }
.js .js-only { display: block; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.band-dark :focus-visible { outline-color: var(--accent-on-dark); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section h2 { font-size: var(--fs-h2); max-width: 22ch; }
.section-lead { margin-top: var(--s3); color: var(--ink-soft); max-width: 38em; font-size: 1.125rem; font-weight: 500; }

/* ---------- Highlighter: Marigold behind the words that carry the point ---------- */
mark.hl {
  color: inherit; font-weight: 700; padding-inline: 0.06em;
  background-color: transparent;
  background-image: linear-gradient(var(--marigold), var(--marigold)); /* one solid colour, not a gradient */
  background-repeat: no-repeat; background-size: 100% 40%; background-position: 100% 90%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.band-dark mark.hl { color: var(--ink); background-size: 100% 100%; background-position: 100% 50%; border-radius: 4px; padding-inline: 0.22em; }
.motion [data-reveal] mark.hl { background-size: 0% 40%; transition: background-size 720ms var(--ease) calc(var(--d, 0ms) + 520ms); }
.motion .band-dark [data-reveal] mark.hl, .motion .band-dark[data-reveal] mark.hl { background-size: 0% 100%; color: var(--on-dark); transition: background-size 720ms var(--ease) calc(var(--d, 0ms) + 520ms), color 240ms ease calc(var(--d, 0ms) + 760ms); }
.motion [data-reveal].is-in mark.hl { background-size: 100% 40%; }
.motion .band-dark [data-reveal].is-in mark.hl { background-size: 100% 100%; color: var(--ink); }

/* ---------- Reveal: every block arrives in turn as the reader scrolls to it ---------- */
.motion [data-reveal]:not([data-reveal="words"]) {
  opacity: 0; transform: translateY(18px);
  transition: opacity 560ms var(--ease) var(--d, 0ms), transform 680ms var(--ease) var(--d, 0ms);
}
.motion [data-reveal]:not([data-reveal="words"]).is-in { opacity: 1; transform: none; }
.motion [data-reveal="words"]:not(.is-split) { opacity: 0; }
.motion [data-reveal="words"] .rw {
  display: inline-block; opacity: 0; transform: translateY(0.5em);
  transition: opacity 420ms var(--ease), transform 560ms var(--ease);
  transition-delay: calc(var(--d, 0ms) + min(var(--wi) * 26ms, 640ms));
}
.motion [data-reveal="words"].is-in .rw { opacity: 1; transform: none; }
html.reveal-all [data-reveal], html.reveal-all [data-reveal] .rw { opacity: 1 !important; transform: none !important; }
html.reveal-all mark.hl { background-size: 100% 40% !important; }
html.reveal-all .band-dark mark.hl { background-size: 100% 100% !important; color: var(--ink) !important; }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark .section-lead { color: var(--on-dark-soft); }
.section-tint { background: var(--tint); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  border-radius: var(--r-control); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.4; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-micro) ease, border-color var(--dur-micro) ease, transform var(--dur-micro) ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); width: 100%; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet { background: transparent; color: var(--ink-soft); min-height: 48px; padding-inline: 12px; font-weight: 500; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-press); }
  .btn-secondary:hover { border-color: var(--ink); }
  .btn-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 560px) { .btn-primary { width: auto; } }

.link-quiet {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--signal); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.band-dark .link-quiet { color: var(--on-dark); text-decoration-color: var(--accent-on-dark); }
.as-button { background: none; border: 0; padding: 0; cursor: pointer; }
.micro { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-soft); font-weight: 500; line-height: 1.7; }
.band-dark .micro { color: var(--on-dark-soft); }
.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 500; line-height: 1.6;
  padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--ink-soft);
}
.tag-strong { font-size: var(--fs-small); padding: 6px 14px; background: var(--tint-strong); color: var(--ink); }
.note { margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.7; padding-inline-start: 12px; border-inline-start: 3px solid var(--blue); }
.optional { font-weight: 400; color: var(--ink-muted); font-size: var(--fs-small); }
.band-dark .optional { color: var(--on-dark-soft); }

/* ---------- The request slip: the object that runs through the whole page ---------- */
.slip {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-slip);
  padding: 14px 16px 10px; line-height: 1.55;
}
.slip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1.5px dashed var(--line-strong);
}
.slip-title { font-weight: 700; }
.slip-state {
  flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--signal);
  display: inline-flex; align-items: center; gap: 6px;
}
.slip-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.slip-state[data-done="false"] { color: var(--ink-muted); }
.slip-rows { display: grid; }
.slip-rows > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.slip-rows > div:last-child { border-bottom: 0; }
.slip-rows dt { color: var(--ink-muted); font-size: var(--fs-small); }
.slip-rows dd { font-weight: 500; overflow-wrap: anywhere; border-radius: 6px; }
.slip-rows dd[data-empty="true"] { color: var(--ink-muted); font-weight: 400; }
.motion .slip-rows dd.is-updated { animation: dd-flash 700ms ease-out; }
@keyframes dd-flash { from { background: var(--tint-strong); } to { background: transparent; } }

/* ---------- Header ---------- */
.site-header { padding-block: 20px 4px; }
.brand { display: inline-flex; padding: 8px 0; }
.wordmark { height: 22px; width: auto; color: var(--logo-light); }

/* ---------- 1 · Hero ---------- */
.hero { display: grid; gap: var(--s6); padding-block: var(--s4) var(--section-y); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.3; }
.hero .lead { margin-top: var(--s4); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); color: var(--ink-soft); max-width: 32em; }
.who-label { margin-top: var(--s4); font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.sector-chips { list-style: none; margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: var(--s2); }
.sector-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border: 1.5px solid var(--blue); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: var(--fs-small); text-decoration: none;
  transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease;
}
.sector-chips a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-inline-end: 8px; }
@media (hover: hover) { .sector-chips a:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #FFFFFF; } .sector-chips a:hover::before { background: #FFFFFF; } }
.cta-group { margin-top: var(--s5); }
.hero .link-quiet { margin-top: var(--s1); }

/* Headline entrance: words rise inside their own clip box, once. */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: 0.16em; margin-block: -0.16em; }
.reveal-words .wi { display: inline-block; }
.motion .reveal-words.is-revealing .wi { animation: word-up var(--dur-enter) var(--ease) both; animation-delay: calc(80ms + var(--i) * 55ms); }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }

/* Hero scene: four scattered messages settle behind one request slip. */
.hero-scene { margin: 0; display: grid; gap: var(--s4); justify-items: center; }
.scene { width: min(360px, 100%); display: grid; }
.scene-msgs { display: grid; gap: var(--s2); justify-items: start; padding-inline: 2px 40px; }
.sm {
  background: var(--bubble-customer); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; border-start-start-radius: 4px;
  padding: 7px 14px; font-size: var(--fs-small); line-height: 1.55; font-weight: 500;
  opacity: 0.5; transform: translateY(6px) scale(0.97); transform-origin: top right;
}
.scene-slip {
  position: relative; z-index: 1; margin-top: -34px; margin-inline-start: 28px;
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ink) 50%, transparent);
  font-size: var(--fs-small);
}
.motion .scene.is-playing .sm { animation: sm-in 380ms var(--ease) both, sm-settle var(--dur-step) var(--ease) 1500ms forwards; }
.motion .scene.is-playing .sm-1 { animation-delay: 150ms, 1500ms; }
.motion .scene.is-playing .sm-2 { animation-delay: 330ms, 1500ms; }
.motion .scene.is-playing .sm-3 { animation-delay: 480ms, 1500ms; }
.motion .scene.is-playing .sm-4 { animation-delay: 600ms, 1500ms; }
.motion .scene.is-playing .scene-slip { animation: slip-in var(--dur-enter) var(--ease) 1650ms both; }
.motion .scene.is-playing .scene-slip .slip-rows > div { animation: row-in 360ms var(--ease) both; }
.motion .scene.is-playing .scene-slip .slip-rows > div:nth-child(1) { animation-delay: 1900ms; }
.motion .scene.is-playing .scene-slip .slip-rows > div:nth-child(2) { animation-delay: 1990ms; }
.motion .scene.is-playing .scene-slip .slip-rows > div:nth-child(3) { animation-delay: 2060ms; }
.motion .scene.is-playing .scene-slip .slip-rows > div:nth-child(4) { animation-delay: 2110ms; }
@keyframes sm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sm-settle { from { opacity: 1; transform: none; } to { opacity: 0.5; transform: translateY(6px) scale(0.97); } }
@keyframes slip-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-scene figcaption {
  width: min(360px, 100%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s3);
  font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.7;
}
.replay {
  min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  color: var(--signal); font-weight: 500; font-size: var(--fs-small);
  text-decoration: underline; text-underline-offset: 5px;
}
html:not(.motion) .replay { display: none; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--s8); padding-top: var(--s7); }
  .hero h1 { max-width: 13ch; }
  .scene { width: 400px; }
  .hero-scene figcaption { width: 400px; }
}

/* ---------- 2 · Compare ---------- */
.ba { margin-top: var(--s6); display: grid; gap: var(--s5); }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); max-width: 560px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label {
  display: grid; align-content: center; gap: 2px; min-height: 68px; padding: 10px 14px;
  border: 1.5px solid var(--dark-line); border-radius: var(--r-slip); cursor: pointer;
  transition: background-color var(--dur-state) var(--ease), border-color var(--dur-state) var(--ease), color var(--dur-state) var(--ease);
}
.switch label strong { font-size: 1rem; line-height: 1.4; }
.switch label span { font-size: var(--fs-xs); color: var(--on-dark-soft); line-height: 1.5; }
.switch input:checked + label { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.switch input:checked + label span { color: var(--ink-soft); }
.switch input:focus-visible + label { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }
/* Phones: the switch stays in reach while the long conversation scrolls past (this section only). */
@media (max-width: 899px) and (min-height: 561px) {
  .switch { position: sticky; top: 0; z-index: 3; background: var(--ink); padding-block: 8px; margin-block: -8px; }
}

.ba-stage { display: grid; }
.ba-state { grid-area: 1 / 1; display: grid; gap: var(--s5); align-content: start; transition: opacity var(--dur-state) var(--ease), visibility 0s linear 0s; }
.ba-after { opacity: 0; visibility: hidden; }
.ba:has(#ba-after:checked) .ba-before { opacity: 0; visibility: hidden; transition: opacity var(--dur-state) var(--ease), visibility 0s linear var(--dur-state); }
.ba:has(#ba-after:checked) .ba-after { opacity: 1; visibility: visible; }

.chat {
  background: var(--dark-surface); border: 1px solid var(--dark-line);
  border-radius: var(--r-panel); padding: 18px 14px; display: grid; gap: 10px; max-width: 520px;
}
.msg { position: relative; display: grid; gap: 2px; max-width: 84%; padding: 9px 13px 7px; border-radius: 14px; line-height: 1.6; font-size: var(--fs-small); }
.msg time { font-size: 0.75rem; opacity: 0.75; justify-self: end; }
.from-customer { justify-self: start; background: var(--bubble-customer); color: var(--ink); border-start-start-radius: 4px; }
.from-shop { justify-self: end; background: color-mix(in srgb, var(--accent-on-dark) 22%, var(--dark-surface)); color: var(--on-dark); border-start-end-radius: 4px; }
[data-palette="brand"] .from-shop { background: var(--surface); color: var(--ink); }
.pin, .notes b {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 0.75rem; font-weight: 700; line-height: 1; background: var(--marigold); color: var(--ink);
}
.pin { position: absolute; top: -9px; inset-inline-end: -9px; }
.notes { list-style: none; display: grid; gap: var(--s3); max-width: 30em; }
.notes li { display: flex; gap: var(--s3); align-items: flex-start; line-height: 1.65; }
.notes b { margin-top: 2px; }
.ba-after .slip { max-width: 520px; }
/* Switching to the organised view: the request's rows land one after another. */
.motion .ba-after.is-replaying .slip-rows > div { animation: row-in 420ms var(--ease) both; }
.motion .ba-after.is-replaying .slip-rows > div:nth-child(2) { animation-delay: 70ms; }
.motion .ba-after.is-replaying .slip-rows > div:nth-child(3) { animation-delay: 130ms; }
.motion .ba-after.is-replaying .slip-rows > div:nth-child(4) { animation-delay: 180ms; }
.motion .ba-after.is-replaying .slip-rows > div:nth-child(5) { animation-delay: 220ms; }
.motion .ba-after.is-replaying .slip-rows > div:nth-child(6) { animation-delay: 250ms; }
.motion .ba-after.is-replaying .notes li { animation: row-in 420ms var(--ease) both; }
.motion .ba-after.is-replaying .notes li:nth-child(1) { animation-delay: 320ms; }
.motion .ba-after.is-replaying .notes li:nth-child(2) { animation-delay: 420ms; }
.motion .ba-after.is-replaying .notes li:nth-child(3) { animation-delay: 500ms; }
.ba-note { font-size: var(--fs-xs); color: var(--on-dark-soft); }
@media (min-width: 900px) {
  .ba-state { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; column-gap: var(--s7); }
}

/* ---------- 3 · Story ---------- */
.story-grid { margin-top: var(--s6); display: grid; }
.story-stage {
  display: grid; justify-items: center; gap: var(--s2);
  padding-block: var(--s3) var(--s2); background: var(--paper);
}
.js .story-stage { position: sticky; top: 0; z-index: 2; }
.device {
  position: relative; width: min(340px, 100%); height: 262px;
  border-radius: var(--r-device); background: var(--ink); padding: 7px;
}
.screen-layer {
  position: absolute; inset: 7px; border-radius: calc(var(--r-device) - 7px);
  background: var(--surface); color: var(--ink);
  padding: 14px 14px 12px; overflow: hidden;
  font-size: var(--fs-xs); line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translateX(-14px);
  transition: opacity var(--dur-step) var(--ease), transform var(--dur-step) var(--ease), visibility 0s linear var(--dur-step);
}
.device[data-step="1"] [data-screen="1"],
.device[data-step="2"] [data-screen="2"],
.device[data-step="3"] [data-screen="3"],
.device[data-step="4"] [data-screen="4"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
html:not(.motion) .screen-layer { transition: none; }

.scr-title { font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--s2); }
.prof { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.prof-avatar { grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: var(--tint-strong); display: grid; place-items: center; font-weight: 700; font-size: 1rem; }
.prof-name { font-weight: 700; font-size: var(--fs-small); }
.prof-bio { color: var(--ink-muted); }
.link-chip {
  margin-top: var(--s3); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--signal); font-weight: 700;
}
.link-chip svg { width: 15px; height: 15px; }
.motion .device[data-step="1"] .link-chip { animation: ring 1.2s var(--ease) 0.3s 2; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--tint-strong); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.prof-grid { margin-top: var(--s3); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.prof-grid i { aspect-ratio: 1; border-radius: 6px; background: var(--tint); }
.pick { display: grid; gap: 4px; margin-bottom: 10px; }
.pick-label { color: var(--ink-muted); }
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font-weight: 500;
}
.pick-row.is-chosen, .chip.is-chosen { border-color: var(--signal); background: var(--tint); }
.tick { width: 16px; height: 16px; color: var(--signal); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px 11px; font-weight: 500; }
.field-mock { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 5px 10px; }
.screen-layer .slip-rows > div { grid-template-columns: 5.5em 1fr; padding-block: 5px; }
.screen-layer .slip-rows dt { font-size: var(--fs-xs); }
.send-mock {
  display: block; margin-top: var(--s3); text-align: center; padding: 8px; border-radius: 10px;
  background: var(--ink); color: var(--on-dark); font-weight: 700;
}
.inbox-new { border: 1.5px solid var(--signal); border-radius: 12px; padding: 8px 10px 4px; background: var(--surface); }
.inbox-new .slip-head { padding-bottom: 6px; }
.pill-new { font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--on-dark); }
.motion .device[data-step="4"] .inbox-new { animation: slip-in var(--dur-enter) var(--ease) 120ms both; }
.inbox-old { margin-top: 8px; display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.inbox-old i { height: 7px; border-radius: 4px; background: var(--line); }
.inbox-old i:last-child { width: 60%; }

.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color var(--dur-state) ease, transform var(--dur-state) var(--ease); }
.dots i.is-on { background: var(--blue); transform: scale(1.35); }

.story-steps { list-style: none; counter-reset: st; }
.story-step { counter-increment: st; padding-block: var(--s6) 0; max-width: 30em; }
.js .story-step { min-height: 42svh; }
.story-step h3 { font-size: var(--fs-h3); display: flex; align-items: baseline; gap: 10px; }
.story-step h3::before {
  content: counter(st); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-muted);
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0 8px; line-height: 1.7;
}
.story-step p { margin-top: var(--s2); color: var(--ink-soft); }
.story-step.is-active h3::before { background: var(--blue-strong); color: #FFFFFF; border-color: var(--blue-strong); }
.story-step h3::before { transition: background-color var(--dur-state) ease, color var(--dur-state) ease, border-color var(--dur-state) ease; }
.js .story-step:last-child { min-height: 34svh; }

/* Short screens: no pinned stage, the steps simply read in order. */
@media (max-height: 560px) {
  .js .story-stage { position: static; }
  .js .story-step, .js .story-step:last-child { min-height: 0; }
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--s8); align-items: start; }
  .story-stage { order: 2; padding: 0; background: transparent; }
  .js .story-stage { top: calc(50vh - 190px); }
  .screen-layer { font-size: var(--fs-small); padding: 18px; }
  .js .story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
  .story-step h3 { font-size: 1.6rem; }
  .story-step p { font-size: 1.125rem; }
  .device { width: 400px; height: 380px; }
  .js .story-step:last-child { min-height: 50vh; }
}
@media (min-width: 900px) and (max-height: 560px) {
  .js .story-stage { position: static; }
}

/* ---------- 4 · Choose and try ---------- */
.sector-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s6); }
.sector-tabs[hidden] { display: none; }
.sector-tabs [role="tab"] {
  min-height: 52px; padding: 10px 12px; border-radius: var(--r-control);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 500; cursor: pointer; line-height: 1.4;
  transition: background-color var(--dur-state) var(--ease), color var(--dur-state) var(--ease), border-color var(--dur-state) var(--ease);
}
.sector-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); font-weight: 700; }
@media (hover: hover) { .sector-tabs [role="tab"]:hover { border-color: var(--ink); } }
@media (min-width: 720px) { .sector-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; } }

.try-panel { margin-top: var(--s5); }
.try-panel:focus-visible { outline-offset: 8px; }
.sector { scroll-margin-top: 16px; max-width: 46em; }
.sector + .sector { margin-top: var(--s6); }
.js .sector + .sector { margin-top: 0; }
.sector[hidden] { display: none; }
.sector h3 { font-size: var(--fs-h3); max-width: 30ch; }
.sector p { margin-top: var(--s2); }
.sector p b { font-weight: 700; }
.motion .sector.is-entering { animation: fade-in var(--dur-state) var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.demo { margin-top: var(--s6); }
.demo-grid { margin-top: var(--s4); display: grid; gap: var(--s5); }
.pane-label { font-size: var(--fs-small); font-weight: 700; color: var(--ink-muted); margin-bottom: var(--s3); }
.demo-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: 8px 18px; }
.motion .demo-form.is-entering, .motion .slip-demo.is-entering { animation: fade-in var(--dur-state) var(--ease) both; }
.q { padding-block: 14px; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.q legend, .field-label { display: block; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-weight: 500; font-size: var(--fs-small); cursor: pointer; line-height: 1.4;
  transition: border-color var(--dur-micro) ease, background-color var(--dur-micro) ease;
}
@media (hover: hover) { .options label:hover { border-color: var(--ink); } }
.options input:checked + label { border-color: var(--blue-strong); background: var(--blue-strong); color: #FFFFFF; font-weight: 700; }
.options input[type="checkbox"]:checked + label::before {
  content: ""; flex: none; width: 12px; height: 7px; margin-inline-end: 8px;
  border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
.options input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }
.field {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface);
}
.field::placeholder { color: var(--ink-muted); }
.field:focus-visible { border-color: var(--signal); outline-offset: 1px; }
.demo-form .btn-quiet { margin-block: 4px 6px; }
#demo-slip { scroll-margin-top: 24px; }
.demo-status { margin-top: var(--s3); font-weight: 500; }
.demo-output .btn-primary { margin-top: var(--s4); }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .demo-output { position: sticky; top: 24px; }
}

/* ---------- 5 · Process ---------- */
.steps { list-style: none; margin-top: var(--s6); display: grid; gap: var(--s5); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 60px; max-width: 36em; min-height: 44px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--blue-strong); color: #FFFFFF; border: 2px solid var(--blue-strong);
  transition: background-color var(--dur-step) var(--ease), color var(--dur-step) var(--ease);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 21px; top: 52px; bottom: calc(-1 * var(--s5) + 8px);
  width: 2px; background: var(--blue); transform-origin: top; transition: transform 600ms var(--ease) 200ms;
}
.motion .steps li:not(.is-lit)::before { background: var(--paper); color: var(--blue-strong); }
.motion .steps li:not(.is-lit)::after { transform: scaleY(0); }
.steps h3 { font-size: var(--fs-h3); line-height: 44px; }
.steps p { color: var(--ink-soft); }
.steps-note { margin-top: var(--s6); padding: 16px 18px; border-radius: var(--r-slip); background: var(--tint); max-width: 40em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .steps li { padding-inline-start: 0; padding-top: 64px; }
  .steps li:not(:last-child)::after { top: 21px; bottom: auto; inset-inline-start: 56px; inset-inline-end: calc(-1 * var(--s6) + 8px); width: auto; height: 2px; transform-origin: right; }
  .motion .steps li:not(.is-lit)::after { transform: scaleX(0); }
}

/* ---------- 6 · FAQ ---------- */
#faq { padding-top: 0; }
.faq { margin-top: var(--s5); max-width: 46em; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 56px; padding-block: 14px; font-weight: 700; line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-inline: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-state) var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 40em; }
@media (min-width: 900px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: var(--s8); align-items: start; }
  .faq-wrap h2 { position: sticky; top: 32px; }
  .faq { margin-top: 0; }
}

/* ---------- 7 · Final ---------- */
.final h2 { max-width: 20ch; }
.final-grid { margin-top: var(--s6); display: grid; gap: var(--s6); }
.final-pickers { display: grid; gap: var(--s5); }
.picker legend { font-weight: 700; margin-bottom: var(--s3); }
.picker .options label { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
@media (hover: hover) { .picker .options label:hover { border-color: var(--on-dark); } }
.picker .options input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.picker .options input:focus-visible + label { outline-color: var(--accent-on-dark); }
.final-request .btn-primary { margin-top: var(--s4); }
.slip-final dd[data-empty="true"] { color: var(--ink-muted); font-weight: 400; }
.secondary-actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: 4px var(--s5); }
.share-status { margin-top: 6px; font-size: var(--fs-small); min-height: 1.7em; }
.band-dark .share-status { color: var(--on-dark-soft); }
@media (min-width: 900px) {
  .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); border-top: 1px solid var(--dark-line); }
.footer-inner { padding-block: 28px calc(28px + var(--sticky-space, 0px)); display: grid; gap: var(--s3); font-size: var(--fs-small); }
.site-footer .wordmark { color: var(--logo-dark); height: 18px; }

/* ---------- Bottom bars (phones only) ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 96%, transparent); border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--dur-state) var(--ease), visibility 0s linear var(--dur-state);
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.sticky-cta .btn { width: 100%; min-height: 48px; }
.demo-peek {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 31;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 52px; padding: 8px 16px; border-radius: 14px;
  background: var(--ink); color: var(--on-dark); text-decoration: none; font-size: var(--fs-small);
  transform: translateY(140%); visibility: hidden;
  transition: transform var(--dur-state) var(--ease), visibility 0s linear var(--dur-state);
}
.demo-peek.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.demo-peek strong { font-weight: 700; }
.demo-peek .peek-go { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-on-dark); }
html:not(.motion) .sticky-cta, html:not(.motion) .demo-peek { transition: none; }
@media (min-width: 720px) { .sticky-cta, .demo-peek { display: none; } }
@media (max-width: 719px) { body { --sticky-space: 72px; } }

/* ---------- Dialog ---------- */
.wa-dialog {
  width: min(440px, calc(100vw - 32px)); border: 0; border-radius: var(--r-panel); padding: 24px 22px 18px;
  background: var(--surface); color: var(--ink);
}
.wa-dialog::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.wa-dialog h2 { font-size: 1.35rem; }
.wa-dialog > p:first-of-type { margin-top: 10px; color: var(--ink-soft); }
.wa-dialog a:not(.btn) { color: var(--signal); }
.dialog-actions { margin-top: 18px; display: grid; gap: 8px; }
.dialog-actions .btn { width: 100%; }

/* ---------- Dev-only reminder (localhost) ---------- */
.dev-banner { background: var(--ink); color: var(--on-dark); font-size: var(--fs-xs); text-align: center; padding: 6px 12px; }
