/* ------------------------------------------------------------------
   Design tokens: matches the iOS app (Apple dark system palette,
   one cyan accent for primary actions, system green/orange status).
   ------------------------------------------------------------------ */
:root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --separator: rgba(84, 84, 88, 0.55);
    --text: #ffffff;
    --text-2: rgba(235, 235, 245, 0.62);
    --text-3: rgba(235, 235, 245, 0.38);
    --accent: #00e5ff;
    --good: #30d158;
    --attention: #ff9f0a;
    --radius: 20px;
    --radius-sm: 14px;
    --max: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #000; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-2);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); line-height: 1.5; }
.muted { color: var(--text-2); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px; border-radius: 12px;
    font-size: 17px; font-weight: 600; transition: opacity .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { opacity: .85; }
.btn-quiet { color: var(--accent); padding: 0 8px; }
.btn-quiet:hover { opacity: .75; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 15px; border-radius: 999px; }

/* ------------------------------ Header ------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--separator);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a.link { color: var(--text-2); transition: color .15s ease; }
.nav a.link:hover { color: var(--text); }

/* ------------------------------- Hero ------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background: #000 url("hero.jpg") center 30% / cover no-repeat;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 55%, #000 100%);
}
.hero .wrap {
    position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
    padding-top: 88px; padding-bottom: 96px;
}
.hero-copy { display: grid; gap: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.store-badge { display: inline-flex; border-radius: 10px; transition: opacity .15s ease; }
.store-badge:hover { opacity: .85; }
.store-badge img { display: block; height: 50px; width: auto; }
.fine-print { font-size: 14px; color: var(--text-3); }

/* Phone frame */
.phone {
    position: relative; width: min(300px, 78vw); aspect-ratio: 1206 / 2622; margin: 0 auto;
    border-radius: 48px; padding: 10px; background: #111;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.6);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* -------------------------- Sections -------------------------- */
section { padding: 104px 0; }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
    display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--accent);
}
.step p { color: var(--text-2); font-size: 16px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature + .feature { margin-top: 120px; }
.feature.flip .feature-media { order: -1; }
.feature-copy { display: grid; gap: 18px; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); font-size: 16px; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.checklist strong { color: var(--text); font-weight: 600; }

.speech {
    position: absolute; z-index: 4; top: 120px; right: -18px; max-width: 210px;
    background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0,0,0,.5); color: var(--text-2);
}
.speech b { color: var(--text); display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.speech svg { width: 14px; height: 14px; color: var(--accent); }

/* Coaching examples */
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coach-card { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.coach-card .eyebrow { font-size: 12px; }
.coach-card .good { color: var(--good); }
.coach-card .attention { color: var(--attention); }
.coach-card .accent { color: var(--accent); }
.coach-card h3 { font-size: 19px; }
.coach-card p { color: var(--text-2); font-size: 15px; }
.numbers { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; margin-top: 4px; }
.numbers span:nth-child(odd) { color: var(--text-2); }
.numbers span:nth-child(even) { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Privacy band */
.privacy { background: var(--surface); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.privacy-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; }
.privacy-icon svg { width: 30px; height: 30px; color: var(--good); }

/* FAQ (grouped list) */
.faq { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--separator); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-3); flex: none; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); font-size: 16px; }
.faq .answer a { color: var(--accent); }

/* Support + footer */
.support { text-align: center; display: grid; gap: 18px; justify-items: center; }
.mail { font-size: 19px; font-weight: 600; color: var(--accent); }
footer { border-top: 1px solid var(--separator); padding: 32px 0 48px; font-size: 14px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 24px; }
footer a:hover { color: var(--text); }
footer .social { gap: 18px; align-items: center; }
footer .social a { display: inline-flex; color: var(--text-2); }
footer .social svg { width: 22px; height: 22px; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
    .hero .wrap, .feature { grid-template-columns: 1fr; gap: 48px; }
    .hero .wrap { padding-top: 56px; padding-bottom: 72px; text-align: center; }
    .hero-ctas { justify-content: center; }
    .feature.flip .feature-media { order: 0; }
    .feature + .feature { margin-top: 88px; }
    .steps, .coach-grid { grid-template-columns: 1fr; }
    .privacy { grid-template-columns: 1fr; padding: 36px 28px; }
    section { padding: 80px 0; }
    .speech { right: -6px; top: 110px; }
}
@media (max-width: 560px) {
    .nav a.link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------------------------- Legal pages ---------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 104px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }


/* ---------------------------- Cookie consent ---------------------------- */
.cookie-banner {
    position: fixed; z-index: 100; left: 16px; right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: 560px; margin: 0 auto; padding: 18px;
    display: grid; gap: 14px;
    background: rgba(28, 28, 30, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--separator); border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cookie-banner p { font-size: 15px; line-height: 1.45; color: var(--text-2); }
.cookie-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; }
/* Equal weight for both choices (no nudging toward "Accept"). */
.cookie-button {
    flex: 1; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--surface-2); color: var(--text);
    font: 600 16px var(--font);
}
.cookie-button:hover { background: #3a3a3c; }
.link-button {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: inherit; font: inherit;
}
.link-button:hover { color: var(--text); }
