/* ============================================================
   Aveldo, aveldo.app
   Tokens lifted from the iOS app's Color+Tokens.swift and
   DesignSupport.swift so the site and the app cannot drift.
   ============================================================ */

:root {
    /* Surfaces (app: appBackgroundDark / appSurfaceDark, elevated step) */
    --bg:            #0F0F0F;
    --surface:       #1C1C1E;
    --surface-2:     #2C2C2E;

    /* Accent ramp (app: appSecondaryAccent, appAccent, appAccentBright).
       Named for their role, not their hue: these were lime, then crimson, and a
       variable called --lime holding a red is exactly how a palette rots. */
    --accent:        #FF1139;   /* appAccent, primary signal red */
    /* The other two are the app's gradient partners. Decorative gradients on
       this site are now one flat accent, so `deep` survives only as the label
       colour on the white Pro pill (10.5:1, where the accent manages 3.9:1) and
       `bright` is unused, kept so the palette still mirrors the app's three. */
    --accent-deep:   #840115;   /* appSecondaryAccent, deep crimson */
    --accent-bright: #E6526D;   /* appAccentBright, light rose */

    /* On an accent FILL, white in both schemes as the app has it. Note it is
       only 3.9:1 on the signal red, so labels sitting on an accent fill must be
       large or bold to clear the 3:1 bar. Near-black would score 4.7:1 there,
       but the app's token is white and the brand wins over the extra point. */
    --on-accent:     #FFFFFF;

    /* Text (app: appTextPrimary / appTextSecondary / appTextTertiary) */
    --text:          #FFFFFF;
    --text-2:        #8E8E93;
    --text-3:        #6E6E6E;
    --hairline:      rgba(255, 255, 255, 0.12);

    /* Body art (app: bodySilhouette / muscleBase, dark scheme).
       The silhouette is now appSurfaceDark, the same grey as a card, so the
       body outline sinks into the background and only the muscles read. */
    --silhouette:    #1C1C1E;
    --muscle-base:   #7F8095;

    /* Radii by role (app: AveldoRadius) */
    --r-chip:  14px;
    --r-tile:  20px;
    --r-card:  28px;
    --r-hero:  32px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max:  1240px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* ─── Shared bits ─── */

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 120px 40px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

h2 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin-bottom: 18px;
}

.section-head p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
}

/* One flat accent word in the headline. This was an animated three-stop
   gradient under the lime and crimson brands; the signal red is used solid. */
.accent-word { color: var(--accent); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 17, 57, 0.10);
    border: 1px solid rgba(255, 17, 57, 0.26);
    padding: 7px 14px;
    border-radius: 9999px;
    margin-bottom: 26px;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 17, 57, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 17, 57, 0); }
}

/* ─── Navbar ─── */

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 10px 10px 10px 18px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
                box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.navbar.scrolled {
    background: rgba(28, 28, 30, 0.66);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-title { font-size: 17px; font-weight: 700; color: var(--text); }


.nav-links { display: flex; gap: 24px; }
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: var(--on-accent);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 17, 57, 0.40);
}

/* ─── Hero ─── */

