/* VHealth public site — brand tokens mirror the app (lib/core/theme/app_colors.dart). */
:root {
    --night: #010c25;
    --surface: #0b1421;
    --panel: #0f1829;
    --line: #1a2b40;
    --line-strong: #24395a;
    --gold: #c9a227;
    --gold-light: #e8c34a;
    --blue: #1b5ee8;
    --blue-accent: #4b8ef5;
    --text: #ffffff;
    --text-2: #d5ced4;
    --muted: #919aa5;

    --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --radius: 18px;
    --radius-sm: 12px;
    --gutter: clamp(16px, 4vw, 32px);
    --max: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--night);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-accent); text-underline-offset: 3px; }

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; }

p { margin: 0; }

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 20;
    padding: 8px 14px;
    background: var(--gold);
    color: var(--night);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(1, 12, 37, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
    background: rgba(1, 12, 37, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    transition: min-height 0.3s;
}

.site-header.is-scrolled .site-header__inner { min-height: 60px; }

.site-nav a { position: relative; }

.site-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after { transform: scaleX(1); }

.brand img { width: 132px; height: auto; }

.site-nav {
    display: flex;
    gap: 28px;
    margin-inline-start: auto;
}

.site-nav a,
.site-footer__links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.site-footer__links a:hover { color: var(--gold-light); }

.lang-switch {
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 9vw, 112px) clamp(88px, 10vw, 136px);
}

/* Two slow-drifting light pools: blue (tech) and gold (brand). */
.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero__glow::before,
.hero__glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.hero__glow::before {
    width: 900px;
    height: 900px;
    top: -420px;
    inset-inline-end: -260px;
    background: radial-gradient(closest-side, rgba(27, 94, 232, 0.32), rgba(27, 94, 232, 0.08) 60%, transparent);
    animation: drift-a 18s ease-in-out infinite alternate;
}

.hero__glow::after {
    width: 640px;
    height: 640px;
    bottom: -360px;
    inset-inline-start: -200px;
    background: radial-gradient(closest-side, rgba(201, 162, 39, 0.16), transparent);
    animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(-8%, 12%) scale(1.08); } }
@keyframes drift-b { to { transform: translate(10%, -10%) scale(1.15); } }

/* Lane markings passing underneath, like the view from a moving car. */
.hero__lanes {
    position: absolute;
    inset-inline: 0;
    bottom: 34px;
    height: 3px;
    opacity: 0.5;
    background: repeating-linear-gradient(90deg, rgba(232, 195, 74, 0.55) 0 48px, transparent 48px 120px);
    background-size: 120px 3px;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    animation: lanes 1.6s linear infinite;
}

.hero__lanes::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

[dir='rtl'] .hero__lanes { animation-direction: reverse; }

@keyframes lanes { to { background-position: -120px 0; } }

/* Page-load sequence for the hero. */
.js [data-load] {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both;
    animation-delay: calc(var(--i, 0) * 120ms + 80ms);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
}

.hero__visual { position: relative; }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero__title {
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    font-weight: 700;
    line-height: 1.18;
    text-wrap: balance;
}

