/* Audioplex — naden.co
   Minimal dark stylesheet, shared across index / privacy / support.
   Type: DM Sans — the closest open equivalent to Google Sans Text,
   which Google Fonts uses for its own UI but doesn't license out.
   Each page loads it with a <link> in <head> — see index.html. */

:root {
  /* palette pulled from the app icon: coral gradient on dark plum */
  --bg: #0a0709;
  --bg-card: #151116;
  --line: #262029;
  --line-soft: #1d181f;
  --fg: #f5f2f4;
  --fg-dim: #a9a1a8;
  --fg-faint: #8b818a;
  --accent: #ff6f61;
  --accent-2: #f5426c;
  --accent-dim: rgba(255, 111, 97, 0.14);
  --green: #47a06b;
  --radius: 14px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* keyboard users: a visible ring, and a way past the nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--fg); color: #0a0709 !important;
  font-size: 14px; font-weight: 500;
  transition: top 0.15s var(--ease);
}
.skip:focus { top: 12px; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #000; }

/* ---------- layout ---------- */

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

section { padding: 104px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 18px;
  font-weight: 500;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; }

em { font-style: normal; color: var(--fg-faint); }

.lede { color: var(--fg-dim); font-size: 1.15rem; max-width: 52ch; }

/* ---------- nav ---------- */

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 7, 9, 0.74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 62px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { width: 27px; height: 27px; border-radius: 7px; opacity: 1; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav-links a { color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 14px; font-weight: 500;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg) !important;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ---------- hero ---------- */

.hero { padding: 108px 0 84px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -40% 0 auto 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 111, 97, 0.13) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 30px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 { max-width: 17ch; }
.hero .lede { margin: 26px 0 38px; font-size: 1.18rem; }

.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
/* Primary CTA. Not Apple's badge artwork, which they require for their own
   badge; this is our own button, centred by the flexbox. */
.appstore {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  background: var(--fg);
  color: #0a0709 !important;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  transition: opacity 0.2s;
}
.appstore:hover { opacity: 0.86; }
.textlink { color: var(--fg-dim); font-size: 15px; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--fg-faint); }

/* ---------- panel showcase ---------- */

.showcase {
  margin-top: 72px;
  display: flex; justify-content: center;
  position: relative;
}
.showcase::after {
  content: "";
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 560px; height: 110px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(16px); pointer-events: none;
}
/* the panel hangs off a stand-in menu bar, so its real size reads as intentional */
.stack { position: relative; width: 100%; max-width: 520px; }
/* Real menu bar: 24pt tall, translucent near-black, no border, and it runs off
   the left edge of the frame rather than sitting there as a pill. */
.menubar {
  display: flex; align-items: center; gap: 3px;
  line-height: 1;                 /* no line-box drift on the clock */
  height: 25px; padding: 0 11px 0 40px;
  border-radius: 0 6px 0 0;
  background:
    linear-gradient(90deg, rgba(28,24,29,0) 0%, rgba(28,24,29,.92) 34px, rgba(30,26,31,.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  color: #eae6ea;
  -webkit-font-smoothing: antialiased;
}
.menubar .mb-spacer { flex: 1; }
.mb-item {
  display: flex; align-items: center; justify-content: center;
  width: 25px; height: 19px; border-radius: 4px;
  opacity: .92;
  flex: none;
}
.mb-item svg { width: 15px; height: 15px; display: block; }
/* the battery is a wide, short shape — it needs a larger box to read at the
   same visual weight as the round glyphs beside it */
.mb-batt { width: 29px; }
.mb-batt svg { width: 21px; height: 21px; }
/* macOS tints the status item while its popover is open */
.mb-item.is-open {
  background: rgba(255,255,255,.17);
  opacity: 1;
}
.mb-glyph { width: 16px; height: 16px; filter: invert(1); }
.mb-clock {
  margin-left: 7px;
  font-size: 12px; font-weight: 400; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Centred in the stack, so it sits on the page's centre line. The glyph in the
   bar above lands within ~10px of the panel's centre, so it still reads as
   hanging from the icon. */
.panel {
  position: relative;
  display: block; height: auto;
  width: 372px; max-width: 92%;
  margin: -12px auto 0;
}

/* ---------- steps ---------- */

.steps { display: grid; gap: 1px; margin-top: 52px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--bg-card); padding: 34px 28px 38px; }
.step .num {
  font-size: 12px; letter-spacing: 0.1em; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; font-size: 1.32rem; letter-spacing: -0.02em; }
.step p { color: var(--fg-dim); font-size: 15.5px; margin: 0; }

/* ---------- feature grid ---------- */

.grid { display: grid; gap: 20px; margin-top: 52px; grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color 0.25s;
}
.card:hover { border-color: var(--line); }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico svg { width: 19px; height: 19px; }
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { color: var(--fg-dim); font-size: 15.5px; margin: 0; }

/* Lead feature band — the auto-calibration story.
   MUST come after the generic .card rules: `.card--lead h3` and `.card h3`
   have the same specificity, so whichever is written last wins. */
.card--lead {
  margin-top: 52px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px;
  padding: 40px 40px 42px;
  border-color: var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 111, 97, 0.10), transparent 58%),
    var(--bg-card);
}
.card--lead .lead-copy { align-self: center; }
/* same size as the step headings */
.card--lead h3 { font-size: 1.32rem; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 14px; max-width: 30ch; }
.card--lead p { font-size: 16.5px; margin: 0; }

/* chirp → listen → correct */
.lead-flow {
  list-style: none; margin: 0; padding: 0 0 0 26px;
  border-left: 1px solid var(--line);
  align-self: center;
}
.lead-flow li {
  display: flex; align-items: center; gap: 14px;
  color: var(--fg-dim); font-size: 15.5px; line-height: 1.35;
  padding: 12px 0;
}
.lead-flow .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500;
  color: var(--accent); background: var(--accent-dim);
}

