/*
 * VoiceCash — public landing page (voice-cash.com).
 *
 * Plain modern CSS, no build step: the page ships through the FTP/zip route,
 * so there is nothing to compile and nothing to go stale. Everything newer
 * than a 2022 browser is progressive — scroll-driven reveals, view
 * transitions, details::details-content — and the page reads fine without it.
 *
 * Theme: the tokens below are the light theme; [data-theme="dark"] swaps them.
 * An inline script in <head> sets data-theme before first paint (saved choice,
 * else the system's), and the media block covers the no-JS visitor.
 */

@font-face {
    font-family: "Kalpurush";
    src: url("../fonts/Kalpurush.ttf") format("truetype");
    font-weight: 400 700;
    font-display: swap;
}

@property --vc-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

:root {
    color-scheme: light;

    /* Brand — the app's own red (AppAccent.voiceRed). */
    --brand: #e31221;
    --brand-600: #c90f1a;
    --brand-700: #a50c15;
    --brand-ink: #b80d18;
    --brand-soft: #fdecee;
    --brand-glow: rgb(227 18 33 / .28);
    --grad: linear-gradient(135deg, #ff3b47 0%, #e31221 45%, #a50c15 100%);

    --bg: #ffffff;
    --bg-soft: #faf6f6;
    --bg-tint: #fff4f5;
    --surface: #ffffff;
    --surface-2: #f6f3f3;
    --ink: #17181c;
    --ink-2: #3c404a;
    --muted: #6b7180;
    --line: #eee6e7;
    --line-strong: #e1d6d7;
    --ok: #0f9d58;
    --warn: #d97706;
    --shadow-sm: 0 1px 2px rgb(23 24 28 / .05);
    --shadow: 0 18px 40px -22px rgb(60 10 15 / .35);
    --shadow-lg: 0 40px 80px -36px rgb(60 10 15 / .45);
    --glass: rgb(255 255 255 / .78);
    --grid-line: rgb(23 24 28 / .045);

    --radius: 18px;
    --radius-lg: 28px;
    --wrap: 1200px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --font: "Hind Siliguri", "Kalpurush", "Noto Sans Bengali", system-ui, sans-serif;
    --font-latin: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #ff3b47;
    --brand-600: #ff5560;
    --brand-700: #e31221;
    --brand-ink: #ff7a82;
    --brand-soft: rgb(255 59 71 / .12);
    --brand-glow: rgb(255 59 71 / .32);

    --bg: #0b0c10;
    --bg-soft: #101218;
    --bg-tint: #140e11;
    --surface: #15171e;
    --surface-2: #1c1f28;
    --ink: #f4f5f7;
    --ink-2: #c8ccd6;
    --muted: #9198a6;
    --line: #242833;
    --line-strong: #323744;
    --ok: #34d399;
    --warn: #fbbf24;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 18px 40px -22px rgb(0 0 0 / .8);
    --shadow-lg: 0 40px 80px -36px rgb(0 0 0 / .9);
    --glass: rgb(11 12 16 / .72);
    --grid-line: rgb(255 255 255 / .04);
}

/* No JS → follow the system. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --brand: #ff3b47; --brand-600: #ff5560; --brand-700: #e31221; --brand-ink: #ff7a82;
        --brand-soft: rgb(255 59 71 / .12); --brand-glow: rgb(255 59 71 / .32);
        --bg: #0b0c10; --bg-soft: #101218; --bg-tint: #140e11; --surface: #15171e; --surface-2: #1c1f28;
        --ink: #f4f5f7; --ink-2: #c8ccd6; --muted: #9198a6; --line: #242833; --line-strong: #323744;
        --ok: #34d399; --warn: #fbbf24; --glass: rgb(11 12 16 / .72); --grid-line: rgb(255 255 255 / .04);
        --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); --shadow-lg: 0 40px 80px -36px rgb(0 0 0 / .9);
    }
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
    interpolate-size: allow-keywords;
}
/* clip, not hidden: hidden would make body a scroll container and break the sticky header */
html, body { overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .35s ease, color .35s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--brand-glow); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.latin { font-family: var(--font-latin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
    &:focus { top: 12px; }
}

/* Reading-progress bar — pure CSS where scroll timelines exist. */
.progress {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
    background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}
@supports (animation-timeline: scroll()) {
    .progress { animation: vc-grow linear both; animation-timeline: scroll(root); }
}
@keyframes vc-grow { to { transform: scaleX(1); } }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .78rem 1.3rem; border-radius: 14px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease-out), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    & svg { width: 18px; height: 18px; flex: none; }
    &:active { transform: translateY(0) scale(.98); }
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 12px 26px -12px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / .2);
    &:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / .2); }
}
.btn-ghost {
    background: var(--surface); color: var(--ink); border-color: var(--line-strong);
    &:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-ink); }
}
.btn-sm { padding: .55rem 1rem; font-size: 14px; border-radius: 11px; }

