/* Audia — audiabook.app
   The app's own light theme: white, paper and rose surfaces, ink text, rust
   accent; Fraunces for headings and Inter for text (the app's fonts). */

@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(fonts/Fraunces-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format('woff2'); }

:root {
  --white: #ffffff;
  --paper: #faf6f4;
  --rose: #fff0ed;
  --rose-2: #fce6e1;
  --ink: #231918;
  --ink-2: #5b4b47;
  --ink-3: #85736e;
  --line: #eadcd7;
  --rust: #904b3b;
  --rust-hover: #7a3e30;
  --brand: #c44b30;
  --shadow: 0 30px 70px rgba(70, 38, 28, .16), 0 8px 20px rgba(70, 38, 28, .10);
  --radius: 22px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); text-underline-offset: .18em; }
a:hover { color: var(--rust-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.015em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
.premium-note { color: var(--rust); font-weight: 600; font-size: 15px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 24px/1 Fraunces, Georgia, serif; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px;
  background: var(--rust); color: #fff; font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rust-hover); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.header-cta { padding: 10px 16px; }
@media (max-width: 720px) { .nav { gap: 16px; } .nav .hide-sm, .header-cta { display: none; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: clamp(72px, 10vw, 128px) 0; }
.paper { background: var(--paper); }
.rose { background: var(--rose); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.copy > * + * { margin-top: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--rose); padding-top: clamp(48px, 7vw, 96px); padding-bottom: 0; overflow: hidden; }
.hero .split { align-items: end; }
.hero .copy { padding-bottom: clamp(56px, 8vw, 120px); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; line-height: 0; }
.badges img.apple { height: 52px; width: auto; }
.badges img.google { height: 76px; width: auto; margin: -12px; } /* the official artwork carries its own padding */
.fine { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

.stage { position: relative; min-height: clamp(420px, 52vw, 640px); }
.hero .stage { min-height: clamp(470px, 56vw, 700px); }

/* Hero motion. site.js feeds --mx/--my (pointer, -14..14) and --sy (scroll);
   each layer moves by its depth --d, so the books float above the phone. */
.hero .stage > * { translate: calc(var(--mx, 0) * var(--d, 1) * 1px) calc((var(--my, 0) + var(--sy, 0)) * var(--d, 1) * 1px); }
.hero .phone { transform: perspective(1400px) rotateY(calc(var(--mx, 0) * .45deg)) rotateX(calc(var(--my, 0) * -.45deg)); }
/* A sheen crosses the glass as the phone turns toward the pointer; at rest it's off the edge. */
@media (hover: hover) and (pointer: fine) {
  .hero .phone .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .2) 48%, transparent 60%) no-repeat;
    background-size: 250% 100%; background-position: calc(110% - var(--mx, 0) * 4%) 0; }
}
.hero .book { transition: scale .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
@media (hover: hover) { .hero .book:hover { scale: 1.05; box-shadow: 0 40px 80px rgba(70, 38, 28, .22), 0 10px 24px rgba(70, 38, 28, .12); } }
/* The player reads along: the real caption strip for the next lines fades in on top. */
.phone .read { position: absolute; top: 64%; left: 0; width: 100%; }
.phone .screen .read img { position: absolute; top: 0; left: 0; height: auto; opacity: 0; transition: opacity .7s ease; }
.phone .screen .read img.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero .book { animation: deal 1s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.35s + var(--i) * .12s); }
  .hero .phone { animation: settle 1.1s cubic-bezier(.2, .8, .2, 1) backwards; }
}
@keyframes deal { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(12deg) scale(.9); } }
@keyframes settle { from { opacity: 0; transform: perspective(1400px) translateY(48px) rotateX(10deg); } }

/* Devices: natural titanium, the real app screen inside. */
.phone { position: absolute; width: var(--w, 300px); aspect-ratio: 660 / 1434; padding: 2.2%; border-radius: 14.5% / 6.67%;
  background: linear-gradient(140deg, #ece9e4 0%, #bdb9b3 30%, #96928c 62%, #d3d0cb 100%); box-shadow: var(--shadow); }
/* Inner radius = outer radius minus the rim, so the metal is even all round.
   Island and status bar live inside the glass, sized from the store art. */
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.87% / 5.78%; overflow: hidden; background: #fff;
  container-type: inline-size; box-shadow: 0 0 0 1px rgba(35, 25, 24, .18); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 2.5cqw; left: 50%; width: 28.7%; height: 8.4cqw; transform: translateX(-50%); background: #0b0b0c; border-radius: 99px; }
.phone .status { position: absolute; top: 0; left: 0; right: 0; height: 14.1cqw; padding: 0 8.5%; display: flex; justify-content: space-between; align-items: center; font: 600 4.2cqw/1 Inter, sans-serif; color: var(--ink); }
.phone .status svg { height: .9em; width: auto; }
.book { position: absolute; width: var(--w, 200px); aspect-ratio: 1; border-radius: 4px; box-shadow: var(--shadow); }
.card { position: absolute; width: var(--w, 420px); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.card img { width: 100%; height: auto; }
.label { position: absolute; font: 600 14px/1 Inter, sans-serif; color: var(--rust); }

/* Positions are percentages of each stage, so they scale. */
.tilt-r { transform: rotate(6deg); }
.tilt-l { transform: rotate(-5deg); }

/* ── Feature list ─────────────────────────────────────────────────────── */
.formats { font: 600 15px/1.6 Inter, sans-serif; letter-spacing: .04em; color: var(--rust); }
.callout { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; color: var(--ink-2); }

.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 540px; padding: clamp(28px, 3.5vw, 44px); }
.tile .copy { position: relative; z-index: 2; max-width: 26em; }
.tile .stage { position: absolute; inset: 0; min-height: 0; }
.tile.white { background: var(--white); }
.tile.paper { background: var(--paper); }
.tile.rose { background: var(--rose); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .tile { min-height: 480px; } }

.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: clamp(40px, 6vw, 64px) auto 0; color: var(--ink-2); font-size: 16px; line-height: 2; max-width: 52em; }
.more span { white-space: nowrap; }
.more span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-right: 10px; vertical-align: middle; }

