* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #3F86F7;
    --blue-dark: #1F63DE;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --card: #f5f5f7;
    --border: rgba(0, 0, 0, 0.07);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
}

.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }

nav a.nav-link {
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}
nav a.nav-link:hover { color: var(--text); }

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    background: var(--blue-dark);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--blue); }

@media (max-width: 640px) {
    .nav-inner { gap: 12px; padding: 0 18px; }
    nav a.nav-link { display: none; }
    /* Let the headline wrap on its own: the desktop <br> leaves a lonely word on phones. */
    .hero h1 { font-size: 32px; text-wrap: balance; }
    .hero h1 br { display: none; }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 64px 24px 44px;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(214, 186, 248, 0.35) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, rgba(176, 212, 253, 0.55) 0%, rgba(255, 255, 255, 0) 62%);
}

.hero img.icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    box-shadow: 0 8px 22px rgba(27, 42, 74, 0.15);
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero p.sub {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 26px;
    line-height: 1.5;
}

/* Buttons: flat and calm — a hairline shadow, a quiet hover, no glow. */
.download {
    display: inline-block;
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(31, 99, 222, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}
.download:hover { background: var(--blue); transform: translateY(-1px); }
.download:active { transform: none; }

.hero .meta { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.hero .meta + .meta { margin-top: 4px; }

/* ── Screenshot ──────────────────────────────────── */
.shot {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
}

.shot img {
    width: 100%;
    max-width: 720px;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(27, 42, 74, 0.16), 0 2px 8px rgba(27, 42, 74, 0.07);
    border: 1px solid var(--border);
}

.shot figcaption { margin-top: 14px; font-size: 13px; color: var(--text-secondary); }

/* ── Sections ────────────────────────────────────── */
section { max-width: 980px; margin: 0 auto; padding: 52px 24px; }

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 15.5px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── How it works ────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.step {
    background: var(--card);
    border-radius: 18px;
    padding: 22px 20px;
}

.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ── Features ────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
}

.card i {
    font-size: 20px;
    color: var(--blue-dark);
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(63, 134, 247, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* ── Privacy band ────────────────────────────────── */
.privacy-band {
    background: var(--card);
    border-radius: 24px;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 720px) { .privacy-band { grid-template-columns: 1fr; padding: 28px 24px; } }

/* Inline icons reserve descender space; block + unit line-height keeps the
   left column level with the list on the right. */
.privacy-band i.big {
    font-size: 44px;
    line-height: 1;
    display: block;
    color: var(--blue-dark);
}
.privacy-band h2 { margin-top: 12px; }
.privacy-band ul { list-style: none; }
/* Not flex: flex would shatter a sentence at its inline elements (links become
   separate boxes and the row wraps raggedly). The checkmark sits in a gutter. */
.privacy-band li {
    font-size: 14.5px;
    color: var(--text-secondary);
    padding: 9px 0 9px 22px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.privacy-band li:last-child { border-bottom: none; }
.privacy-band li::before {
    content: "✓";
    color: var(--blue-dark);
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 9px;
}
.privacy-band li a { color: var(--blue-dark); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 680px; }
details {
    background: var(--card);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 8px;
}
summary {
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; color: var(--text-secondary); font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding-top: 10px; }
details a { color: var(--blue-dark); }

/* ── Footer ──────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}
footer p + p { margin-top: 6px; }
footer a { color: inherit; }

/* ── Reveal on scroll ──────────────────────────────
   Sections are hidden only while the script is running: it adds .js-reveal to <html>.
   A page whose script failed to load shows everything. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── Release line under the download button ──────── */
.release-meta:empty { display: none; }

/* ── Document pages: What's New, Privacy, Terms ────
   Scoped to body.doc so the landing's own h1/h2/section rules stay untouched. */
body.doc { line-height: 1.6; }
body.doc main { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }
body.doc main h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; text-align: left; }
body.doc main h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 28px 0 8px; text-align: left; }
body.doc main p, body.doc main li { font-size: 15px; color: #3a3a3c; }
body.doc main p + p { margin-top: 12px; }
body.doc main ul { padding-left: 22px; margin: 8px 0; }
body.doc main a:not(.download) { color: var(--blue-dark); }
body.doc .sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; }
body.doc .muted { color: var(--text-secondary); font-size: 14px; }

.release { padding: 24px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.release:first-child { border-top: none; }
.rel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rel-ver { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.rel-date { font-size: 13px; color: var(--text-secondary); }
body.doc main .release ul { list-style: none; padding-left: 0; }
body.doc main .release li { margin: 8px 0; display: flex; align-items: flex-start; gap: 10px; }
.tag {
    flex: none;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; margin-top: 3px; min-width: 66px; text-align: center;
}
.tag.add { background: rgba(52, 199, 89, 0.14); color: #248a3d; }
.tag.fix { background: rgba(63, 134, 247, 0.14); color: #1f63de; }
.tag.chg { background: rgba(142, 142, 147, 0.16); color: #555; }

.key-box {
    margin: 20px 0 12px; padding: 14px 16px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all;
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.doc-actions .download { margin: 0; }
button.link { background: none; border: none; padding: 0; font: inherit; color: var(--blue-dark); cursor: pointer; }
[hidden] { display: none !important; }