.hero {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 160px 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

h1 {
    font-size: clamp(52px, 7.2vw, 92px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 26px;
}

.tagline {
    font-size: 19px;
    line-height: 1.62;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 19px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 17, 57, 0.40);
}
.btn-glyph { width: 15px; height: 15px; fill: var(--on-accent); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    padding: 14px 24px;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s, border-color 0.3s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-facts {
    display: flex;
    gap: 40px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
}
.hero-facts dt {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.hero-facts dd { font-size: 13px; color: var(--text-3); margin-top: 3px; }

/* Hero figure */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Progress screen, in the same faux bezel the rail uses. Capped so the
   1206px capture does not dictate the layout. */
.hero-shot {
    position: relative;
    z-index: 1;
    max-width: 300px;
    width: 100%;
}
.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    /* Capped to the viewport so it never widens the document on a phone. */
    width: min(520px, 88vw); height: min(520px, 88vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
                rgba(255, 17, 57, 0.22), rgba(255, 17, 57, 0.10) 45%, transparent 70%);
    filter: blur(40px);
}

    to   { opacity: 1; transform: none; }
}

.scroll-hint {
    align-self: center;
    margin-top: 40px;
    width: 26px; height: 42px;
    border: 1px solid var(--hairline);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-hint span {
    width: 3px; height: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}


/* ─── Screens rail ─── */

.screen-rail {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 10px 40px 40px;
    margin: 0 -40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.screen-rail::-webkit-scrollbar { display: none; }

.screen {
    flex: 0 0 auto;
    width: 236px;
    scroll-snap-align: center;
    transition: transform 0.5s var(--ease);
}
.screen.is-lifted { transform: translateY(-24px); }
.screen:hover { transform: translateY(-32px); }

.bezel {
    border: 8px solid #1A1A1A;
    border-radius: 38px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.06),
                0 20px 60px rgba(255, 17, 57, 0.14);
}
.bezel img { display: block; width: 100%; height: auto; }

.screen figcaption {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}
.screen figcaption b {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 3px;
}

/* ─── Feature cards ─── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-card);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 44px; }
.card-wide .card-body { flex: 1; }
.card-wide .card-demo { flex: 1; }

.card h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.card p { font-size: 15px; line-height: 1.62; color: var(--text-2); }

/* Demo blocks inside the progress cards */
.card-demo.tile, .card-demo { display: flex; gap: 12px; }
.tile {
    flex: 1;
    background: var(--surface-2);
    border-radius: var(--r-tile);
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.tile-name { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.set-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.set-line .top { color: var(--accent); font-weight: 800; }

/* Stats demo */
.stat-demo { flex-direction: column; gap: 4px; }
.stat-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
    background: var(--surface-2);
    border-radius: var(--r-chip);
    padding: 10px 14px;
}
.stat-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.spark { width: 110px; height: 26px; justify-self: end; }
.spark polyline {
    fill: none;
    stroke: var(--c);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Local first demo */
.lock-demo { flex-direction: column; gap: 4px; }
.lock-row {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    color: var(--text-2);
    padding: 11px 14px;
    background: var(--surface-2);
    border-radius: var(--r-chip);
}
.lock-row .ok { color: var(--accent); font-weight: 800; }
.lock-row .no { color: var(--text-3); font-weight: 800; }

/* ─── Footer ─── */

footer { border-top: 1px solid var(--hairline); margin-top: 60px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 64px 40px 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand { max-width: 380px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-icon { width: 38px; height: 38px; border-radius: 10px; }
.footer-name { font-size: 22px; font-weight: 700; }
.footer-desc { font-size: 14px; line-height: 1.62; color: var(--text-3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }


.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.05em;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s var(--ease) infinite;
}
.footer-bottom p { font-size: 12px; color: var(--text-3); opacity: 0.7; }


/* ─── The coming-soon gate ────────────────────────────────────
   In Aveldo's dark palette. Since 2026-08-31 these styles ARE the
   page: index.html is the gate card alone, the full landing page
   living in git history (4a2f945) until launch. Launch day is a
   restore of index.html and screens/ from that commit, not a
   class removal any more; see CLAUDE.md.

   The gate card is the icon, a badge, "Coming soon." and one
   sentence. NOTHING else ever goes inside it (owner's rule).

   The legal pages are deliberately NOT gated: SettingsView.swift
   links to /privacypolicy/ and /termsofuse/ from inside the app,
   and those must stay reachable. */

body.gated { overflow: hidden; }
body.gated .page-blur {
    filter: blur(9px);
    -webkit-filter: blur(9px);
    transform: scale(1.03);
    transform-origin: center;
    pointer-events: none;
    user-select: none;
}
body:not(.gated) .gate { display: none; }

.gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 40%,
                rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.86));
}
.gate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 44px 40px 40px;
    border-radius: var(--r-hero);
    background: rgba(28, 28, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7),
                0 0 80px rgba(255, 17, 57, 0.10);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}
.gate-icon {
    width: 76px; height: 76px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 14px 36px rgba(255, 17, 57, 0.28);
}
.gate .badge { margin-bottom: 20px; }
.gate-title {
    font-size: clamp(38px, 6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.03;
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .gate-card { padding: 32px 22px 28px; }
    .gate-icon { width: 64px; height: 64px; }
}

/* ─── Reveal on scroll ─── */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }


/* ─── Documents (privacy, terms, support) ─────────────────────
   Document styles for the privacy, terms and support pages. */

.doc-page { padding-top: 112px; }
.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 40px 80px;
}
.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s;
}
.doc-back:hover { color: var(--accent); }