/* ── Car display (an illustration of the car's now-playing screen, built
      from Audia's real media item) ───────────────────────────────────── */
.car { position: absolute; width: var(--w, 520px); aspect-ratio: 16 / 9; border-radius: 26px; padding: 3.2%;
  background: linear-gradient(180deg, #2c2826, #191514); box-shadow: var(--shadow); }
.car-screen { width: 100%; height: 100%; border-radius: 16px; background: #0f0d0c; color: #ede8e1; display: grid;
  grid-template-columns: 38% 1fr; gap: 6%; padding: 6% 6% 5%; align-items: center; font-family: Inter, sans-serif; container-type: inline-size; }
.car-screen img { width: 100%; aspect-ratio: 1; border-radius: 6px; }
.car-title { font: 600 7cqi/1.1 Inter, sans-serif; }
.car-sub { font: 400 4cqi/1.3 Inter, sans-serif; opacity: .75; margin-top: 1.5cqi; }
.car-bar { height: 1cqi; background: rgba(237, 232, 225, .2); border-radius: 9px; margin-top: 5cqi; position: relative; }
.car-bar::after { content: ""; position: absolute; inset: 0 72% 0 0; background: #ffb4a2; border-radius: 9px; }
.car-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 5cqi; }
.car-controls svg { width: 7cqi; height: 7cqi; fill: #ede8e1; }
.car-controls .play { width: 12cqi; height: 12cqi; border-radius: 50%; background: #ffb4a2; display: grid; place-items: center; }
.car-controls .play svg { width: 6cqi; height: 6cqi; fill: #3a1a12; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-top: 48px; align-items: start; }
.plan { border-radius: var(--radius); padding: clamp(28px, 3.5vw, 44px); background: var(--white); border: 1px solid var(--line); }
.plan.premium { background: var(--rose); border-color: var(--rose-2); }
.plan .price { font: 600 clamp(40px, 5vw, 56px)/1 Fraunces, Georgia, serif; margin: 18px 0 4px; }
.plan .price small { font: 500 17px Inter, sans-serif; color: var(--ink-2); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; }
.plan li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--rust); border-bottom: 2px solid var(--rust); transform: rotate(-45deg); }
.plan .fine { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ── Privacy strip ────────────────────────────────────────────────────── */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.promise div { border-top: 2px solid var(--ink); padding-top: 16px; }
.promise strong { display: block; font: 600 22px/1.2 Fraunces, Georgia, serif; margin-bottom: 6px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 19px/1.35 Inter, sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--rust); border-bottom: 2px solid var(--rust); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ── Download band ────────────────────────────────────────────────────── */
.download { text-align: center; }
.download .badges { justify-content: center; margin-top: 28px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--paper); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font: 600 14px/1 Inter, sans-serif; color: var(--ink-3); text-transform: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--rust); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ── Documents (privacy, terms) ───────────────────────────────────────── */
.doc { padding: clamp(48px, 7vw, 88px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); }
.doc .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.doc h2 { font-size: clamp(26px, 3vw, 32px); margin: 48px 0 14px; }
.doc h3 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc .summary { background: var(--rose); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; }
.doc .summary p { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }

/* ── Support form ─────────────────────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } .support-grid .form { order: -1; } }
.help h3 { font: 600 18px/1.3 Inter, sans-serif; margin-top: 28px; }
.help p { margin-top: 6px; color: var(--ink-2); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.form h2 { font-size: 32px; margin-top: 0; }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: 400 16px/1.4 Inter, sans-serif; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(196, 75, 48, .35); border-color: var(--brand); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rust); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 22px; min-height: 66px; }
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 15px; }
.status.error { color: #b3261e; }
.status.ok { color: #2e6b45; }
.sent { text-align: left; }
.sent h2 { margin-bottom: 12px; }

/* ── Small screens: stages become stacked, simpler compositions ──────── */
@media (max-width: 860px) {
  .stage { min-height: 520px; }
  .hero .copy { padding-bottom: 8px; }
}

/* Caption cards: the real caption crop under a strip naming its language. */
figure { margin: 0; }
.card.cap { background: #f2e2de; }
.card.cap figcaption { padding: 12px 18px 0; font: 600 14px/1 Inter, sans-serif; color: var(--rust); }