.store {
    display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1.15rem;
    border-radius: 14px; background: #0b0c10; color: #fff; border: 1.5px solid rgb(255 255 255 / .12);
    transition: transform .2s var(--ease-out), box-shadow .2s ease;
    box-shadow: var(--shadow);
    & svg { width: 26px; height: 26px; flex: none; }
    & small { display: block; font-size: 11px; opacity: .7; line-height: 1.2; }
    & b { display: block; font-family: var(--font-latin); font-size: 16px; line-height: 1.2; }
    &:hover { transform: translateY(-2px); }
}
:root[data-theme="dark"] .store { background: #fff; color: #0b0c10; border-color: transparent; }

/* ── Header ───────────────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--glass);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .35s ease;
    &.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(0 0 0 / .4); }
}
.nav { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand {
    display: flex; align-items: center; gap: 10px; flex: none;
    & img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .35); }
    & b { display: block; font-family: var(--font-latin); font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
    & small { display: block; font-size: 12px; color: var(--brand-ink); line-height: 1.2; font-weight: 600; }
}
.menu {
    display: flex; gap: 4px; margin-left: 10px; flex: 1;
    & a {
        position: relative; padding: 8px 12px; border-radius: 10px;
        font-size: 15px; font-weight: 600; color: var(--ink-2);
        transition: color .2s ease, background-color .2s ease;
        &:hover { color: var(--ink); background: var(--surface-2); }
        &.active { color: var(--brand-ink); }
    }
}
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
    width: 42px; height: 42px; display: grid; place-items: center; flex: none;
    border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
    transition: border-color .2s ease, transform .2s var(--ease-out);
    & svg { width: 20px; height: 20px; }
    &:hover { border-color: var(--brand); transform: rotate(-8deg); }
}
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.burger { display: none; }

/* Mobile menu — a native popover, so Esc and outside-tap close it for free. */
.mnav {
    margin: 0; inset: 76px 12px auto; width: auto; max-width: none;
    border: 1px solid var(--line); border-radius: 20px; padding: 10px;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
    opacity: 1; transform: none;
    transition: opacity .22s ease, transform .22s var(--ease-out), overlay .22s allow-discrete, display .22s allow-discrete;
    & a { display: block; padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: 16px; }
    & a:hover { background: var(--surface-2); }
    & .btn { display: flex; margin-top: 8px; }
    &::backdrop { background: rgb(0 0 0 / .25); }
}
.mnav:not(:popover-open) { opacity: 0; transform: translateY(-8px); }
@starting-style { .mnav:popover-open { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 940px) {
    .menu, .nav-end .hide-sm { display: none; }
    .burger { display: grid; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative; isolation: isolate; overflow: clip;
    padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
    &::before {
        /* faint graph-paper grid — a খাতা, but tidy */
        content: ""; position: absolute; inset: 0; z-index: -2;
        background-image:
            linear-gradient(var(--grid-line) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
        background-size: 44px 44px;
        mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    }
    &::after {
        content: ""; position: absolute; z-index: -1;
        width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
        background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
        filter: blur(20px);
    }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
    font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
    & .tag { background: var(--grad); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
}
.hero h1 {
    margin-top: 20px;
    font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem);
    font-weight: 700; line-height: 1.2;
}
.rot-wrap { display: inline-grid; vertical-align: bottom; }
.rot {
    grid-area: 1 / 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: opacity .3s ease, transform .3s var(--ease-out), filter .3s ease;
    &.out { opacity: 0; transform: translateY(.35em); filter: blur(4px); }
}
.hero .lead { margin-top: 18px; max-width: 560px; font-size: clamp(16px, 1.2vw + 11px, 18.5px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px;
    font-size: 14.5px; color: var(--muted);
    & .stars { color: #f59e0b; letter-spacing: 2px; }
    & b { color: var(--ink); }
    & .sep { width: 1px; height: 16px; background: var(--line-strong); }
    @media (max-width: 520px) { & .sep { display: none; } }
}

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.phone {
    position: relative; width: min(78%, 290px); margin-inline: auto;
    border-radius: 42px; padding: 10px; background: #0b0c10;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .06), inset 0 0 0 2px #2a2d36;
    & img { border-radius: 33px; width: 100%; height: auto; aspect-ratio: 486 / 1080; object-fit: cover; }
    &::before {
        content: ""; position: absolute; left: 50%; top: 18px; translate: -50% 0;
        width: 78px; height: 22px; border-radius: 99px; background: #0b0c10; z-index: 2;
    }
}
.halo {
    position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
    background: conic-gradient(from var(--vc-angle), #ff3b47, #ffb4b9, #a50c15, #ff3b47);
    filter: blur(60px); opacity: .45;
    animation: vc-spin 14s linear infinite;
}
@keyframes vc-spin { to { --vc-angle: 360deg; } }

.float {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 16px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: 13.5px; line-height: 1.35; max-width: 240px;
    animation: vc-floaty 6s ease-in-out infinite;
    & .ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
    & .ico svg { width: 18px; height: 18px; }
    & small { display: block; color: var(--muted); font-size: 12px; }
    & b { display: block; font-weight: 700; }
}
.float.f1 { left: -6%; top: 14%; }
.float.f2 { right: -2%; top: 46%; animation-delay: -2s; }
.float.f2 .ico { background: color-mix(in oklab, var(--ok) 15%, transparent); color: var(--ok); }
.float.f3 { left: 0; bottom: 6%; animation-delay: -4s; }
.float .typed { min-height: 1.35em; }
@keyframes vc-floaty { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero .lead { margin-inline: auto; }
    .cta-row, .trust { justify-content: center; }
    .hero-visual { margin-top: 12px; }
}
@media (max-width: 520px) {
    .float { font-size: 12.5px; padding: 8px 10px; max-width: 190px; }
    .float .ico { width: 30px; height: 30px; }
    .float.f1 { left: -2%; }
    .float.f2 { right: -2%; }
    .float.f3 { display: none; }
}

/* ── Feature marquee — pinned to the bottom of the screen ───────── */
.marquee {
    position: fixed; inset: auto 0 0; z-index: 45;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    background: var(--glass);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -24px rgb(0 0 0 / .4);
    transition: background-color .35s ease;
}
/* Room at the end of the page so the bar never covers the footer. */
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.mq-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.mq-track {
    display: flex; gap: 10px; width: max-content; margin: 0; padding: 0; list-style: none;
    animation: vc-marquee var(--mq-dur, 70s) linear infinite;
}
.mq-viewport:hover .mq-track { animation-play-state: paused; }
@keyframes vc-marquee { to { transform: translateX(-50%); } }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
    font-weight: 600; font-size: 14.5px; line-height: 1.4; white-space: nowrap; color: var(--ink-2);
    transition: border-color .2s ease, color .2s ease;
    & .ic { width: 30px; height: 30px; border-radius: 9px; }
    & .ic svg { width: 16px; height: 16px; }
    &:hover { border-color: var(--brand); color: var(--ink); }
}
@media (max-width: 520px) {
    .marquee { padding-block: 6px calc(6px + env(safe-area-inset-bottom)); }
    body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
    .chip { font-size: 13.5px; padding: 4px 12px 4px 4px; & .ic { width: 26px; height: 26px; } }
}

/* ── Section scaffolding ─────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-head {
    max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center;
    & h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 700; margin-top: 12px; }
    & p { margin-top: 12px; color: var(--muted); font-size: 17px; }
    &.left { margin-inline: 0; text-align: left; }
}
.kick {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--brand-ink);
    &::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
}

.ic {
    width: 46px; height: 46px; flex: none; border-radius: 14px;
    display: inline-grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-ink);
    transition: transform .3s var(--ease-spring);
    & svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

.card {
    position: relative; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease, background-color .35s ease;
}
.card.hover:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.card.hover:hover .ic { transform: scale(1.08) rotate(-6deg); }

/* ── Band ─────────────────────────────────────────────────────────── */
.band {
    background: var(--grad); color: #fff; text-align: center;
    padding: clamp(28px, 4vw, 44px) 0;
    & h2 { font-size: clamp(1.25rem, .9rem + 1.4vw, 1.9rem); font-weight: 600; max-width: 900px; margin-inline: auto; }
}

/* ── Stats ────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
    padding: 26px 18px; text-align: center;
    & .n { font-family: var(--font-latin); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
    & .l { margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 15px; }
}
.note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Voice showcase ──────────────────────────────────────────────── */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ticks {
    display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none;
    & li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; }
    & svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--ok); }
}
.demo {
    padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); overflow: hidden;
    background:
        radial-gradient(120% 80% at 100% 0%, var(--brand-soft), transparent 60%),
        var(--surface);
}
.demo-top { display: flex; align-items: center; gap: 14px; }
.mic {
    position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%;
    display: grid; place-items: center; background: var(--grad); color: #fff;
    box-shadow: 0 14px 30px -10px var(--brand-glow);
    & svg { width: 28px; height: 28px; }
    &::before, &::after {
        content: ""; position: absolute; inset: 0; border-radius: 50%;
        border: 2px solid var(--brand); opacity: 0;
        animation: vc-ripple 2.4s ease-out infinite;
    }
    &::after { animation-delay: 1.2s; }
}
@keyframes vc-ripple { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; flex: 1; }
.wave i {
    flex: 1; max-width: 6px; height: 100%; border-radius: 4px; background: var(--brand);
    opacity: .75; transform-origin: center; transform: scaleY(.2);
    animation: vc-wave 1.1s ease-in-out infinite;
    animation-delay: calc(var(--i) * -90ms);
}
@keyframes vc-wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(var(--h, .9)); } }
.said {
    margin-top: 22px; padding: 16px 18px; border-radius: 16px;
    background: var(--surface-2); border: 1px dashed var(--line-strong);
    font-size: clamp(17px, 1vw + 12px, 20px); font-weight: 600; min-height: 3.6em;
    & .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -.15em; margin-left: 2px; background: var(--brand); animation: vc-blink 1s steps(1) infinite; }
}
@keyframes vc-blink { 50% { opacity: 0; } }
.parsed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.parsed div {
    padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
    transition: opacity .35s ease, transform .35s var(--ease-out);
    & small { display: block; color: var(--muted); font-size: 12.5px; }
    & b { display: block; font-size: 16px; }
}
.parsed.hide div { opacity: 0; transform: translateY(8px); }
.parsed div:nth-child(2) { transition-delay: .08s; }
.parsed div:nth-child(3) { transition-delay: .16s; }
.saved {
    display: flex; align-items: center; gap: 8px; margin-top: 14px;
    font-size: 14.5px; font-weight: 600; color: var(--ok);
    transition: opacity .3s ease;
    & svg { width: 18px; height: 18px; }
}
.parsed.hide + .saved { opacity: 0; }
@media (max-width: 900px) { .voice-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .parsed { grid-template-columns: 1fr 1fr; } .parsed div:last-child { grid-column: span 2; } }

