/* Increase Volume — site styles.
 *
 * Two worlds on purpose. Marketing sections use the cream-and-indigo look from the App
 * Store screenshots; the studio itself uses the app's own dark palette, so the tool on
 * the page and the tool on your phone read as the same product.
 *
 * Colour tokens are lifted from the app source (screens/*.tsx): #0F172A ink,
 * #1E293B surface, #667EEA accent, #F687B3 hot pink.
 */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --accent: #667eea;
  --accent-dark: #4c5fd7;
  --accent-soft: #eef0fe;
  --pink: #f687b3;
  --pink-dark: #e05c95;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --cream: #faf8f3;
  --cream-2: #f2eee5;
  --white: #ffffff;
  --slate: #475569;
  --slate-2: #5a6a80; /* 4.5:1 on --cream; #64748b was 4.48:1 and failed AA */
  --slate-3: #94a3b8;
  --line: #e4e0d6;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --wrap: 1120px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::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} were both keeping elements on screen that the studio had
   hidden. This is why normalize.css ships the same rule. */
[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(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-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.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
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(--accent); outline-offset: 2px; border-radius: 4px; }
/* On the accent-coloured band the default ring is nearly the background colour. */
.cta-band :focus-visible, .studio :focus-visible, .section--dark :focus-visible {
  outline-color: #fff;
}

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 243, 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(--ink); 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: 6px; }
.nav a { color: var(--slate); font-weight: 600; font-size: 0.94rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--cream-2); color: var(--ink); text-decoration: none; }
.nav a.is-current { color: var(--accent-dark); }
.nav__cta {
  background: var(--ink) !important; color: #fff !important;
  padding: 9px 16px !important; border-radius: 999px !important;
}
.nav__cta:hover { background: var(--accent-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(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); 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(48px, 7vw, 84px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

/* The studio column runs long once a file is loaded — sliders, presets, analysis and
   loudness targets all stack. Pin the copy beside it instead of letting it scroll away
   and leave half the viewport empty. */
@media (min-width: 941px) {
  /* align-self: stretch matters — with the grid's align-items: start the item box is
     only as tall as its text, and sticky has nothing to stick inside. */
  .hero__copy { position: sticky; top: 96px; align-self: stretch; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 56ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 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 --accent is 3.66:1, under the 4.5:1 AA minimum for normal text. Anything
   that carries text uses --accent-dark (white on #4c5fd7 = 6.90:1); --accent stays for
   decorative fills, where the 3:1 non-text threshold applies. */
.btn--primary { background: var(--accent-dark); color: #fff; box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35); }
.btn--primary:hover { background: #3f50c4; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-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; }

/* ---------------------------------------------------------------- studio */

.studio {
  background: linear-gradient(165deg, #16213f 0%, var(--ink) 62%);
  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);
}
.studio__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.studio__title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.studio__sub { color: var(--slate-3); font-size: 0.86rem; margin: 0; }
.studio h3 { color: #fff; }

.dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.42); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px) 20px; text-align: center; cursor: pointer;
  background: rgba(30, 41, 59, 0.55); transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(102, 126, 234, 0.12); }
.dropzone__icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--accent); }
.dropzone__main { font-weight: 700; font-size: 1.06rem; margin: 0 0 6px; }
.dropzone__hint { color: var(--slate-3); font-size: 0.87rem; margin: 0; }
.dropzone__aside { text-align: center; margin: 16px 0 0; }
.dropzone__sample {
  background: rgba(102, 126, 234, 0.18); color: #c7d0fb;
  border: 1px solid rgba(102, 126, 234, 0.4); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-size: 0.87rem; font-weight: 600; cursor: pointer;
}
.dropzone__sample:hover { background: rgba(102, 126, 234, 0.3); color: #fff; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.now-playing {
  background: rgba(30, 41, 59, 0.8); border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
}
.now-playing__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.now-playing__label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-3); margin: 0; }
[data-stage]:focus { outline: none; }
[data-stage]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.now-playing__name { font-weight: 700; font-size: 1.02rem; margin: 0; word-break: break-word; }
.now-playing__meta { color: var(--slate-3); font-size: 0.83rem; margin: 4px 0 0; }

.transport { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.transport__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background 0.15s ease, transform 0.12s ease;
}
.transport__btn:hover { background: var(--accent-dark); transform: scale(1.04); }
.transport__btn svg { width: 22px; height: 22px; }
.transport__btn[data-playing="1"] .icon-play { display: none; }
.transport__btn[data-playing="0"] .icon-pause { display: none; }
.transport__btn--small { width: 40px; height: 40px; background: rgba(148, 163, 184, 0.18); }
.transport__btn--small:hover { background: rgba(148, 163, 184, 0.3); }
.transport__btn--small svg { width: 16px; height: 16px; }
.transport__time { color: var(--slate-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; flex: none; }
.transport__seek { flex: 1; }

.spectrum { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin: 14px 0 4px; }
.spectrum__bar {
  flex: 1; height: 2px; min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--accent), var(--pink));
  transition: height 0.06s linear;
}

.meter { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.meter__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber) 78%, var(--red)); transition: width 0.06s linear; }
.meter__fill[data-hot="1"] { background: var(--red); }
.meter__label { display: flex; justify-content: space-between; color: var(--slate-3); font-size: 0.74rem; margin-top: 6px; }

