:root {
    --bg: #030303;
    --surface: #131313;
    --border: #232323;
    --text: #f5f5f5;
    --muted: #a0a0a0;
    --accent: #55d6be;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { margin: 0; }

h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; }

.lead { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); max-width: 34em; }

.top, main, footer { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 22.5%; }

.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { color: var(--text); }

section { padding: 64px 0; }

.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; }

.cta {
    display: inline-block;
    background: var(--accent);
    color: #03130f;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 999px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Hero doubling as the feature tour: one phone, chapters beside it. */
.show {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 290px);
    grid-template-areas: "head phone" "chapters phone";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 36px;
    align-items: start;
    padding-top: 24px;
}
.show-head { grid-area: head; }
.show-head > * + * { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px !important; }
.cta-row .note { margin-top: 0; }

.show-phone { grid-area: phone; position: sticky; top: 24px; cursor: pointer; user-select: none; }
.screens { position: relative; filter: drop-shadow(0 30px 60px rgba(85, 214, 190, 0.22)); }
.screen { width: 100%; opacity: 0; transform: scale(0.97); transition: opacity 0.45s ease, transform 0.45s ease; }
.screen + .screen { position: absolute; inset: 0; }
.screen.is-active { opacity: 1; transform: none; }

/* Round arrows on the phone's sides: the obvious way to flip screens. */
.nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 1px solid #3a3a3c;
    border-radius: 50%;
    background: rgba(28, 28, 30, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.nav:hover { background: #2c2c2e; border-color: var(--accent); }
.nav:active { transform: scale(0.94); }
.nav svg { width: 20px; height: 20px; }
.nav.prev { left: -22px; }
.nav.next { right: -22px; }

/* Chapters are rows that look pressable: number, title, chevron; the open one is a card with the timer bar. */
.chapters {
    grid-area: chapters;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0 0 0 -16px;
    padding: 0;
    max-width: 38em;
}
.chapter {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.chapter:hover { background: rgba(255, 255, 255, 0.05); }
.chapter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chapter.is-active { background: var(--surface); border-color: var(--border); }

.chapter-head { display: flex; align-items: center; gap: 14px; }
.chapter-num { flex: none; width: 22px; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chapter-title { flex: 1; font-size: 18px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.chevron { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s, color 0.2s; }
.chapter:hover .chapter-title, .chapter.is-active .chapter-title, .chapter:hover .chevron { color: var(--text); }
.chapter.is-active .chapter-num { color: var(--accent); }
.chapter.is-active .chevron { transform: rotate(180deg); color: var(--text); }

.chapter-text { display: grid; grid-template-rows: 0fr; margin-left: 36px; transition: grid-template-rows 0.35s ease; }
.chapter-text > span { overflow: hidden; color: var(--muted); font-size: 16px; }
.chapter.is-active .chapter-text { grid-template-rows: 1fr; }
.chapter.is-active .chapter-text > span { padding-top: 6px; }

.bar { display: none; height: 2px; margin: 14px 0 0 36px; background: var(--border); border-radius: 2px; overflow: hidden; }
.chapter.is-active .bar { display: block; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.chapter.is-done .bar i { width: 100%; }
.chapter.is-active .bar i { animation: chapter-fill 6s linear forwards; }
.is-paused .chapter.is-active .bar i, .is-offscreen .chapter.is-active .bar i { animation-play-state: paused; }
@keyframes chapter-fill { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    .chapter.is-active .bar i { animation: none; width: 100%; }
    .screen, .chapter-text, .chevron { transition: none; }
}

/* Limits as numbers */
.facts { border-top: 1px solid var(--border); }
.facts-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 48px; align-items: end; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.fact b { display: flex; align-items: center; height: 56px; color: var(--accent); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.fact h3 { margin-top: 12px; font-size: 17px; }
.fact p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 32px 0 0; }
.chips li { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--muted); }

/* Closing band in the accent colour: privacy and the last call to action. */
.band {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--accent);
    color: #03130f;
    border-radius: 28px;
    padding: 44px;
    margin-bottom: 56px;
}
.band h2 { font-size: clamp(24px, 2.6vw, 32px); }
.band-copy p { margin-top: 14px; color: rgba(3, 19, 15, 0.72); }
.band-cta { text-align: center; }
.band-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.band .cta { background: #03130f; color: var(--accent); }
.band .note { color: rgba(3, 19, 15, 0.62); }

footer { padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer > * + * { margin-top: 16px; }
.disclaimer { max-width: 60em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--text); }

@media (max-width: 800px) {
    section { padding: 44px 0; }
    .show { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "chapters"; row-gap: 28px; }
    .show-phone { position: relative; top: 0; width: min(230px, 62vw); margin: 0 auto; }
    .nav { width: 40px; height: 40px; margin-top: -20px; }
    .nav.prev { left: -56px; }
    .nav.next { right: -56px; }
    /* Stories: a row of bars under the phone and only the open chapter's text, so phone and text share a screen. */
    .chapters {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        column-gap: 6px;
        align-content: start;
        min-height: 13em;
        margin-left: 0;
    }
    .chapters li, .chapter { display: contents; }
    .bar { display: block; grid-row: 1; height: 3px; margin: 0; cursor: pointer; }
    .chapter-head, .chapter-text { display: none; grid-column: 1 / -1; }
    .chapter.is-active .chapter-head { display: flex; grid-row: 2; margin-top: 16px; }
    .chapter.is-active .chapter-text { display: grid; grid-row: 3; margin-left: 0; }
    .chevron, .chapter-num { display: none; }
    .chapter-text > span { font-size: 15px; }
    .facts-head, .band { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .fact b { font-size: 34px; height: 44px; }
    .band { padding: 28px 24px; gap: 24px; }
}

@media (max-width: 480px) {
    .cta { display: block; text-align: center; }
}
