/* Wasli site (landing, legal, download, account deletion). Midnight Gold tokens from packages/design-tokens. Logical properties only (RTL first). */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #ede8dd;
  --inset: #f6f4ef;
  --ink: #17151d;
  --muted: #5f5a52;
  --line: #e8e3d8;
  --line-strong: #d8d1c3;
  --control: #8a8378;
  --primary: #17151d;
  --on-primary: #f5efe2;
  --primary-icon: #e2b65a;
  --gold: #d4a646;
  --gold-bright: #e2b65a;
  --on-gold: #14120a;
  --gold-text: #7a5c17;
  --gold-soft: #f5ecd6;
  --warn: #e5532f;
  --warn-text: #b33a1c;
  --warn-soft: #ffe6de;
  --good: #1f8a65;
  --good-text: #1f6b4f;
  --good-soft: #e0f1e7;
  --danger: #d92d20;
  --on-danger: #ffffff;
  --bubble: #17151d;
  --on-bubble: #f5efe2;
  --band: #17151d;
  --on-band: #f5efe2;
  --on-band-muted: #cfc8bb;
  --band-line: #3a3642;
  --bezel: #17151d;
  --paper: #fbf8f1;
  --paper-old: #efe3c4;
  --paper-ink: #5f5a52;
  --paper-ink-strong: #17151d;
  --nav-bg: rgba(246, 244, 239, .86);
  --shadow-card: 0 6px 20px rgba(16, 24, 40, .07);
  --shadow-float: 0 18px 44px rgba(23, 21, 29, .18);
  --shadow-phone: 0 34px 70px rgba(23, 21, 29, .24);
  --font: 'IBM Plex Sans Arabic', Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-card: 28px;
  --r-tile: 24px;
  --r-btn: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e13; --surface: #1a1820; --surface-2: #2a2731; --inset: #14131a; --ink: #f2ede3; --muted: #a8a092;
    --line: #2a2731; --line-strong: #3a3642; --control: #7a7486; --primary: #e2b65a; --on-primary: #14120a; --primary-icon: #14120a;
    --gold: #e2b65a; --gold-text: #e6bf6a; --gold-soft: #2c2618; --warn: #ff8a6a; --warn-text: #ffa087; --warn-soft: #3a201c;
    --good: #4cc795; --good-text: #6fd3a8; --good-soft: #163328; --danger: #ff8a80; --on-danger: #2a0705; --bubble: #2c2a33; --on-bubble: #f2ede3;
    --band: #1a1820; --on-band: #f2ede3; --band-line: #3a3642; --bezel: #2c2a33; --paper: #e9e2d2; --paper-old: #b9ad8e;
    --nav-bg: rgba(15, 14, 19, .84); --shadow-card: 0 6px 20px rgba(0, 0, 0, .35); --shadow-float: 0 18px 44px rgba(0, 0, 0, .5);
    --shadow-phone: 0 34px 70px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e13; --surface: #1a1820; --surface-2: #2a2731; --inset: #14131a; --ink: #f2ede3; --muted: #a8a092;
  --line: #2a2731; --line-strong: #3a3642; --control: #7a7486; --primary: #e2b65a; --on-primary: #14120a; --primary-icon: #14120a;
  --gold: #e2b65a; --gold-text: #e6bf6a; --gold-soft: #2c2618; --warn: #ff8a6a; --warn-text: #ffa087; --warn-soft: #3a201c;
  --good: #4cc795; --good-text: #6fd3a8; --good-soft: #163328; --danger: #ff8a80; --on-danger: #2a0705; --bubble: #2c2a33; --on-bubble: #f2ede3;
  --band: #1a1820; --on-band: #f2ede3; --band-line: #3a3642; --bezel: #2c2a33; --paper: #e9e2d2; --paper-old: #b9ad8e;
  --nav-bg: rgba(15, 14, 19, .84); --shadow-card: 0 6px 20px rgba(0, 0, 0, .35); --shadow-float: 0 18px 44px rgba(0, 0, 0, .5);
  --shadow-phone: 0 34px 70px rgba(0, 0, 0, .55); color-scheme: dark;
}
html[dir="rtl"] { --start: right; --end: left; --flip: -1; }
html[dir="ltr"] { --start: left; --end: right; --flip: 1; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--gold-text); }
a:hover { color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.015em; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.ic { width: 20px; height: 20px; flex: none; }
.ic-14 { width: 14px; height: 14px; flex: none; }
.ic-16 { width: 16px; height: 16px; flex: none; }
.ic-26 { width: 26px; height: 26px; flex: none; }
.ic-good { color: var(--good); }

/* Theme and language dependent logos */
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
html:root[lang="en"] .only-ar, html:root[lang="ar"] .only-en { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 58px; padding: 0 26px; font-size: 18px; font-weight: 700; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { color: var(--on-primary); }
.btn-primary .ic { color: var(--primary-icon); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--surface); }
.btn-gold { background: var(--gold-bright); color: var(--on-gold); }
.btn-gold:hover { color: var(--on-gold); }
.btn-outline-band { border-color: var(--band-line); color: var(--on-band-muted); cursor: default; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--nav-bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; display: block; }
.nav-links { display: none; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 0; color: var(--gold-text); font-weight: 600; font-size: 15px; padding: 8px 6px; min-height: 44px; }
.nav-cta { display: none; }
@media (min-width: 520px) { .nav-cta { display: inline-flex; } }
@media (min-width: 940px) { .nav-links { display: flex; } .brand img { height: 40px; } }

/* Hero */
.hero { display: grid; gap: 40px; padding-block: 28px 56px; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; padding-block: 48px 88px; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 14px; font-weight: 600; }
.pill .ic-14 { color: var(--gold); }
.hero h1 { font-size: clamp(38px, 8.4vw, 74px); line-height: 1.32; font-weight: 700; }
html[lang="en"] .hero h1 { font-size: clamp(36px, 7.4vw, 62px); line-height: 1.14; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ios-note { display: none; font-size: 14px; color: var(--muted); }
.is-ios .ios-note { display: block; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 6px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@media (max-width: 420px) { .cta-row .btn-lg { flex: 1 1 100%; } }

/* Demo */
.demo { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; scroll-margin-top: 80px; }
.try-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.try-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--bubble); color: var(--on-bubble); font-size: 15px; font-weight: 700; }
.try-pill .ic-14 { color: var(--gold-bright); }
.try-sub { font-size: 15px; color: var(--muted); max-width: 340px; }
.bob { color: var(--gold); animation: bob 1.4s ease-in-out infinite; }
.phone-wrap { --z: .78; position: relative; width: calc(390px * var(--z) + 20px); max-width: 100%; }
@media (max-width: 380px) { .phone-wrap { --z: .68; } }
.phone-backdrop { position: absolute; inset: 60px -40px -16px -40px; border-radius: 64px; background: var(--surface-2); }
.floaty { position: relative; animation: floaty 6s ease-in-out infinite; }
.phone { border-radius: 48px; background: var(--bezel); padding: 10px; box-shadow: var(--shadow-phone); }
.phone.glow { animation: glowRing 1.1s ease-out 2; }
/* The demo screen uses the app's own sizes (packages/design-tokens), shrunk together by zoom. */
.screen { zoom: var(--z); position: relative; width: 390px; height: 800px; border-radius: 50px; background: var(--bg); color: var(--ink); padding-top: 52px; display: flex; flex-direction: column; overflow: hidden; font-size: 15px; line-height: 24px; }
.island { position: absolute; top: 14px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 999px; background: var(--bezel); }
.app-top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.app-logo { flex: 1; min-width: 0; }
.app-logo img { height: 30px; width: auto; display: block; }
.app-logo .only-ar, .app-logo .only-en { margin: 0; }
.app-menu { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(23, 21, 29, .06); }
.thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 14px; padding: 14px 20px 24px; scroll-behavior: smooth; overscroll-behavior: contain; }
.thread > * { flex: none; }
.thread::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.app-dock { flex: none; background: var(--bg); padding: 4px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-height: 40px; padding-inline: 16px; }
.chip { flex: none; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 23px; }
.chip:hover { border-color: var(--gold); }
.chip.hint { border-color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.chip-primary, .chip-primary:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.composer { display: flex; align-items: center; gap: 8px; margin-inline: 12px; padding: 8px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-card); }
.disc { width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--inset); color: var(--ink); display: grid; place-items: center; }
.disc-scan { background: var(--primary); color: var(--primary-icon); box-shadow: 0 8px 20px rgba(16, 24, 40, .28); cursor: pointer; }
.ask-field { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; border-radius: 26px; border: 2px solid var(--inset); background: var(--inset); padding-inline: 14px 2px; }
.ask-field:focus-within { border-color: var(--primary); }
.ask-field.hint { animation: hintGlow 1.6s ease-in-out infinite; }
.ask-field input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: 0; }
.ask-field input::placeholder { color: var(--control); opacity: 1; }
.mic, .send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; }
.mic { background: var(--gold-soft); color: var(--gold-text); }
.send { background: var(--primary); color: var(--on-primary); }
.composer:not(.typed) .send, .composer.typed .mic { display: none; }
.voice-bar { display: none; align-items: center; gap: 10px; margin-inline: 12px; padding: 8px; border-radius: 30px; background: var(--bubble); color: var(--on-bubble); box-shadow: 0 8px 20px rgba(16, 24, 40, .28); }
.app-dock.listening .voice-bar { display: flex; }
.app-dock.listening .composer, .app-dock.listening .chips { display: none; }
.vb-disc { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 239, 226, .1); }
.vb-done { background: var(--gold); color: var(--on-gold); }
.vb-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--on-band-muted); font-size: 13px; line-height: 21px; font-weight: 600; }
.vb-wave { display: flex; align-items: center; gap: 2px; height: 24px; }
.vb-wave i { width: 3px; border-radius: 3px; background: var(--gold); transform-origin: center; animation: wave 1.1s ease-in-out infinite; }
.vb-wave i:nth-child(even) { animation-delay: .25s; }
.vb-wave i:nth-child(3n) { animation-delay: .5s; }
.demo-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.side-hint { display: none; position: absolute; bottom: 70px; inset-inline-end: -178px; width: 160px; flex-direction: column; align-items: center; gap: 4px; animation: rise .5s var(--ease) 1.2s both; }
.side-hint-card { background: var(--surface); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-float); font-size: 14px; font-weight: 700; text-align: center; line-height: 1.5; }
.side-hint-card b { display: block; }
.side-hint-card span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.side-hint svg { width: 70px; height: 40px; color: var(--gold); transform: scaleX(calc(var(--flip) * -1)); }
.side-hint svg path { animation: nudge 1.4s ease-in-out infinite; }
.notif { display: none; position: absolute; top: 92px; inset-inline-end: -196px; z-index: 2; width: 220px; background: var(--surface); border-radius: 18px; padding: 11px 13px; box-shadow: var(--shadow-float); gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.55; animation: notifIn .7s var(--ease) 2.6s both; }
.notif img { width: 28px; height: 28px; flex: none; }
.notif strong { display: block; }
.notif span { color: var(--muted); }
@media (min-width: 1120px) { .side-hint { display: flex; } }
@media (min-width: 1300px) { .notif { display: flex; } }
.demo.used .side-hint { display: none; }