/* ── Feature bento ───────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
    padding: 24px;
    & h3 { margin-top: 16px; font-size: 19px; font-weight: 700; }
    & p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
}
.feat.wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: start; }
.feat.wide h3 { margin-top: 2px; }
.feat.wide .ic { grid-row: span 2; }
.feat.hot {
    background:
        radial-gradient(120% 120% at 0% 0%, var(--brand-soft), transparent 55%),
        var(--surface);
    border-color: color-mix(in oklab, var(--brand) 30%, var(--line));
}
.feat .mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; grid-column: 2; }
.feat .mini span {
    font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .bento { grid-template-columns: 1fr; }
    .feat.wide { grid-column: auto; display: block; }
    .feat.wide h3 { margin-top: 16px; }
}

/* ── Business ─────────────────────────────────────────────────────── */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.dash {
    padding: 22px; border-radius: var(--radius-lg);
    & .head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
    & .head small { color: var(--muted); font-weight: 600; font-size: 13px; }
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tile {
    padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
    & small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
    & b { display: block; margin-top: 2px; font-size: 22px; font-weight: 700; }
    &.up b { color: var(--ok); }
    &.due b { color: var(--warn); }
    &.br b { color: var(--brand-ink); }
}
.bars { display: flex; align-items: end; gap: 8px; height: 120px; margin-top: 16px; padding: 12px 12px 0; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bars i {
    flex: 1; border-radius: 8px 8px 3px 3px; height: var(--v);
    background: linear-gradient(to top, var(--brand-700), var(--brand));
    opacity: .85; transform-origin: bottom;
}
.bars i:last-child { opacity: 1; box-shadow: 0 0 0 3px var(--brand-soft); }
.bar-days { display: flex; gap: 8px; padding: 6px 12px 0; font-size: 12px; color: var(--muted); }
.bar-days span { flex: 1; text-align: center; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; } .biz-grid .dash { order: 2; } }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step {
    padding: 28px 24px;
    & .num {
        width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
        background: var(--grad); color: #fff; font-size: 22px; font-weight: 700;
        box-shadow: 0 12px 24px -12px var(--brand-glow);
    }
    & h3 { margin-top: 18px; font-size: 19px; }
    & p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
}
@media (min-width: 761px) {
    .step:not(:last-child)::after {
        content: ""; position: absolute; top: 54px; right: -14px; width: 14px; height: 2px;
        background: var(--line-strong);
    }
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Screenshots ─────────────────────────────────────────────────── */
.screens { background: #0b0c10; color: #f4f5f7; position: relative; isolation: isolate; overflow: clip; }
.screens::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 15% 0%, rgb(227 18 33 / .28), transparent 70%),
        radial-gradient(50% 50% at 90% 100%, rgb(227 18 33 / .2), transparent 70%);
}
.screens .sec-head p { color: #a3a9b6; }
.screens .kick { color: #ff7a82; }
.shots-viewport {
    overflow: hidden; padding: 30px 0 10px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.shots-track { display: flex; gap: 22px; width: max-content; animation: vc-marquee 110s linear infinite; }
.shots-viewport:hover .shots-track { animation-play-state: paused; }
.shot {
    flex: none; width: 210px; margin: 0;
    &:nth-child(even) { margin-top: 36px; }
    & button {
        all: unset; display: block; cursor: zoom-in; width: 100%;
        border-radius: 26px; padding: 6px; background: #1c1f28;
        box-shadow: 0 30px 60px -24px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .08);
        transition: transform .3s var(--ease-out);
    }
    & button:hover { transform: translateY(-10px) scale(1.03); }
    & button:focus-visible { outline: 2px solid #ff3b47; outline-offset: 4px; }
    & img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 486 / 1080; object-fit: cover; }
    & figcaption { margin-top: 12px; text-align: center; font-size: 13px; line-height: 1.5; color: #a3a9b6; }
}
.shots-foot { text-align: center; padding: 18px 16px 0; color: #a3a9b6; font-size: 14px;
    & a { color: #fff; font-weight: 700; border-bottom: 1px solid rgb(255 255 255 / .3); }
}
@media (max-width: 640px) { .shot { width: 156px; } .shot:nth-child(even) { margin-top: 24px; } }

/* Lightbox — a native <dialog>; @starting-style gives it an entry fade. */
.lb {
    border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
    width: 100%; height: 100%; display: none; place-items: center; color: #fff;
    opacity: 1; transition: opacity .25s ease, overlay .25s allow-discrete, display .25s allow-discrete;
    &[open] { display: grid; }
    &::backdrop { background: rgb(5 5 8 / .88); backdrop-filter: blur(6px); }
    & figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 16px; }
    & img { width: min(320px, 80vw); max-height: 78dvh; height: auto; object-fit: contain; border-radius: 26px; border: 6px solid #1c1f28; }
    & figcaption { max-width: 440px; text-align: center; font-size: 15px; color: #e5e7eb; }
}
.lb:not([open]) { opacity: 0; }
@starting-style { .lb[open] { opacity: 0; } }
.lb-btn {
    position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgb(255 255 255 / .12); color: #fff; font-size: 26px; line-height: 1;
    transition: background-color .2s ease;
    &:hover { background: #e31221; }
}
.lb-close { top: 16px; right: 16px; font-size: 22px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; } }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.faq-col h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.faq-col h3 .ic { width: 36px; height: 36px; border-radius: 11px; }
.faq-col h3 .ic svg { width: 18px; height: 18px; }
.qa {
    margin-bottom: 10px; border-radius: 16px; background: var(--surface);
    border: 1px solid var(--line); transition: border-color .25s ease, background-color .35s ease;
    &[open] { border-color: color-mix(in oklab, var(--brand) 35%, var(--line)); }
    & summary {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px;
        &::-webkit-details-marker { display: none; }
    }
    & .pl {
        position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--brand-soft);
        &::before, &::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: var(--brand-ink); border-radius: 2px; transition: rotate .3s var(--ease-out); }
        &::after { rotate: 90deg; }
    }
    &[open] .pl::after { rotate: 0deg; }
    & .ans { padding: 0 18px 18px; color: var(--muted); font-size: 15.5px; }
}
/* Smooth open/close where the browser can animate to height:auto. */
.qa::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }
@media (max-width: 860px) { .faq-cols { grid-template-columns: 1fr; } }

/* ── CTA ──────────────────────────────────────────────────────────── */
.cta {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
    background: #0b0c10; color: #fff; text-align: center;
    &::before {
        content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
        background:
            radial-gradient(60% 80% at 0% 0%, rgb(227 18 33 / .55), transparent 60%),
            radial-gradient(60% 80% at 100% 100%, rgb(255 59 71 / .35), transparent 60%);
    }
    & h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); }
    & p { margin: 14px auto 0; max-width: 620px; color: #c8ccd6; font-size: 17px; }
    & .cta-row { justify-content: center; }
    & .store { background: #fff; color: #0b0c10; }
    & .btn-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .25); }
    & .btn-ghost:hover { border-color: #fff; color: #fff; }
    & .fine { margin-top: 18px; font-size: 14px; color: #a3a9b6; }
}
:root[data-theme="dark"] .cta { border: 1px solid var(--line); }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 340px; }
.foot-col {
    display: grid; align-content: start; gap: 9px;
    & h4 { margin: 0 0 6px; font-size: 15px; }
    & a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
    & a:hover { color: var(--brand-ink); }
}
.foot-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 14px; color: var(--muted);
    & b { color: var(--ink-2); }
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── Motion ───────────────────────────────────────────────────────── */
/* Reveal on scroll: CSS scroll timeline where supported, else the JS
   IntersectionObserver arms [data-armed] and adds .in. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: vc-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
    .reveal[data-armed] { opacity: 0; transform: translateY(26px); }
    .reveal[data-armed].in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
}
@keyframes vc-rise { from { opacity: 0; transform: translateY(30px) scale(.985); } }

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

/* Theme switch: a circle that grows from the toggle (View Transitions API). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vc-reveal .55s var(--ease-out); }
@keyframes vc-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0%)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0%)); } }