.hero__lead {
    max-width: 34em;
    margin-top: 22px;
    color: var(--text-2);
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

/* ── Store badges ───────────────────────────────────────────────────────── */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 9px 18px;
    background: var(--text);
    color: var(--night);
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge { position: relative; overflow: hidden; }

.store-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(201, 162, 39, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.store-badge:hover::after { transform: translateX(120%); }

.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }

.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge span { display: flex; flex-direction: column; }

.store-badge small { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; opacity: 0.75; }

.store-soon {
    display: inline-block;
    margin-top: 32px;
    padding: 10px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Gauge (signature) ──────────────────────────────────────────────────── */
.gauge {
    margin: 0;
    padding: clamp(22px, 3vw, 32px);
    background: linear-gradient(180deg, rgba(15, 24, 41, 0.95), rgba(11, 20, 33, 0.95));
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(27, 94, 232, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.gauge__label,
.gauge__next {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.gauge__label { display: flex; align-items: center; gap: 8px; }

/* "Live" dot: the reading below keeps ticking up. */
.gauge__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: live 1.8s ease-out infinite;
}

@keyframes live {
    70%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Reminder toasts that take turns sliding in above the card. */
.toasts {
    position: absolute;
    z-index: 2;
    top: -26px;
    inset-inline-end: -14px;
    width: min(290px, 80%);
    height: 52px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toast {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: rgba(15, 24, 41, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 14px;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.8);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0;
    animation: toast 12s ease-in-out infinite;
    animation-delay: calc(var(--n) * 4s + 2.2s);
}

.toast svg {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 6px;
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: rgba(201, 162, 39, 0.14);
    border-radius: 9px;
}

@keyframes toast {
    0% { opacity: 0; transform: translateY(14px) scale(0.96); }
    4%, 28% { opacity: 1; transform: none; }
    33%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

.odometer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.3rem);
    line-height: 1;
}

.odometer__reel {
    position: relative;
    width: 0.78em;
    height: 1.25em;
    overflow: hidden;
    background: linear-gradient(180deg, #06102a, #0d1d3a 50%, #06102a);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
}

.odometer__reel:nth-last-child(2) { color: var(--gold-light); }

.odometer__strip {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(var(--digit) * -1.25em));
    animation: odometer-roll 1.6s cubic-bezier(0.2, 0.7, 0.1, 1) var(--delay) both;
}

/* After the intro roll, JS drives the reels; each step rolls smoothly. */
.odometer.is-live .odometer__strip {
    animation: none;
    transition: transform 0.7s cubic-bezier(0.3, 0.8, 0.2, 1);
}

.odometer.is-live .odometer__strip.no-transition { transition: none; }

.odometer__strip span {
    display: grid;
    place-items: center;
    height: 1.25em;
}

.odometer__unit {
    margin-inline-start: 8px;
    padding-bottom: 0.2em;
    color: var(--muted);
    font-size: 0.32em;
    font-family: var(--font-body);
}

@keyframes odometer-roll {
    from { transform: translateY(0); }
    to { transform: translateY(calc(var(--digit) * -1.25em)); }
}

.gauge__next { margin-top: 28px; }

.road { margin-top: 14px; padding-block: 12px; }

.road__track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(14.2857% - 2px), rgba(145, 154, 165, 0.35) calc(14.2857% - 2px) 14.2857%),
        var(--line);
}

.road__progress {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 17.86%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform-origin: left center;
    animation: road-fill 1.4s 0.6s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.road__progress { overflow: hidden; }

.road__progress::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: shimmer 2.6s 2s ease-in-out infinite;
}

@keyframes shimmer {
    from { transform: translateX(-120%); }
    60%, to { transform: translateX(320%); }
}

[dir='rtl'] .road__progress::after { animation-name: shimmer-rtl; }

@keyframes shimmer-rtl {
    from { transform: translateX(120%); }
    60%, to { transform: translateX(-320%); }
}

[dir='rtl'] .road__progress {
    background: linear-gradient(270deg, var(--gold), var(--gold-light));
    transform-origin: right center;
}

.road__car {
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    width: 16px;
    height: 16px;
    margin-inline-start: -4px;
    background: var(--gold-light);
    border: 3px solid var(--night);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(232, 195, 74, 0.25);
}

.road__stop {
    position: absolute;
    top: 50%;
    inset-inline-start: var(--at);
    width: 14px;
    height: 14px;
    margin-inline-start: -7px;
    background: var(--night);
    border: 2px solid var(--blue-accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.road__stop--soon {
    border-color: var(--gold-light);
    animation: stop-pulse 2.4s 2s ease-out infinite;
}

@keyframes road-fill { from { transform: scaleX(0); } }

@keyframes stop-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 195, 74, 0.55); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(232, 195, 74, 0); }
}

.gauge__list {
    display: grid;
    gap: 2px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.gauge__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-weight: 500;
}

.gauge__item span:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-end: 10px;
    border: 2px solid var(--blue-accent);
    border-radius: 50%;
    vertical-align: middle;
}

.gauge__item--soon span:first-child::before { border-color: var(--gold-light); background: var(--gold-light); }

.gauge__distance { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.gauge__item--soon .gauge__distance { color: var(--gold-light); }

.gauge__distance b { font-weight: inherit; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 112px); }

.section--tinted {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.section__title {
    max-width: 20em;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 600;
    text-wrap: balance;
}

/* ── Showcase ───────────────────────────────────────────────────────────── */
.showcase {
    display: grid;
    gap: clamp(56px, 8vw, 104px);
    margin-top: clamp(40px, 6vw, 72px);
}

.showcase__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}

.showcase__row:nth-child(even) .showcase__media { order: 2; }

.showcase__media {
    position: relative;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.showcase__media::before {
    content: '';
    position: absolute;
    inset: 12% 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(27, 94, 232, 0.35), transparent);
    filter: blur(30px);
}

.showcase__media img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
    animation: float 7s ease-in-out infinite;
}