/* The draft banner. Deliberately loud: these are unreviewed. */
.doc-draft {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 17, 57, 0.09);
    border: 1px solid rgba(255, 17, 57, 0.28);
    border-radius: var(--r-tile);
    padding: 16px 18px;
    margin-bottom: 36px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
}
.doc-draft b { color: var(--accent); display: block; margin-bottom: 2px; }

.doc h1 {
    font-size: clamp(32px, 4.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 10px;
}
.doc .subtitle {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}
.doc h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 40px 0 12px;
}
.doc h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc ul, .doc ol {
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--text-2);
    margin-bottom: 14px;
}
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 5px; }
.doc strong, .doc b { color: var(--text); font-weight: 700; }
.doc a {
    color: var(--accent);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.doc a:hover { text-decoration: underline; }
.doc .back-link { display: inline-block; margin-top: 44px; font-size: 14px; font-weight: 600; }

/* A quiet key/value block, for "what is stored" style lists. */
.doc-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    border-top: 1px solid var(--hairline);
}
.doc-facts li {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 4px 20px;
    padding: 13px 0;
    margin: 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 15px;
    line-height: 1.6;
}
.doc-facts b { color: var(--text); }
.doc-facts span { color: var(--text-2); }

@media (max-width: 760px) {
    .doc-page { padding-top: 96px; }
    .doc { padding: 16px 24px 60px; }
    .doc-facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ─── Responsive ─── */


@media (max-width: 900px) {
    .hero { padding: 130px 24px 30px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .tagline { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-facts { justify-content: center; gap: 32px; }
    .hero-visual { min-height: 0; }

    .nav-links { display: none; }
    .section { padding: 84px 24px; }
    h2 { font-size: 38px; }
    .screen-rail { padding: 10px 24px 40px; margin: 0 -24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: span 1; flex-direction: column; align-items: stretch; gap: 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { padding: 48px 24px 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 560px) {
    .navbar { gap: 12px; padding: 8px 8px 8px 14px; width: calc(100% - 24px); justify-content: space-between; }
    .nav-cta { font-size: 12px; padding: 8px 13px; }
    .hero-facts { gap: 22px; }
    .hero-facts dt { font-size: 24px; }
    .screen { width: 200px; }
    .card { padding: 26px; }
    .section-head p, .tagline { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* ─── Site pages (2026-09-05 rebuild) ─────────────────────────
   The landing page grew into a small site: three category pages,
   six feature pages, a press kit and the three legal pages, all
   generated by scripts/build_site.py and build-legal-pages.py on
   one chrome. Everything below is new; every token above is the
   same one flat accent, the same surfaces, the same radii. */

.section.tight { padding-top: 64px; padding-bottom: 64px; }
.section-tail { margin-top: 28px; }

/* Subpage hero: the same grid as the homepage, less air, a smaller title. */
.hero-sub { min-height: 0; padding: 150px 40px 30px; }
.hero-sub h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -0.035em; line-height: 1.02; }
.hero-sub .tagline { max-width: 560px; }
.hero-sub .hero-shot { max-width: 260px; }
.hero-grid.single { grid-template-columns: 1fr; }
.hero-grid.single .hero-copy { max-width: 760px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text-2); }
.crumb-sep { opacity: 0.45; }

.nav-links a[aria-current="page"] { color: var(--text); }
.btn-primary .btn-glyph { width: 18px; height: 18px; }

/* The direct answer block: a question as the heading, the quotable answer
   in primary ink, the longer explanation under it in secondary. */
.qa-box { max-width: 820px; }
.qa-box h2 { font-size: 36px; margin-bottom: 16px; }
.qa-box .eyebrow + h2 { margin-top: 0; }
.qa-answer { font-size: 20px; line-height: 1.6; color: var(--text); font-weight: 500; margin-bottom: 16px; }
.qa-box p { font-size: 17px; line-height: 1.65; color: var(--text-2); margin-bottom: 14px; }
.qa-box p:last-child { margin-bottom: 0; }
.qa-box a, .split-copy a:not(.text-link), .card-plain p a, .steps span a { color: var(--accent); text-decoration: none; }
.qa-box a:hover, .split-copy a:not(.text-link):hover, .card-plain p a:hover, .steps span a:hover { text-decoration: underline; }

/* Text beside a screenshot. */
.split-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split-grid.reverse .split-copy { order: 2; }
.split-copy h2 { font-size: 40px; }
.split-copy p { font-size: 17px; line-height: 1.65; color: var(--text-2); margin-bottom: 18px; }
.split-visual { display: flex; justify-content: center; }
.split-shot { max-width: 270px; width: 100%; }

.check-list { list-style: none; padding: 0; margin: 6px 0 24px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
    border-radius: 50%; background: rgba(255, 17, 57, 0.14); border: 1px solid rgba(255, 17, 57, 0.42);
}
.check-list li::after {
    content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px;
    border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.text-link { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-plain { gap: 0; padding: 30px; }
.card-plain h3 { font-size: 22px; margin-bottom: 10px; }
.card-plain .text-link { margin-top: 16px; display: inline-block; }

.pro-chip {
    display: inline-block; vertical-align: 3px; margin-left: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent);
    border: 1px solid rgba(255, 17, 57, 0.45); border-radius: 6px; padding: 2px 6px;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 800px; }
.steps li {
    counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start;
    padding: 22px 24px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--r-tile);
}
.steps li > b, .steps li > span { grid-column: 2; }
.steps li::before {
    grid-row: 1 / span 2;
    content: counter(step); width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { display: block; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.faq-list { max-width: 820px; border-top: 1px solid var(--hairline); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.faq-item h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.faq-item p { font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.faq-item a { color: var(--accent); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* Free vs Pro: the app's own receipt card, hairline rows, Pro in the accent. */
.tier-card {
    max-width: 820px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-card); padding: 8px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); overflow-x: auto;
}
.tier-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tier-table th {
    text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
    color: var(--text-3); padding: 18px 0 10px; border-bottom: 1px solid var(--hairline);
}
.tier-table td { padding: 13px 0; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td.feat { color: var(--text); }
.tier-table td.free { color: var(--text-2); }
.tier-table th.pro, .tier-table td.pro { color: var(--accent); }
.tier-table th.free, .tier-table th.pro, .tier-table td.free, .tier-table td.pro { width: 120px; text-align: center; padding-left: 12px; }
.tier-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

.cta-band { padding-top: 40px; }
.cta-card {
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--r-hero);
    padding: 64px 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 80px rgba(255, 17, 57, 0.08);
}
.cta-icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 8px; box-shadow: 0 14px 36px rgba(255, 17, 57, 0.28); }
.cta-card h2 { font-size: 40px; margin-bottom: 2px; }
.cta-card p { font-size: 17px; color: var(--text-2); margin-bottom: 14px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.related-card {
    display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--r-tile);
    transition: border-color 0.3s, transform 0.35s var(--ease);
}
.related-card:hover { border-color: rgba(255, 17, 57, 0.45); transform: translateY(-2px); }
.related-card b { font-size: 16px; }
.related-card span { font-size: 14px; line-height: 1.5; color: var(--text-2); }

.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-store {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
    border: 1px solid var(--hairline); padding: 9px 14px; border-radius: 9999px; transition: border-color 0.3s;
}
.footer-store .btn-glyph { width: 14px; height: 14px; fill: var(--text); }
.footer-store:hover { border-color: rgba(255, 255, 255, 0.3); }

/* Press kit */
.doc.press { padding-top: 0; padding-bottom: 0; }
.doc.press h2:first-child { margin-top: 0; }
.press-shots { max-width: 760px; margin: 24px auto 0; padding: 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.press-shots figure { margin: 0; }
.press-shots .bezel { border-width: 5px; border-radius: 24px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.press-shots figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.press-shots a { color: var(--accent); text-decoration: none; }
.doc-main { padding-bottom: 40px; }

@media (max-width: 900px) {
    .hero-sub { padding: 120px 24px 20px; }
    .hero-sub .hero-copy { align-items: flex-start; text-align: left; }
    .hero-sub .hero-actions { justify-content: flex-start; }
    .hero-sub .hero-shot { max-width: 220px; }
    .split-grid { grid-template-columns: 1fr; gap: 36px; }
    .split-grid.reverse .split-copy { order: 0; }
    .split-copy h2, .cta-card h2, .qa-box h2 { font-size: 32px; }
    .feature-grid.cols-3, .feature-grid.cols-2 { grid-template-columns: 1fr; }
    .tier-card { padding: 4px 18px; }
    .steps li { grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .press-shots { padding: 0 24px; }
}

@media (max-width: 560px) {
    .hero-sub h1 { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .tier-table { font-size: 14px; }
    .tier-table th.free, .tier-table th.pro, .tier-table td.free, .tier-table td.pro { width: 86px; }
    .cta-card { padding: 44px 22px; }
}