/* ---------- specs ---------- */

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.spec { border-left: 1px solid var(--line); padding-left: 18px; }
.spec dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px; }
.spec dd { margin: 0; font-size: 15.5px; color: var(--fg-dim); }

/* ---------- faq ---------- */

.faq { margin-top: 46px; border-top: 1px solid var(--line-soft); }
details { border-bottom: 1px solid var(--line-soft); }
summary {
  cursor: pointer; list-style: none;
  padding: 21px 40px 21px 0; position: relative;
  font-size: 16.5px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 19px;
  color: var(--fg-faint); font-size: 20px; font-weight: 300; line-height: 1;
  transition: transform 0.2s var(--ease), color 0.2s;
}
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
summary:hover { color: var(--accent); }
details p { margin: 0 0 24px; color: var(--fg-dim); font-size: 15.5px; max-width: 76ch; }

/* ---------- closer ---------- */

.closer { text-align: center; padding: 128px 0; position: relative; overflow: hidden; }
.closer::before {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 760px; height: 420px;
  background: radial-gradient(ellipse, rgba(255, 111, 97, 0.11), transparent 65%);
  pointer-events: none;
}
.closer .wrap { position: relative; }
.closer img.mark { width: 76px; border-radius: 18px; margin: 0 auto 30px; opacity: 1; }
.closer h2 { max-width: 20ch; margin: 0 auto 20px; }
.closer .lede { margin: 0 auto 36px; }
.closer .cta-row { justify-content: center; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 60px 0 44px;
  font-size: 14px; color: var(--fg-faint);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.foot-grid h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--fg-faint); }
.foot-grid a:hover { color: var(--fg); }
.foot-about { max-width: 34ch; }
.foot-about .brand { margin-bottom: 14px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: #625a62; }

/* ---------- prose (privacy / support) ---------- */

.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 14px; }
.prose .updated { color: var(--fg-faint); font-size: 14px; margin: 0 0 44px; }
.prose h2 { font-size: 1.25rem; margin: 46px 0 12px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { color: var(--fg-dim); font-size: 16px; }
.prose a { color: var(--accent); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px; background: var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px;
  color: var(--fg);
}
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 52px 0; }
.back { display: inline-block; margin-bottom: 34px; font-size: 14px; color: var(--fg-faint); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .steps, .grid, .grid--3, .specs { grid-template-columns: 1fr; }
  .card--lead { grid-template-columns: 1fr; gap: 24px; padding: 30px 26px 32px; }
  .lead-flow { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  .specs { gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .hero { padding: 72px 0 60px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .stack { max-width: 100%; }
  .menubar { padding-left: 16px; gap: 2px; }
  .mb-item { width: 23px; }
  .mb-clock { display: none; }   /* keeps the glyph near the panel's centre */
  .closer img.mark { width: 64px; }
  .closer { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
