/* Bluetooth Mic — site styles.
 *
 * Two worlds on purpose. Marketing sections use the blue-on-white look of the App
 * Store screenshots; every tool panel uses the app's own near-black and teal, so the
 * tool running in this tab and the tool running on the phone read as one product.
 *
 * Tokens: #0A0A0F and #2DD4BF are lifted from the app source (constants/theme.ts and
 * constants/filters.ts); #0A84FF and #1B31FC come from the icon and the screenshots.
 */

:root {
  --ink: #0a0a0f;          /* the app's background */
  --ink-2: #14141c;
  --ink-3: #1e1e29;
  --navy: #0b1533;         /* headline ink on light sections */

  --blue: #0a84ff;         /* Bluetooth blue, from the icon */
  --blue-dark: #0757b8;    /* white on this is 5.4:1 — the one used behind text */
  --blue-soft: #e8f2ff;
  --violet: #1b31fc;       /* the screenshots' headline blue */

  --teal: #2dd4bf;         /* the app's accent */
  --teal-dark: #0d7a6d;    /* white on this is 4.6:1 */
  --teal-soft: #e2fbf6;

  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --paper: #f6f8fc;
  --paper-2: #eef2f9;
  --white: #ffffff;
  --slate: #46536b;
  --slate-2: #5b6880;      /* 4.6:1 on --paper */
  --slate-3: #97a3b8;
  --line: #dde3ee;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 21, 51, 0.06), 0 8px 24px rgba(11, 21, 51, 0.07);
  --shadow-lg: 0 24px 60px rgba(11, 21, 51, 0.16);
  --wrap: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

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

/* The UA rule for [hidden] is display:none, but any author rule that sets display
   wins on cascade origin regardless of specificity — .btn{display:inline-flex} and
   .chips{display:flex} will both keep a hidden element on screen without this. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.38rem); }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.cta-band :focus-visible, .tool :focus-visible, .section--dark :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.02rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--slate); font-weight: 600; font-size: 0.92rem; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--paper-2); color: var(--navy); text-decoration: none; }
.nav a.is-current { color: var(--blue-dark); }
.nav__cta { background: var(--navy) !important; color: #fff !important; padding: 9px 16px !important; border-radius: 999px !important; }
.nav__cta:hover { background: var(--blue-dark) !important; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav__cta { text-align: center; margin-top: 8px; }
}

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

.hero { padding: clamp(44px, 6vw, 78px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
@media (min-width: 961px) {
  /* align-self: stretch matters — with align-items: start the item box is only as
     tall as its text, and a sticky child has nothing to stick inside. */
  .hero__copy { position: sticky; top: 96px; align-self: stretch; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
/* Inline SVGs have no intrinsic size, and the global `svg { height: auto }`
   lets them expand to whatever the viewBox suggests. Every inline icon needs a
   size or it lands on the page the size of a postage stamp album. */
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--blue-dark); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* White on --blue is 3.2:1, under the 4.5:1 AA minimum for text. Anything carrying
   text uses --blue-dark; --blue stays for decorative fills, where 3:1 applies. */
.btn--primary { background: var(--blue-dark); color: #fff; box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3); }
.btn--primary:hover { background: #064a9e; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #142150; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--sm { padding: 10px 18px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--slate-2); font-size: 0.9rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------------------------------------------------------------- tool panel */

.tool {
  background: linear-gradient(168deg, #101a33 0%, var(--ink) 64%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tool__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tool__title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.tool__sub { color: var(--slate-3); font-size: 0.86rem; margin: 0; }
.tool h3 { color: #fff; }
.tool__footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(148, 163, 184, 0.16); }

/* the big mic button, mirroring GlowingMicrophone in the app */
.mic-stage { display: grid; place-items: center; padding: clamp(10px, 3vw, 24px) 0 6px; }
.mic-btn {
  position: relative; width: clamp(140px, 34vw, 186px); aspect-ratio: 1; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #1b3a3a 0%, #101a26 72%);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22);
  transition: box-shadow 0.25s ease, transform 0.12s ease;
  color: var(--teal);
}
.mic-btn:hover { transform: scale(1.02); }
/* :not(.mic-ring) matters — the ring is also a descendant svg, and a bare
   `.mic-btn svg` rule outranks `.mic-ring` on specificity and shrinks it. */
.mic-btn svg:not(.mic-ring) { width: 42%; height: 42%; }
.mic-btn[data-live="1"] {
  background: radial-gradient(circle at 50% 42%, #2dd4bf 0%, #0f766e 78%);
  color: #04211d;
  box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.1), 0 0 46px rgba(45, 212, 191, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .mic-btn[data-live="1"] { animation: micPulse 2.4s ease-in-out infinite; }
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.1), 0 0 40px rgba(45, 212, 191, 0.42); }
  50% { box-shadow: 0 0 0 18px rgba(45, 212, 191, 0.05), 0 0 62px rgba(45, 212, 191, 0.62); }
}
.mic-stage__caption { margin: 16px 0 0; color: var(--slate-3); font-size: 0.9rem; text-align: center; }
.mic-stage__caption strong { color: var(--teal); }

/* Ring of level bars around the mic, mirroring AudioLevelBars in the app.
   Sized explicitly rather than with `inset`: the global `svg { height: auto }`
   rule beats the inset stretch and collapses the ring to its viewBox ratio. */
.mic-ring {
  position: absolute; top: -18px; left: -18px;
  width: calc(100% + 36px); height: calc(100% + 36px);
  max-width: none; pointer-events: none;
}
.mic-ring line { stroke: rgba(45, 212, 191, 0.45); stroke-width: 2.4; stroke-linecap: round; transition: stroke-opacity 0.08s linear; }

/* level meter */
.meter { height: 10px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber) 82%, var(--red)); transition: width 0.06s linear; }
.meter__fill[data-hot="1"] { background: var(--red); }
.meter__peak { position: relative; height: 0; }
.meter__scale { display: flex; justify-content: space-between; color: var(--slate-3); font-size: 0.72rem; margin-top: 6px; font-variant-numeric: tabular-nums; }

.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.readout { background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.16); border-radius: var(--radius-sm); padding: 12px 14px; }
.readout__label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 4px; }
.readout__value { font-size: 1.32rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; font-family: var(--mono); letter-spacing: -0.02em; }
.readout__value[data-tone="good"] { color: var(--teal); }
.readout__value[data-tone="warn"] { color: var(--amber); }
.readout__value[data-tone="bad"] { color: #fca5a5; }
.readout__note { display: block; font-size: 0.76rem; color: var(--slate-3); margin-top: 4px; }
.readout--wide { grid-column: 1 / -1; }

/* controls */
.control { margin-top: 22px; }
.control__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.control__label { font-weight: 700; font-size: 0.95rem; }
.control__value { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--teal); font-size: 1.1rem; }
.control__hint { color: var(--slate-3); font-size: 0.8rem; margin: 8px 0 0; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.28); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.28); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px;
  border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  background: rgba(30, 41, 59, 0.75); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.chip:hover { background: rgba(45, 212, 191, 0.22); color: #fff; }
.chip.is-active { background: var(--teal-dark); color: #fff; border-color: var(--teal); }
.chip[disabled] { opacity: 0.4; cursor: default; }
.chip small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.8; }

.tool select {
  background: rgba(30, 41, 59, 0.85); color: #fff; border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.88rem; width: 100%;
}
.field { margin-top: 18px; }
.field > label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }

