/* SonoLab — site styles.
   Palette and typography follow the app: bg #10151A, cream #EDEAE2,
   coral #FF6B57, ultralight numerals, letterspaced small caps. */

:root {
  --bg: #10151A;
  --bg-lift: #151B21;
  --cream: #EDEAE2;
  --coral: #FF6B57;

  --text: rgba(237, 234, 226, 0.92);
  --text-soft: rgba(237, 234, 226, 0.62);
  --text-mute: rgba(237, 234, 226, 0.42);
  --line: rgba(237, 234, 226, 0.10);
  --line-soft: rgba(237, 234, 226, 0.06);
  --panel: rgba(237, 234, 226, 0.035);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --page: 1120px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A soft coral bloom behind the top of the page, like the app's face glow. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255, 107, 87, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }

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

/* ── Type ───────────────────────────────────────────────────────── */

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 20px;
}

.kicker .dot { color: var(--coral); }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }

h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }

.coral { color: var(--coral); }

.lede {
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 54ch;
  margin: 22px 0 0;
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(16, 21, 26, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .mark { flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav a:hover { color: var(--cream); }

@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { border-color: rgba(237, 234, 226, 0.28); background: rgba(237, 234, 226, 0.07); }

/* Apple's official badge, used unmodified per the App Store marketing
   guidelines — only wrapped so it lines up with the pill beside it. */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: opacity 0.18s ease;
}

.badge-appstore:hover { opacity: 0.82; }

.badge-appstore img { height: 50px; width: auto; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero { padding: 84px 0 92px; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
}

.hero-copy { min-width: 0; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 68px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-art { justify-self: center; max-width: 320px; }
}

/* The app's AVG · PEAK · DOSE readout row, rebuilt in HTML. */
.readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}

.readout div { padding-right: 18px; border-right: 1px solid var(--line-soft); }
.readout div:last-child { border-right: 0; }
.readout p { margin: 0; }

.readout dt,
.readout .label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.readout .value {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 6px;
}

.readout .value.coral { color: var(--coral); }

.readout .value .unit {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-mute);
  margin-left: 3px;
}

/* ── Phone frame ────────────────────────────────────────────────── */
/* Raw simulator screenshots. Each is trimmed to where its screen's
   content ends, so the device reads as bleeding past the frame. */

.phone {
  position: relative;
  border: 1.5px solid rgba(237, 234, 226, 0.20);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  padding: 8px 8px 0;
  background: linear-gradient(160deg, rgba(237, 234, 226, 0.14), rgba(237, 234, 226, 0.03) 45%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(237, 234, 226, 0.06) inset;
}

.phone img { width: 100%; height: auto; border-radius: 33px 33px 0 0; }

/* Bottom edge: the screen dissolves into the page instead of ending flat. */
.phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(to bottom, rgba(16, 21, 26, 0) 0%, rgba(16, 21, 26, 0.86) 72%, var(--bg) 100%);
  pointer-events: none;
}

/* ── Sections ───────────────────────────────────────────────────── */

section { scroll-margin-top: 84px; }

.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head .lede { margin-top: 18px; }

/* Alternating tab rows */

.tabs { padding: 92px 0 34px; }

.tab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: center;
  padding: 62px 0;
  border-top: 1px solid var(--line-soft);
}

.tab-row:first-child { border-top: 0; padding-top: 12px; }

.tab-row:nth-child(even) { grid-template-columns: 320px minmax(0, 1fr); }
.tab-row:nth-child(even) .tab-art { order: -1; }

.tab-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--coral);
  text-transform: uppercase;
}

.tab-row h2 { margin-top: 14px; font-size: clamp(26px, 3.4vw, 34px); }
.tab-row p { color: var(--text-soft); max-width: 52ch; margin: 16px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--panel);
}

@media (max-width: 860px) {
  .tabs { padding-top: 64px; }
  .tab-row,
  .tab-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tab-row:first-child { padding-top: 0; }
  .tab-row:nth-child(even) .tab-art { order: 0; }
  .tab-art { max-width: 280px; }
}

/* ── Feature grid ───────────────────────────────────────────────── */

.features { padding: 86px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 24px 28px;
}

.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.58; }

.card .card-mark {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
}

/* ── Glossary ───────────────────────────────────────────────────── */

.glossary { padding: 86px 0; border-top: 1px solid var(--line-soft); }

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px 40px;
}

.term { padding: 20px 0; border-top: 1px solid var(--line-soft); }

.term dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 7px;
}

.term dd { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.58; }

/* ── Privacy strip ──────────────────────────────────────────────── */

.privacy-strip { padding: 90px 0; border-top: 1px solid var(--line-soft); }

.privacy-strip .statement {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.privacy-strip .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.checks { list-style: none; margin: 0; padding: 0; }

.checks li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-size: 15px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

@media (max-width: 800px) {
  .privacy-strip .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .privacy-strip .statement { max-width: none; }
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 60px;
  font-size: 14px;
  color: var(--text-mute);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ── Legal pages ────────────────────────────────────────────────── */

.legal { padding: 66px 0 90px; }
.legal .wrap { max-width: 760px; }

.legal .updated {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 18px 0 0;
}

.legal article { margin-top: 52px; }

.legal h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.legal h3 { margin: 26px 0 8px; font-size: 15.5px; }

.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; line-height: 1.68; }

.legal p { margin: 0 0 14px; }

.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 9px; }

.legal strong { color: var(--text); font-weight: 600; }

.legal .callout {
  border: 1px solid rgba(255, 107, 87, 0.32);
  background: rgba(255, 107, 87, 0.07);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 22px;
}

.legal .callout p:last-child { margin-bottom: 0; }

.legal .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 24px;
  margin-top: 40px;
}

.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin-bottom: 6px; font-size: 14.5px; }
.legal .toc a { color: var(--text-soft); text-decoration: none; }
.legal .toc a:hover { color: var(--coral); }
