/* hidden must always win — author display rules otherwise override the UA sheet
   (this exact bug made the invisible results overlay swallow every click) */
[hidden] { display: none !important; }

/* Clef web — near-black ink surface, ivory notation, one gold accent. */

@font-face {
  font-family: 'Bravura';
  src: url('/fonts/Bravura.woff2') format('woff2'),
       url('/fonts/Bravura.woff') format('woff');
  font-display: block;
  font-weight: normal;
  font-style: normal;
}

:root {
  --ink: #141519;
  --ink-2: #1c1d22;   /* answer tiles, slightly lighter than bg */
  --ivory: #efece4;
  --gold: #b8862e;
  --gold-soft: #c99a44;
  --gray: #6d6e76;    /* muted captions */
  --gray-dim: #43444b;/* empty slots, hairlines */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* paper theme — landing sections outside the drill (see body.home) */
  --paper: #f4f0e6;
  --paper-2: #ece5d3;
  --paper-ink: #221f18;
  --paper-muted: #6d6555;
  --paper-line: rgba(34, 31, 24, 0.14);
  --paper-link: #8a6321;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  /* subtle vignette */
  background-image: radial-gradient(120% 90% at 50% 38%, #191a20 0%, #141519 55%, #101116 100%);
  color: var(--ivory);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--ink-2); color: var(--ivory); padding: 10px 14px;
  border: 1px solid var(--gray-dim); border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

.micro-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ===================== DRILL (above the fold) ===================== */
.drill {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 5vw, 56px) clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(18px, 3vh, 40px);
}

.drill-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* session slots */
.session { display: flex; flex-direction: column; gap: 12px; }
.slots { display: flex; gap: 6px; }
.slot {
  width: 16px; height: 4px; border-radius: 2px;
  background: var(--gray-dim);
  transition: background-color 240ms ease;
}
.slot.filled { background: var(--gold); }

/* countdown ring */
.ring-wrap { position: relative; width: 74px; height: 74px; }
.ring { width: 100%; height: 100%; display: block; }
.ring-track { fill: none; stroke: var(--gray-dim); stroke-width: 3; }
.ring-progress {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset 980ms linear;
}
.ring-time {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 18px; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ivory);
}

/* center staff */
.drill-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(14px, 3vh, 30px);
  text-align: center;
}
.caption { display: block; }
.staff-wrap {
  width: 100%;
  max-width: 860px;
}
.staff-svg { width: 100%; height: auto; overflow: visible; }

