/* ============================================================
   Instant Audio — shared stylesheet
   Portable static site. No build step, no framework.
   Brand system inherited from BYOPA (--brand #FF5C1A).
   Mobile-first: designed at 375px, enhanced upward.
   ============================================================ */

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

:root {
  --brand:      #FF5C1A;
  --brand-dk:   #D94400;
  --brand-soft: #FFF3ED;
  --ink:        #111827;
  --mid:        #374151;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --bg-soft:    #F9FAFB;
  --white:      #FFFFFF;
  --ok:         #15803D;
  --ok-soft:    #F0FDF4;
  --warn:       #B45309;
  --warn-soft:  #FFFBEB;
  --bad:        #DC2626;
  --bad-soft:   #FEF2F2;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --maxw:       1080px;
  --readw:      740px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* ── Skip link (a11y) ── */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; z-index: 999; text-decoration: none;
}
.skip:focus { left: 0; top: 0; }

/* ── Layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--readw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 12px;
}
.nav-logo {
  font-weight: 900; font-size: 1.08rem; color: var(--ink);
  text-decoration: none; letter-spacing: -.5px; white-space: nowrap;
}
.nav-logo span { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: none; gap: 22px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--mid);
  font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.nav-links a:hover, .nav-links a:focus { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: var(--white);
  border-radius: 8px; padding: 11px 18px; min-height: 44px;
  display: inline-flex; align-items: center;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover, .nav-cta:focus { background: var(--brand-dk); }

/* Mobile disclosure menu — pure CSS, no JS */
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 8px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-panel {
  position: absolute; right: 0; top: 52px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; min-width: 220px; list-style: none;
}
.menu-panel a {
  display: block; padding: 12px 14px; min-height: 44px;
  text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 500; border-radius: 8px;
}
.menu-panel a:hover, .menu-panel a:focus { background: var(--bg-soft); color: var(--brand); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu { display: none; }
}

/* ── Hero ── */
.hero { background: linear-gradient(165deg, #12161F 0%, #1E2533 55%, #2A1B12 100%); color: #fff; }
.hero .wrap { padding-top: 68px; padding-bottom: 68px; }
@media (min-width: 768px) { .hero .wrap { padding-top: 104px; padding-bottom: 96px; } }
.eyebrow {
  display: inline-block;
  background: rgba(255,92,26,.18); border: 1px solid rgba(255,92,26,.45);
  color: #FFB08A; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 99px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.05rem, 7.5vw, 3.9rem);
  font-weight: 900; line-height: 1.07; letter-spacing: -.02em;
  margin-bottom: 20px; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub {
  font-size: clamp(1.03rem, 2.6vw, 1.28rem);
  color: #C9D0DC; max-width: 56ch; margin-bottom: 32px;
}
.hero-sub strong { color: #fff; font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover, .btn-ghost:focus { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-quiet:hover, .btn-quiet:focus { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.btn-row .btn { width: 100%; }
@media (min-width: 560px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
}

/* ── Typography ── */
h2 {
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 16px;
}
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: 1.03rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--mid); }
.section-intro { max-width: 60ch; color: var(--mid); margin-bottom: 36px; }
a { color: var(--brand-dk); }
a:hover { color: var(--brand); }

.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { font-weight: 650; }

/* ── Definition block (featured-snippet target) ── */
.definition {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px; margin: 0 0 28px;
}
.definition p { font-size: 1.06rem; }
.definition p:last-child { margin-bottom: 0; }

/* ── Cards ── */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover, .card-link:focus-within { border-color: var(--brand); box-shadow: var(--shadow); }
.card-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.card p { color: var(--mid); font-size: .97rem; }
.card-more { margin-top: auto; padding-top: 16px; font-weight: 650; color: var(--brand-dk); font-size: .95rem; }

.soft { background: var(--bg-soft); }
.dark { background: var(--ink); color: #fff; }
.dark h2 { color: #fff; }
.dark p { color: #C9D0DC; }

/* ── Numbered steps ── */
.steps { list-style: none; counter-reset: s; display: grid; gap: 20px; }
.steps li { counter-increment: s; padding-left: 56px; position: relative; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}

/* ── Comparison table ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption { text-align: left; color: var(--muted); font-size: .88rem; padding-bottom: 10px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mid); }
tbody th { font-weight: 600; }
td.yes { color: var(--ok); font-weight: 650; }
td.no  { color: var(--bad); font-weight: 650; }

/* ── Callouts ── */
.note {
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
  font-size: .97rem; border: 1px solid;
}
.note strong { display: block; margin-bottom: 4px; }
.note-warn { background: var(--warn-soft); border-color: #FDE68A; color: #78350F; }
.note-ok   { background: var(--ok-soft);   border-color: #BBF7D0; color: #14532D; }

/* ── FAQ ── */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; margin-bottom: 12px; background: var(--white);
}
.faq summary {
  cursor: pointer; padding: 18px 20px; min-height: 44px;
  font-weight: 650; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 18px 20px; color: var(--mid); }

/* ── Breadcrumb ── */
.crumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }

/* ── CTA band ── */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D0DC; max-width: 52ch; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ── Calculator ── */
.calc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 650; margin-bottom: 4px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.result { margin-top: 8px; }
.result-headline {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 24px 22px; margin-bottom: 18px;
}
.result-headline .big { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.result-headline .big span { color: var(--brand); }
.result-headline p { color: #C9D0DC; margin: 0; font-size: .98rem; }
.metrics { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 560px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.metric .v { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.metric .k { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.verdict { border-radius: var(--radius); padding: 18px 20px; border: 1px solid; font-size: .98rem; }
.verdict.ok   { background: var(--ok-soft);   border-color: #BBF7D0; color: #14532D; }
.verdict.warn { background: var(--warn-soft); border-color: #FDE68A; color: #78350F; }
.verdict.bad  { background: var(--bad-soft);  border-color: #FECACA; color: #7F1D1D; }
.assumptions { font-size: .86rem; color: var(--muted); margin-top: 20px; }
.assumptions summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

/* ── Footer ── */
footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: .92rem; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--mid); text-decoration: none; }
footer a:hover { color: var(--brand); }
.foot-brand { font-weight: 900; font-size: 1.08rem; color: var(--ink); letter-spacing: -.5px; }
.foot-brand span { color: var(--brand); }
.foot-tag { color: var(--muted); margin-top: 10px; max-width: 34ch; }
.foot-legal { border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: .86rem; }

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
