/* ==========================================================================
   Prismo — marketing site
   Type scale and spacing follow Apple's product pages: very large, tight
   display type, generous whitespace, one idea per screen.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin.woff2') format('woff2-variations'), url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: dark;

    --bg: #000;
    --bg-raised: #0b0b0e;
    --surface: #111115;
    --surface-2: #18181e;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;

    /* Spectrum, sampled from the app icon */
    --violet: #7b6cf6;
    --pink: #f5609a;
    --orange: #ffa233;
    --yellow: #f0d35c;
    --green: #7fd27c;
    --cyan: #2cc8d3;
    --blue: #56a6ee;
    --success: #34d399;

    --spectrum: linear-gradient(90deg, var(--violet), var(--pink) 22%, var(--orange) 40%, var(--yellow) 55%, var(--green) 70%, var(--cyan) 85%, var(--blue));

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

    --gutter: clamp(20px, 5vw, 48px);
    --wrap: 1180px;
    --radius-lg: 32px;
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: var(--font);
    font-optical-sizing: auto;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.011em;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

.display, .headline, .title, .statement-payoff { text-wrap: balance; }
.lede { text-wrap: pretty; }

.display {
    font-size: clamp(46px, 7.2vw, 104px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.048em;
}

.headline {
    font-size: clamp(38px, 5.6vw, 76px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.title {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.032em;
}

.lede {
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.38;
    font-weight: 500;
    letter-spacing: -0.018em;
    color: var(--text-2);
}

.lede strong, .body strong { color: var(--text); font-weight: 600; }

.body { font-size: 17px; line-height: 1.5; color: var(--text-2); }

.eyebrow {
    display: inline-block;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.spectrum-text {
    background: var(--spectrum);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: spectrum-shift 12s linear infinite;
    /* The gradient only paints inside the box: give descenders (the y in "you")
       and overhanging letters room, without changing the layout */
    padding: 0 0.06em 0.14em;
    margin: 0 -0.06em -0.14em;
}

@keyframes spectrum-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.c-violet { color: var(--violet); }
.c-pink { color: var(--pink); }
.c-orange { color: var(--orange); }
.c-green { color: var(--green); }
.c-cyan { color: var(--cyan); }
.c-blue { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s var(--ease);
    will-change: transform;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.45); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }

.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 24px 0 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-strong);
    transition: transform 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}
.store:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
.store:active { transform: scale(0.97); }
.store--light { background: var(--text); color: #000; border-color: transparent; }
.store--light:hover { background: #fff; }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 0; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--blue); font-weight: 500;
}
.link-arrow::after { content: '›'; font-size: 1.25em; line-height: 1; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Logo mark ---------- */

.mark { overflow: visible; fill: none; stroke-linecap: round; stroke-width: 172; }
.mark path, .mark use { opacity: 0.92; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--line);
}

.nav-inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand .mark { width: 26px; height: 26px; }

.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
    height: 34px; padding: 0 16px; font-size: 14px; font-weight: 600;
    border-radius: 999px; background: var(--text); color: #000;
    display: inline-flex; align-items: center;
    transition: transform 0.3s var(--ease), background-color 0.2s ease;
}
.nav-cta:hover { background: #fff; transform: scale(1.04); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding-top: clamp(110px, 14vh, 150px);
    text-align: center;
    overflow: clip;
}

.hero-copy { position: relative; z-index: 2; }

.hero-mark { width: 64px; height: 64px; margin: 0 auto 24px; }

/* One line per phrase, each centred on its own. (A 12ch box made the wider
   first line spill to the right and get cut off on narrower screens.) */
.hero h1 { margin: 0 auto; }
.hero .h-line { display: block; }

.hero .lede { max-width: 33ch; margin: 26px auto 0; }

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

.hero-meta {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-3);
    display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin-right: 10px; }

.hero-stage {
    position: relative;
    height: clamp(560px, 64vw, 860px);
    margin-top: clamp(48px, 6vh, 72px);
}