.showcase__row:nth-child(2) .showcase__media img { animation-delay: -2.4s; }
.showcase__row:nth-child(3) .showcase__media img { animation-delay: -4.8s; }

@keyframes float {
    50% { transform: translateY(-12px); }
}

.showcase__copy h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600;
    text-wrap: balance;
}

.showcase__copy .eyebrow { margin-bottom: 12px; }

.showcase__body { margin-top: 14px; max-width: 32em; color: var(--text-2); font-size: 1.05rem; }

.showcase__points {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.showcase__points li {
    position: relative;
    padding-inline-start: 30px;
    color: var(--text);
    font-weight: 500;
}

.showcase__points li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.45em;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(201, 162, 39, 0.16);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.5);
}

.showcase__points li::after {
    content: '';
    position: absolute;
    inset-inline-start: 6px;
    top: calc(0.45em + 5px);
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--gold-light);
    border-bottom: 2px solid var(--gold-light);
    transform: rotate(-45deg);
}

/* ── Scroll reveals ─────────────────────────────────────────────────────── */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.js [data-reveal='start'] { transform: translateX(-48px); }
.js [data-reveal='end'] { transform: translateX(48px); }
[dir='rtl'].js [data-reveal='start'] { transform: translateX(48px); }
[dir='rtl'].js [data-reveal='end'] { transform: translateX(-48px); }

.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .showcase__copy[data-reveal] .showcase__points li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s, transform 0.6s;
    transition-delay: calc(var(--i) * 110ms + 350ms);
}

.js .showcase__copy.is-visible .showcase__points li { opacity: 1; transform: none; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 56px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    position: absolute;
    z-index: 1;
    top: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-weight: 600;
}

.step::after {
    content: '';
    position: absolute;
    top: 19px;
    inset-inline: 50px 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--line-strong) 40%, transparent);
    transform-origin: left center;
}

[dir='rtl'] .step::after {
    background: linear-gradient(270deg, var(--gold), var(--line-strong) 40%, transparent);
    transform-origin: right center;
}

.step h3 { font-size: 1.15rem; font-weight: 600; }

.step p { margin-top: 8px; color: var(--muted); }

.js .steps[data-reveal] { opacity: 1; transform: none; }

.js .steps[data-reveal] .step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s, transform 0.7s;
    transition-delay: calc(var(--i) * 180ms);
}

.js .steps[data-reveal] .step::before { transform: scale(0.4); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--i) * 180ms + 150ms); }
.js .steps[data-reveal] .step::after { transform: scaleX(0); transition: transform 0.9s ease; transition-delay: calc(var(--i) * 180ms + 300ms); }

.js .steps.is-visible .step { opacity: 1; transform: none; }
.js .steps.is-visible .step::before { transform: none; }
.js .steps.is-visible .step::after { transform: none; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta__icon-wrap {
    position: relative;
    margin-bottom: 26px;
}

.cta__icon-wrap::before,
.cta__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 26px;
    animation: ring 3s ease-out infinite;
}

.cta__icon-wrap::after { animation-delay: 1.5s; }

@keyframes ring {
    from { opacity: 0.9; transform: scale(0.9); }
    to { opacity: 0; transform: scale(1.5); }
}

.cta__icon { position: relative; border-radius: 18px; }

.cta p:not(.store-soon) { margin-top: 12px; color: var(--muted); }

.cta .store-badges { justify-content: center; }

/* ── Document pages (privacy, terms, support, delete account) ───────────── */
.doc {
    max-width: 820px;
    padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 112px);
}

.doc__header {
    padding-bottom: 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.doc__header h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 700; }

.doc__meta { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

.doc__lead { margin-top: 14px; font-size: 1.1rem; }

.doc__empty {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
}

.doc__section + .doc__section,
.callout + .doc__section,
.doc__section + .callout { margin-top: 40px; }

.doc__section h2,
.callout h2,
.faqs h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; }

.doc__note { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }

.prose { color: var(--text-2); }