.toggle { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #cbd5e1; cursor: pointer; margin-top: 12px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn--tool { background: var(--teal-dark); color: #fff; }
.btn--tool:hover { background: #0f9384; }
.btn--tool-ghost { background: rgba(148, 163, 184, 0.14); color: #fff; border: 1px solid rgba(148, 163, 184, 0.26); }
.btn--tool-ghost:hover { background: rgba(148, 163, 184, 0.24); }

.status { margin-top: 14px; font-size: 0.88rem; border-radius: var(--radius-sm); padding: 11px 14px; line-height: 1.5; }
.status[data-tone="info"] { background: rgba(10, 132, 255, 0.14); color: #a9d0ff; }
.status[data-tone="success"] { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
.status[data-tone="error"] { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.status[data-tone="warn"] { background: rgba(245, 158, 11, 0.13); color: #fcd9a0; }

.warning {
  margin-top: 14px; font-size: 0.85rem; line-height: 1.55;
  background: rgba(245, 158, 11, 0.12); border-left: 3px solid var(--amber);
  color: #fcd9a0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 14px;
}
.warning strong { color: #fff; }

.progress { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); overflow: hidden; margin-top: 14px; }
.progress__fill { height: 100%; width: 0; background: var(--teal); transition: width 0.2s ease; }

/* frequency-response curve for a voice preset */
.curve { width: 100%; height: 132px; background: rgba(9, 14, 26, 0.6); border-radius: var(--radius-sm); margin-top: 14px; }
.curve__grid { stroke: rgba(148, 163, 184, 0.15); stroke-width: 1; }
.curve__zero { stroke: rgba(148, 163, 184, 0.35); stroke-width: 1; stroke-dasharray: 4 4; }
.curve__area { fill: rgba(45, 212, 191, 0.16); }
.curve__line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.curve__label { fill: var(--slate-3); font-size: 9px; font-family: var(--mono); }

/* latency result */
.verdict { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: rgba(9, 14, 26, 0.6); border: 1px solid rgba(148, 163, 184, 0.16); }
.verdict__big { font-size: clamp(2.2rem, 7vw, 3.1rem); font-weight: 800; font-family: var(--mono); letter-spacing: -0.03em; line-height: 1.1; color: var(--teal); }
.verdict__label { font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-3); margin: 0 0 6px; }
.verdict__body { color: #cbd5e1; font-size: 0.92rem; margin: 12px 0 0; line-height: 1.6; }
.verdict__body strong { color: #fff; }
.verdict__runs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.run-pill { font-family: var(--mono); font-size: 0.74rem; padding: 3px 9px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); color: var(--slate-3); }
.run-pill[data-ok="1"] { background: rgba(45, 212, 191, 0.16); color: var(--teal); }

/* channel test */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.channel-btn {
  background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(148, 163, 184, 0.2); color: #fff;
  border-radius: var(--radius); padding: 22px 14px; font: inherit; font-weight: 700; cursor: pointer;
  display: grid; gap: 6px; place-items: center; transition: background 0.15s ease, border-color 0.15s ease;
}
.channel-btn:hover { background: rgba(45, 212, 191, 0.16); border-color: var(--teal); }
.channel-btn[data-playing="1"] { background: var(--teal-dark); border-color: var(--teal); }
.channel-btn small { font-weight: 500; font-size: 0.78rem; color: var(--slate-3); }
.channel-btn[data-playing="1"] small { color: rgba(255, 255, 255, 0.8); }

/* device list */
.devices { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.devices li {
  display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-sm); padding: 10px 13px;
}
.devices .tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(10, 132, 255, 0.2); color: #a9d0ff; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(50px, 7vw, 84px) 0; }
.section--light { background: var(--white); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #cbd5e1; }

.section__head { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 50px); text-align: center; }
.section__head p { color: var(--slate); font-size: 1.05rem; margin: 0; }
.section--dark .section__head p { color: var(--slate-3); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card__icon svg { width: 22px; height: 22px; }
a.card { color: inherit; display: block; transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
a.card .card__more { color: var(--blue-dark); font-weight: 700; font-size: 0.9rem; margin-top: 12px; display: inline-block; }
.section--dark .card { background: var(--ink-2); border-color: rgba(148, 163, 184, 0.16); }
.section--dark .card p { color: var(--slate-3); }
.section--dark a.card:hover { border-color: var(--teal); }
.section--dark a.card .card__more { color: var(--teal); }
.section--dark .card__icon { background: rgba(45, 212, 191, 0.14); color: var(--teal); }

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps--4 { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-dark); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.section--dark .step::before { background: var(--teal-dark); }
.step h3 { margin-bottom: 6px; font-size: 1.08rem; }
.step p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.section--dark .step p { color: var(--slate-3); }

/* screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.shot { flex: none; width: 236px; scroll-snap-align: center; margin: 0; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--white); }
.shot figcaption { text-align: center; color: var(--slate-2); font-size: 0.86rem; margin-top: 12px; font-weight: 600; }
.section--dark .shot figcaption { color: var(--slate-3); }
.section--dark .shot img { border-color: rgba(148, 163, 184, 0.2); }

/* store badges */
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge-link { display: inline-block; }
.badge-link:hover { opacity: 0.85; text-decoration: none; }
.badge-link svg { height: 54px; width: auto; }
.badges__note { font-size: 0.86rem; color: var(--slate-2); font-weight: 600; }
.section--dark .badges__note, .cta-band .badges__note { color: rgba(255, 255, 255, 0.75); }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--slate-2); font-weight: 600; }
.section--dark .rating { color: var(--slate-3); }
.rating__stars { color: var(--amber); letter-spacing: 1px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq details[open] { border-color: var(--blue); }
.faq summary { padding: 18px 52px 18px 22px; font-weight: 700; cursor: pointer; position: relative; list-style: none; font-size: 1.01rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--slate-2); border-bottom: 2px solid var(--slate-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 22px 20px; color: var(--slate); }
.faq__body p { margin: 0 0 12px; }
.faq__body a { font-weight: 700; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue-dark) 0%, #1b31fc 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #fff; max-width: 60ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--blue-dark); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.cta-band .btn--primary:hover { background: var(--paper); }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12); }
.cta-band .badges { justify-content: center; margin-top: 24px; }

/* prose (guides) */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--slate); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--paper-2); }
.prose figure { margin: 1.6em 0; }
/* tabindex="0" on the wrapper (build.mjs adds it) is what lets a keyboard user
   scroll these; without a focusable element inside, arrow keys have nothing to act on. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
.table-scroll:focus-visible, .shots:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.table-scroll table { margin: 0; }

.callout { background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--blue-dark); }
.callout--warn { background: #fef6e7; border-left-color: var(--amber); }
.callout--warn strong { color: #8a5a06; }
.callout--tip { background: var(--teal-soft); border-left-color: var(--teal); }
.callout--tip strong { color: var(--teal-dark); }

.breadcrumb { font-size: 0.86rem; color: var(--slate-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate-2); font-weight: 600; }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

.guide-meta { color: var(--slate-2); font-size: 0.88rem; margin-bottom: 26px; }

.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px; }
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-2); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }

.related { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
@media (max-width: 620px) { .related { grid-template-columns: 1fr; } }

/* inline tool card inside a guide */
.tool-inline { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); margin: 2.4em 0; text-align: center; }
.tool-inline h3 { color: #fff; margin-bottom: 10px; }
.tool-inline p { color: var(--slate-3); font-size: 0.97rem; max-width: 52ch; margin-inline: auto; }

/* comparison table on the homepage */
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-size: 0.86rem; letter-spacing: 0.02em; }
.compare tbody th { font-weight: 700; color: var(--navy); }
.compare td { color: var(--slate); }
.compare .yes { color: var(--teal-dark); font-weight: 700; }
.compare .no { color: var(--slate-3); }

.site-footer { background: var(--ink); color: var(--slate-3); padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer a { color: var(--slate-3); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer__brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer__bottom { border-top: 1px solid rgba(148, 163, 184, 0.18); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- download */

.download {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }
.download__lead { display: flex; gap: 22px; align-items: flex-start; }
@media (max-width: 520px) { .download__lead { flex-direction: column; gap: 16px; } }
.download__icon { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: var(--shadow); }
.download h2 { margin-bottom: 6px; }
.download__name { font-weight: 700; color: var(--slate); margin: 0 0 8px; }
.download__copy { margin: 14px 0 18px; color: var(--slate); }
.download__badges { margin-top: 4px; }

.download__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; }
@media (max-width: 520px) { .download__facts { grid-template-columns: 1fr; } }
.download__facts dt {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--slate-2); font-weight: 700; margin-bottom: 2px;
}
.download__facts dd { margin: 0; font-size: 0.94rem; color: var(--navy); font-weight: 600; }

.download__caveat {
  max-width: 76ch; margin: 22px auto 0; text-align: center;
  color: var(--slate-2); font-size: 0.93rem; line-height: 1.6;
}
