/* VoiceMenus.com — hand-written, no framework. Mobile-first; works from 360px. */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f3ecdf;
  --ink: #1e2b24;
  --muted: #4b574f;
  --line: #e2d7c5;
  --brand: #1f5a43;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe7;
  --accent: #a8431a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6d9;
  --focus: #1a5fb4;
  --shadow: 0 1px 2px rgba(48, 38, 20, .06), 0 8px 24px rgba(48, 38, 20, .08);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814;
    --surface: #1a221d;
    --surface-2: #212b25;
    --ink: #eee8dc;
    --muted: #bdb6a8;
    --line: #313d36;
    --brand: #84c9a6;
    --brand-ink: #10241a;
    --brand-soft: #1f3329;
    --accent: #f2925f;
    --accent-ink: #2a1206;
    --accent-soft: #3a2519;
    --focus: #8ab4f8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.125rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 10;
  background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: .75rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--ink)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) { display: none; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav .btn { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
@media (min-width: 52rem) { .nav a:not(.btn) { display: inline; } }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  padding: .3rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink);
  font-size: .9rem; font-weight: 600;
}
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.15rem, 7.5vw, 3.6rem); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.cta-row .btn { flex: 1 1 12rem; }
@media (min-width: 30rem) { .cta-row .btn { flex: 0 0 auto; } }
.reassure { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.reassure li { display: inline-flex; align-items: center; gap: .4rem; }
.reassure svg { width: 1.05rem; height: 1.05rem; color: var(--brand); flex: none; }

/* Hero menu card (static illustration of a phone menu) */
.menu-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 1.25rem; max-width: 26rem; justify-self: center; width: 100%;
}
.menu-card-top { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.menu-card-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.menu-card-icon svg { width: 1.3rem; height: 1.3rem; }
.menu-card-top p { margin: 0; line-height: 1.3; }
.menu-card-top .small { font-size: .85rem; color: var(--muted); }
.menu-card-top strong { font-size: 1rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 2.75rem; margin: 1rem 0 .75rem; }
.wave span { flex: 1; border-radius: 3px; background: var(--brand); opacity: .75; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.keys li { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .97rem; }
.keys li.now { background: var(--accent-soft); }
.key {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  font: 700 .95rem/1 var(--sans); color: var(--ink);
}
.keys li.now .key { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.menu-card figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 60rem) { .section { padding: 5rem 0; } }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker { display: block; margin-bottom: .6rem; color: var(--accent); font: 700 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 44rem) and (max-width: 59.99rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card > :last-child { margin-bottom: 0; }

/* ---------- Samples ---------- */
.sample { display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.sample-tag {
  align-self: flex-start; margin: 0; padding: .25rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--ink); font-size: .82rem; font-weight: 600;
}
.sample h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.sample-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.sample-use { margin: 0; font-size: .95rem; }
.clip { border-top: 1px solid var(--line); padding-top: 1rem; }
.clip-label { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; font-weight: 600; font-size: .97rem; }
.clip-label .dur { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.clip audio { width: 100%; }

/* Custom player (added by app.js; native <audio controls> is the no-JS fallback) */
.player { display: flex; align-items: center; gap: .75rem; }
.play {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; flex: none;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  transition: transform .15s ease;
}
.play:hover { transform: scale(1.05); }
.play svg { width: 1.35rem; height: 1.35rem; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.track { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.seek { width: 100%; height: 1.5rem; margin: 0; accent-color: var(--accent); cursor: pointer; background: transparent; }
.time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.playing-bars { display: none; align-items: flex-end; gap: 2px; height: 1rem; margin-left: .35rem; }
.playing-bars i { width: 3px; background: var(--accent); border-radius: 2px; animation: bar 1s ease-in-out infinite; }
.playing-bars i:nth-child(2) { animation-delay: -.3s; }
.playing-bars i:nth-child(3) { animation-delay: -.6s; }
.clip.is-playing .playing-bars { display: inline-flex; }
@keyframes bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .playing-bars i { height: 70%; } }

.transcript { margin-top: .75rem; }
.transcript summary {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  cursor: pointer; color: var(--brand); font-weight: 600; font-size: .95rem; list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: .85rem; line-height: 1; }
.transcript[open] summary::before { content: "\2212"; }
.transcript blockquote { margin: .25rem 0 0; padding: .85rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.transcript blockquote p { margin: 0 0 .6em; }
.transcript blockquote p:last-child { margin: 0; }
.placeholder-note { margin: 0; padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; }
.samples-note { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-top: 3.75rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.4rem; top: 1.25rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font: 700 1.1rem/1 var(--sans);
}
.steps h3 { margin-top: .25rem; }
.steps p { color: var(--muted); }

/* ---------- Phones ---------- */
.phone-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.phone-list li { padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; font-weight: 700; font-size: .9rem; }
.status svg { width: 1.15rem; height: 1.15rem; }
.status-good { color: var(--brand); }
.status-ok { color: var(--accent); }
.fine { color: var(--muted); font-size: .93rem; }
.soon { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); font-size: .82rem; font-weight: 700; }

/* ---------- Who ---------- */
.who-card h3 { font-size: 1.3rem; }
.who-card.featured { border: 2px solid var(--brand); }
.quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink); margin: 0 0 .75rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: .1rem; top: .45em; width: .75rem; height: .4rem;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg);
}

/* ---------- Pack ---------- */
.pack-item { display: flex; gap: 1rem; align-items: flex-start; }
.pack-icon { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.pack-icon svg { width: 1.4rem; height: 1.4rem; }
.pack-item h3 { margin: .1rem 0 .3rem; }
.pack-item p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.5rem; padding: .9rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 22px; padding: 2rem 1.4rem; display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 48rem) { .cta-band { padding: 2.75rem 3rem; grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); }
.cta-band .btn:hover { background: var(--bg); }
.cta-band :focus-visible { outline-color: var(--brand-ink); }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; margin-top: 3.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer p { margin: 0; }

/* ---------- Policy pages ---------- */
.prose { max-width: 42rem; padding: 2.5rem 0 1rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose .updated { color: var(--muted); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* Hero waveform bar heights (no inline styles: CSP style-src self) */
.wave span:nth-child(1) { height: 30%; }
.wave span:nth-child(2) { height: 55%; }
.wave span:nth-child(3) { height: 80%; }
.wave span:nth-child(4) { height: 45%; }
.wave span:nth-child(5) { height: 95%; }
.wave span:nth-child(6) { height: 60%; }
.wave span:nth-child(7) { height: 35%; }
.wave span:nth-child(8) { height: 70%; }
.wave span:nth-child(9) { height: 100%; }
.wave span:nth-child(10) { height: 50%; }
.wave span:nth-child(11) { height: 75%; }
.wave span:nth-child(12) { height: 40%; }
.wave span:nth-child(13) { height: 85%; }
.wave span:nth-child(14) { height: 55%; }
.wave span:nth-child(15) { height: 30%; }
.wave span:nth-child(16) { height: 65%; }
.wave span:nth-child(17) { height: 90%; }
.wave span:nth-child(18) { height: 45%; }
.wave span:nth-child(19) { height: 70%; }
.wave span:nth-child(20) { height: 35%; }
.wave span:nth-child(21) { height: 60%; }
.wave span:nth-child(22) { height: 25%; }
