/* Deskrune mobile UX patches — 2026-05-08
   Audit-driven CSS-only fixes. No JS, no design changes.
   Loaded last so it overrides earlier mobile MQs. */

/* ===========================================================
   1. SAFE-AREA INSETS for iOS notch / Dynamic Island.
   The sticky sale banner sits at top:0 — without padding-top it
   slides under the notch on iPhone landscape and clips text.
   =========================================================== */
.deskrune-sale-banner {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
@media (max-width: 640px) {
  .deskrune-sale-banner {
    padding-top: max(9px, env(safe-area-inset-top));
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}
/* Footer respects bottom inset on iPhone */
footer.minimal,
footer.footer {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ===========================================================
   2. TAP TARGETS — WCAG 2.5.5 (≥44×44px)
   =========================================================== */

/* Sale banner CTA — was 32px → now 44px */
@media (max-width: 640px) {
  .deskrune-sale-banner a {
    min-height: 44px;
    padding: 8px 14px;
  }
}

/* Nav links — bare anchors had no minimum tap height */
@media (max-width: 760px) {
  nav .links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
  }
  nav .links {
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 14px;
  }
}

/* Comeback Coach controls — 10px padding → 44px min */
.cc-controls button {
  min-height: 44px;
  min-width: 44px;
}

/* Quiz back button — was ~24px tall */
.quiz-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

/* Quiz share buttons — 6px 12px */
.quiz-share button {
  min-height: 36px;
  padding: 8px 14px;
}

/* Friction-score range thumb — make sure tap area is large */
.fs-row input[type=range] {
  min-height: 44px;
}

/* Theme toggle when shown (it hides at 640px, but at 641-760 it shows) */
.theme-toggle {
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}

/* Cmd-K trigger when shown */
.cmdk-trigger {
  min-height: 36px;
}

/* Footer link rows — make individual links easy to tap */
@media (max-width: 640px) {
  footer .inner a,
  footer.minimal .inner a {
    display: inline-block;
    padding: 8px 4px;
    min-height: 44px;
    line-height: 28px;
  }
}

/* ===========================================================
   3. PREVENT HORIZONTAL SCROLL on 360px viewports
   =========================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tool cards on home — tighten padding so they don't punch out */
@media (max-width: 400px) {
  .tool-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .live-product {
    padding: 20px;
  }
  .section .section-inner,
  section .section-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ===========================================================
   4. FONT SIZES — body ≥16px to avoid iOS zoom on input focus
   =========================================================== */
@media (max-width: 640px) {
  /* iOS Safari auto-zooms when an input has font-size <16px.
     Force every form control to 16px on small screens. */
  input[type="email"],
  input[type="text"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Friction-score label small text — was 12.5px (illegible). 13px floor. */
.fs-row label small {
  font-size: 13px;
}

/* Quiz meta + foot text — was 12px */
.quiz-meta,
.cc-foot-text {
  font-size: 13.5px;
}

/* ===========================================================
   5. STICKY STACK COLLISION — sale banner + nav
   On mobile they consume ~100px of viewport. Add scroll margin
   so anchored sections aren't hidden by the stack.
   =========================================================== */
:target,
[id]:target {
  scroll-margin-top: 110px;
}
@media (max-width: 640px) {
  :target,
  [id]:target {
    scroll-margin-top: 130px;
  }
}

/* ===========================================================
   6. CLS — prevent layout shift from icons/svgs without dims
   =========================================================== */
nav .brand-glyph,
nav .brand svg {
  flex-shrink: 0;
}

/* ===========================================================
   7. TOUCH-TARGET SPACING — ≥8px between interactive elements
   =========================================================== */
.hero-actions,
.revenue-actions,
.buy-actions {
  gap: 12px;
}

/* Audience cards / quote cards / amazon nav — make sure rows breathe */
@media (max-width: 640px) {
  .audience-cards,
  .quote-cards {
    gap: 14px;
  }
}

/* ===========================================================
   8. AMAZON page — Removed 2026-05-08: .amazon-shell / .amazon-h3
   selectors do not exist in /amazon/ HTML; rule was dead.
   =========================================================== */

/* ===========================================================
   9. /q/ pages — narrow container guard
   =========================================================== */
@media (max-width: 640px) {
  .container.narrow {
    padding: 32px 18px;
  }
  article.section .container {
    padding: 32px 18px;
  }
}

/* ===========================================================
   10. LANGUAGE SWITCHER — mobile keyboard collision guard
   The buy page has both proof toast and lang switcher pinned
   to the bottom. Stack them with gap.
   =========================================================== */
@media (max-width: 640px) {
  .deskrune-lang-switcher {
    bottom: calc(env(safe-area-inset-bottom, 0) + 8px);
    z-index: 70;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ===========================================================
   11. MOBILE HAMBURGER NAV (≤720px)
   The desktop .links row has 6 anchors + a Cmd+K trigger + theme
   toggle — way too dense for mobile. Below 720px we hide the
   horizontal links, show a hamburger button, and slide a full-width
   panel down from the top with stacked vertical links (≥48px tap
   targets). Desktop nav (>720px) is untouched.

   The hamburger button + panel are injected by /assets/nav-mobile.js
   as siblings inside `nav .inner`. The script keeps the original
   .links row intact for desktop and just hides it via CSS on mobile.
   =========================================================== */

/* Hide the hamburger by default — only shown on mobile */
.nav-hamburger { display: none; }

/* Mobile panel hidden on desktop */
.nav-mobile-panel { display: none; }

@media (max-width: 720px) {
  /* Hide the horizontal links row on mobile */
  nav .inner > .links {
    display: none !important;
  }

  /* Hamburger button */
  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--navy, #1a1a2e);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-hamburger:focus-visible {
    outline: 2px solid var(--accent-dark, #d97706);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .nav-hamburger svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
  }
  .nav-hamburger .nav-hamburger-bar {
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 160ms ease;
    transform-origin: center;
  }
  /* Open state: morph into X */
  .nav-hamburger[aria-expanded="true"] .nav-hamburger-bar-1 {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-hamburger[aria-expanded="true"] .nav-hamburger-bar-2 {
    opacity: 0;
  }
  .nav-hamburger[aria-expanded="true"] .nav-hamburger-bar-3 {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile panel — slides down from top using transform only */
  .nav-mobile-panel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--warm-white, #fcfaf6);
    border-bottom: 0.5px solid var(--rule-gray, #e5e0d6);
    transform: translateY(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 280ms;
    visibility: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: 16px;
    /* Allow internal scroll if links overflow */
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-mobile-panel[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
  }

  /* Header row inside the panel — close button on the right */
  .nav-mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 14px;
    border-bottom: 0.5px solid var(--rule-gray, #e5e0d6);
    margin-bottom: 8px;
  }
  .nav-mobile-panel-header .panel-brand {
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--navy, #1a1a2e);
    font-size: 0.92rem;
    text-decoration: none;
  }
  .nav-mobile-panel-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--navy, #1a1a2e);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-mobile-panel-close:focus-visible {
    outline: 2px solid var(--accent-dark, #d97706);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .nav-mobile-panel-close svg {
    width: 22px;
    height: 22px;
  }

  /* Stacked links — full-width tap targets ≥48px */
  .nav-mobile-panel-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-mobile-panel-links li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav-mobile-panel-links a,
  .nav-mobile-panel-links button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 4px;
    color: var(--navy, #1a1a2e);
    background: transparent;
    border: 0;
    border-bottom: 0.5px solid var(--rule-gray, #e5e0d6);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-mobile-panel-links a:hover,
  .nav-mobile-panel-links a:focus-visible,
  .nav-mobile-panel-links button:hover,
  .nav-mobile-panel-links button:focus-visible {
    color: var(--accent-dark, #d97706);
    background: rgba(0, 0, 0, 0.02);
  }
  .nav-mobile-panel-links li:last-child a,
  .nav-mobile-panel-links li:last-child button {
    border-bottom: 0;
  }
  .nav-mobile-panel-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
  }
  .nav-mobile-panel-links .panel-key {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ink-gray, #4a4a55);
    opacity: 0.7;
    letter-spacing: 0.04em;
    border: 0.5px solid var(--rule-gray, #e5e0d6);
    padding: 2px 6px;
    border-radius: 4px;
  }

  /* Backdrop — fades in beneath the panel, soaks up taps */
  .nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
  }
  .nav-mobile-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  /* Body scroll-lock when panel is open */
  body.nav-mobile-open {
    overflow: hidden;
    /* Preserve scrollbar gutter to avoid layout shift */
    scrollbar-gutter: stable;
  }
}

/* Dark theme support for the mobile panel */
:root[data-theme="dark"] .nav-mobile-panel {
  background: var(--navy, #1a1a2e);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .nav-mobile-panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .nav-mobile-panel-header .panel-brand,
:root[data-theme="dark"] .nav-mobile-panel-close,
:root[data-theme="dark"] .nav-hamburger {
  color: var(--ink-gray, #e5e0d6);
}
:root[data-theme="dark"] .nav-mobile-panel-links a,
:root[data-theme="dark"] .nav-mobile-panel-links button {
  color: var(--ink-gray, #e5e0d6);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .nav-mobile-panel-links a:hover,
:root[data-theme="dark"] .nav-mobile-panel-links button:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .nav-mobile-panel,
  .nav-mobile-backdrop,
  .nav-hamburger .nav-hamburger-bar {
    transition: none !important;
  }
}

/* ===========================================================
   2026-05-08 LATE — defects from real iPhone Safari photos
   IMG_3669 horizontal scroll; IMG_3670 oversized reveal + full nav
   =========================================================== */

/* Stop horizontal scroll site-wide. Belt + suspenders. */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
/* Anything wider than viewport gets clipped instead of scrolled */
* { max-width: 100%; }
img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}
/* Comparison table is the most common overflow culprit on mobile */
.comparison-wrap { overflow-x: auto !important; max-width: 100% !important; }
.comparison-table { min-width: 0 !important; }

/* ── Brand reveal: HARD CAP on small screens.
      iPhone photo showed reveal eating ~60% of the viewport with the
      X-glyph alone. Force the whole block <140px tall on mobile so the
      hero headline is visible in the same fold.  */
@media (max-width: 640px) {
  .brand-reveal {
    padding: 16px 16px 12px !important;
    border-bottom: 1px solid var(--ds-rule, #E8E2D7) !important;
  }
  .brand-reveal-inner { max-width: 100% !important; }
  .brand-reveal-glyph {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto 6px !important;
  }
  .brand-reveal-tag {
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
    margin: 0 auto 6px !important;
  }
  .brand-reveal-meaning { margin-top: 4px !important; }
  .brm-word {
    font-size: 22px !important;
    margin-bottom: 4px !important;
  }
  /* Hide the etymology definition prose on phones — the wordmark is enough.
     Returning visitors and curious users can see it on tablet/desktop. */
  .brm-defs { display: none !important; }
}

/* SessionStorage skip — once the reveal has played in this tab, hide it. */
body.reveal-played .brand-reveal {
  display: none !important;
}

/* ── Force-collapse navigation on phones.
      Photo IMG_3669 shows Tools/Buy/About/Quiz/Amazon all visible on iPhone.
      The 640px breakpoint either isn't firing OR a higher-specificity rule
      is winning. Force-hide every <a> child of nav .links below 640px. */
@media (max-width: 640px) {
  nav .inner { padding: 10px 14px !important; gap: 8px !important; }
  nav .links { gap: 6px !important; flex-wrap: nowrap !important; }
  nav .links a {
    display: none !important;
  }
  /* Keep ONLY the Shop link visible alongside icons */
  nav .links a[href="/shop/"],
  nav .links a[href$="/shop/"]:first-of-type {
    display: inline !important;
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  nav .cmdk-trigger,
  nav .theme-toggle {
    padding: 6px 8px !important;
  }
  nav .cmdk-trigger .cmdk-trigger-key { display: none !important; }
}
@media (max-width: 420px) {
  nav .links a { display: none !important; }
  nav a.brand span { font-size: 11px !important; letter-spacing: 0.14em !important; }
}

/* Hero VP — make sure the two-column grid fully collapses on phones and
   the product card doesn't push width past viewport. */
@media (max-width: 880px) {
  .hero-vp { padding: 24px 16px 32px !important; }
  .hero-vp .hero-inner-vp { grid-template-columns: 1fr !important; gap: 24px !important; }
  .hero-vp h1 { font-size: clamp(28px, 6.5vw, 36px) !important; }
  .hero-product-card { padding: 20px !important; }
}

/* Sticky buy bar — keep it in viewport on small phones, single-row */
@media (max-width: 480px) {
  .sticky-buy-bar { left: 6px !important; right: 6px !important; bottom: 6px !important; padding: 8px 10px !important; }
  .sticky-buy-bar .sbb-text strong { font-size: 13px !important; }
  .sticky-buy-bar .sbb-actions .hero-action { font-size: 12px !important; padding: 8px 10px !important; min-height: 36px !important; }
}

/* Language switcher — don't overlap sticky buy bar */
@media (max-width: 480px) {
  .deskrune-lang-switcher { right: 6px !important; bottom: 76px !important; max-width: calc(100vw - 12px) !important; }
}

/* Aurora canvas — force max-width to viewport, prevent it from scaling beyond */
.aurora-stage,
.aurora-stage canvas {
  max-width: 100vw !important;
  max-height: 100% !important;
}

/* ===========================================================
   2026-05-08 LATER — /amazon/ filter-bar overlap on real iPhone
   User photo showed filter chips and "Sort by · Compare mode"
   overlapping at 390px. Force vertical stack of the controls
   row, scroll-snap chips, full-width controls below.
   Breakpoint is 760px so iPad-mini and Pro-Max also get it.
   =========================================================== */

@media (max-width: 760px) {
  .az-controls {
    padding: 10px 14px !important;
    top: 0 !important;             /* don't double-stack with global nav */
  }
  .az-controls-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .az-filter-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    padding: 4px 2px 6px !important;
    margin: 0 -4px !important;       /* let chips bleed to viewport edge */
    /* Soft fade-out on the right edge to hint scrollability */
    mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent);
  }
  .az-filter-row::-webkit-scrollbar { display: none !important; }
  .az-chip {
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    min-height: 44px !important;     /* WCAG 2.5.5 tap target */
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  /* Sort + compare row — full-width, large tap targets */
  .az-sort-row,
  .az-controls-inner > .az-sort,
  .az-controls-inner > .az-compare-toggle {
    width: 100% !important;
    min-height: 44px !important;
  }
  .az-sort {
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    padding-right: 36px !important;  /* keep room for chevron */
  }
  .az-compare-toggle {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    text-align: center !important;
  }
  /* Detail dialog full-bleed on mobile */
  .az-detail { width: 100vw !important; max-width: 100vw !important; max-height: 100vh !important; border-radius: 0 !important; }
  .az-detail-inner { padding: 56px 20px 24px !important; max-height: 100vh !important; }
  .az-compare-dialog { width: 100vw !important; max-width: 100vw !important; max-height: 100vh !important; border-radius: 0 !important; }
}

/* iPad portrait shouldn't get the column stack — only phones */
@media (min-width: 600px) and (max-width: 760px) {
  .az-controls-inner { flex-direction: row !important; flex-wrap: wrap !important; }
  .az-filter-row { flex: 1 1 100% !important; }
  .az-sort, .az-compare-toggle { flex: 1 1 auto !important; width: auto !important; }
}

/* /tools/ and /library/ index pages — same prevention.
   Already use card grids; this just guarantees no h-overflow. */
@media (max-width: 760px) {
  .tool-cards, .products-rich, .lib-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Bulletproof skip-to-content sr-only — replicate from visual-pass.css
   so pages that don't load visual-pass (like /amazon/) also get it. */
.skip-to-content {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  top: auto !important; left: auto !important;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  position: fixed !important;
  width: auto !important; height: auto !important;
  margin: 0 !important; padding: 12px 18px !important;
  overflow: visible !important;
  clip: auto !important;
  top: 12px !important; left: 12px !important;
  z-index: 1000 !important;
  background: #1A1814 !important;
  color: #F0E9DC !important;
  font-family: var(--ds-font-sans, -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-weight: 600 !important; font-size: 14px !important;
  border-radius: 8px !important;
  outline: 2px solid #C9613F !important;
  outline-offset: 3px !important;
  text-decoration: none !important;
}

/* ===========================================================
   2026-05-08 PERSONA-CRITIQUE FIXES
   Added per the 6-persona synthesis pass.
   =========================================================== */

/* Author note + price anchor block (under hero on /kits/adhd/) */
.kit-author-note {
  background: var(--ds-surface-2, #F2EDE3);
  padding: 22px 16px;
  border-bottom: 1px solid var(--ds-rule, #E8E2D7);
}
.kit-author-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.kit-author-line {
  font-family: var(--ds-font-serif, Fraunces, Georgia, serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--ds-ink-soft, #3F3B36);
  margin: 0 0 10px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.kit-author-line a {
  color: var(--ds-accent-ink, #6E2E18);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kit-author-anchor {
  font-family: var(--ds-font-sans, system-ui, sans-serif);
  font-size: 14px;
  color: var(--ds-ink-soft, #3F3B36);
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.kit-author-anchor strong { color: var(--ds-ink, #1A1814); }
.kit-author-anchor s { opacity: 0.6; }

/* Is this you? fit-check list */
.kit-fit-check {
  background: var(--ds-bg);
  padding: var(--ds-s-7, 48px) 16px;
}
.fit-check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 18px;
  display: grid;
  gap: 12px;
}
.fit-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--ds-font-serif, Fraunces, Georgia, serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--ds-ink, #1A1814);
  padding: 14px 18px;
  background: var(--ds-surface, #FFFFFF);
  border: 1px solid var(--ds-rule, #E8E2D7);
  border-radius: 8px;
}
.fit-check-mark {
  font-size: 20px;
  line-height: 1;
  color: var(--ds-accent, #C9613F);
  flex-shrink: 0;
  font-family: var(--ds-font-sans, system-ui, sans-serif);
}
.fit-check-fallback {
  font-size: 14px;
  color: var(--ds-ink-soft, #3F3B36);
  margin-top: 16px;
}
.fit-check-fallback a {
  color: var(--ds-accent-ink, #6E2E18);
  text-decoration: underline;
  font-weight: 600;
}

/* Pairs well with module */
.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.pair-card {
  background: var(--ds-surface, #FFFFFF);
  border: 1px solid var(--ds-rule, #E8E2D7);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  color: var(--ds-ink, #1A1814);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.pair-card:hover {
  transform: translateY(-2px);
  border-color: var(--ds-rule-strong, #CFC6B6);
  box-shadow: 0 12px 28px -10px rgba(26, 24, 20, 0.10);
}
.pair-tag {
  font-family: var(--ds-font-sans, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ds-accent-ink, #6E2E18);
  background: var(--ds-accent-soft, #FCE8E2);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.pair-card h3 {
  font-family: var(--ds-font-serif, Fraunces, Georgia, serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0;
  color: var(--ds-ink, #1A1814);
}
.pair-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ds-ink-soft, #3F3B36);
}
.pair-cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--ds-font-sans, system-ui, sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--ds-accent-ink, #6E2E18);
}

/* Micro-trust line under hero buy buttons */
.hero-microtrust,
.hpc-microtrust {
  font-family: var(--ds-font-sans, system-ui, sans-serif);
  font-size: 12px;
  color: var(--ds-ink-faint, #6F6A60);
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}
.hpc-microtrust {
  text-align: center;
  margin-top: 12px;
}

/* Proof invite link */
.proof-invite {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ds-ink-soft, #3F3B36);
}
.proof-invite a {
  font-weight: 600;
  color: var(--ds-accent-ink, #6E2E18);
  text-decoration: underline;
}

/* Dark-mode parity */
:root[data-theme="dark"] .kit-author-note { background: var(--ds-surface-2); border-bottom-color: var(--ds-rule); }
:root[data-theme="dark"] .kit-author-line { color: var(--ds-ink-soft); }
:root[data-theme="dark"] .kit-author-line a { color: var(--ds-accent); }
:root[data-theme="dark"] .kit-author-anchor strong { color: var(--ds-ink); }
:root[data-theme="dark"] .fit-check-list li { background: var(--ds-surface); border-color: var(--ds-rule); color: var(--ds-ink); }
:root[data-theme="dark"] .pair-card { background: var(--ds-surface); border-color: var(--ds-rule); color: var(--ds-ink); }
:root[data-theme="dark"] .pair-tag { color: var(--ds-accent); background: var(--ds-accent-soft); }
:root[data-theme="dark"] .pair-card p { color: var(--ds-ink-soft); }
:root[data-theme="dark"] .pair-cta { color: var(--ds-accent); }
:root[data-theme="dark"] .fit-check-fallback a,
:root[data-theme="dark"] .proof-invite a { color: var(--ds-accent); }

/* Mobile spacing tweaks */
@media (max-width: 640px) {
  .kit-author-note { padding: 18px 14px; }
  .kit-fit-check { padding: 32px 14px; }
  .fit-check-list li { font-size: 15px; padding: 12px 14px; }
  .pair-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===========================================================
   Polish pass — 2026-05-09 (post-Round-B)
   Small refinements while the polish gate is freshly written.
   =========================================================== */

/* Fit-check list — desktop hover state + tabular figures on prices */
@media (hover: hover) {
  .fit-check-list li {
    transition: border-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fit-check-list li:hover {
    border-color: var(--ds-rule-strong, #CFC6B6);
    transform: translateX(2px);
  }
}

/* Tabular figures on every price-like element so the columns line up */
.hpc-price .now,
.hpc-price .was,
.pc-price .pc-now,
.pc-price .pc-was,
.live-price .price-now,
.live-price .price-was,
.deskrune-countdown {
  font-variant-numeric: tabular-nums;
}

/* Pair-card icon prefix so the deeper-read affordance reads at a glance */
.pair-card .pair-cta::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
}

/* Hero microtrust gets a hairline to set it apart from the trust strip */
.hero-microtrust {
  border-top: 1px solid var(--ds-rule, #E8E2D7);
  padding-top: 12px;
  margin-top: 14px;
}
:root[data-theme="dark"] .hero-microtrust {
  border-top-color: rgba(240, 233, 220, 0.12);
}

/* Author-note serif italic — slight letter-spacing for readability */
.kit-author-line {
  letter-spacing: 0.005em;
}

/* Polish: kit-fit-check section padding rhythm matches other sections */
@media (min-width: 641px) {
  .kit-fit-check { padding: var(--ds-s-9, 96px) var(--ds-s-5, 24px); }
}

/* Polish: brand-reveal etymology dot color flips to accent in dark mode
   too (was using --ds-accent which already flips, but the box-shadow
   bloom didn't — pin it here). */
:root[data-theme="dark"] .brm-dot {
  text-shadow: 0 0 0 var(--ds-accent);
}

/* Theme-color meta — visual continuity with sale banner */
/* (this is a CSS comment because the actual <meta name="theme-color">
   tags belong in HTML; documenting here for the next HTML pass) */
