/* Audire's website. The palette is the App Store frames' (.claude/skills/app-store-frame): a slate-teal ground with
   sound waves, rounded white headlines, warm-gray kickers and the app icon's blue. Teal bands stay teal in both
   appearances; the page between them is warm off-white in light and deep teal in dark.
   Mobile first, no web fonts (SF Pro and SF Pro Rounded on Apple devices), no inline styles anywhere (the content
   security policy forbids them). */

:root {
    --page: #f4f2ee;
    --surface: #ffffff;
    --ink: #172a33;
    --ink-muted: #4a5c66;
    --line: #d9d4cc;
    --accent: #0062c4;
    --accent-bright: #0088ff;
    --band-top: #3f6477;
    --band-mid: #2f5868;
    --band-bottom: #244c5a;
    --on-band: #ffffff;
    --on-band-muted: rgb(255 255 255 / 0.86);
    --kicker-on-band: #e6e1da;
    --accent-on-band: #9fd0ff;
    --shadow: 0 1px 2px rgb(10 30 40 / 0.18), 0 14px 36px rgb(10 30 40 / 0.22);
    --sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, system-ui, "Helvetica Neue", sans-serif;
    --radius: 20px;
    --wrap: 1120px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #0f1f26;
        --surface: #162c35;
        --ink: #e9f0f3;
        --ink-muted: #a9bcc5;
        --line: #2a4652;
        --accent: #7cc0ff;
        --band-top: #2f5162;
        --band-mid: #213f4c;
        --band-bottom: #16303a;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 14px 36px rgb(0 0 0 / 0.45);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font: 17px/1.6 var(--sans);
    color: var(--ink);
    background: var(--page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); }
h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.muted { color: var(--ink-muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--surface); color: var(--ink);
    padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible { outline-color: var(--accent-on-band); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--page) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
    font-family: var(--rounded); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; gap: 18px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--ink-muted); padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 379px) { .nav-extra { display: none; } }

/* App Store badge: Apple's artwork, unaltered, at least 40px tall. */
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { height: 40px; width: auto; }
.store-badge-large img { height: 54px; }
/* The header badge only fits beside the nav from 600px up. */
.site-header .header-store { display: none; flex: none; }
@media (min-width: 600px) { .site-header .header-store { display: inline-block; } }

/* ── Teal bands (hero, CarPlay, closing call to action) ─────────────── */
.band {
    position: relative;
    color: var(--on-band);
    background:
        url("../images/waves.svg") center / cover no-repeat,
        radial-gradient(110% 70% at 70% 90%, rgb(0 136 255 / 0.18) 0%, rgb(0 136 255 / 0) 62%),
        linear-gradient(172deg, var(--band-top) 0%, var(--band-mid) 45%, var(--band-bottom) 100%);
}
.band a { color: var(--on-band); }
.band .lede, .band p { color: var(--on-band-muted); }
.band h1, .band h2 { color: var(--on-band); text-shadow: 0 4px 24px rgb(0 0 0 / 0.25); }

.kicker {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 14px;
    font-family: var(--rounded); font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink-muted);
}
.kicker::before { content: ""; flex: none; width: 44px; height: 4px; border-radius: 4px; background: var(--accent-bright); }
.band .kicker { color: var(--kicker-on-band); }

.lede { font-size: clamp(1.08rem, 0.6vw + 1rem, 1.3rem); line-height: 1.5; max-width: 38em; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hero-note { font-size: 0.95rem; }
.hero-devices { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.hero-devices .shot-ipad { width: min(78%, 520px); }
.hero-devices .shot-phone { width: min(34%, 230px); margin-left: -12%; margin-bottom: -6%; position: relative; }
@media (min-width: 900px) {
    .hero { padding: 72px 0 84px; }
    .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* Screenshots get a simple device border: dark glass, rounded like the hardware. */
.shot { border: 6px solid #0b0d10; background: #0b0d10; box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; }
.shot-phone { border-radius: 30px; }
.shot-phone img { border-radius: 24px; }
.shot-ipad { border-radius: 22px; border-width: 9px; }
.shot-ipad img { border-radius: 13px; }

/* ── Content sections ───────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 28px; }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
    .section { padding: 88px 0; }
    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split.reverse > :first-child { order: 2; }
}

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent-bright);
    -webkit-mask: radial-gradient(circle, #000 34%, transparent 36%), linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.band .ticks li::before { background: var(--accent-on-band); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.shots.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-muted); text-align: center; }
@media (min-width: 700px) { .shots { gap: 22px; } .shots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .shots .shot-phone { border-radius: 34px; } .shots .shot-phone img { border-radius: 28px; } }
@media (max-width: 459px) { .shots .shot-phone { border-width: 4px; border-radius: 20px; } .shots .shot-phone img { border-radius: 16px; } }

/* Bring your own audiobooks: the most important thing to know before downloading. */
.own { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    box-shadow: 0 1px 2px rgb(10 30 40 / 0.06); }
@media (min-width: 700px) { .own { padding: 40px 44px; } }
.sources { display: grid; gap: 14px; margin: 22px 0 18px; padding: 0; list-style: none; }
@media (min-width: 700px) { .sources { grid-template-columns: 1fr 1fr; } }
.sources a { display: block; height: 100%; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--page); color: var(--ink); text-decoration: none; }
.sources a:hover { border-color: var(--accent); }
.sources strong { display: block; font-family: var(--rounded); font-size: 1.1rem; color: var(--accent); }
.sources span { color: var(--ink-muted); font-size: 0.95rem; }

.car-band { padding: 72px 0; }
.car-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .car-band { padding: 96px 0; } .car-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; } }
.car-panel { border-radius: var(--radius); padding: 24px; background: rgb(8 24 30 / 0.35); border: 1px solid rgb(255 255 255 / 0.14); }
.car-panel h3 { color: var(--on-band); margin-bottom: 0.6em; }

.privacy-card { display: grid; gap: 8px; }
.cta { padding: 72px 0; text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 6px; }
.cta p { max-width: 34em; }

/* ── Policy and support pages ───────────────────────────────────────── */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); }
.page h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.8rem); margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.effective { font-size: 0.95rem; color: var(--ink-muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 24px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.mail { font-family: var(--rounded); font-weight: 700; font-size: 1.2rem; }

.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { margin-top: 0; }
.faq details[open] { padding-bottom: 6px; }

.centered { text-align: center; }
.centered .wrap { display: grid; justify-items: center; }
.lost { width: 96px; border-radius: 22px; margin: 12px 0 24px; box-shadow: var(--shadow); }
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.92rem; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