.hero-glow {
    position: absolute;
    left: 50%; top: 18%;
    width: min(1100px, 130vw); aspect-ratio: 1;
    transform: translate(-50%, 0);
    background: conic-gradient(from 210deg, var(--violet), var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--violet));
    filter: blur(110px);
    opacity: 0.38;
    border-radius: 50%;
    animation: glow-spin 30s linear infinite;
    pointer-events: none;
}

@keyframes glow-spin { to { transform: translate(-50%, 0) rotate(360deg); } }

.hero-stage::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(to bottom, transparent, var(--bg) 85%);
    z-index: 3;
    pointer-events: none;
}

/* ==========================================================================
   Statement
   ========================================================================== */

.statement { padding: clamp(100px, 16vh, 200px) 0 clamp(80px, 12vh, 140px); }

.statement p {
    font-size: clamp(30px, 4.3vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    max-width: 22ch;
}

.statement .muted { color: var(--text-3); }

.statement-payoff {
    margin-top: clamp(40px, 8vh, 80px);
    font-size: clamp(44px, 7vw, 100px);
    font-weight: 700;
    letter-spacing: -0.048em;
    line-height: 1;
}

/* ==========================================================================
   How it works — sticky phone
   ========================================================================== */

.how { padding: clamp(60px, 10vh, 120px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 8vh, 80px); }
.section-head .lede { margin-top: 20px; }
.how-more { margin-top: 18px; font-size: 17px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }

.step {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    opacity: 0.25;
    transition: opacity 0.6s var(--ease);
}
.step.is-active { opacity: 1; }
/* The first step only starts once the phone has settled, so it gets extra room
   to give the typing the same scroll distance as the other steps */
.step:first-child { min-height: 120vh; }

/* Keeps the phone in place until the last step's quiz has played out */
.steps-text { padding-bottom: 24vh; }

.step-num {
    font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3);
    margin-bottom: 18px; font-variant-numeric: tabular-nums;
}

.step .title { margin-bottom: 18px; max-width: 14ch; }
.step .lede { max-width: 30ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px; font-weight: 500; color: var(--text);
}
.chip svg { width: 16px; height: 16px; opacity: 0.85; }

.step-phone-inline { display: none; }

.steps-visual { position: sticky; top: calc(50vh - min(340px, 40vh)); height: min(680px, 80vh); }

.screen-stack { position: relative; height: 100%; aspect-ratio: 421 / 880; margin: 0 auto; }
.screen-stack::before {
    content: ''; position: absolute; inset: 15% -30%;
    background: radial-gradient(closest-side, rgba(123, 108, 246, 0.35), transparent);
    filter: blur(40px);
    transition: background 0.8s ease;
}
.screen-stack[data-active='1']::before { background: radial-gradient(closest-side, rgba(245, 96, 154, 0.32), transparent); }
.screen-stack[data-active='2']::before { background: radial-gradient(closest-side, rgba(52, 211, 153, 0.3), transparent); }

.progress-rail {
    position: absolute; left: -36px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px;
}
.progress-rail i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.4s ease, height 0.4s var(--ease); }
.progress-rail i.is-active { background: var(--text); height: 22px; border-radius: 4px; }

/* ==========================================================================
   Cards (shared with the guides)
   ========================================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}
.k-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }

/* ==========================================================================
   Forgetting curve
   ========================================================================== */

.curve { padding: clamp(80px, 12vh, 140px) 0; }

.curve-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

.curve-copy .headline { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 24px; }
.curve-copy .lede + .lede { margin-top: 18px; }
.curve-more { margin-top: 22px; font-size: 17px; }