/* Messages */
.msg-ai { display: flex; flex-direction: column; gap: 8px; animation: rise .4s var(--ease) both; }
.ai-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 20px; color: var(--muted); }
.ai-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bubble); display: grid; place-items: center; flex: none; }
.ai-dot svg { width: 14px; height: 14px; color: var(--gold); }
.ai-text { font-size: 16px; line-height: 26px; }
.ai-lead { font-size: 21px; line-height: 34px; font-weight: 500; }
.msg-user { align-self: flex-end; max-width: 84%; background: var(--bubble); color: var(--on-bubble); padding: 10px 14px; border-radius: 20px; border-end-end-radius: 6px; display: flex; flex-direction: column; gap: 2px; animation: rise .4s var(--ease) both; }
.spoken-tag { display: flex; align-items: center; gap: 4px; color: var(--on-band-muted); }
.msg-live { align-self: flex-end; max-width: 84%; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--gold); color: var(--gold-text); padding: 6px 14px; border-radius: 20px; border-end-end-radius: 6px; animation: rise .4s var(--ease) both; }
.working { display: flex; align-items: center; gap: 8px; }
.typing { display: flex; gap: 4px; padding-block: 8px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.photo-bubble { align-self: flex-end; width: 180px; padding: 6px; display: flex; flex-direction: column; gap: 6px; background: var(--bubble); color: var(--on-band-muted); border-radius: 20px; border-end-end-radius: 6px; animation: rise .4s var(--ease) both; }
.photo-bubble > .t-caption { padding: 0 8px 4px; }
.photo-paper { position: relative; height: 120px; border-radius: 16px; background: var(--paper); padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.photo-paper span { height: 4px; border-radius: 2px; background: var(--paper-ink); opacity: .55; }
.photo-paper i { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 4px; background: repeating-conic-gradient(var(--paper-ink-strong) 0 25%, var(--paper) 0 50%) 0 0 / 9px 9px; }
.card { background: var(--surface); border-radius: 24px; padding: 16px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; animation: riseCard .5s var(--ease) both; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { font-weight: 700; font-size: 17px; line-height: 28px; }
.screen .row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.t-caption { font-size: 12px; line-height: 20px; }
.t-strong { font-weight: 700; }
.t-small { font-size: 14px; line-height: 23px; }
.t-label { font-size: 13px; line-height: 21px; }
.warn-text { color: var(--warn-text); }
.good-text { color: var(--good-text); }
.sm { font-size: 12px; }
.xs { font-size: 11px; }
.tag { flex: none; display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 9px; border-radius: 999px; align-self: flex-start; }
.screen .tag { font-size: 12px; line-height: 20px; font-weight: 700; padding: 2px 10px; }
.tag-warn { color: var(--warn-text); background: var(--warn-soft); }
.tag-good { color: var(--good-text); background: var(--good-soft); }
.tag-gold { color: var(--gold-text); background: var(--gold-soft); }
.screen .tag.source { align-self: center; padding: 3px 9px; }
.inset { background: var(--inset); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; width: 67%; height: 100%; border-radius: 3px; background: var(--warn); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions button { min-height: 46px; border-radius: 14px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; }
.card-actions .primary { flex: 1 1 160px; border: 0; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.card-actions .primary .ic-16 { color: var(--primary-icon); }
.card-actions .ghost { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.link-action { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--gold-text); font-size: 13px; font-weight: 600; }
.ghost-action { align-self: flex-start; min-height: 46px; padding: 6px 16px; border: 0; background: none; color: var(--muted); font-size: 15px; }
.wk { display: flex; flex-direction: column; gap: 10px; }
.wk-link { color: var(--gold-text); font-size: 13px; font-weight: 600; }
.wk-days { display: flex; gap: 4px; }
.wk-day { flex: 1 1 0; min-width: 0; min-height: 70px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-block: 6px; }
.wk-day small { max-width: 100%; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: 10.5px; line-height: 16px; }
.wk-day b { font-size: 17px; line-height: 24px; }
.wk-day i { width: 6px; height: 6px; border-radius: 50%; }
.wk-day i.w { background: var(--warn); }
.wk-day i.g { background: var(--gold); }
.wk-day.today { background: var(--primary); color: var(--on-primary); }
.wk-day.today small { color: inherit; opacity: .8; }
.wk-day.today i.g, .wk-day.today i.w { background: var(--gold); }
.calm { display: flex; align-items: center; gap: 8px; color: var(--good-text); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
.fields .v { font-weight: 700; }
.screen .rem { gap: 8px; }
.rem-ic { width: 18px; height: 18px; flex: none; color: var(--gold-text); }
.result { display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: var(--good-soft); animation: riseCard .5s var(--ease) both; }
.result strong { display: block; color: var(--good-text); font-size: 16px; line-height: 26px; }
.result-disc { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--good); color: var(--on-bubble); display: grid; place-items: center; }
.banner { display: flex; align-items: center; gap: 8px; background: var(--good-soft); color: var(--good-text); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.file-row { display: flex; align-items: center; gap: 10px; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; flex: none; }
.screen .icon-tile { border-radius: 14px; }
.icon-tile.small { width: 36px; height: 36px; }
.icon-tile.good { background: var(--good-soft); color: var(--good-text); }
.who { padding: 10px 12px; border-radius: 16px; background: var(--gold-soft); }
.num-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.num-steps li { display: flex; align-items: flex-start; gap: 10px; }
.num { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.answer-chips { display: flex; flex-wrap: wrap; gap: 8px; animation: riseCard .5s var(--ease) both; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 8px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.inset .list-row { padding-block: 0; }
.amount { font-size: 28px; font-weight: 700; line-height: 1.3; }
.screen .amount { font-size: 34px; line-height: 50px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--surface-2); }
.bars span.top { background: var(--gold); }
.bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.verdict { display: flex; flex-direction: column; gap: 8px; }
.verdict-head { display: flex; align-items: center; gap: 10px; }
.verdict-title { display: block; color: var(--good-text); font-size: 15px; font-weight: 700; }
.band-badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--on-gold); background: var(--gold-bright); padding: 2px 10px; border-radius: 999px; }
.cta-msg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px; background: var(--gold-bright); color: var(--on-gold); text-decoration: none; font-size: 15px; font-weight: 700; animation: riseCard .5s var(--ease) both; }
.cta-msg:hover { color: var(--on-gold); }

/* Full-screen demo on phones: the chat becomes the app */
.app-open { display: none; margin-top: 4px; }
.app-close { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); place-items: center; box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
@media (max-width: 899px) { .app-open { display: inline-flex; } .try-head .bob { display: none; } }
html.app-mode, html.app-mode body { overflow: hidden; overscroll-behavior: none; }
html.app-mode .floaty, html.app-mode .phone-wrap, html.app-mode .phone { animation: none !important; transform: none !important; }
html.app-mode .screen { zoom: 1; position: fixed; z-index: 60; inset: 0; width: auto; height: var(--app-h, 100dvh); top: var(--app-top, 0); border-radius: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
html.app-mode .island, html.app-mode .app-menu { display: none; }
html.app-mode .app-close { display: grid; }
html.app-mode .thread { flex: 1; height: auto; min-height: 0; }
html.app-mode .dock { display: none; }
@keyframes appIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.band-white { background: var(--surface); }
.band-sand { background: var(--surface-2); }
.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; max-width: 760px; }
.head.center { text-align: center; align-items: center; margin-inline: auto; }
.eyebrow { color: var(--gold-text); font-weight: 600; font-size: 15px; }
.h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.4; font-weight: 700; }

/* Marquee */
.marquee { padding-block: 8px 72px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.marquee-title { text-align: center; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin-bottom: 10px; }
.marquee-title span { color: var(--gold-text); }
.track { display: flex; gap: 12px; width: max-content; animation: marq 48s linear infinite; }
.track.rev { animation-name: marqRev; animation-duration: 56s; }
.marquee:hover .track { animation-play-state: paused; }
.mchip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); white-space: nowrap; font-size: 15px; }
.mchip strong { font-weight: 600; }
.mchip .tag { font-size: 12px; align-self: center; }

/* Why */
.why-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .why-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.why-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.fact { background: var(--inset); border-radius: var(--r-tile); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.fact-num { font-size: 36px; font-weight: 700; line-height: 1.3; }
.fact p { font-size: 15px; }
.source { font-size: 12px; color: var(--muted); }
.stage { position: relative; height: 440px; min-width: 0; view-timeline-name: --stage; }
.paper { position: absolute; top: 24px; inset-inline-start: 6%; width: min(200px, 58%); height: 320px; border-radius: 8px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14); padding: 20px 18px; background: var(--paper-old); transform: rotate(3deg) translateY(16px); }
.paper-ink { height: 100%; display: flex; flex-direction: column; gap: 9px; opacity: .12; }
.paper-ink span { display: block; height: 5px; border-radius: 2px; background: var(--paper-ink); }
.paper-ink .strong { height: 9px; background: var(--paper-ink-strong); }
.paper-ink .qr { margin-top: auto; align-self: center; width: 64px; height: 64px; border: 7px solid var(--paper-ink-strong); border-radius: 4px; background: transparent; position: relative; }
.paper-ink .qr::after { content: ""; position: absolute; inset: 11px; background: var(--paper-ink-strong); }
.paper-label { position: absolute; top: -32px; inset-inline-start: 0; font-size: 13px; font-weight: 600; color: var(--warn-text); white-space: nowrap; }
.digital { position: absolute; bottom: 20px; inset-inline-end: 0; width: min(290px, 86%); background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-phone); display: flex; flex-direction: column; gap: 8px; }
.digital .bar span { background: var(--good); width: 96%; }

/* How */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.step { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }
.step-num { font-size: 14px; font-weight: 700; color: var(--gold-text); }
.illo { height: 150px; border-radius: 20px; background: var(--inset); position: relative; overflow: hidden; display: grid; place-items: center; }
.mini-receipt { width: 92px; height: 124px; background: var(--paper); border-radius: 5px; box-shadow: 0 6px 16px rgba(16, 24, 40, .1); padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.mini-receipt span { height: 3px; border-radius: 2px; background: var(--line-strong); }
.mini-receipt span:first-child { height: 4px; width: 70%; align-self: center; background: var(--control); }
.mini-qr { margin-top: auto; align-self: center; width: 40px; height: 40px; border: 5px solid #17151d; border-radius: 3px; position: relative; }
.mini-qr::after { content: ""; position: absolute; inset: 7px; background: #17151d; }
.scan-frame { position: absolute; top: 50%; left: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px; border: 3px solid var(--gold); border-radius: 18px; }
.scan-line { position: absolute; left: 50%; width: 130px; margin-left: -65px; height: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: scan 2.6s ease-in-out infinite; }
.mini-card { width: 200px; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: 0 6px 16px rgba(16, 24, 40, .1); display: flex; flex-direction: column; gap: 8px; position: relative; }
.mini-card .row { height: 6px; border-radius: 3px; transform-origin: var(--start) center; animation: fillRow 3.4s ease-out infinite; }
.mini-card .r1 { height: 8px; width: 80%; background: var(--ink); }
.mini-card .r2 { width: 60%; background: var(--line-strong); animation-delay: .25s; }
.mini-card .r3 { width: 70%; background: var(--good-soft); animation-delay: .5s; }
.mini-card .mbtn { height: 26px; border-radius: 8px; background: var(--primary); margin-top: 4px; }
.mini-check { position: absolute; top: -12px; inset-inline-end: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; animation: popLoop 3.4s ease-out infinite; }
.illo-bell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.bell { width: 44px; height: 44px; color: var(--gold-text); transform-origin: 50% 8%; animation: swing 2.8s ease-in-out infinite; }
.mini-notif { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 8px 12px; box-shadow: 0 6px 16px rgba(16, 24, 40, .1); font-size: 12px; font-weight: 600; animation: slideNotif 2.8s ease-out infinite; }
.mini-notif i { width: 18px; height: 18px; border-radius: 5px; background: var(--bezel); }

/* Journey */
.journey-wrap { max-width: 1000px; }
.journey { position: relative; padding-inline-start: 44px; view-timeline-name: --journey; }
.jline, .jline-fill { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 13px; width: 3px; border-radius: 3px; background: var(--surface-2); }
.jline-fill { background: var(--gold); transform-origin: top center; }
.jlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.jitem { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: var(--surface); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-card); }
.jnode { position: absolute; inset-inline-start: -40px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--bg); background: var(--gold); }
.jwhen { flex: 0 0 132px; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.jbody { flex: 1 1 240px; min-width: 0; }
.jbody strong { display: block; font-size: 18px; }
.jbody span { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .jwhen { flex-basis: 100%; } .jitem .tag { order: -1; } }

/* Features */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile h3 { font-size: 22px; }
.tile > p { color: var(--muted); }
.tile-demo { background: var(--inset); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.bubble-user { align-self: flex-end; background: var(--bubble); color: var(--on-bubble); padding: 8px 14px; border-radius: 18px; border-end-end-radius: 4px; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.day { background: var(--surface); border-radius: 12px; padding: 7px 0; line-height: 1.4; }
.day small { display: block; font-size: 10px; color: var(--muted); }
.day b { display: block; }
.day i { display: block; width: 6px; height: 6px; border-radius: 50%; margin: 3px auto 0; background: transparent; }
.day.today { background: var(--primary); color: var(--on-primary); }
.day.today small { color: inherit; opacity: .8; }
.day .w { background: var(--warn); }
.day .g { background: var(--gold); }
.spoken-line { align-self: flex-end; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; color: var(--gold-text); }
.wave i { width: 3px; height: 100%; border-radius: 999px; background: currentColor; transform: scaleY(.4); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; }
.wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.add-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.add-list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 8px 12px; }
.add-list strong { display: block; font-size: 14px; }
.add-list span:not(.icon-tile) { display: block; color: var(--muted); font-size: 12.5px; }
.good-line { display: flex; align-items: center; gap: 6px; color: var(--good-text); font-weight: 600; font-size: 13px; }
.repair-bar span { background: var(--good); width: 64%; transform-origin: var(--start) center; }
.plus { background: var(--good-soft); padding: 1px 10px; border-radius: 999px; }
.mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 16px; }
.mini-tile { background: var(--surface); border-radius: var(--r-tile); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.mini-tile svg { color: var(--gold-text); }
.mini-tile h3 { font-size: 17px; }
.mini-tile p { color: var(--muted); font-size: 14px; }
.smart-band { margin-top: 16px; background: var(--band); color: var(--on-band); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.smart-band h3 { font-size: 22px; }
.smart-band p { color: var(--on-band-muted); }

/* Privacy */
.privacy { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .privacy { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.privacy-copy { display: flex; flex-direction: column; gap: 14px; }
.privacy-copy img { height: 64px; width: auto; align-self: flex-start; }
.privacy-copy p { color: var(--muted); font-size: 18px; }
.priv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.priv { background: var(--surface); border-radius: var(--r-tile); padding: 22px; box-shadow: var(--shadow-card); display: flex; gap: 14px; align-items: flex-start; }
.priv strong { display: block; font-size: 17px; }
.priv span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-thread { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa .q { align-self: flex-end; max-width: 86%; background: var(--bubble); color: var(--on-bubble); padding: 12px 20px; border-radius: 24px; border-end-end-radius: 6px; font-size: 17px; animation: rise .4s var(--ease) both; }
.qa .a { display: flex; align-items: flex-start; gap: 10px; }
.qa .a .ai-dot { width: 32px; height: 32px; }
.qa .a .ai-dot svg { width: 14px; height: 14px; }
.qa .a p { font-size: 18px; padding-top: 2px; animation: rise .4s var(--ease) both; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.faq-chip { min-height: 46px; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--inset); color: var(--ink); font-size: 15px; }
.faq-chip:hover { border-color: var(--gold); }

/* Final */
.final { background: var(--band); color: var(--on-band); border-radius: 36px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.final-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.final-copy img { height: 44px; width: auto; align-self: flex-start; }
.final h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.4; }
.final-meta { color: var(--on-band-muted); font-size: 14px; }
.qr-box { flex: 0 0 auto; display: none; flex-direction: column; align-items: center; gap: 10px; color: var(--on-band-muted); font-size: 13px; }
.qr-box .qr { width: 176px; height: 176px; border-radius: 24px; background: #f5efe2; padding: 16px; }
.qr-box img { width: 100%; height: 100%; display: block; }
@media (min-width: 900px) and (pointer: fine) { .qr-box { display: flex; } }

/* Footer */
.footer { background: var(--surface-2); margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.footer-row img { height: 28px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }

/* Mobile dock */
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: flex; justify-content: center; transform: translateY(110%); transition: transform .4s var(--ease); pointer-events: none; }
.dock.show { transform: none; pointer-events: auto; }
.dock-bar { width: min(560px, 100%); background: var(--surface); border-radius: 999px; padding: 8px; box-shadow: var(--shadow-float); display: flex; align-items: center; gap: 10px; }
.dock-bar > span { flex: 1; min-width: 0; padding-inline-start: 12px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-bar .btn { border-radius: 999px; }
@media (min-width: 900px) { .dock { display: none; } }

/* Inner pages: privacy, terms, account deletion, download */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.page-hero { padding-block: 40px 32px; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
@media (min-width: 900px) { .page-hero { padding-block: 64px 40px; } }
.page-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.3; font-weight: 700; }
html[lang="en"] .page-hero h1 { line-height: 1.15; }
.page-hero .lead { max-width: 640px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.page-body { display: flex; flex-direction: column; gap: 20px; padding-block: 8px 88px; max-width: 820px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
@media (max-width: 520px) { .summary-item:last-child:nth-child(odd) { grid-column: 1 / -1; } .summary-item { padding: 16px; gap: 8px; } .summary-item strong { font-size: 15px; } .summary-item span { font-size: 13.5px; } }
.summary-item { background: var(--surface); border-radius: var(--r-tile); padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.summary-item strong { font-size: 17px; line-height: 1.5; }
.summary-item span { color: var(--muted); font-size: 15px; }
.doc { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 28px; }
.doc section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.doc section + section { border-top: 1px solid var(--line); padding-top: 26px; }
.doc h2 { font-size: clamp(21px, 2.6vw, 25px); display: flex; align-items: center; gap: 12px; }
.doc h2 .icon-tile { width: 38px; height: 38px; }
.doc ul, .doc ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--gold); }
.doc p { max-width: 68ch; }
.aside-note { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); color: var(--ink); border-radius: var(--r-tile); padding: 18px 20px; font-size: 15px; }
.aside-note .ic { color: var(--gold-text); margin-top: 3px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms (account deletion) */
.panel { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 999px; background: var(--surface-2); }
.stepper li.done::before, .stepper li.current::before { background: var(--gold); }
.stepper li.current { color: var(--ink); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { height: 52px; border-radius: 14px; border: 1px solid var(--control); background: var(--inset); color: var(--ink); padding: 0 16px; font-size: 17px; }
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field input.code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: var(--on-danger); border: 0; }
.btn-danger:hover { color: var(--on-danger); }
.btn[disabled] { opacity: .55; cursor: default; }
.form-msg { font-size: 15px; min-height: 1.7em; }
.form-msg.error { color: var(--warn-text); }
.form-msg.ok { color: var(--good-text); }
.done-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-block: 12px; }
.done-state .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }
.done-state .badge .ic { width: 30px; height: 30px; }

/* Download page */
.dl-grid { display: grid; gap: 20px; padding-block: 8px 88px; }
@media (min-width: 960px) { .dl-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.dl-card { background: var(--band); color: var(--on-band); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-head img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.dl-head strong { display: block; font-size: 22px; }
.dl-head span { color: var(--on-band-muted); font-size: 15px; }
.dl-card .btn-gold[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.dl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.dl-fact { border: 1px solid var(--band-line); border-radius: 16px; padding: 10px 14px; }
.dl-fact small { display: block; color: var(--on-band-muted); font-size: 12px; }
.dl-fact b { font-size: 16px; }
.dl-sha { font-size: 11px; color: var(--on-band-muted); word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dl-note { display: none; font-size: 14px; background: rgba(245, 239, 226, .08); border-radius: 14px; padding: 12px 14px; color: var(--on-band); }
.is-ios .dl-note.for-ios { display: block; }
.dl-qr { display: none; align-items: center; gap: 16px; border-top: 1px solid var(--band-line); padding-top: 18px; color: var(--on-band-muted); font-size: 14px; }
.dl-qr .qr { width: 112px; height: 112px; border-radius: 16px; background: #f5efe2; padding: 10px; flex: none; }
.dl-qr .qr img { width: 100%; height: 100%; display: block; }
@media (pointer: fine) { .dl-qr { display: flex; } }
.dl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.dl-steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.dl-steps li::before { content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bubble); color: var(--on-bubble); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.dl-steps strong { display: block; }
.dl-steps span { color: var(--muted); font-size: 15px; }
.side-col { display: flex; flex-direction: column; gap: 20px; }

/* Keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes riseCard { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes notifIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 101, .55); } 100% { box-shadow: 0 0 0 10px rgba(31, 138, 101, 0); } }
@keyframes hintGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 166, 70, .6); } 50% { box-shadow: 0 0 0 6px rgba(212, 166, 70, 0); } }
@keyframes glowRing { 0% { box-shadow: 0 0 0 0 rgba(212, 166, 70, .7), var(--shadow-phone); } 100% { box-shadow: 0 0 0 22px rgba(212, 166, 70, 0), var(--shadow-phone); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(calc(var(--flip) * -50%)); } }
@keyframes marqRev { from { transform: translateX(calc(var(--flip) * -50%)); } to { transform: translateX(0); } }
@keyframes scan { 0% { top: 12%; } 50% { top: 80%; } 100% { top: 12%; } }
@keyframes swing { 0%, 55%, 100% { transform: rotate(0); } 8% { transform: rotate(16deg); } 18% { transform: rotate(-13deg); } 28% { transform: rotate(9deg); } 38% { transform: rotate(-5deg); } }
@keyframes fillRow { 0%, 8% { transform: scaleX(0); } 34%, 100% { transform: scaleX(1); } }
@keyframes popLoop { 0%, 48% { transform: scale(0); opacity: 0; } 58% { transform: scale(1.18); opacity: 1; } 66%, 100% { transform: scale(1); opacity: 1; } }
@keyframes slideNotif { 0%, 28% { opacity: 0; transform: translateY(12px); } 42%, 100% { opacity: 1; transform: none; } }

/* Scroll-driven motion. Without support every element rests in its final state. */
@supports (animation-timeline: view()) {
  @keyframes sr { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .sr { animation: sr linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  @keyframes heroOut { to { transform: translateY(-60px) rotate(calc(var(--flip) * 3deg)) scale(.94); opacity: .5; } }
  .phone-wrap { animation: heroOut linear both; animation-timeline: view(); animation-range: exit 10% exit 100%; }
  @keyframes paperAge { from { background: var(--paper); transform: rotate(-4deg); } to { background: var(--paper-old); transform: rotate(3deg) translateY(16px); } }
  @keyframes inkFade { from { opacity: 1; } to { opacity: .12; } }
  @keyframes digitalIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .paper { animation: paperAge linear both; animation-timeline: --stage; animation-range: cover 22% cover 58%; }
  .paper-ink { animation: inkFade linear both; animation-timeline: --stage; animation-range: cover 22% cover 58%; }
  .paper-label { animation: fadeIn linear both; animation-timeline: --stage; animation-range: cover 45% cover 55%; }
  .digital { animation: digitalIn linear both; animation-timeline: --stage; animation-range: cover 40% cover 58%; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .jline-fill { animation: grow linear both; animation-timeline: --journey; animation-range: cover 15% cover 72%; }
  @keyframes nodeOn { from { background: var(--surface-2); transform: scale(.5); } to { background: var(--gold); transform: none; } }
  .jnode { animation: nodeOn linear both; animation-timeline: view(); animation-range: entry 100% cover 42%; }
  @keyframes barIn { from { transform: scaleX(.25); } to { transform: none; } }
  .repair-bar span { animation: barIn linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
  @keyframes typeRtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  @keyframes typeLtr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  .type-in { animation: typeRtl linear both; animation-timeline: view(); animation-range: entry 100% cover 35%; }
  html[dir="ltr"] .type-in { animation-name: typeLtr; }
  .after-type { animation: sr linear both; animation-timeline: view(); animation-range: entry 100% cover 42%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread { scroll-behavior: auto; }
}
