/* ListenTo.It public website. Hand-written, no framework: the marketing pages ship no JavaScript.
   Same brand tokens as the app (web/src/index.css) and the iPhone app (AccentColor, LaunchBackground). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: optional; src: url("/assets/fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("/assets/fonts/inter.woff2") format("woff2"); }

:root {
  --bg: #f6f3ef; --bg-elev: #ffffff; --bg-sunk: #ece7e1; --fg: #1d1b19; --fg-muted: #5f5852; --fg-faint: #857d75;
  --line: #e2dcd5; --accent: #c4511b; --accent-strong: #dc5b1f; --accent-fg: #ffffff; --accent-soft: #fde6d8;
  --ink: #15171b; --ink-fg: #f1ede8;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 12px 32px rgb(0 0 0 / .08);
  --radius: 20px; --max: 72rem;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --bg-elev: #1a1d23; --bg-sunk: #0c0e11; --fg: #f1ede8; --fg-muted: #b3aca4; --fg-faint: #8a837c;
    --line: #2a2e36; --accent: #f2793d; --accent-strong: #f2793d; --accent-fg: #1a0d05; --accent-soft: #3a2116;
    --ink: #0b0c0f; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px rgb(0 0 0 / .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.muted { color: var(--fg-muted); }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--fg-muted); max-width: 40rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font: 600 1.25rem/1 var(--display); margin-right: auto; }
.brand svg { width: 2rem; height: 2rem; border-radius: .55rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--fg-muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .7rem; border-radius: .6rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--bg-sunk); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem .75rem; border-radius: .6rem; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 1rem; top: 3.6rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); padding: .5rem; min-width: 14rem; }
.menu-panel a { padding: .7rem .9rem; border-radius: .6rem; color: var(--fg); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--bg-sunk); }
@media (max-width: 880px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .7rem 1.35rem; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .15s, background .15s; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--fg); border-color: var(--line); background: var(--bg-elev); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-sm { min-height: 2.4rem; padding: .5rem 1rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 70%; background: radial-gradient(45% 55% at 18% 30%, var(--accent-soft), transparent 70%), radial-gradient(35% 45% at 85% 10%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.note { font-size: .9rem; color: var(--fg-faint); margin-top: 1rem; }
.shots { position: relative; min-height: 18rem; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-elev); }
.shot-web { width: 100%; }
.shot-phone { position: absolute; right: -2%; bottom: -12%; width: 30%; border-radius: 22px; border: 6px solid var(--ink); }
@media (max-width: 900px) { .shot-phone { right: 2%; } }
.band { background: var(--bg-elev); border-block: 1px solid var(--line); }
.ink { background: var(--ink); color: var(--ink-fg); }
.ink .muted, .ink .lead { color: #b9b2aa; }
.ink a:not(.btn) { color: #f9a576; }
.ink .btn-ghost { color: var(--ink-fg); background: transparent; border-color: #3a3f48; }
.ink .btn-ghost:hover { background: #1c1f25; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.ink .card { background: #1c1f25; border-color: #2c3038; }
.card h3 { margin-top: .9rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 2.75rem; height: 2.75rem; border-radius: .85rem; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 1.4rem; height: 1.4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc5b1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.2rem 1.25rem 1.2rem 4rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 1rem; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } }
.timeline .card { position: relative; }
.timeline .when { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.badge { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.badge-soon { background: var(--bg-sunk); color: var(--fg-muted); }
table.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.facts th, table.facts td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { font-weight: 600; width: 32%; }
pre, code { font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--ink); color: var(--ink-fg); padding: 1.1rem 1.25rem; border-radius: 14px; overflow-x: auto; font-size: .88rem; }
:not(pre) > code { background: var(--bg-sunk); padding: .1em .35em; border-radius: .35em; }
details.faq { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { margin-top: .75rem; color: var(--fg-muted); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.cta { text-align: center; }
.center { margin-inline: auto; }
.cta .actions { justify-content: center; }
.page-head { padding-bottom: 1rem; }
.crumbs { font-size: .88rem; color: var(--fg-faint); margin-bottom: 1rem; }
.crumbs a { color: var(--fg-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .93rem; color: var(--fg-muted); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.foot-blurb { margin-top: 1rem; max-width: 22rem; }
.legal { margin-top: 2.5rem; font-size: .85rem; color: var(--fg-faint); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