.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(--accent); font-size: 1.1rem; }
.control__hint { color: var(--slate-3); font-size: 0.8rem; margin: 8px 0 0; }

/* Range inputs: styled by hand so the studio looks the same in every browser. */
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.4);
}
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.4);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  background: rgba(51, 65, 85, 0.7); 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(102, 126, 234, 0.28); color: #fff; }
.chip.is-active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.chip[disabled] { opacity: 0.4; cursor: default; }

.eq-bands { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.eq-band { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.eq-band__value { font-size: 0.72rem; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.eq-band__label { font-size: 0.72rem; color: var(--slate-3); white-space: nowrap; }
.eq-band__slider {
  writing-mode: vertical-lr; direction: rtl;
  width: 26px; height: 118px; padding: 0;
}
.eq-band__slider::-webkit-slider-runnable-track { width: 6px; height: 100%; }
.eq-band__slider::-webkit-slider-thumb { margin-top: 0; margin-left: -7px; }

.curve { width: 100%; height: 120px; background: rgba(15, 23, 42, 0.55); border-radius: var(--radius-sm); margin-top: 14px; }
.curve__grid { stroke: rgba(148, 163, 184, 0.16); stroke-width: 1; }
.curve__zero { stroke: rgba(148, 163, 184, 0.35); stroke-width: 1; stroke-dasharray: 4 4; }
.curve__area { fill: rgba(102, 126, 234, 0.18); }
.curve__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }

.analysis {
  background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 20px; font-size: 0.88rem;
}
.analysis__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--slate-3); }
.analysis__row strong { color: #fff; font-variant-numeric: tabular-nums; }
.analysis__verdict { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, 0.16); color: #cbd5e1; font-size: 0.86rem; line-height: 1.55; }
.analysis__verdict strong { color: #fff; }

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

.studio__footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(148, 163, 184, 0.16); }
.export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.export-row select {
  background: rgba(51, 65, 85, 0.8); color: #fff; border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.88rem;
}
.export-note { color: var(--slate-3); font-size: 0.8rem; margin: 10px 0 0; }

.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(--accent); transition: width 0.2s ease; }

.status { margin-top: 14px; font-size: 0.88rem; border-radius: var(--radius-sm); padding: 11px 14px; }
.status[data-tone="info"] { background: rgba(102, 126, 234, 0.14); color: #c7d0fb; }
.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; }

.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; }

.video-wrap { margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; max-height: 380px; }

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

.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--light { background: var(--white); }
.section--cream { background: var(--cream-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(32px, 4vw, 52px); text-align: center; }
.section__head p { color: var(--slate); font-size: 1.06rem; margin: 0; }
.section--dark .section__head p { color: var(--slate-3); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 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(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem;
}
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(--accent); box-shadow: var(--shadow-lg); }
a.card .card__more { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; margin-top: 12px; display: inline-block; }

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.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: 240px; scroll-snap-align: center; }
.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 img, .badge-link svg { height: 54px; width: auto; }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #5a6a80; 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(--accent); }
.faq summary {
  padding: 18px 52px 18px 22px; font-weight: 700; cursor: pointer; position: relative; list-style: none;
  font-size: 1.02rem;
}
.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(--accent-dark) 0%, #6b46c8 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(--accent-dark); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.cta-band .btn--primary:hover { background: var(--cream); }
.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.1); }
.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(--accent);
  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); }
.prose th { font-weight: 700; background: var(--cream-2); }
.prose figure { margin: 1.6em 0; }
/* tabindex="0" on the wrapper (set in build.mjs) 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(--accent); outline-offset: 4px; border-radius: 8px; }
.table-scroll table { margin: 0; }

.callout {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  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(--accent-dark); }
.callout--warn { background: #fef6e7; border-left-color: var(--amber); }
.callout--warn strong { color: #92610a; }

.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.98rem; max-width: 52ch; margin-inline: auto; }

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

.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; }
.footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.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;
}

/* A/B compare row */
.compare-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.compare-btn { font-variant-numeric: tabular-nums; min-width: 172px; }
.compare-btn.is-active { background: rgba(246, 135, 179, 0.16); border-color: var(--pink) !important; color: #fbcfe0 !important; }
.targets { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
