* { 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: 28px;
}

.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;
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    background: linear-gradient(180deg, #4f9eff 0%, var(--blue-dark) 100%);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-offer {
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-dark);
    background: rgba(63, 134, 247, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

@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: 88px 24px 56px;
    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: 116px;
    height: 116px;
    border-radius: 26px;
    box-shadow: 0 12px 32px rgba(27, 42, 74, 0.18);
    margin-bottom: 32px;
}

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

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

.download {
    display: inline-block;
    background: linear-gradient(180deg, #4f9eff 0%, var(--blue-dark) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 30px;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(31, 99, 222, 0.35);
}

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

.kbd-line { margin-top: 30px; font-size: 14px; color: var(--text-secondary); }

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    margin: 0 2px;
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

kbd .hgi { font-size: 14px; }
kbd svg { width: 14px; height: 14px; display: block; }

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

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

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

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

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

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

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

.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: 16px; }

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

.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.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: 16px; }

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

.card i {
    font-size: 24px;
    color: var(--blue-dark);
    display: inline-block;
    margin-bottom: 14px;
}

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

/* ── Types strip ─────────────────────────────────── */
.types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.type-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--card);
    border-radius: 999px;
    padding: 10px 18px;
}

.type-chip i { font-size: 17px; color: var(--blue-dark); }

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

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

.privacy-band i.big { font-size: 52px; color: var(--blue-dark); }
.privacy-band h2 { margin-top: 12px; }
.privacy-band ul { list-style: none; }
.privacy-band li {
    font-size: 14.5px;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.privacy-band li:last-child { border-bottom: none; }
.privacy-band li::before { content: "✓"; color: var(--blue-dark); font-weight: 600; }

/* ── Pricing ─────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(260px, 400px); justify-content: center; margin-bottom: 20px; }

.plan {
    position: relative;
    border-radius: 24px;
    padding: 38px 30px 34px;
    background: var(--card);
    text-align: center;
}

.plan-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #4f9eff 0%, var(--blue-dark) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-list {
    list-style: none;
    text-align: left;
    margin: 0 auto 22px;
    max-width: 280px;
}

.plan-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    padding: 7px 0;
    display: flex;
    gap: 9px;
    align-items: baseline;
}

.plan-list li::before {
    content: "✓";
    color: var(--blue-dark);
    font-weight: 600;
}

.plan h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }

.plan .price { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }

.price .was {
    font-size: 20px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.plan .note { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }

.spots { margin: 4px 0 20px; }
.spots-bar { height: 6px; border-radius: 3px; background: rgba(63, 134, 247, 0.15); overflow: hidden; margin-bottom: 7px; }
.spots-fill { height: 100%; background: linear-gradient(90deg, #4f9eff, var(--blue-dark)); border-radius: 3px; }
.spots span { font-size: 12.5px; font-weight: 500; color: var(--blue-dark); }

.plan a.buy {
    display: inline-block;
    background: linear-gradient(180deg, #4f9eff 0%, var(--blue-dark) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(31, 99, 222, 0.3);
}

.plan a.offer-line {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--blue-dark);
    text-decoration: none;
}

.guarantee {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(63, 134, 247, 0.08);
    border: 1px solid rgba(63, 134, 247, 0.2);
    padding: 8px 16px;
    border-radius: 999px;
}

.recent {
    max-width: 400px;
    margin: 22px auto 24px;
    background: var(--card);
    border-radius: 18px;
    padding: 18px 22px;
}

.recent-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.recent-head .dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: #34c759;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.recent-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
    text-align: left;
}

.avatar {
    width: 32px; height: 32px;
    border-radius: 999px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #74b4ff, var(--blue-dark));
}

.recent-name { font-size: 14px; font-weight: 500; }
.recent-meta { font-size: 12px; color: var(--text-secondary); }
.recent-row .when { margin-left: auto; font-size: 12px; color: var(--text-secondary); }

.recent-row.new { animation: recent-in 0.5s ease; }
@keyframes recent-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.recent-more {
    font-size: 12.5px;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}

/* ── Other apps ──────────────────────────────────── */
.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.app {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    background: var(--card);
    border-radius: 20px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.app img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.app p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.app .go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.app.soon img { opacity: 0.85; }
.app.soon .go { color: var(--text-secondary); font-weight: 500; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 680px; }
details {
    background: var(--card);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 10px;
}
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; }

/* ── Footer ──────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px 48px;
    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; }
    .recent-row.new { animation: none; }
    html { scroll-behavior: auto; }
}

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

/* ── Document pages: What's New, Privacy, Terms, Thanks ─
   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: 56px 24px 96px; }
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: 32px 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: 40px; }
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; }