.prose > * + * { margin-top: 1em; }

.prose h1, .prose h2, .prose h3 { margin-top: 1.8em; font-size: 1.3rem; }

.prose ul, .prose ol { padding-inline-start: 1.4em; }

.prose li + li { margin-top: 0.4em; }

.prose strong { color: var(--text); }

.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }

.prose td, .prose th { padding: 8px 10px; border: 1px solid var(--line); }

.prose img { height: auto; border-radius: var(--radius-sm); }

.numbered, .checklist { margin: 0; padding: 0; list-style: none; }

.numbered { counter-reset: n; }

.numbered li,
.checklist li {
    position: relative;
    padding-inline-start: 46px;
    min-height: 32px;
}

.numbered li + li,
.checklist li + li { margin-top: 14px; }

.numbered li { counter-increment: n; }

.numbered li::before {
    content: counter(n);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.checklist li::before {
    content: '';
    position: absolute;
    inset-inline-start: 9px;
    top: 9px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--blue-accent);
    border-bottom: 2px solid var(--blue-accent);
    transform: rotate(-45deg);
}

.callout {
    margin-top: 40px;
    padding: 24px 26px;
    background: rgba(201, 162, 39, 0.07);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-inline-start-width: 4px;
    border-radius: var(--radius-sm);
}

.callout h2 { color: var(--gold-light); margin-bottom: 8px; }

.button {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 12px 22px;
    background: linear-gradient(180deg, #0084ff, #0057ff);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s;
}

.button:hover { filter: brightness(1.1); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--gold); }

.contact-card__label { color: var(--muted); font-size: 0.85rem; }

.contact-card__value {
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

[dir='rtl'] .contact-card__value[dir='ltr'] { text-align: end; }

.faqs { margin-top: 56px; }

.faq {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    flex: none;
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.4;
    transition: transform 0.2s;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq .prose { padding-bottom: 20px; color: var(--muted); }

/* ── App link fallback (/app/*) ─────────────────────────────────────────── */
.app-link {
    display: grid;
    place-items: center;
    padding-block: clamp(48px, 9vw, 112px);
}

.app-link__card {
    width: 100%;
    max-width: 520px;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 24, 41, 0.95), rgba(11, 20, 33, 0.95));
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    box-shadow: 0 40px 90px -40px rgba(27, 94, 232, 0.55);
}

.app-link__badge {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.05);
    animation: badge-pop 0.7s 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.app-link__badge svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #10b981;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw 0.8s 0.6s ease forwards;
}

.app-link__card--reset .app-link__badge { background: rgba(201, 162, 39, 0.12); box-shadow: 0 0 0 10px rgba(201, 162, 39, 0.05); }
.app-link__card--reset .app-link__badge svg { stroke: var(--gold-light); }
.app-link__card--invalid .app-link__badge { background: rgba(239, 68, 68, 0.12); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.05); }
.app-link__card--invalid .app-link__badge svg { stroke: #ef4444; }

@keyframes badge-pop { from { transform: scale(0.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.app-link__card h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; }

.app-link__body { margin-top: 12px; color: var(--text-2); }

.button--large {
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 28px;
    padding: 15px 22px;
    font-size: 1.05rem;
    box-shadow: 0 14px 30px -12px rgba(0, 87, 255, 0.7);
}

.button--large img { border-radius: 6px; }

.app-link__stores {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.app-link__stores > p { color: var(--muted); font-size: 0.9rem; }

.app-link__stores .store-badges,
.app-link__stores .store-soon { justify-content: center; margin-top: 14px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    padding-block: 40px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.site-footer__brand img { width: 104px; height: auto; }

.site-footer__brand p { color: var(--muted); font-size: 0.85rem; }

.site-footer__brand p a {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: none;
}

.site-footer__brand p a:hover { text-decoration: underline; }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 520px; width: 100%; margin-top: 24px; }
    .showcase__row { grid-template-columns: 1fr; }
    .showcase__row:nth-child(even) .showcase__media { order: 0; }
    .showcase__media { max-width: 440px; }
}

@media (max-width: 720px) {
    .site-nav { display: none; }
    .lang-switch { margin-inline-start: auto; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .step::after { display: none; }
}

@media (max-width: 520px) {
    .toasts { inset-inline-end: 0; top: -30px; width: 88%; }
    .store-badge { flex: 1 1 100%; justify-content: center; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
