/* Desibel – marketing site. Same design system as the app. */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter_tight_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter_tight_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter_tight_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter_tight_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains_mono_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains_mono_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0E0F12; --surface: #17191E; --border: #262A31; --divider: #1E2127;
  --text: #F2F4F7; --text2: #8D95A2; --text3: #C7CCD4;
  --accent: #FACC15; --on-accent: #0E0F12;
  --quiet: #4ADE80; --normal: #FACC15; --loud: #FB923C; --danger: #F87171;
  --radius: 18px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(14,15,18,.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--divider); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text3); font-size: 15px; font-weight: 500; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text2); }
.lang a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.lang a:hover { text-decoration: none; color: var(--text); }
.lang a[aria-current="true"]:hover { color: var(--on-accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(250,204,21,.18), transparent 70%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text3); font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(248,113,113,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.55); } 70% { box-shadow: 0 0 0 10px rgba(248,113,113,0); } 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); } }
h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 18px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--text3); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge img { height: 64px; width: auto; margin: -10px; } /* official badge has built-in padding */
.cta small { color: var(--text2); font-size: 14px; }
.stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.stats div { font-size: 13px; color: var(--text2); }
.stats b { display: block; font-family: "JetBrains Mono", monospace; font-size: 26px; color: var(--text); font-weight: 700; }

/* Phone */
.phone {
  position: relative; width: min(330px, 80vw); margin: 0 auto; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2b2f37, #121418);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 1px #3a3f48;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--bg); }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%); background: #08090b; border-radius: 12px; }
.bars { position: absolute; left: -54px; bottom: 80px; display: flex; gap: 6px; align-items: center; height: 90px; }
.bars span { width: 9px; border-radius: 6px; background: var(--accent); animation: wave 1s ease-in-out infinite alternate; }
.bars span:nth-child(1) { height: 34%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 70%; animation-delay: .1s; }
.bars span:nth-child(3) { height: 100%; animation-delay: .2s; }
.bars span:nth-child(4) { height: 70%; animation-delay: .3s; }
.bars span:nth-child(5) { height: 45%; animation-delay: .4s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Sections */
section { padding: 72px 0; }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 12px; }
.sec-head p { color: var(--text3); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text2); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(250,204,21,.12); color: var(--accent); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Screens */
.screens { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: 0 0 236px; scroll-snap-align: start; }
.screens img { border-radius: 26px; border: 1px solid var(--border); aspect-ratio: 9/19.5; object-fit: cover; object-position: top; background: var(--surface); }
.screens figcaption { margin-top: 10px; font-size: 14px; color: var(--text2); text-align: center; }

/* Scale */
.scale { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 64px 120px 1fr; align-items: center; gap: 16px; background: var(--surface); border-radius: 14px; padding: 12px 16px; }
.row .mono { font-size: 20px; font-weight: 700; }
.meter { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; }
.warn { margin-top: 14px; border: 1px solid rgba(248,113,113,.6); background: rgba(248,113,113,.1); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.warn svg { flex: 0 0 22px; stroke: var(--danger); fill: none; stroke-width: 1.8; }

/* Privacy + Pro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.privacy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.privacy-card ul, .pro ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.privacy-card li, .pro li { display: flex; gap: 10px; color: var(--text3); }
.privacy-card li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(74,222,128,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.pro { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 32px; }
.pro h2, .pro .kicker { color: var(--on-accent); }
.pro li { color: var(--on-accent); font-weight: 500; }
.pro li::before { content: "✓"; font-weight: 700; }
.pro .note { margin-top: 18px; font-size: 14px; opacity: .8; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--text2); }

/* Final CTA + footer */
.final { text-align: center; }
.final .card { padding: 48px 24px; background: linear-gradient(180deg, #1b1d23, var(--surface)); }
.final .app { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 18px; }
.final .cta { justify-content: center; margin-top: 18px; }
footer { border-top: 1px solid var(--divider); padding: 36px 0 48px; color: var(--text2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
footer .maker { display: flex; align-items: center; gap: 12px; }
footer .maker img { height: 22px; width: auto; opacity: .9; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--text3); }

/* Legal pages */
.legal { max-width: 780px; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p, .legal li { color: var(--text3); }
.legal .meta { color: var(--text2); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--text3); }
.legal th { background: var(--surface); color: var(--text); }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .bars { display: none; }
  .hero { padding-top: 40px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 52px 70px 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