.chart-card { padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-lg); }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.chart-label { fill: var(--text-3); font-size: 15px; font-weight: 500; font-family: var(--font); }
.chart-no { stroke: #4a4a50; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-yes { stroke: url(#curveSpectrum); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #fff; }
.chart-tag { fill: var(--text); font-size: 14px; font-weight: 600; font-family: var(--font); }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 22px; height: 4px; border-radius: 2px; background: #4a4a50; }
.chart-legend i.is-spectrum { background: var(--spectrum); }
.chart-note { margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* ==========================================================================
   Feature bento
   ========================================================================== */

.features { padding: clamp(80px, 12vh, 160px) 0; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.tile {
    position: relative;
    grid-column: span 2;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 2.6vw, 36px);
    overflow: hidden;
    isolation: isolate;
    min-height: 340px;
    display: flex; flex-direction: column;
}

.tile::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tile:hover::before { opacity: 1; }

.tile h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.15; margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 16px; line-height: 1.45; max-width: 36ch; }
.tile-visual { margin-top: auto; padding-top: 28px; }

.tile--graph { grid-column: span 4; grid-row: span 2; min-height: 700px; }
.tile--graph .tile-visual { position: relative; flex: 1; margin: 28px calc(-1 * clamp(24px, 2.6vw, 36px)) calc(-1 * clamp(24px, 2.6vw, 36px)); padding: 0; overflow: hidden; }
.tile--graph .tile-visual::before {
    content: ''; position: absolute; inset: 10% 15% 0;
    background: radial-gradient(closest-side, rgba(86, 166, 238, 0.28), transparent);
    filter: blur(30px);
}
.tile--wide { grid-column: span 3; }


/* Topics list */
.topics { display: flex; flex-direction: column; gap: 8px; }
.topic {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 15px; font-weight: 500;
}
.topic i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.topic small { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* Search */
.search {
    display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 16px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--line-strong);
    font-size: 16px;
}
.search svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.search-caret { display: inline-block; width: 2px; height: 20px; background: var(--blue); margin-left: 1px; animation: caret 1s steps(1) infinite; vertical-align: middle; }
@keyframes caret { 50% { opacity: 0; } }
.search-results { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.search-result { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--text-2); }
.search-result b { color: var(--text); font-weight: 600; }
.search-result mark { background: rgba(86, 166, 238, 0.28); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* Quiz modes */
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mode {
    height: 40px; padding: 0 16px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 500;
    background: var(--surface-2); border: 1px solid var(--line);
}
.mode i { width: 8px; height: 8px; border-radius: 50%; }

/* Memory strength */
.strength { display: flex; flex-direction: column; gap: 16px; }
.strength-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.strength-row span:last-child { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.strength-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.strength-bar i { display: block; height: 100%; border-radius: inherit; width: var(--w); transform-origin: left; }

/* Due today */
.due-row { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--text-2); }
.due-row b { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }

/* Files read by Knowledge Sync */
.files { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.files i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.files svg { width: 18px; height: 18px; }
.files small { display: block; font-size: 12.5px; font-weight: 400; color: var(--success); margin-top: 2px; }

/* Streak */
.streak { display: flex; align-items: center; gap: 22px; }
.ring { width: 112px; height: 112px; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--surface-2); }
.ring .ring-fg { stroke: url(#ringSpectrum); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--text); font-family: var(--font); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; }
.streak-stats { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.streak-stats b { color: var(--text); font-size: 17px; }


/* Control */
.control-list { display: flex; flex-direction: column; gap: 12px; }
.control-list li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.control-list li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, 0.14); color: var(--success); flex-shrink: 0; }
.control-list svg { width: 15px; height: 15px; }

/* ==========================================================================
   Marquee
   ========================================================================== */

.anything { padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }

.marquee {
    --gap: 12px;
    display: flex; gap: var(--gap);
    margin-top: 14px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex; gap: var(--gap); flex-shrink: 0;
    animation: marquee 60s linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.pill {
    flex-shrink: 0;
    height: 60px; padding: 0 26px;
    display: inline-flex; align-items: center; gap: 12px;
    border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
    white-space: nowrap;
}
.pill i { width: 10px; height: 10px; border-radius: 50%; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 26px 0;
    font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; width: 14px; height: 14px; flex-shrink: 0;
    background:
        linear-gradient(var(--text-2), var(--text-2)) center / 14px 2px no-repeat,
        linear-gradient(var(--text-2), var(--text-2)) center / 2px 14px no-repeat;
    transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq .answer { padding: 0 48px 28px 0; color: var(--text-2); font-size: 17px; line-height: 1.55; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final { position: relative; padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px); text-align: center; overflow: hidden; }

/* Full-bleed so the light enters and leaves at the edges of the screen */
.prism-stage { width: 100vw; height: clamp(200px, 22vw, 300px); margin: 0 0 clamp(32px, 5vh, 56px) calc(50% - 50vw); }
.prism-svg { width: 100%; height: 100%; overflow: visible; }

.final .display { max-width: 12ch; margin: 0 auto; }
.final .lede { margin: 24px auto 0; max-width: 30ch; }

.final-actions { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 48px); margin-top: 44px; flex-wrap: wrap; }
.final-stores { display: flex; flex-direction: column; gap: 12px; }

.qr {
    display: flex; align-items: center; gap: 18px; text-align: left;
    padding: 14px 22px 14px 14px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--line);
}
.qr-code { width: 112px; height: 112px; padding: 9px; border-radius: 14px; background: #fff; }
.qr-code img { width: 100%; height: 100%; }
.qr p { font-size: 15px; color: var(--text-2); line-height: 1.4; max-width: 15ch; }
.qr p b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }
.footer .brand { font-size: 15px; color: var(--text); }
.footer .brand .mark { width: 20px; height: 20px; }

/* Multi-column footer (content pages and homepage) */
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h2 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 4px; }
.footer-col a { color: var(--text-2); width: fit-content; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--text-3); max-width: 32ch; line-height: 1.5; }
.footer-copy { color: var(--text-3); }
@media (max-width: 640px) {
    .footer-cols { grid-template-columns: 1fr; text-align: left; }
}

.nav.is-solid { background: rgba(10, 10, 12, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }

/* ==========================================================================
   Mobile download bar
   ========================================================================== */

.dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: none; align-items: center; gap: 12px;
    padding: 10px 10px 10px 12px; border-radius: 22px;
    background: rgba(28, 28, 32, 0.78);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    transform: translateY(140%);
    transition: transform 0.6s var(--ease);
}
.dock.is-visible { transform: none; }
.dock img { width: 44px; height: 44px; border-radius: 11px; }
.dock-text { flex: 1; min-width: 0; line-height: 1.25; }
.dock-text b { display: block; font-size: 15px; }
.dock-text span { font-size: 13px; color: var(--text-2); }
.dock .btn { height: 38px; padding: 0 18px; font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .tile--graph { grid-column: span 6; grid-row: auto; min-height: 640px; }
    .tile { grid-column: span 3; }
    .tile--wide { grid-column: span 3; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }

    .steps { grid-template-columns: 1fr; }
    .steps-visual { display: none; }
    .steps-text { padding-bottom: 0; }
    .step, .step:first-child { min-height: 0; opacity: 1; padding: 0 0 72px; }


    .curve-grid { grid-template-columns: 1fr; }

    .qr { display: none; }
    .dock { display: flex; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { padding-top: 112px; }
    .hero-mark { width: 60px; height: 60px; margin-bottom: 22px; }
    .hero-meta { gap: 4px 16px; }
    .hero-meta span + span::before { display: none; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .store { width: 100%; max-width: 300px; justify-content: center; }
    .hero-stage { height: 520px; margin-top: 48px; }

    .bento { grid-template-columns: 1fr; }
    .tile, .tile--wide, .tile--graph { grid-column: auto; grid-row: auto; min-height: 0; }
    .tile--graph { min-height: 600px; }
    
    .faq .answer { padding-right: 0; }
    .chart-label, .chart-tag { font-size: 28px; }
    .chart-label--top { display: none; }
    .pill { height: 50px; font-size: 17px; padding: 0 20px; }

    .final-stores { width: 100%; align-items: center; }
    .final-stores .store { width: 100%; max-width: 300px; justify-content: center; }

    .footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Motion preferences & intro state
   ========================================================================== */

html.has-intro [data-intro] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none; }
    .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
    .marquee-track[aria-hidden] { display: none; }
    .marquee-track { flex-wrap: wrap; justify-content: center; }
}

.h-line { display: inline-block; }
.h-block { display: block; }
