/* Decibels: decibelsapp.owsm.io
   Palette and type are taken from the app (src/core/colors.tsx, Inter). */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.ttf) format('truetype'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.ttf) format('truetype'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.ttf) format('truetype'); }

:root {
  --bg: #0e1a18;
  --bg-deep: #0a1412;
  --surface: #152623;
  --raised: #1c322e;
  --border: #24403b;
  --grid: #203833;
  --text: #eef5f1;
  --muted: #93aba3;
  --faint: #5f7a72;
  --accent: #b8d5c4;
  --safe: #6fcf97;
  --moderate: #d6e26a;
  --loud: #f2b84b;
  --harmful: #f99746;
  --danger: #ff6b6b;
  --radius: 20px;
  --max: 1160px;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11' 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--safe); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 26, 24, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(36, 64, 59, 0.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--bg); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: #d3e8db; color: var(--bg); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.play-btn { padding: 12px 22px 12px 18px; }
.play-btn small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; opacity: .75; line-height: 1.1; }
.play-btn b { display: block; font-size: 17px; line-height: 1.2; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(111, 207, 151, 0.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--safe);
  border: 1px solid rgba(111, 207, 151, .35); padding: 6px 12px; border-radius: 999px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 0 rgba(111,207,151,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(111,207,151,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow i { animation: none; } html { scroll-behavior: auto; } }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--safe), var(--moderate) 45%, var(--loud) 70%, var(--harmful)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* phone frame */
.phone {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 1080 / 2424;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #2b3f3b, #0b1513 40%, #22332f);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(184,213,196,.08) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.sm { max-width: 290px; }
.hero .phone { transform: rotate(2deg); }
.hero-visual { position: relative; }
.chip {
  position: absolute; background: rgba(21, 38, 35, .92); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; font-size: 13px; color: var(--muted);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); backdrop-filter: blur(8px);
}
.chip b { display: block; color: var(--text); font-size: 18px; font-weight: 700; }
.chip.c2 { right: -14%; top: 46%; }
.chip.c3 { left: -10%; bottom: 3%; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; margin: 24px auto 0; }
  .chip.c2 { right: -24px; } .chip.c3 { left: -16px; }
}

/* metric ticker */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.ticker ul { list-style: none; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; max-width: var(--max); }
.ticker li { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.ticker li b { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--safe); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.section-head .kicker { color: var(--safe); font-size: 13px; margin: 0 0 14px; }

/* raw-mic comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 20px; margin-bottom: 8px; }
.panel p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.panel svg { width: 100%; height: auto; display: block; }
.panel.good { border-color: rgba(111, 207, 151, .45); background: linear-gradient(180deg, rgba(111,207,151,.07), var(--surface) 60%); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.bad { color: var(--harmful); background: rgba(249,151,70,.12); }
.tag.ok { color: var(--safe); background: rgba(111,207,151,.12); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.point { padding: 22px 24px; border-radius: 16px; background: var(--bg-deep); border: 1px solid var(--border); }
.point b { display: block; margin-bottom: 6px; font-size: 16px; }
.point span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .compare, .points { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); font-size: 16px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(111,207,151,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236fcf97' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks code, p code, td code { font-family: var(--mono); font-size: .88em; color: var(--accent); background: var(--raised); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
}

/* zone scale */
.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 26px 0 8px; }
.zones div { height: 10px; border-radius: 5px; }
.zone-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 12px; color: var(--faint); }

/* audiences */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* export */
.export h2 { font-size: clamp(30px, 3.4vw, 42px); }
.export { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.doc { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.doc-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--faint); font-family: var(--mono); }
.doc-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.doc pre { margin: 0; padding: 20px; font: 12.5px/1.55 var(--mono); color: var(--accent); overflow-x: auto; }
.doc pre .h { color: var(--text); font-weight: 600; }
.doc pre .d { color: var(--faint); }
.doc + .doc { margin-top: 16px; }
@media (max-width: 900px) { .export { grid-template-columns: 1fr; } }

/* privacy band */
.privacy-band { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.privacy-grid div { padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.privacy-grid b { display: block; font-size: 17px; margin-bottom: 6px; }
.privacy-grid span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* specs */
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 34%; padding-right: 24px; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; }

/* final cta */
.final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 100%, rgba(111,207,151,.14), transparent 70%); }
.final .wrap { position: relative; }
.final h2 { max-width: 16em; margin: 0 auto 18px; }
.final p { color: var(--muted); font-size: 19px; margin: 0 auto 34px; max-width: 34em; }
.final .cta-row { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { flex-basis: 100%; font-size: 13px; line-height: 1.6; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin: 10px 0 14px; }
.legal .meta { color: var(--faint); font-size: 15px; margin: 0 0 32px; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 40px; }
.legal .summary h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: 0; }
.legal .summary ul { margin: 0; padding-left: 20px; color: var(--muted); }
.legal .summary li { margin: 6px 0; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.legal h3 { font-size: 18px; margin: 26px 0 10px; letter-spacing: 0; }
.legal p, .legal li { color: #c9d8d1; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; color: #c9d8d1; }
.legal th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal .caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.toc { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0 0 8px; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } .legal table { font-size: 14px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: 120px; font-weight: 700; color: var(--loud); letter-spacing: -0.04em; line-height: 1; }
.notfound .big small { font-size: 36px; color: var(--muted); font-weight: 400; }

/* Tabular figures only where numbers line up (Inter's tnum also widens hyphens). */
.chip b, .notfound .big { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .chip.c3 { display: none; } }

/* measurement disclaimer box */
.notice { margin-top: 28px; padding: 22px 26px; border-radius: 16px; border: 1px solid rgba(242,184,75,.35); background: rgba(242,184,75,.06); }
.notice b { display: block; color: var(--loud); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.notice p { margin: 0; color: var(--muted); font-size: 15px; }