.staff-line, .ledger-line {
  stroke: var(--ivory); stroke-width: 1.4; opacity: 0.85;
}
.ledger-line { stroke-width: 1.6; }
.clef-glyph, .notehead-glyph, .keysig-glyph {
  fill: var(--ivory);
}
.keysig-glyph { fill: #d8d4c9; }
.note-stem { stroke: var(--ivory); stroke-width: 2.1; stroke-linecap: round; }

/* correct: subtle spring scale */
.notehead { transform-box: fill-box; }
.settle-spring { animation: spring 620ms cubic-bezier(.2,1.3,.3,1) both; }
@keyframes spring {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
.settle-fade { animation: fadepulse 400ms ease both; }
@keyframes fadepulse { 0%{opacity:.5} 100%{opacity:1} }

/* wrong: horizontal shudder of the whole staff */
.shudder { animation: shudder 300ms ease both; }
@keyframes shudder {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.crossfade { animation: crossfade 320ms ease both; }
@keyframes crossfade { 0%{opacity:1} 45%{opacity:.35} 100%{opacity:1} }

/* answer keys */
.answers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(6px, 1.4vw, 14px);
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.answers button {
  appearance: none;
  background: var(--ink-2);
  border: 1px solid #303138;
  border-radius: 14px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 30px);
  padding: clamp(14px, 2.4vh, 24px) 0;
  cursor: pointer;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.answers button:hover { background: #24252b; border-color: #3c3d45; }
.answers button:active { transform: translateY(1px) scale(0.98); }
.answers button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.answers button.reveal {
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* bottom row */
.drill-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
  min-height: 20px;
}
.streak { display: flex; align-items: center; color: var(--gray); }
.streak .diamond { color: var(--gold); font-size: 10px; }
.streak #streakVal { color: var(--ivory); }

.midi {
  display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: 0;
}
.midi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-dim); flex: none;
}
.midi.connected .midi-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.midi-name { font-family: var(--mono); font-size: 12px; color: var(--ivory); }
.midi-hint { font-style: italic; color: var(--gray); font-size: 13px; }
.midi.connected .midi-hint { color: var(--gray); }
.midi:not(.connected) .midi-name { display: none; }

/* ===================== RESULTS OVERLAY ===================== */
.results {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(16, 17, 22, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 260ms ease;
}
.results.show { opacity: 1; }
.results-card {
  width: min(460px, 100%);
  background: var(--ink-2);
  border: 1px solid #2c2d34;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
}
.results-card h2 {
  font-weight: normal; font-size: clamp(22px, 4vw, 28px);
  margin: 10px 0 22px;
}
.results-stats {
  display: flex; justify-content: center; gap: clamp(16px, 5vw, 40px);
  margin-bottom: 26px;
}
.results-stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat {
  font-size: clamp(28px, 6vw, 40px); color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }

.waitlist { text-align: left; margin-bottom: 18px; }
/* honeypot: off-screen, never display:none so naive bots still fill it */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.waitlist label { display: block; margin-bottom: 10px; text-align: center; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist input {
  flex: 1; min-width: 0; min-height: 44px;
  background: var(--ink); border: 1px solid #35363d; border-radius: 10px;
  color: var(--ivory); font-family: var(--serif); font-size: 16px;
  padding: 12px 14px;
}
.waitlist input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.waitlist button {
  background: var(--gold); color: #16130b; border: none; border-radius: 10px;
  font-family: var(--serif); font-size: 15px; padding: 12px 18px; min-height: 44px;
  cursor: pointer; white-space: nowrap;
}
.waitlist button:focus-visible { outline: 2px solid #16130b; outline-offset: 2px; }
.results-prompt { font-size: 15px; color: var(--gray); margin: 0 0 16px; text-align: center; }
.waitlist button:hover { background: var(--gold-soft); }
.waitlist-note { font-size: 13px; color: var(--gray); margin: 12px 2px 0; text-align: center; }

.again {
  background: transparent; border: 1px solid #35363d; border-radius: 10px;
  color: var(--ivory); font-family: var(--serif); font-size: 15px;
  padding: 12px 22px; cursor: pointer;
}
.again:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ===================== LANDING PAGE — PAPER THEME =====================
   Everything on the homepage outside the drill (.drill stays the dark ink
   field). Scoped to body.home so blog/privacy/terms/support pages — which
   share .site-footer, .waitlist etc. — are completely unaffected. */
body.home {
  background: var(--paper);
  background-image: none;
}

.paper-section {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(44px, 8vh, 88px) 22px;
  color: var(--paper-ink);
}
.section-kicker {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ---- hero ---- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 84px) 22px clamp(28px, 5vh, 48px);
  color: var(--paper-ink);
  text-align: center;
}
.hero-brand {
  font-family: var(--serif); font-size: 15px; color: var(--gold);
  letter-spacing: 0.02em; margin: 0 0 20px;
}
.hero-brand .glyph { margin-right: 6px; }
.hero-title {
  font-weight: normal;
  font-size: clamp(32px, 6.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero-title-sub { display: block; color: var(--paper-muted); font-size: 0.62em; margin-top: 8px; }
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--paper-muted);
  max-width: 560px;
  margin: 0 auto clamp(26px, 4vh, 38px);
}
.hero .waitlist { max-width: 460px; margin: 0 auto; text-align: left; }

/* store badge — deliberately disabled, drawn in CSS, never a real/dead link */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: clamp(18px, 3vh, 28px) auto 0;
  padding: 9px 16px;
  border: 1px dashed var(--paper-line);
  border-radius: 999px;
  color: var(--paper-muted);
  font-size: 13px; letter-spacing: 0.01em;
  cursor: default; user-select: none;
}
.store-badge-icon {
  width: 16px; height: 16px; border-radius: 5px; flex: none;
  background: linear-gradient(135deg, #b9b3a2, #cfc9ba);
}
.store-badge strong { color: var(--paper-muted); font-weight: 600; }

/* ---- shared waitlist forms in paper contexts (hero / founding / footer) ---- */
body.home .waitlist--hero,
body.home .waitlist--founding,
body.home .waitlist--footer {
  text-align: left;
}
body.home .waitlist--hero label,
body.home .waitlist--founding label,
body.home .waitlist--footer label {
  color: var(--paper-muted); text-align: left;
}
body.home .waitlist--hero input,
body.home .waitlist--founding input,
body.home .waitlist--footer input {
  background: #fff; border: 1px solid var(--paper-line); color: var(--paper-ink);
}
body.home .waitlist--hero input:focus-visible,
body.home .waitlist--founding input:focus-visible,
body.home .waitlist--footer input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
body.home .waitlist--hero .waitlist-note,
body.home .waitlist--founding .waitlist-note,
body.home .waitlist--footer .waitlist-note {
  color: var(--paper-muted); text-align: left;
}

/* ---- problem / agitation ---- */
.problem { text-align: left; }
.problem-copy {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
  color: var(--paper-ink);
  margin: 0;
}

/* ---- how it works ---- */
.how h2, .founding h2 {
  font-weight: normal;
  font-size: clamp(26px, 4.4vw, 36px);
  margin: 0 0 26px;
  color: var(--paper-ink);
}
.how-steps { list-style: none; margin: 0 0 clamp(26px, 4vh, 38px); padding: 0; }
.how-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding-top: clamp(20px, 3vh, 26px);
  border-top: 1px solid var(--paper-line);
}
.how-steps li:first-child { border-top: none; padding-top: 0; }
.how-num {
  font-family: var(--serif); font-size: 15px; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  flex: none;
}
.how-steps h3 { margin: 4px 0 6px; font-weight: normal; font-size: 19px; color: var(--paper-ink); }
.how-steps p { margin: 0; color: var(--paper-muted); }
.how-cta { margin: 0; }
.cta-link {
  color: var(--paper-link); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(184,134,46,0.4);
}
.cta-link:hover { border-bottom-color: var(--gold); }
.cta-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- screenshots ---- */
.screens h2 { margin-top: 0; }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(22px, 4vh, 34px);
}
.phone-frame {
  margin: 0; background: #101116; border-radius: 34px; padding: 10px;
  box-shadow: 0 18px 40px rgba(34,31,24,0.18), 0 2px 6px rgba(34,31,24,0.12);
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 24px; }
.phone-frame figcaption {
  margin-top: 14px; text-align: center; font-size: 14px; color: var(--paper-muted);
}

/* ---- founding member block ---- */
.founding {
  background: var(--paper-2);
  border-radius: 24px;
  max-width: 720px;
}
.founding-copy { color: var(--paper-muted); font-size: 16px; margin: 0 0 26px; max-width: 520px; }
.founding .waitlist { max-width: 460px; }

/* ---- footer (paper) ---- */
body.home .site-footer {
  background: transparent; color: var(--paper-muted);
  max-width: 680px; border-top: none;
}
body.home .site-footer strong { color: var(--paper-ink); }
body.home .site-footer .fineprint { color: var(--paper-muted); }
body.home .site-footer .site-nav a { color: var(--paper-link); border-bottom-color: rgba(138,99,33,0.3); }
body.home .site-footer .site-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
body.home .site-footer .site-nav--cluster a { color: var(--paper-muted); border-bottom-color: rgba(34,31,24,0.2); }
body.home .site-footer .site-nav--cluster a:hover { color: var(--paper-link); }

/* ---- mobile sticky CTA bar ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  min-height: 44px;
  background: var(--ink-2);
  border-top: 1px solid var(--gray-dim);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
}
.sticky-cta-text { font-size: 13px; color: var(--ivory); line-height: 1.3; }
.sticky-cta-btn {
  flex: none;
  background: var(--gold); color: #16130b; text-decoration: none;
  font-family: var(--serif); font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.sticky-cta-btn:hover { background: var(--gold-soft); }
.sticky-cta-btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
@media (min-width: 641px) {
  .sticky-cta { display: none !important; }
}

/* ===================== SEO CONTENT (below the fold) ===================== */
.reading {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) 22px clamp(40px, 8vh, 80px);
  border-top: 1px solid #212228;
}
.reading-head h1 {
  font-weight: normal;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.lede { font-size: clamp(17px, 2.4vw, 20px); color: #cdc9bf; }
.reading section { margin-top: clamp(36px, 6vh, 56px); }
.reading h2 {
  font-weight: normal;
  font-size: clamp(20px, 3.2vw, 26px);
  margin: 0 0 12px;
  color: var(--ivory);
}
.reading p { color: #b9b6ad; margin: 0 0 12px; }

/* .faq only appears on the homepage (paper theme) — not used by blog pages */
.faq {
  max-width: 680px; margin: 0 auto;
  padding: clamp(44px, 8vh, 88px) 22px clamp(56px, 10vh, 100px);
  color: var(--paper-ink);
}
.faq h2 {
  font-weight: normal; font-size: clamp(26px, 4.4vw, 36px);
  margin: 0 0 8px; color: var(--paper-ink);
}
.faq details {
  border-top: 1px solid var(--paper-line);
  padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--paper-line); }
.faq summary {
  cursor: pointer; color: var(--paper-ink); font-size: 17px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--paper-muted); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* footer */
.site-footer {
  max-width: 680px; margin: 0 auto;
  padding: clamp(30px, 6vh, 56px) 22px clamp(48px, 8vh, 80px);
  border-top: 1px solid #212228;
  color: #9a978f;
}
.site-footer strong { color: var(--ivory); font-weight: normal; }
.footer-cta {
  color: var(--gold-soft); text-decoration: none;
  border-bottom: 1px solid rgba(184,134,46,0.4);
}
.footer-cta:hover { border-bottom-color: var(--gold); }
.fineprint { font-size: 13px; color: var(--gray); margin-top: 22px; }

.site-nav { margin-top: 18px; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(184,134,46,0.3); }
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav--cluster { margin-top: 16px; gap: 14px; font-size: 13px; }
.site-nav--cluster a { color: var(--gray); border-bottom-color: rgba(184,134,46,0.2); }
.site-nav--cluster a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

/* ===================== MASTHEAD (blog pages) ===================== */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 680px; margin: 0 auto;
  padding: clamp(20px, 4vh, 32px) 22px 0;
}
.masthead .brand {
  font-family: var(--serif); color: var(--ivory); text-decoration: none;
  font-size: 17px; letter-spacing: 0.01em; white-space: nowrap;
}
.masthead .brand .glyph { color: var(--gold); margin-right: 6px; }
.masthead .brand:hover { color: var(--gold-soft); }
.masthead-nav { display: flex; gap: clamp(12px, 3vw, 22px); align-items: center; font-size: 13px; }
.masthead-nav a { color: var(--gray); text-decoration: none; white-space: nowrap; }
.masthead-nav a:hover { color: var(--ivory); }
.masthead-nav .masthead-cta {
  color: var(--gold-soft); border-bottom: 1px solid rgba(184,134,46,0.4);
}
.masthead-nav .masthead-cta:hover { border-bottom-color: var(--gold); }

/* ===================== BLOG INDEX ===================== */
.blog-hero { max-width: 680px; margin: 0 auto; padding: clamp(30px, 6vh, 56px) 22px 0; }
.blog-hero h1 {
  font-weight: normal; font-size: clamp(30px, 6vw, 46px); line-height: 1.15;
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.blog-list {
  max-width: 680px; margin: clamp(20px, 4vh, 36px) auto 0; padding: 0 22px clamp(56px, 10vh, 100px);
}
.blog-card {
  display: block; padding: 26px 0; border-top: 1px solid #212228;
  text-decoration: none; color: inherit;
}
.blog-list .blog-card:last-child { border-bottom: 1px solid #212228; }
.blog-card h2 {
  font-weight: normal; font-size: clamp(20px, 3.2vw, 25px); margin: 0 0 8px;
  color: var(--ivory); transition: color 160ms ease;
}
.blog-card:hover h2 { color: var(--gold-soft); }
.blog-card p { color: #b9b6ad; margin: 0; }

/* ===================== BLOG POST ===================== */
.post-meta {
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray); margin: 0 0 16px;
}
.tldr {
  background: var(--ink-2); border: 1px solid #2c2d34; border-radius: 12px;
  padding: 18px 20px; margin: 22px 0 0;
}
.tldr p { margin: 0; color: #cdc9bf; }
.tldr .micro-label { display: block; margin-bottom: 8px; }
.reading table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.reading th, .reading td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid #212228; color: #b9b6ad; }
.reading th { color: var(--ivory); font-weight: normal; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.reading ul, .reading ol { color: #b9b6ad; padding-left: 22px; margin: 0 0 12px; }
.reading li { margin-bottom: 8px; }
.reading a { color: var(--gold-soft); text-decoration: underline; text-decoration-color: rgba(184,134,46,0.35); }
.reading a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.post-cta {
  margin-top: clamp(36px, 6vh, 56px); padding: clamp(20px, 4vw, 30px);
  border: 1px solid #2c2d34; border-radius: 16px; background: var(--ink-2);
}
.post-cta h2 { margin-top: 0; }
.post-cta p { margin-bottom: 16px; }
.related-posts { margin-top: clamp(36px, 6vh, 56px); }
.related-posts h2 { margin-bottom: 8px; }
.related-posts ul { list-style: none; padding: 0; margin: 8px 0 0; }
.related-posts li { padding: 12px 0; border-top: 1px solid #212228; }
.related-posts li:last-child { border-bottom: 1px solid #212228; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 560px) {
  .answers { grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .answers button { border-radius: 11px; padding: 14px 0; }
  .drill-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .midi { align-self: flex-end; }
}

@media (max-width: 760px) {
  .screens-grid {
    grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto;
  }
  .how-steps li { grid-template-columns: auto 1fr; }
  /* leave room for the sticky CTA bar so the footer isn't hidden behind it */
  body.home .site-footer { padding-bottom: calc(clamp(48px, 8vh, 80px) + 64px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ring-progress { transition: none; }
  .settle-fade { animation: fadepulse 200ms ease both; }
  .crossfade { animation: crossfade 220ms ease both; }
}
