/* DotCheck storefront — shared design system (WM3) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #08080a;
  --ink-elevated: #121216;
  --surface: #ffffff;
  --surface-muted: #f4f5f4;
  --line: #e2e4e2;
  --line-hover: #c8cbc8;
  --text: #1a1a1a;
  --text-muted: #5a5c5a;
  --text-faint: #6e706e;
  --muted: var(--text-muted);
  --signal: #24963f;
  --signal-hover: #1c7a33;
  --danger: #dc303a;
  --band-mid: #9a7b2f;
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-soft: rgba(255, 255, 255, 0.86);
  /* Regard scale — matches extension DOT_HOVER_SCALE (golden ratio) */
  --phi: 1.618034;

  /* Legacy aliases used by page-local CSS */
  --primary-green: var(--signal);
  --dark-green: var(--signal-hover);
  --text-dark: var(--text);
  --text-light: var(--text-muted);
  --bg-light: var(--surface-muted);
  --border-light: var(--line);
  --error-red: var(--danger);

  --font: "Outfit", "Segoe UI", sans-serif;
  /* Brand wordmark tracking (identity tokens.json wordmarkTrackingEm) */
  --tracking-wordmark: -0.055em;
  --text-display: clamp(2.75rem, 8vw, 4.25rem);
  --text-h1: clamp(1.75rem, 3vw, 2.25rem);
  --text-h2: 1.35rem;
  --text-body: 1rem;
  --text-small: 0.9rem;
  --leading-body: 1.6;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px; /* ≈ 24 × φ — happy accident, keep */
  --space-7: 56px;
  --space-8: 72px;
  --section-y: clamp(2.5rem, 6vw, 4rem);
  --measure: 40rem;
  --measure-prose: 36rem;
  --measure-wide: 68rem;
  --radius-sm: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 280ms;
  --nav-h: 56px;

  /* Near-black scrollbars (W4 / LP-SCROLLBAR) — ink track, readable thumb (not same as track). */
  --scroll-track: #000000;
  --scroll-thumb: #3a3a40;
  --scroll-thumb-hover: #52525a;
  /* Webkit track/thumb width — same recipe on every page (incl. home document bar). */
  --scroll-size: 10px;
}

::selection {
  background: rgba(36, 150, 63, 0.14);
  color: var(--text);
}

.page-hero ::selection,
.hero ::selection,
.checkout-summary ::selection {
  background: rgba(36, 150, 63, 0.28);
  color: var(--on-ink);
}

html {
  scroll-behavior: smooth;
  /* LP-CHROME-1PCT: same layout width whether the page needs a scrollbar or not (nav stays put). */
  scrollbar-gutter: stable;
  scroll-padding-top: var(--nav-h);
  /*
   * LP-SCROLLBAR: always paint the dark track. Short pages (Check) otherwise leave an empty
   * light gutter from scrollbar-gutter:stable — reads as a white dead bar.
   * Home uses this same document bar (no nested .scroll-container scroller).
   */
  overflow-y: scroll;
}

/* Hash targets under the fixed header.
   html already uses scroll-padding-top: var(--nav-h) — only a slight lead above the title. */
#ai-index,
#subscribe {
  scroll-margin-top: 0.5rem;
}
#extension,
#app,
#reports,
#try {
  scroll-margin-top: 0.5rem;
}
.use-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}
.use-chooser .button {
  margin: 0;
  text-decoration: none;
}
.use-chooser .button[aria-current="true"] {
  border-color: var(--on-ink);
  background: rgba(255, 255, 255, 0.08);
}


/*
 * LP-SCROLLBAR: every scroll surface (viewport, Check lists, curls, textareas).
 * Selective selectors left OS-light bars on Check and other overflow panels.
 */
*,
*::before,
*::after {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: var(--scroll-size);
  height: var(--scroll-size);
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 1px solid var(--scroll-track);
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  text-align: start;
  caret-color: var(--ink);
  /* Document scrolls on html — do not let body paint a second (often light) bar. */
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  top: -48px;
  inset-inline-start: var(--space-3);
  left: auto;
  z-index: 1001;
  background: var(--signal);
  color: var(--on-ink);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-2);
  outline: 2px solid var(--on-ink);
  outline-offset: 2px;
}

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

/* —— Nav —— */
/* Only the site header (direct child of body). In-page TOCs also use <nav aria-label>. */
body > nav[aria-label],
body > nav[role="navigation"] {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  left: auto;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav .logo {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--on-ink);
  text-decoration: none;
  letter-spacing: var(--tracking-wordmark);
  margin: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

nav .logo:hover {
  color: var(--on-ink);
  opacity: 0.92;
}

nav .logo:active {
  opacity: 0.78;
}

nav .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.35rem;
  min-width: 0;
  margin-inline-start: auto;
  flex: 0 1 auto;
}

nav .links a {
  display: inline-block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  background: transparent;
  text-transform: none;
  box-shadow: none;
  white-space: normal;
  line-height: 1.25;
  max-width: 12rem;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

nav .links a:hover {
  color: var(--on-ink);
  background: transparent;
  transform: none;
  box-shadow: none;
}

nav .links a:active {
  opacity: 0.78;
}

nav .links a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

nav .links a#authButton {
  display: inline-flex;
  flex-direction: row; /* icon at inline-start in LTR and RTL */
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  /* Isolate G + localized label so Arabic/Hebrew bidi does not reorder flex items */
  unicode-bidi: isolate;
  /* LP-NAV-STILL: collapsed by default (cold + signed-in geometry — no empty gap). */
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-inline: 0;
  /* Cancel .links column-gap so a zero-width control does not nudge How…Check */
  margin-inline: 0;
  margin-inline-start: -0.35rem;
  border-bottom-color: transparent;
  pointer-events: none;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

/* FOUC: cold pending (no Firebase yet) stays collapsed until data-auth-ready.
   Optimistic out / ready open rules below beat this (explicit :not(ready) + attr). */
nav .links a#authButton:not([data-auth-ready]) {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-inline: 0;
  margin-inline-start: -0.35rem;
  pointer-events: none;
}

/* Resolved signed-out: Sign in open (after soft unroll writes data-nav-auth=out).
   Must include :not([data-auth-ready]) so mid-reveal out wins over the FOUC collapse
   (equal-specificity alone was order-fragile). flex-shrink:0 + 16rem fits long labels
   (Přihlásit se / Iniciar sesión / تسجيل الدخول) so crowded locale navs cannot crush
   the control back to a zero-width sliver. */
html[data-nav-auth='out'] nav .links a#authButton,
html[data-nav-auth='out'] nav .links a#authButton:not([data-auth-ready]),
nav .links a#authButton[data-auth-ready]:not([hidden]) {
  max-width: 16rem;
  flex-shrink: 0;
  opacity: 1;
  padding-inline: 0.65rem;
  margin-inline-start: 0;
  pointer-events: auto;
}

/* Cold → out (or in→out): soft natural unroll — gentle start, long settle.
   Twins nav-auth.js NAV_AUTH_*_MS; Google G peeks ~opacity delay; home AI-index blinks then. */
nav .links a#authButton.nav-auth-reveal {
  /* Soft ease-in-out (not ease-out pop): unrolls like fabric, not a snap. */
  --nav-auth-ease: cubic-bezier(0.33, 0.0, 0.2, 1);
  transition:
    max-width 4000ms var(--nav-auth-ease),
    padding-inline 4000ms var(--nav-auth-ease),
    margin-inline-start 4000ms var(--nav-auth-ease),
    opacity 2800ms var(--nav-auth-ease) 520ms,
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  nav .links a#authButton.nav-auth-reveal {
    transition:
      color var(--dur-fast) var(--ease-out),
      border-color var(--dur-fast) var(--ease-out),
      background var(--dur-fast) var(--ease-out);
  }
}

/* Signed-in: fully out of flow before paint — four links stay put across navigations. */
html[data-nav-auth='in'] nav .links a#authButton,
nav .links a#authButton[hidden] {
  display: none !important;
}

nav .links a#authButton[aria-busy='true'] {
  opacity: 0.72;
  pointer-events: none;
}

nav .links a#authButton .nav-auth-label {
  line-height: 1.2;
  unicode-bidi: isolate;
}

nav .links a#authButton .icon-google,
nav .icon-google {
  /* Multicolor mark — do not inherit nav text fill; never mirror in RTL */
  color: initial;
  flex-shrink: 0;
  display: block;
  transform: none;
}

html[dir='rtl'] nav .links a#authButton .icon-google,
html[dir='rtl'] nav .icon-google {
  transform: none;
}

nav .links a[aria-current="page"] {
  color: var(--on-ink);
  border-bottom-color: var(--signal);
  background: transparent;
}

/* Mobile menu toggle — desktop keeps the full inline link row (hidden control). */
.nav-menu-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  margin-inline-start: auto;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-ink);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  line-height: 0;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.nav-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.nav-menu-toggle-bars,
.nav-menu-toggle-bars::before,
.nav-menu-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.nav-menu-toggle-bars {
  position: relative;
}

.nav-menu-toggle-bars::before,
.nav-menu-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-menu-toggle-bars::before {
  top: -6px;
}

.nav-menu-toggle-bars::after {
  top: 6px;
}

/* Open: bars → quiet X */
body > nav[data-nav-open='true'] .nav-menu-toggle-bars {
  background: transparent;
}

body > nav[data-nav-open='true'] .nav-menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body > nav[data-nav-open='true'] .nav-menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Language switcher + Made in the EU (colophon stamp) —— */
footer .footer-end {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-inline-start: auto;
}

footer .lang-switch {
  display: flex;
  align-items: center;
}

footer .footer-made-eu {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--on-ink-muted);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

footer .footer-made-eu .footer-eu-flag,
footer .footer-eu-flag {
  display: block;
  flex: 0 0 auto;
  /* Match language select inner height (set by i18n.js); width from 3:2 ratio */
  height: var(--footer-lang-height, 2rem);
  width: auto;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

html[dir='rtl'] footer .footer-end {
  flex-direction: row-reverse;
}

.lang-switch-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding-inline: 0.65rem 1.75rem;
  padding-block: 0.35rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.75' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  max-width: 11rem;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.lang-switch-select:hover,
.lang-switch-select:focus-visible {
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.lang-switch-select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.lang-switch-select option {
  color: var(--text);
  background: var(--surface);
}

/* RTL: chevron sits on the inline-start side of the select */
html[dir='rtl'] .lang-switch-select {
  background-position: left 0.55rem center;
}

/* —— Footer (colophon): legal left, lang + EU right —— */
footer[role="contentinfo"],
body > footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  font-size: var(--text-small);
}

footer p {
  margin: 0;
  color: var(--on-ink-muted);
  text-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

footer a,
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-inline-start: 0;
  transition: color var(--dur-fast) var(--ease-out);
}

footer a:hover,
.footer-links a:hover {
  color: var(--on-ink);
  text-decoration: none;
}

footer a[aria-current="page"] {
  color: var(--on-ink);
  border-bottom: 1px solid var(--signal);
}

/* —— Type —— */
h1,
h2,
h3,
p {
  text-shadow: none;
}

.page-title,
.display {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

.section-title {
  font-size: var(--text-h1);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 var(--space-3);
  text-align: center;
}

.section-lead {
  font-size: var(--text-small);
  color: var(--text-muted);
  max-width: var(--measure-prose);
  margin: 0 auto var(--space-5);
  text-align: center;
  line-height: 1.55;
}

.body-copy {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: var(--leading-body);
  max-width: var(--measure);
}

/* —— Layout —— */
.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--section-y) 0;
}

.section-enter {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .section-enter.is-pending {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out);
  }

  .section-enter.is-pending.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Buttons (W4: ink/white CTAs; signal = accent only) —— */
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.button:hover {
  background: var(--ink-elevated);
  color: var(--on-ink);
  box-shadow: none;
}

/* Quiet press — intentional, not bouncy */
.button:active {
  background: var(--ink);
  color: var(--on-ink);
  transform: translateY(1px);
  opacity: 0.92;
}

.button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}

.button-quiet {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.button-quiet:hover {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}

.hero .button:not(.button-ghost),
.page-hero .button:not(.button-ghost) {
  background: var(--on-ink);
  color: var(--ink);
  border-color: var(--on-ink);
}

.hero .button:not(.button-ghost):hover,
.page-hero .button:not(.button-ghost):hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero .button-ghost,
.page-hero .button-ghost {
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .button-ghost:hover,
.page-hero .button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--on-ink);
  color: var(--on-ink);
}

/* —— Page hero (Why / simple pages) —— */
.page-hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.page-hero .display,
.page-hero h1 {
  color: var(--on-ink);
  margin: 0 0 var(--space-3);
}

.page-hero .hero-tag {
  color: var(--on-ink-soft);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 auto;
  max-width: var(--measure-prose);
  line-height: 1.5;
}

/* —— Trust line (languages row, then honesty) —— */
.trust-line {
  max-width: var(--measure-prose);
  margin: var(--space-4) auto 0;
  padding: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--on-ink-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-line-langs,
.trust-line-primary {
  display: block;
}

.trust-line a {
  color: var(--on-ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.trust-line a:hover {
  color: var(--on-ink);
}

/* —— Motion —— */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-lead,
  .hero-cta,
  .hero-check-link,
  .trust-line,
  .section-enter,
  .panel,
  .compose,
  .button,
  .page-main .status-card,
  body > nav:has(.nav-menu-toggle) .links {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body > nav:has(.nav-menu-toggle):not([data-nav-open='true']) .links {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* —— Home layout shell —— */
/*
 * LP-HOME-SCROLL: same document scrollbar as /how|/check|… (html overflow-y:scroll +
 * shared --scroll-* recipe). .scroll-container is only a layout wrapper under the
 * fixed nav — no nested overflow, no gutter pull, no second bar.
 */
.scroll-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: var(--nav-h);
  min-height: 0;
}

/* —— Home hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  margin-top: 0;
  padding: 0;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 1;
  transform: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure);
  /* Under canvas DotCheck + tagline. Prefer --hero-lockup-clear from hero-dots.js
     (measured tagline bottom + gap). Fallback keeps CTAs clear before JS runs. */
  margin: var(
      --hero-lockup-clear,
      max(14rem, calc((100svh - var(--nav-h)) * 0.42 + 10.5rem))
    )
    auto 0;
  padding: 0 var(--space-5) clamp(2rem, 6vh, 4rem);
  text-align: center;
  color: var(--on-ink);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--on-ink-soft);
  margin: 1.25rem auto 0;
  max-width: 34rem;
  text-wrap: pretty;
  animation: heroRise 0.9s var(--ease-out) 0.25s both;
}

.hero-lead br {
  display: block;
  content: "";
  margin-top: 0.2em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  animation: heroRise 0.9s var(--ease-out) 0.4s both;
}

.hero-cta .button {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 0;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
  line-height: 1.25;
}

.hero-check-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--on-ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  animation: heroRise 0.9s var(--ease-out) 0.5s both;
}

.hero-check-link:hover {
  color: var(--on-ink-soft);
}

.hero-check-link:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.hero .trust-line {
  margin-top: var(--space-3);
  animation: heroRise 0.9s var(--ease-out) 0.55s both;
}

/* Home AI index product-demo dot — product-dot size, upper-right of hero animation */
.home-ai-index-host {
  position: absolute;
  z-index: 3;
  top: clamp(1.1rem, 3.5vh, 2.25rem);
  inset-inline-end: clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroRise 0.9s var(--ease-out) 0.05s both;
  pointer-events: none;
}

.home-ai-index-dot {
  position: relative;
  /* Match extension / demo score dots (~12px), not a oversized badge */
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.45);
  appearance: none;
  -webkit-appearance: none;
}

.home-ai-index-dot::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.home-ai-index-dot:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

/* Product tip chrome via .ext-demo-tip (signal edge); host only places the layer */
.home-ai-index-tip {
  position: fixed;
  z-index: 2147483646;
  pointer-events: none;
}

.home-ai-index-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(8, 8, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.home-ai-index-backdrop[hidden] {
  display: none !important;
}

.home-ai-index-dialog {
  width: min(100%, 26rem);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-inline-start: 2px solid var(--signal);
  padding: var(--space-5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-align: start;
}

.home-ai-index-dialog-title {
  margin: 0 0 var(--space-3);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.home-ai-index-dialog-body {
  margin: 0 0 var(--space-5);
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--text);
}

.home-ai-index-dialog-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.home-ai-index-dialog-how,
.home-ai-index-dialog-close {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

html.home-ai-index-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .home-ai-index-host,
  .home-ai-index-dot {
    animation: none;
    transition: none;
  }
}

/* —— Home answer shelf (LP-SEO crawlable quote) —— */
.home-answer {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding-top: clamp(2.25rem, 6vh, 3.5rem);
  padding-bottom: clamp(2.25rem, 6vh, 3.5rem);
}

.home-answer-lead {
  max-width: 36rem;
  margin: 0 auto;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text);
}

.home-answer-honesty {
  margin: var(--space-2) auto 0;
  max-width: 36rem;
  font-size: var(--text-small);
  color: var(--text-muted);
}

.home-answer-links {
  margin: var(--space-4) auto 0;
  font-size: var(--text-small);
}

.home-answer-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-answer-links a:hover {
  color: var(--signal);
}

.home-answer-sep {
  color: var(--text-faint);
}

/* Verify desk — quiet recipient record surface (no marketing hero). */
.verify-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}

.verify-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.verify-lead {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
  max-width: 36rem;
}

.verify-tools {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.verify-id-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.verify-id-row input {
  flex: 1 1 12rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}

.verify-drop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    border-style var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.verify-drop:hover,
.verify-drop:focus-visible,
.verify-drop.is-drag {
  border-style: solid;
  border-color: var(--signal);
  color: var(--text);
  outline: none;
}

.verify-drop-lead {
  margin: 0;
  max-width: 22rem;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: inherit;
}

.verify-drop-formats {
  margin: 0;
  max-width: 24rem;
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--text-faint, var(--text-muted));
  opacity: 0.85;
}

.verify-drop-privacy {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

.verify-status {
  margin: 0 0 0.35rem;
  line-height: 1.5;
  font-weight: 500;
}

.verify-status-strong {
  color: var(--signal-hover);
}

.verify-status-weak {
  color: var(--text);
}

.verify-status-manifest {
  color: var(--text);
}

.verify-status-none {
  color: var(--danger);
}

.verify-batch-line {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.verify-siblings {
  margin: 0 0 var(--space-5);
}

.verify-siblings-heading {
  margin: 0 0 var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
}

.verify-siblings-table-wrap {
  overflow-x: auto;
}

.verify-siblings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  line-height: 1.4;
}

.verify-siblings-table th,
.verify-siblings-table td {
  text-align: start;
  padding: 0.4rem 0.55rem 0.4rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.verify-siblings-table th {
  font-weight: 600;
  color: var(--text-muted);
}

.verify-siblings-table tr.is-selected td {
  color: var(--text);
  font-weight: 500;
}

.verify-siblings-table a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.verify-status-withdrawn,
.verify-status-superseded {
  color: var(--danger);
}

.verify-status-sample {
  color: var(--text);
}

.verify-status-note {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  line-height: 1.5;
}

.verify-reading {
  margin: 0 0 var(--space-4);
}

.verify-score {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.verify-zones {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.verify-zone {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  background: var(--surface);
}

.verify-zone h2 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verify-zone dl {
  margin: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.4rem 0.75rem;
  font-size: 0.95rem;
}

.verify-zone dt {
  color: var(--text-muted);
}

.verify-zone dd {
  margin: 0;
}

.verify-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.verify-band {
  margin: 0 0 var(--space-3);
  line-height: 1.5;
}

.verify-limits {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.verify-declared-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.verify-hash-note {
  margin: 0.75rem 0 0;
}

.verify-error,
.verify-loading {
  margin: var(--space-3) 0;
  color: var(--text-muted);
}

.verify-error {
  color: var(--danger);
}

/* Verify closer — same answer-shelf recipe as Home / Check guest (full-bleed, middots). */
.verify-answer {
  border-top: 1px solid var(--line);
}

.verify-answer .home-answer-honesty {
  margin-top: 0;
}

.verify-answer .home-answer-links {
  margin-top: var(--space-4);
}

/* —— Pricing —— */
.features {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3.5rem, 9vh, 6rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

.pricing-lead {
  /* uses .section-lead */
}

.billing-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-5);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-sizing: border-box;
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  white-space: nowrap;
  line-height: 1.25;
  max-width: 100%;
  box-sizing: border-box;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.billing-toggle button:hover {
  color: var(--text);
}

.billing-toggle button.active {
  background: var(--ink);
  color: var(--on-ink);
}

.billing-toggle button.active:hover {
  background: var(--ink-elevated);
  color: var(--on-ink);
}

.billing-toggle button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

@media (max-width: 28rem) {
  .billing-toggle button {
    white-space: normal;
    text-wrap: balance;
  }
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0 auto;
  max-width: var(--measure-wide);
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: start;
  min-width: 0;
  transition: border-color var(--dur) var(--ease-out);
}

.tier:hover {
  border-color: var(--line-hover);
  box-shadow: none;
}

.tier.tier-featured {
  border-color: var(--signal);
  box-shadow: inset 0 3px 0 0 var(--signal);
}

.tier h3 {
  margin: 0 0 var(--space-2);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
}

.tier-tagline {
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  flex: 1;
}

.tier li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.65rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tier li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
}

.tier .price {
  text-align: center;
  margin: var(--space-4) 0;
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tier .button {
  display: block;
  text-align: center;
  width: 100%;
  margin: 0;
}

/* LP-PLANS-TIER: current / included — quiet, not a second marketing smile */
.tier .button.plans-cta-current,
.tier .button[data-plans-state='current'],
.tier .button[data-plans-state='included'] {
  opacity: 0.72;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.pricing-tax-note {
  margin: var(--space-6) auto 0;
  max-width: var(--measure-prose);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-muted);
}

.plans-custom-note {
  margin: var(--space-5) auto 0;
  max-width: var(--measure-prose);
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-muted);
}

.plans-custom-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.download-section {
  margin: var(--space-5) auto 0;
  max-width: var(--measure-prose);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.55;
}

.download-section p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Simple page shells —— */
.page-main {
  flex: 1;
  width: 100%;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

/* Quiet land for thin status shells (success / cancel). */
@media (prefers-reduced-motion: no-preference) {
  .page-main .status-card {
    animation: panelRise 0.4s var(--ease-out) both;
  }
}

.panel,
.compose {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  animation: panelRise 0.45s var(--ease-out);
}

.compose {
  max-width: 30rem;
}

.panel {
  text-align: center;
  padding: var(--space-6) var(--space-5);
}

.why-body {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex: 1;
  padding-bottom: var(--space-6);
}

.why-body .container-narrow {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.why-body .container-narrow h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: var(--space-6) 0 var(--space-3);
  text-align: start;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.why-body .container-narrow h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.why-body .container-narrow h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: var(--space-4) 0 var(--space-2);
  text-align: start;
  max-width: var(--measure);
}

.why-body .container-narrow h2 + h3 {
  margin-top: var(--space-2);
}

.why-body .container-narrow p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: var(--leading-body);
  margin: 0 0 var(--space-3);
  text-align: start;
  max-width: var(--measure);
}

.why-body .container-narrow ul,
.why-body .container-narrow li {
  color: var(--text-muted);
}

.why-body .container-narrow strong {
  color: inherit;
  font-weight: 600;
}

.why-body .container-narrow a:not(.button) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.why-body .container-narrow a:not(.button):hover {
  color: var(--ink);
}

/* Keep CTA ink/white; body link color must not paint buttons black-on-black */
.why-body .container-narrow a.button {
  color: var(--on-ink);
  text-decoration: none;
}

.why-body .container-narrow a.button:hover {
  color: var(--on-ink);
  text-decoration: none;
}

.why-body .container-narrow a.button-ghost {
  color: var(--text);
  text-decoration: none;
}

.why-body .container-narrow a.button-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

.why-body .container-narrow a.button-quiet {
  color: var(--text-muted);
  text-decoration: none;
}

.why-body .container-narrow a.button-quiet:hover {
  color: var(--text);
  text-decoration: none;
}

.cta-row {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--space-6)) var(--space-5) var(--space-6);
}

.legal-main h1 {
  font-size: var(--text-h1);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--text);
}

.legal-main h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--space-5) 0 var(--space-3);
  color: var(--text);
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
  line-height: var(--leading-body);
  font-size: 0.95rem;
}

.legal-main .note {
  border: 0;
  border-inline-start: 3px solid var(--line);
  background: transparent;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-radius: 0;
  margin: var(--space-3) 0 var(--space-4);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-main .note p {
  margin: 0;
  color: var(--text-muted);
}

.legal-main nav[aria-label] {
  position: static;
  display: block;
  width: auto;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: auto;
}

.legal-main .toc {
  margin: 1.25rem 0 1.75rem;
  padding-inline-start: 1.25rem;
}

.legal-main .toc li {
  margin: 0.25rem 0;
}

.legal-main table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin: var(--space-3) 0;
}

.legal-main th,
.legal-main td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}

.legal-main th {
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 600;
}

.status-card {
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  animation: panelRise 0.45s var(--ease-out);
}

.status-card h1 {
  font-size: var(--text-h1);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

.status-card p {
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* —— /check Share intake —— */
.check-body {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
}

.check-body .container-narrow {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.check-dropzone {
  position: relative;
  border: 1px dashed var(--text-muted);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 1;
  min-height: min(52vh, 28rem);
  margin: 0 auto;
  transition:
    border-color var(--dur) var(--ease-out),
    border-style var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
  text-align: center;
  background: var(--surface);
  color: var(--text-muted);
}

.check-dropzone p {
  margin: 0;
  max-width: 36rem;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.check-dropzone .check-drop-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Capacity sits under the lead; formats cling as the quiet footnote. */
.check-dropzone .check-drop-batch {
  margin-top: var(--space-3);
  max-width: 36rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.check-dropzone .check-drop-hint {
  margin-top: var(--space-1);
  max-width: 36rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-faint);
}

.check-dropzone:hover,
.check-dropzone.dragover,
.check-dropzone:focus-visible {
  border-style: solid;
  border-color: var(--signal);
  background: var(--surface);
  outline: none;
}

.check-dropzone.dragover {
  border-width: 2px;
}

.check-dropzone.is-busy {
  pointer-events: none;
  cursor: wait;
  opacity: 1;
  border-style: solid;
  border-color: var(--signal);
  animation: dropzoneBusyKnock 1.45s var(--ease-out) 1;
}

@keyframes dropzoneBusyKnock {
  0% {
    border-color: var(--text-muted);
    background: var(--surface);
  }
  35% {
    border-color: var(--signal);
    background: var(--surface-muted);
  }
  100% {
    border-color: var(--signal);
    background: var(--surface);
  }
}

.check-active-name {
  margin: var(--space-3) 0 0;
  max-width: 36rem;
  font-size: var(--text-small);
  color: var(--text-muted);
  word-break: break-all;
}

.check-result-name {
  margin: 0 0 var(--space-2);
  text-align: center;
}

.check-result {
  display: none;
  margin-top: 0;
  text-align: center;
  animation: panelRise 0.45s var(--ease-out);
}

.check-score {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-2);
  color: var(--text);
  transition: color var(--dur) var(--ease-out);
  animation: scoreSettle 0.55s var(--ease-out);
}

@keyframes scoreSettle {
  from {
    opacity: 0;
    letter-spacing: 0.04em;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.02em;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-dropzone.is-busy,
  .check-score {
    animation: none;
  }
}

.check-score.band-human {
  color: var(--signal);
}

.check-score.band-mid {
  color: var(--band-mid);
}

.check-score.band-ai {
  color: var(--danger);
}

.check-band {
  margin: 0 0 var(--space-2);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  animation: bandFade 0.5s var(--ease-out) 0.08s both;
}

@keyframes bandFade {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-band {
    animation: none;
  }
}

.check-hint {
  color: var(--text-muted);
  font-size: var(--text-small);
  margin: 0 0 var(--space-4);
  line-height: 1.5;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
}

.check-share-out {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
}

.check-share-out.hidden {
  display: none;
}

.check-share-preview {
  width: min(100%, 280px);
}

.check-share-preview-media {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--ink);
  border-radius: 2px;
}

.check-share-preview-media.hidden {
  display: none;
}

.check-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
}

.check-result .check-progress {
  margin-top: var(--space-4);
}

.check-status {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--text-muted);
  text-align: center;
  min-height: 1.4em;
}

.check-status.err {
  color: var(--danger);
}

.check-status.loading {
  color: var(--signal);
}

.check-progress {
  margin: var(--space-3) auto 0;
  width: 100%;
  max-width: 18rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check-progress.hidden {
  display: none;
}

.check-progress-track {
  flex: 1 1 auto;
  min-width: 8rem;
  height: 6px;
  border-radius: var(--radius-sm);
  background: rgba(36, 150, 63, 0.16);
  overflow: hidden;
}

.check-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--signal);
  transition: width 0.2s ease-out;
}

.check-progress-pct {
  flex: 0 0 auto;
  min-width: 2.5em;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: var(--signal);
  text-align: end;
}

.check-soft-wall {
  display: none;
  text-align: center;
  margin-top: var(--space-4);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.check-soft-wall.is-visible {
  display: block;
}

.check-quota {
  margin: 0 0 var(--space-4);
  font-size: var(--text-small);
  color: var(--text-faint);
  text-align: center;
}

.status-aside {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  text-align: center;
}

.status-aside a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.status-aside a:hover {
  color: var(--text);
}

.check-soft-wall .button {
  margin-top: var(--space-3);
}

.check-aside {
  margin: var(--space-5) auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.5;
}

.check-aside a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.check-aside a:hover {
  color: var(--ink);
}

/* —— Document modality readings (LP-DOC-SCORE-UI) —— */
.dash-doc-readings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-2) 0 0;
  font-variant-numeric: tabular-nums;
}

.dash-doc-reading {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.dash-doc-reading-label {
  color: var(--text-faint);
}

.dash-doc-reading-pct {
  font-weight: 600;
  color: var(--text);
}

.dash-doc-reading.band-human .dash-doc-reading-pct {
  color: var(--signal);
}

.dash-doc-reading.band-ai .dash-doc-reading-pct {
  color: var(--danger);
}

.dash-doc-reading.band-mid .dash-doc-reading-pct {
  color: var(--band-mid, var(--text-muted));
}

/* —— Guest Check landing (LP-CHECK-GUEST / LP-CHECK-GUEST-POLISH) —— */
/* Guest intake reuses .dash-tabs / .dash-panel / .dash-textarea (workshop rhyme). */
/* White flex shell twin of .dash-shell — kills body --surface-muted dead band above footer. */
.page-main-guest {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  width: 100%;
}

.page-main-guest .dash-intake {
  margin-bottom: var(--space-4);
}

.page-main-guest .dash-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Sit under intake/result — do not push to footer with margin-top: auto. */
.check-guest-cta {
  margin-top: var(--space-3);
  margin-bottom: 0;
  justify-content: center;
  flex-shrink: 0;
}

.check-guest-cta .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-main-guest .check-aside {
  flex-shrink: 0;
}

/* Answer shelf sits on the white shell above the ink footer — slightly tighter than Home. */
.check-guest-answer {
  border-top: none;
  border-bottom: none;
  margin-top: auto;
  padding-top: clamp(1.75rem, 5vh, 2.75rem);
  padding-bottom: clamp(1.75rem, 5vh, 2.75rem);
}

.page-main-guest .check-body {
  border-bottom: none;
  flex: 1;
}

.page-main-guest .check-body .container-narrow {
  padding-bottom: var(--space-5);
}

/* —— Dashboard workshop —— */
.page-hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.page-hero .lead {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h2);
  font-weight: 400;
  color: var(--on-ink-soft);
}

.dash-signed-out .dash-sub {
  color: var(--on-ink-muted);
  margin: 0 auto var(--space-5);
  max-width: 28rem;
}

.dash-auth-pending {
  color: var(--text-muted);
  min-height: 8rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.dash-auth-pending p {
  margin: 0;
}

/* Locale-free auth wait — opacity-only dots (no copy flash before i18n). */
.dash-auth-wait {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  animation: panelRise 0.4s var(--ease-out);
}

.dash-auth-wait-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.28;
  animation: dashAuthWaitDot 1.15s var(--ease-out) infinite;
}

.dash-auth-wait-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.dash-auth-wait-dot:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes dashAuthWaitDot {
  0%,
  100% {
    opacity: 0.28;
  }
  40% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-auth-wait {
    animation: none;
  }

  .dash-auth-wait-dot {
    animation: none;
    opacity: 0.5;
  }
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.dash-secondary-links {
  margin: 0;
  font-size: var(--text-small);
}

.dash-secondary-links a {
  color: var(--on-ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-secondary-links a:hover {
  color: var(--on-ink);
}

.dash-shell {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  flex: 1;
  padding: var(--space-6) var(--space-5) var(--space-8);
}

.dash-shell-inner {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

/* LP-CHECK-REVEAL: ~50% slower than first settle (0.4→0.6s knock). */
.dash-shell-inner.is-settled {
  animation: panelRise 0.6s var(--ease-out);
}

.dash-kicker {
  margin: 0 0 0.2rem;
}

.dash-brand-title,
.dash-kicker.display {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--tracking-wordmark);
  line-height: 1;
  text-transform: none;
  color: var(--ink);
}

.dash-intake .dash-section-title.dash-brand-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--tracking-wordmark);
  line-height: 1;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

.dash-section-title {
  margin: 0 0 var(--space-3);
}

.dash-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.dash-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
}

.dash-header-meta {
  color: var(--text-muted);
  font-size: var(--text-small);
  min-height: 1.25rem;
}

/* Hold plan + usage until meter ready — one knock with the rail. */
.dash-header-meta.is-pending {
  opacity: 0;
  pointer-events: none;
}

.dash-header-meta.is-settled {
  animation: dashChromeKnock 0.68s var(--ease-out) both;
}

.dash-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin-inline-start: auto;
}

/* Header account actions: ink links — distinct from muted usage meters.
   No inline padding/border so Sign out shares the usage meter’s right edge. */
.dash-account-actions .button {
  min-height: 0;
  padding: 0.2rem 0;
  border: 0;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-account-actions .button:hover,
.dash-account-actions .button:focus-visible {
  color: var(--signal);
}

.dash-email {
  font-weight: 600;
  word-break: break-word;
  min-width: 0;
}

.dash-plan {
  display: inline-block;
  width: fit-content;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal);
}

.dash-plan[data-tier="free"] {
  color: var(--text-muted);
}

/* Quiet remaining-quota line (not boxed chips). */
.dash-usage {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.dash-usage-item {
  font-weight: 500;
  color: var(--text-muted);
}

.dash-usage-sep {
  color: var(--text-muted);
  opacity: 0.55;
  user-select: none;
}

/* Confirm meter: width+opacity slot (no display:none pop). */
.dash-usage-slot {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  pointer-events: none;
  transition:
    max-width 0.6s var(--ease-out),
    opacity 0.52s var(--ease-out);
}

.dash-usage-slot.is-open {
  max-width: 14rem;
  opacity: 1;
  pointer-events: auto;
}

.dash-usage-sep.dash-usage-slot.is-open {
  opacity: 0.55;
}

/* While chrome is held, open slots instantly so the knock is one opacity. */
.dash-header-meta.is-pending .dash-usage-slot,
.dash-account-rail.is-pending .dash-rail-slot {
  transition: none;
}

@keyframes dashChromeKnock {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dash-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

/* Account rail: Billing · API · History (exclusive disclosure under Check) */
.dash-account {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.dash-account-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-3);
  min-height: 2rem;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

/* Hold rail until usage meter ready (same beat as header meta). */
.dash-account-rail.is-pending {
  opacity: 0;
  pointer-events: none;
}

.dash-account-rail.is-settled {
  animation: panelRise 0.6s var(--ease-out);
}

@media (max-width: 360px) {
  .dash-account-rail {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.dash-account-tab {
  appearance: none;
  margin: 0;
  padding: 0.2rem 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-muted);
  cursor: pointer;
  text-underline-offset: 0.2em;
}

/* Reports rail tab: always present (Free soft wall / paid archive). Class kept for settle grammar. */
.dash-account-tab.dash-rail-slot {
  max-width: 10rem;
  opacity: 1;
  overflow: visible;
  white-space: nowrap;
  pointer-events: auto;
}

.dash-account-tab:hover,
.dash-account-tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.dash-account-tab:focus-visible {
  box-shadow: 0 0 0 2px var(--signal);
}

.dash-account-tab.is-open {
  color: var(--ink);
  text-decoration: underline;
}

.dash-account-panels {
  margin-top: 0;
}

.dash-account-panel {
  margin-top: var(--space-4);
  margin-bottom: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.dash-account-panel[hidden] {
  display: none !important;
}

.dash-account-panel.is-open {
  animation: panelRise 0.4s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .dash-account-panel.is-open {
    animation: none;
  }

  .dash-shell-inner.is-settled,
  .dash-header-meta.is-settled,
  .dash-account-rail.is-settled {
    animation: none;
  }

  .dash-header-meta.is-pending,
  .dash-account-rail.is-pending {
    opacity: 1;
    pointer-events: auto;
  }

  .dash-usage-slot,
  .dash-account-tab.dash-rail-slot {
    transition: none;
  }

  .dash-usage-slot.is-open,
  .dash-account-tab.dash-rail-slot.is-open {
    max-width: none;
    opacity: 1;
  }
}

.dash-billing,
.dash-api,
.dash-library {
  margin-top: 0;
  margin-bottom: 0;
}

.dash-api #apiLead {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.dash-api-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dash-api-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-api-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-api-prefix {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.dash-api-when {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.dash-api-empty {
  margin: 0 0 var(--space-3);
}

.dash-api-reveal {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-api-secret {
  display: block;
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-small);
  word-break: break-all;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.dash-api-quickstart {
  margin: var(--space-4) 0 var(--space-3);
}

.dash-api-quickstart summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--text-muted);
}

.dash-api-quickstart summary:hover,
.dash-api-quickstart summary:focus-visible {
  color: var(--ink);
  outline: none;
}

.dash-api-curl {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.dash-api-create-row {
  align-items: center;
}

.dash-api-name {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 18rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: var(--text-small);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-api-name:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.dash-billing-paid .dash-section-title,
.dash-billing-free .dash-section-title {
  margin-bottom: var(--space-2);
}

.dash-intake .check-dropzone {
  min-height: min(28vh, 14rem);
  flex: 0 0 auto;
}

.dash-billing-hint {
  margin: 0 0 var(--space-4);
  max-width: 36rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-size: var(--text-small);
}

.dash-billing-hint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.dash-billing-hint a:hover {
  color: var(--signal);
}

.dash-billing-paid .dash-cta-row {
  margin-bottom: 0;
}

.dash-billing-free .dash-cta-row,
.dash-billing-free {
  margin-bottom: 0;
}

.dash-billing-free .button {
  margin-top: var(--space-2);
}

.dash-intake {
  margin-bottom: var(--space-5);
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.dash-tab {
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.dash-tab.is-active {
  border-color: var(--signal);
  color: var(--text);
  background: var(--surface-muted);
}

.dash-tab:hover,
.dash-tab:focus-visible {
  border-color: var(--signal);
  outline: none;
}

.dash-panel {
  display: none;
}

.dash-panel.is-active {
  display: block;
}

.dash-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.dash-textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text);
  resize: vertical;
  margin-bottom: var(--space-3);
}

.dash-textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Text intake: dropzone-twin well; idle overlay centers lead/hint like Media/Document. */
.check-text-zone {
  position: relative;
  width: 100%;
  min-height: min(28vh, 14rem);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease-out),
    border-style var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
  margin-bottom: var(--space-3);
}

.check-text-zone:hover,
.check-text-zone.dragover,
.check-text-zone:focus-within {
  border-style: solid;
  border-color: var(--signal);
  background: var(--surface);
}

.check-text-zone.dragover {
  border-width: 2px;
}

.check-text-zone.is-busy {
  pointer-events: none;
  cursor: wait;
  border-style: solid;
  border-color: var(--signal);
  animation: dropzoneBusyKnock 1.45s var(--ease-out) 1;
}

.check-text-idle {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  pointer-events: none;
  z-index: 1;
}

.check-text-zone.is-idle .check-text-idle {
  display: flex;
}

/* Same type hierarchy as Media/Document dropzones: lead muted · capacity muted small · formats faint. */
.check-text-idle .check-drop-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.check-text-idle .check-drop-batch {
  margin: var(--space-3) 0 0;
  max-width: 36rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.check-text-idle .check-drop-hint {
  margin: var(--space-1) 0 0;
  max-width: 36rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-faint);
}

.check-text-zone .check-text-well {
  display: block;
  width: 100%;
  min-height: min(28vh, 14rem);
  margin: 0;
  padding: var(--space-6) var(--space-5);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: start;
  resize: vertical;
  position: relative;
  z-index: 0;
}

.check-text-zone.is-idle .check-text-well {
  color: transparent;
  caret-color: var(--text);
}

.check-text-zone .check-text-well:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.dash-intake .check-text-zone {
  min-height: min(28vh, 14rem);
  flex: 0 0 auto;
}

.dash-result:not([hidden]) {
  display: block;
  text-align: center;
  margin-top: var(--space-5);
  animation: panelRise 0.4s var(--ease-out);
}

.dash-result:not([hidden]).dash-result-static {
  animation: none;
}

.dash-result[hidden] {
  display: none !important;
}

.dash-batch-panel {
  margin: var(--space-3) 0 0;
  text-align: left;
}

.dash-batch-panel.hidden {
  display: none;
}

.dash-batch-running-head {
  margin: 0 0 var(--space-3);
  min-height: calc(1.25em + var(--space-2) + 2px);
}

.dash-batch-running-head.hidden {
  display: none;
}

/* Slot stays in flow while batch is open; content only when scoring. */
.dash-batch-running-head:not(.is-active) {
  visibility: hidden;
  pointer-events: none;
}

.dash-batch-progress-label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-small);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.dash-batch-progress-track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.dash-batch-progress-fill {
  height: 100%;
  width: 0;
  background: var(--text);
  transition: width 0.35s var(--ease-out);
}

.dash-batch-list-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 0.15rem;
  min-height: 1.25rem;
}

.dash-batch-sort-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  border-radius: 2px;
}

.dash-batch-sort-toggle:hover,
.dash-batch-sort-toggle[aria-pressed='true'] {
  color: var(--text);
}

.dash-batch-sort-toggle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.dash-download-menu {
  position: relative;
  display: inline-block;
}

.dash-download-menu.hidden {
  display: none;
}

.dash-download-menu > summary {
  list-style: none;
  cursor: pointer;
}

.dash-download-menu > summary::-webkit-details-marker {
  display: none;
}

.dash-download-menu-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 14rem;
  padding: 0.35rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.dash-download-menu[open] > .dash-download-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dash-download-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.dash-download-menu-item:hover:not(:disabled) {
  background: var(--surface-2, rgba(0, 0, 0, 0.04));
}

.dash-download-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dash-download-menu-item.hidden {
  display: none;
}

/* Hand-over CTA parity — same issued row on Check + Reports SAMPLE. */
.dash-handover-issued {
  margin: 0 0 var(--space-4);
}

.dash-handover-issued.is-handover-knock {
  animation: panelRise 0.4s var(--ease-out);
}

.dash-handover-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.dash-handover-cta .dash-download-menu {
  display: inline-block;
}

.dash-handover-cta .dash-download-menu.hidden {
  display: none;
}

.dash-handover-cta .dash-download-menu-item {
  text-decoration: none;
  box-sizing: border-box;
}

.dash-handover-id.dc-light-up {
  animation: dc-light-up-handover 0.9s var(--ease-out) 1 both;
}

@keyframes dc-light-up-handover {
  0% {
    opacity: 0.35;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-handover-issued.is-handover-knock,
  .dash-handover-id.dc-light-up {
    animation: none;
  }

  .dash-download-menu-panel {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
}

.dash-batch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-height: min(40vh, 22rem);
  overflow: auto;
  font-variant-numeric: tabular-nums;
}

.dash-batch-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
  opacity: 1;
  transform: none;
}

.dash-batch-list li.is-enter {
  opacity: 0;
  transform: translateY(4px);
  animation: batchRowEnter 0.4s var(--ease-out) forwards;
}

.dash-batch-list li.is-enter.is-enter-muted {
  animation-name: batchRowEnterMuted;
}

.dash-batch-list li > .dash-batch-row-main:first-child {
  grid-column: 1 / 3;
}

.dash-batch-list li > .dash-batch-check + .dash-batch-row-main {
  grid-column: 2;
}

.dash-batch-list li:last-child {
  border-bottom: 0;
}

.dash-batch-list li.is-over-plan,
.dash-batch-list li.is-unsupported {
  color: var(--text-muted);
}

.dash-batch-list li.is-over-plan:not(.is-enter),
.dash-batch-list li.is-unsupported:not(.is-enter) {
  opacity: 0.55;
}

@keyframes batchRowEnterMuted {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 0.55;
    transform: none;
  }
}

.dash-batch-list li.is-scoring-pulse {
  animation: dropzoneBusyKnock 1.45s var(--ease-out) 1;
}

.dash-batch-list li .batch-pct.is-pct-settle {
  animation: scoreSettle 0.55s var(--ease-out);
}

.dash-batch-row-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.dash-batch-name {
  word-break: break-all;
  font-weight: 500;
}

.dash-batch-type,
.dash-batch-size,
.dash-batch-date {
  color: var(--text-muted);
  font-size: var(--text-small);
}

.dash-batch-row-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  justify-content: flex-end;
  text-align: end;
}

.dash-batch-list .batch-pct {
  font-weight: 600;
}

.dash-batch-list .batch-pct.band-human {
  color: var(--signal);
}

.dash-batch-list .batch-pct.band-mid {
  color: var(--band-mid);
}

.dash-batch-list .batch-pct.band-ai {
  color: var(--danger);
}

.dash-batch-list .batch-err,
.dash-batch-state.is-failed {
  color: var(--danger);
  font-weight: 500;
}

.dash-batch-state {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.dash-batch-band {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.dash-batch-remove {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-small);
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.dash-batch-remove:hover,
.dash-batch-remove:focus-visible {
  color: var(--text);
}

.dash-batch-cost,
.dash-batch-select-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.dash-batch-select-bar.hidden {
  display: none;
}

/* LP-MEDIA-SHEET — quiet 1 | 4 contact-sheet layout choice */
.dash-batch-sheet-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.5rem;
}

.dash-batch-sheet-layout.hidden {
  display: none;
}

.dash-batch-sheet-layout .check-hint {
  margin: 0;
}

.dash-sheet-layout-btn {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
}

.dash-sheet-layout-btn.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-batch-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.dash-batch-check {
  display: flex;
  align-items: center;
  grid-column: 1;
}

.dash-batch-confirm-line {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dash-batch-list li.is-confirmed .dash-batch-state {
  color: var(--text);
}

.dash-history-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0.75rem 0;
}

.dash-history-tools.hidden {
  display: none;
}

.dash-history-filter-kind select,
.dash-history-filter-search input {
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line, #ddd);
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}

.dash-history-filter-search input {
  min-width: 10rem;
}

.dash-reports-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.dash-reports-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0.1rem;
  margin: 0;
  font: inherit;
  color: var(--text-muted, #666);
  cursor: pointer;
}

.dash-reports-view-btn.is-active {
  color: var(--text, #111);
  font-weight: 600;
}

.dash-reports-view-btn:focus-visible {
  outline: 2px solid var(--focus, #111);
  outline-offset: 2px;
}

.dash-reports-view-sep {
  color: var(--text-faint, #999);
  user-select: none;
}

.dash-reports-list {
  max-height: min(50vh, 28rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dash-reports-in-dossier {
  color: var(--text-muted, #666);
}

.dash-history-status {
  margin: 0.35rem 0;
}

.dash-history-status.err {
  color: var(--danger, #b00020);
}

.dash-library-batch {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line, #eee);
}

.dash-library-batch-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.35rem 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.dash-library-batch-toggle:hover,
.dash-library-batch-toggle:focus-visible {
  text-decoration: underline;
}

/* Reports dossier parent: same batch toggle + quiet hand-off strip (not a card among report rows). */
.dash-reports-dossier {
  padding: 0.45rem 0;
}

.dash-reports-dossier > .dash-library-batch-toggle {
  font-weight: 500;
  color: var(--text);
}

.dash-reports-dossier > .dash-history-dossier-actions,
.dash-library-batch > .dash-history-dossier-actions {
  margin: 0.15rem 0 0.35rem;
  padding-inline-start: 0;
}

.dash-library-row.is-batch-child {
  padding-left: 0.75rem;
}

.dash-reports-row.is-dossier-child {
  padding-inline-start: 0.75rem;
}

.dash-library-row.is-confirmed .dash-library-meta {
  font-weight: 500;
}

.dash-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  align-items: center;
}

.dash-batch-toolbar .button.hidden {
  display: none;
}

@keyframes batchRowEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-batch-list li.is-enter,
  .dash-batch-list li.is-enter.is-enter-muted,
  .dash-batch-list li.is-scoring-pulse,
  .dash-batch-list li .batch-pct.is-pct-settle,
  .dash-batch-progress-fill {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .dash-batch-list li.is-over-plan,
  .dash-batch-list li.is-unsupported {
    opacity: 0.55;
  }
}

.dash-doc-parts {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  text-align: left;
  max-height: min(36vh, 18rem);
  overflow: auto;
}

.dash-doc-parts li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.dash-doc-parts .part-pct {
  font-weight: 600;
  margin-right: 0.35rem;
}

.dash-doc-privacy {
  margin-top: var(--space-3);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.dash-result-actions {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  justify-items: stretch;
}

.dash-result-actions.dash-result-actions--pair {
  grid-template-columns: repeat(2, minmax(0, 14rem));
  justify-content: center;
}

.dash-result-actions > #getReportBtn {
  align-self: stretch;
  height: 100%;
  min-height: 100%;
}

.dash-result-actions > .dash-result-share-row {
  margin-top: 0;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
}

.dash-result-actions > .dash-result-share-row .button {
  min-width: 0;
  width: 100%;
}

.dash-result-action-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dash-result-action-slot:empty,
.dash-result-action-slot.hidden {
  display: none;
}

.dash-result-action-slot .button {
  width: 100%;
  justify-content: center;
}

.dash-result-share-row {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.dash-result-share-row.hidden {
  display: none !important;
}

.dash-result-share-row .button {
  min-width: min(12rem, 100%);
  justify-content: center;
}

.dash-billing-paid-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}

.dash-billing-paid-links .button {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-billing-paid-links .button:hover,
.dash-billing-paid-links .button:focus-visible,
.dash-billing-paid-links a.button:hover,
.dash-billing-paid-links a.button:focus-visible {
  color: var(--signal);
}

.dash-billing-erase {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.dash-billing-erase .button {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dash-billing-erase .button:hover,
.dash-billing-erase .button:focus-visible {
  color: var(--danger);
}

/* RP-CHECK-UI: inline Get report issue panel beside the result actions. */
.dash-report-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-report-panel.hidden {
  display: none;
}

.dash-report-title {
  margin: 0 0 var(--space-3);
  font-weight: 600;
}

.dash-report-reference {
  width: 100%;
  max-width: none;
  margin-bottom: var(--space-2);
}

.dash-report-panel .check-hint {
  margin: 0 0 var(--space-3);
}

.dash-report-status {
  font-weight: 500;
}

.dash-report-status.err {
  color: var(--danger, #b00020);
}

.dash-report-issued {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.dash-report-issued.hidden {
  display: none;
}

.dash-report-id-line {
  margin: 0 0 var(--space-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
}

/* Issued report + Reports desk: compact tool row (one line when space allows). */
.dash-report-actions,
.dash-reports-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0 0 var(--space-3);
}

.dash-report-actions .button,
.dash-reports-actions .button {
  min-height: 0;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.dash-report-actions .button:hover,
.dash-report-actions .button:focus-visible,
.dash-reports-actions .button:hover,
.dash-reports-actions .button:focus-visible {
  color: var(--signal);
  background: transparent;
  border-color: transparent;
}

.dash-report-actions .dash-report-action-primary,
.dash-reports-actions .dash-report-action-primary {
  color: var(--text);
  font-weight: 600;
}

.dash-reports-actions .dash-report-action-destructive {
  color: var(--text-muted);
}

.dash-reports-actions .dash-report-action-destructive:hover,
.dash-reports-actions .dash-report-action-destructive:focus-visible {
  color: var(--danger, #b00020);
}

.dash-reports-standing {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.dash-reports-standing.is-withdrawn {
  color: var(--danger, #b00020);
}

.dash-reports-standing.is-superseded {
  color: var(--text-muted);
}

/* RP-DESK: Reports account panel rows (dash-api-row twin with extra actions). */
.dash-reports-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .dash-reports-row {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .dash-reports-actions {
    width: 100%;
    gap: 0.5rem 0.75rem;
  }
}

.dash-status {
  margin: var(--space-4) 0 0;
  text-align: center;
  min-height: 1.25em;
}

.dash-soft-wall {
  margin-top: var(--space-4);
  padding: var(--space-5);
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-soft-wall .button {
  margin-top: var(--space-3);
}

.dash-soft-wall p {
  margin: 0;
}

.dash-soft-wall .check-hint {
  margin: var(--space-2) auto 0;
  max-width: 28rem;
  color: var(--text-faint);
}

.dash-library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: min(50vh, 28rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dash-library-day {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0.15rem 0.1rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
}

.dash-library-day:first-child {
  margin-top: 0;
}

.dash-library-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
}

.dash-library-row.is-active {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.dash-library-main {
  flex: 1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  text-align: start;
  font-family: inherit;
  font-size: var(--text-small);
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.dash-library-main:hover,
.dash-library-main:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.dash-library-kind {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dash-library-score {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dash-library-score.band-human {
  color: var(--signal);
}

.dash-library-score.band-mid {
  color: var(--band-mid);
}

.dash-library-score.band-ai {
  color: var(--danger);
}

.dash-library-band {
  grid-column: 3;
  grid-row: 1;
  color: var(--text-muted);
}

.dash-library-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-library-delete {
  align-self: center;
  margin-inline-end: var(--space-2);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem 0.75rem;
}

.dash-library-empty {
  margin: 0;
}

.dash-history-retention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-small);
}

.dash-history-retention select {
  font: inherit;
  color: var(--text);
}

@media (max-width: 768px) {
  .dash-shell {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .dash-header-row {
    align-items: flex-start;
  }

  .dash-usage {
    justify-content: flex-end;
    text-align: end;
    margin-inline-start: auto;
  }

  .dash-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2);
  }

  .dash-tab {
    width: 100%;
    padding-inline: 0.4rem;
    text-align: center;
  }

  .dash-result-actions,
  .dash-cta-row,
  .check-share-out {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-result-actions {
    grid-template-columns: 1fr;
  }

  .dash-result-actions .button,
  .dash-cta-row .button,
  .check-share-out .button {
    width: 100%;
    justify-content: center;
  }

  .dash-library-main {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
  }

  .dash-library-kind {
    grid-column: 1;
    grid-row: 1;
  }

  .dash-library-score {
    grid-column: 2;
    grid-row: 1;
  }

  .dash-library-band {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dash-library-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    white-space: normal;
  }

  .dash-library-row {
    flex-wrap: nowrap;
  }
}

.dash-doc-headline {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2) !important;
}

.dash-doc-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  text-align: center;
}

.dash-doc-active.hidden {
  display: none;
}

.dash-doc-filename {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
}

.dash-open-check a:hover {
  color: var(--signal);
}

.dash-doc-summary {
  margin: 0.15rem 0 var(--space-2);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink, #1a1a1a);
  opacity: 0.72;
}

.dash-doc-parts {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  text-align: start;
  max-height: 12rem;
  overflow: auto;
}

.dash-doc-parts li {
  margin: 0.15rem 0;
}

.dash-confirm-block {
  margin: var(--space-4) 0 var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  text-align: center;
}

.dash-confirm-score {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.dash-confirm-score.band-human {
  color: var(--signal);
}

.dash-confirm-score.band-mid {
  color: var(--band-mid);
}

.dash-confirm-score.band-ai {
  color: var(--danger);
}

.dash-confirm-band {
  margin: 0 0 var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dash-confirm-generator {
  margin: 0;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

@media (max-width: 768px) {
  body > nav[aria-label],
  body > nav[role="navigation"] {
    padding: var(--space-3) var(--space-4);
    /* Single bar: logo · menu. Links open as a full-width dropdown under the bar. */
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  /* Dropdown panel — only when the toggle is present (JS inject).
     Soft knock (opacity + 4px) instead of hard display:none snap. */
  body > nav:has(.nav-menu-toggle) .links {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    margin: 0;
    margin-inline-start: 0;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: var(--space-2) 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }

  body > nav:has(.nav-menu-toggle)[data-nav-open='true'] .links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear 0s;
  }

  /* No-JS / pre-inject: clean full-width stack instead of a crushed wrap row. */
  body > nav:not(:has(.nav-menu-toggle)) .links {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-inline-start: 0;
  }

  nav .links a {
    font-size: 0.95rem;
    padding: 0.7rem var(--space-4);
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    border-bottom: none;
    border-inline-start: 2px solid transparent;
  }

  nav .links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  nav .links a[aria-current='page'] {
    border-bottom-color: transparent;
    border-inline-start-color: var(--signal);
    background: rgba(255, 255, 255, 0.04);
  }

  nav .links a#authButton,
  html[data-nav-auth='out'] nav .links a#authButton,
  html[data-nav-auth='out'] nav .links a#authButton:not([data-auth-ready]),
  nav .links a#authButton[data-auth-ready]:not([hidden]) {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    margin-inline-start: 0;
    padding-inline: var(--space-4);
  }

  /* Raised lockup on phones (hero-dots.js sets --hero-lockup-clear from brandY). */
  .hero-stage {
    margin-top: var(
      --hero-lockup-clear,
      max(9.5rem, calc((100svh - var(--nav-h)) * 0.26 + 6.5rem))
    );
    padding-bottom: clamp(1.5rem, 6vh, 3rem);
  }

  .section {
    padding: calc(var(--section-y) * 0.85) 0;
  }

  /* Hero install CTAs: slightly tighter gap on phone after raised lockup. */
  .hero-cta {
    gap: var(--space-2) var(--space-3);
  }

  .hero-lead {
    margin-top: 1rem;
    font-size: clamp(1rem, 3.6vw, 1.15rem);
  }
}

/* —— Technical docs landing —— */
.docs-kicker {
  margin: 0 0 var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}

.docs-body {
  background: var(--surface);
  padding: var(--section-y) 0;
}

.docs-body .container-narrow {
  max-width: var(--measure-prose);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.docs-lead {
  margin: 0 0 var(--space-6);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.docs-downloads {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}

.docs-download {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: inherit;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--signal);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.docs-download:hover {
  color: inherit;
  background: var(--surface);
  border-color: var(--line-hover);
}

.docs-download:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.docs-download-kind {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.docs-download-meta {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--text-small);
  color: var(--text-muted);
}

.docs-download-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.02em;
}

.docs-section-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--ink);
}

.docs-subhead {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.docs-claim-note {
  margin: 0 0 var(--space-4);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.5;
}

.docs-claim-foot {
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.docs-gates {
  margin: 0 0 var(--space-2);
  padding: 0;
  border-top: 1px solid var(--line);
}

.docs-gates > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.docs-gates dt {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
}

.docs-gates dt code {
  font-size: 0.85em;
  color: var(--ink);
}

.docs-gates dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
}

.docs-gates dd strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* —— Pro API reference (LP-API-DIO) —— */
.api-page .docs-hero .hero-cta {
  margin-top: var(--space-5);
}

.api-ref .docs-section-title {
  margin-top: var(--space-7);
}

.api-ref .docs-section-title:first-child {
  margin-top: 0;
}

.api-base,
.api-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--signal);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.api-base.is-copied .api-base-url {
  color: var(--signal);
}

.api-base-url,
.api-auth-rule {
  flex: 1 1 12rem;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-all;
  color: var(--ink);
  background: transparent;
  transition: color 0.2s ease;
}

.api-base-copy {
  flex: 0 0 auto;
  margin: 0;
}

.api-auth-note {
  margin: 0 0 var(--space-2);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.5;
}

.api-endpoint {
  margin: 0 0 var(--space-6);
  padding: 0 0 0 var(--space-4);
  border-inline-start: 3px solid var(--signal);
  background: transparent;
}

.api-modality {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.api-endpoint-title {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.api-method {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal);
}

.api-endpoint-title code {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}

.api-endpoint-note {
  margin: 0 0 var(--space-3);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.5;
}

.api-curl {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.api-limits {
  margin: 0 0 var(--space-6);
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: 1.55;
}

.api-limits li {
  margin: 0 0 var(--space-2);
}

.api-limits strong {
  color: var(--ink);
  font-weight: 600;
}

.api-page .hero-tag code {
  font-size: 0.92em;
}

.docs-lang-wrap {
  margin: 0 0 var(--space-2);
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
}

.docs-lang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}

.docs-lang-table th,
.docs-lang-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.docs-lang-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-muted, #f4f5f4);
  white-space: nowrap;
}

.docs-lang-table td:nth-child(n + 3) {
  text-align: right;
  font-weight: 500;
  color: var(--ink);
}

.docs-lang-table th:nth-child(n + 3) {
  text-align: right;
}

.docs-lang-table tbody tr:last-child td {
  border-bottom: none;
}

.docs-lang-table code {
  font-size: 0.9em;
  color: var(--ink);
  word-break: break-all;
}

.docs-lang-table .docs-lang-headline td {
  background: color-mix(in srgb, var(--signal, #24963f) 8%, transparent);
  font-weight: 500;
}

.docs-lang-table .docs-lang-headline td:first-child {
  font-weight: 600;
}

@media (max-width: 560px) {
  .docs-lang-table th:nth-child(2),
  .docs-lang-table td:nth-child(2) {
    display: none;
  }
}

.docs-aside {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-inline-start: 3px solid var(--line);
}

.docs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
}

/* —— Extension page (W8) —— */
.button.button-disabled,
.button:disabled.button-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Google G in CTAs (Add to Chrome) — same multicolor mark as Sign in */
.button:has(> .icon-google) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  line-height: 1.2;
}

.button:has(> .icon-google) > span {
  line-height: 1.2;
  display: inline-block;
}

.button > .icon-google {
  color: initial;
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  /* Optical lift vs Outfit cap height — geometric center reads low */
  transform: translateY(-2px);
}

html[dir='rtl'] .button > .icon-google {
  transform: translateY(-2px);
}

.hero .button-quiet,
.page-hero .button-quiet {
  color: var(--on-ink-muted);
}

.hero .button-quiet:hover,
.page-hero .button-quiet:hover {
  color: var(--on-ink);
}

.page-hero .hero-cta,
.ext-hero-cta {
  margin-top: var(--space-5);
  animation: none;
}

.page-hero-compact {
  padding: var(--space-5) var(--space-5) var(--space-5);
}

.page-hero-compact .display {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

/* Extension + How + Reports: tighter Why-style stack */
.ext-page .why-body,
.how-page .why-body,
.reports-page .why-body {
  padding-bottom: var(--space-5);
}

.ext-page .why-body .container-narrow,
.how-page .why-body .container-narrow,
.reports-page .why-body .container-narrow {
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
}

.ext-page .why-body .container-narrow h2,
.how-page .why-body .container-narrow h2,
.reports-page .why-body .container-narrow h2 {
  margin: var(--space-5) 0 var(--space-2);
  padding-top: var(--space-4);
}

.ext-page .why-body .container-narrow h2:first-child,
.how-page .why-body .container-narrow h2:first-child,
.reports-page .why-body .container-narrow h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* LP-USE-UNIFY: one type ladder - section H2 >> body H3 */
.use-page .why-body .container-narrow > h2.use-section-title,
.use-page .why-body .container-narrow > h2#ext-heading,
.use-page .why-body .container-narrow > h2#app-heading,
.use-page .why-body .container-narrow > h2#reports-heading {
  font-size: clamp(1.55rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  padding-top: 0;
  border-top: none;
  color: var(--text);
}

.use-page .why-body .container-narrow > .use-section-deck,
.use-page .why-body .container-narrow > p.hero-tag.use-section-deck {
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
  text-align: start;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.use-page .why-body .container-narrow > h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-5) 0 var(--space-2);
  padding-top: 0;
  border-top: none;
  color: var(--text);
  max-width: var(--measure);
}

.use-page .why-body .container-narrow > .ext-store-note + h3,
.use-page .why-body .container-narrow > .use-section-deck + .ext-store-note + h3 {
  margin-top: var(--space-4);
}

.use-page .why-body.section {
  border-top: 1px solid var(--line);
}

.use-page .why-body.section:first-of-type {
  border-top: none;
}

.use-page #extension.why-body {
  border-top: none;
}

.ext-page .why-body .container-narrow p,
.how-page .why-body .container-narrow p,
.reports-page .why-body .container-narrow p {
  margin-bottom: var(--space-3);
}

/* How: one h3 rhythm with the pride shelf (What we care about) */
.how-page .why-body .container-narrow h3 {
  margin: var(--space-3) 0 var(--space-2);
}

.how-page .why-body .container-narrow h2 + h3 {
  margin-top: var(--space-2);
}

.ext-page .cta-row,
.how-page .cta-row,
.reports-page .cta-row {
  margin-top: var(--space-4);
}

/* LP-REPORTS-UX — sample plate + paper figure (hook first) */
.reports-page .page-hero.reports-hero {
  padding-bottom: var(--space-2);
}

.reports-page .why-body.reports-body .container-narrow {
  padding-top: var(--space-3);
}

/* Legacy locale pages (es, fr, …) still render the pre-RP-SAMPLE-3 static shelf
   until their RP-SAMPLE-4 rebuild — keep these selectors until then. */
.reports-sample-h2 {
  margin: 0 0 var(--space-2) !important;
  padding-top: 0 !important;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

.reports-sample-figure {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin: 0 0 var(--space-3);
}

.reports-sample-plate {
  margin: 0;
}

.reports-plate-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.reports-plate-credit {
  margin: var(--space-2) 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.reports-plate-credit a {
  color: inherit;
}

.reports-sample-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}

.reports-sample-quiet {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}

@media (max-width: 640px) {
  .reports-sample-figure {
    grid-template-columns: 1fr;
  }

  .reports-sample-plate {
    max-width: 18rem;
  }
}

/* RP-SAMPLE-3 — try beat (sign-in, score, issue a live SAMPLE report).
   Sentence case — no uppercase shout on the kicker. */
.reports-try-h2 {
  margin: 0 0 var(--space-2) !important;
  padding-top: 0 !important;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

.reports-try {
  margin: 0 0 var(--space-5);
}

.reports-try-lead {
  margin: 0 0 var(--space-3);
  max-width: 38rem;
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.reports-try-google {
  margin: 0 0 var(--space-4);
}

/* LP-REPORTS-AUTH-SETTLE — hold Google / leads until auth known (Check wait twin).
   Guest hint `out`: show CTA immediately. Cold / hint `in`: quiet dots, no FOUC. */
.reports-try-auth-wait {
  display: none;
  align-items: center;
  min-height: 2.75rem;
  margin: 0 0 var(--space-4);
}

.reports-try[data-auth-state='pending'] .reports-try-auth-wait {
  display: flex;
}

html[data-nav-auth='out'] .reports-try[data-auth-state='pending'] .reports-try-auth-wait {
  display: none;
}

html:not([data-nav-auth='out']) .reports-try[data-auth-state='pending'] #reportsTryLeadUnsigned,
html:not([data-nav-auth='out']) .reports-try[data-auth-state='pending'] #reportsTryLeadSigned,
html:not([data-nav-auth='out']) .reports-try[data-auth-state='pending'] #reportsTrySignIn {
  display: none !important;
}

.reports-try-settle {
  animation: panelRise 0.5s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .reports-try-settle {
    animation: none;
  }
}

/* Clipped, not display:none — so programmatic click-to-choose works in every browser. */
.reports-try-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.reports-try-dropzone {
  position: relative;
  border: 1px dashed var(--text-muted);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  margin: 0 0 var(--space-4);
  background: var(--surface);
  color: var(--text-muted);
  transition:
    border-color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}

.reports-try-dropzone:hover,
.reports-try-dropzone.dragover,
.reports-try-dropzone:focus-visible {
  border-style: solid;
  border-color: var(--signal);
  outline: none;
}

.reports-try-dropzone.is-busy {
  pointer-events: none;
  cursor: wait;
  border-style: solid;
  border-color: var(--signal);
  animation: dropzoneBusyKnock 1.45s var(--ease-out) 1;
}

.reports-try-drop-lead {
  margin: 0;
  max-width: 28rem;
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: var(--leading-body);
}

.reports-try-quiet {
  margin: var(--space-3) 0 0;
  max-width: 28rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.reports-try-hint {
  margin: var(--space-1) 0 0;
  max-width: 28rem;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--text-faint);
}

.reports-try-active-name {
  margin: var(--space-3) 0 0;
  max-width: 24rem;
  font-size: var(--text-small);
  color: var(--text);
  word-break: break-all;
}

/* LP-VERIFY-REPORTS: Check-twin score after upload; paper stays issue-only. */
.reports-try-result:not(.hidden) {
  display: block;
  text-align: center;
  margin: 0 0 var(--space-5);
}

.reports-try-batch-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  text-align: left;
  max-height: min(40vh, 20rem);
  overflow: auto;
  font-variant-numeric: tabular-nums;
}

.reports-try-batch-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}

.reports-try-batch-list li:last-child {
  border-bottom: 0;
}

.reports-try-batch-list .batch-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reports-try-batch-list .batch-pct {
  font-weight: 600;
}

.reports-try-batch-list .batch-pct.band-human {
  color: var(--signal);
}

.reports-try-batch-list .batch-pct.band-mid {
  color: var(--band-mid);
}

.reports-try-batch-list .batch-pct.band-ai {
  color: var(--danger);
}

.reports-try-batch-list .batch-err {
  color: var(--danger);
  font-size: 0.85rem;
}

.reports-try-batch-list .batch-issue-btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.reports-try-status {
  margin: 0 0 var(--space-3);
  max-width: 38rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reports-try-status.is-err {
  color: var(--danger);
}

.reports-try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-2);
}

.reports-try-note {
  margin: 0 0 var(--space-4);
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reports-paper-empty-quiet {
  margin: 0.35rem 0 var(--space-3);
  padding: 0;
  color: var(--text-muted);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.4;
}

.reports-try-issued {
  margin: 0 0 var(--space-5);
}

.reports-try-verify-invite {
  margin: 0 0 var(--space-3);
  max-width: 38rem;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
}

.reports-try-verify-primary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.reports-paper {
  margin: 0 0 var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out);
}

.reports-paper.is-issued {
  border-color: var(--signal);
}

.reports-paper-title {
  margin: 0 0 var(--space-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reports-paper-score {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 1;
}

.reports-paper-score.dc-light-up {
  animation: dc-light-up 1s ease-out 1 both;
}

.reports-paper-band {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reports-paper-verify {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reports-paper-verify a {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.reports-paper-zone + .reports-paper-zone {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.reports-paper-zone h3 {
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
}

.reports-paper-note {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reports-paper-dl {
  margin: 0;
}

.reports-paper-dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.reports-paper-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.reports-paper-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.reports-page .home-answer {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reports-paper-score.dc-light-up {
    animation: none;
  }

  .reports-try-dropzone.is-busy {
    animation: none;
  }
}

@media (max-width: 640px) {
  .reports-paper-dl > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.ext-demo-figure {
  margin: var(--space-3) 0 var(--space-5);
  max-width: min(100%, 40rem);
  width: 100%;
}

.ext-demo-stage {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: visible;
  background: var(--ink);
  width: 100%;
  padding: var(--space-2);
}

.ext-demo-dot::before {
  /* Invisible hit pad; visible size stays on width/height from JS */
  content: "";
  position: absolute;
  inset: -14px;
}

/* Match extension chrome-ui.js .dc-tip (product voice); film/Share tip-chrome parity */
.ext-demo-tip {
  max-width: 280px;
  padding: 7px 11px;
  background: rgba(8, 8, 10, 0.78);
  color: #f5f5f6;
  border: 1px solid rgba(245, 245, 246, 0.14);
  border-radius: 2px;
  border-inline-start: 2px solid var(--signal);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: pre-line;
  text-align: start;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* EX-D20: twin chrome-ui setDcTipOpen / .dc-tip-visible fade */
.ext-demo-tip.ext-demo-tip-visible {
  opacity: 1;
}

/* EX-D17 / LP-TIP-PARITY: tight thumbs + DotCheck.ai; regard/select from EX-D16 */
.ext-demo-rate {
  max-width: none;
  width: max-content;
  padding: 6px 8px;
  pointer-events: auto;
}

.ext-demo-rate-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.ext-demo-rate-brand {
  margin: 4px 0 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(245, 245, 246, 0.55);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.ext-demo-rate-thumb {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transform: scale(1);
  transform-origin: center center;
  transition:
    background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-demo-rate-thumb--up {
  color: var(--signal);
}

.ext-demo-rate-thumb--down {
  color: #d93025;
}

.ext-demo-rate-thumb--up:hover:not(:disabled):not(.ext-demo-rate-thumb--selected) {
  background: rgba(36, 150, 63, 0.18);
  transform: scale(1.12);
}

.ext-demo-rate-thumb--down:hover:not(:disabled):not(.ext-demo-rate-thumb--selected) {
  background: rgba(217, 48, 37, 0.18);
  transform: scale(1.12);
}

.ext-demo-rate-thumb:active:not(:disabled):not(.ext-demo-rate-thumb--selected) {
  transform: scale(0.9);
  transition-duration: 0.07s;
}

.ext-demo-rate-thumb--up.ext-demo-rate-thumb--selected {
  background: var(--signal);
  color: #ffffff;
  animation: ext-demo-rate-select 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-demo-rate-thumb--down.ext-demo-rate-thumb--selected {
  background: #d93025;
  color: #ffffff;
  animation: ext-demo-rate-select 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.ext-demo-rate-thumbs:has(.ext-demo-rate-thumb--selected)
  .ext-demo-rate-thumb:not(.ext-demo-rate-thumb--selected) {
  opacity: 0.36;
}

.ext-demo-rate-thumb svg {
  width: 18px;
  height: 18px;
  display: block;
  transform: translateY(0.5px);
  pointer-events: none;
}

.ext-demo-rate-thumb--down svg {
  transform: rotate(180deg) translateY(0.5px);
}

@keyframes ext-demo-rate-select {
  0% { transform: scale(0.86); }
  32% { transform: scale(1.18); }
  58% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ext-demo-tip {
    transition: none;
  }
  .ext-demo-rate-thumb {
    transition: none;
  }
  .ext-demo-rate-thumb--up:hover:not(:disabled):not(.ext-demo-rate-thumb--selected),
  .ext-demo-rate-thumb--down:hover:not(:disabled):not(.ext-demo-rate-thumb--selected),
  .ext-demo-rate-thumb:active:not(:disabled):not(.ext-demo-rate-thumb--selected) {
    transform: none;
  }
  .ext-demo-rate-thumb--up.ext-demo-rate-thumb--selected,
  .ext-demo-rate-thumb--down.ext-demo-rate-thumb--selected {
    animation: none;
  }
}

.ext-demo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

.ext-demo-caption {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin: var(--space-2) 0 0;
  line-height: 1.45;
  text-align: start;
}

/*
 * How show shelf:
 * photo → guide + credit (one row) → underlined text sample
 */
.how-demo-figure {
  margin-top: var(--space-4);
}

.how-page .how-demo-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: var(--space-3);
  width: 100%;
  box-sizing: border-box;
  margin: 0.4rem 0 0;
}

.how-page .how-demo-meta > .how-demo-hint {
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  text-decoration: none;
}

.how-page .how-demo-meta > .how-demo-credit {
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #888888;
  white-space: nowrap;
  text-align: end;
  justify-self: end;
  pointer-events: none;
  user-select: none;
}

.how-page .how-demo-text {
  margin: 1.15rem 0 0;
  max-width: var(--measure-prose);
}

/* Sample sentence under the photo — 12% AI (JS sets exact color + tip). */
.how-page .how-demo-text > .how-demo-line {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: 1.5;
  color: var(--text-muted);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: hsla(105.6, 100%, 50%, 0.208);
  -webkit-text-decoration-color: hsla(105.6, 100%, 50%, 0.208);
  text-decoration-skip-ink: none;
  cursor: default;
}

/* Inline “underlined text” chip in How lead/hint — 89% AI (JS sets exact color). */
.how-page .how-inline-underline {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: hsla(13.2, 100%, 50%, 0.901);
  -webkit-text-decoration-color: hsla(13.2, 100%, 50%, 0.901);
  text-decoration-skip-ink: none;
  cursor: default;
}

/*
 * Underlines-on-text sample only: 20% AI + intelligent transparency
 * hue=96, opacity=0.28 → hsla(96, 100%, 50%, 0.28)
 * CSS paints the line; JS owns the shared hover tooltip.
 */
.ext-page .ext-underline-demo {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: hsla(96, 100%, 50%, 0.28);
  text-decoration-skip-ink: none;
  -webkit-text-decoration-color: hsla(96, 100%, 50%, 0.28);
  cursor: default;
}

.ext-page .why-body a:hover {
  color: var(--ink);
}

.ext-store-note {
  margin: 0 auto var(--space-3);
  font-size: var(--text-small);
  color: var(--on-ink-muted);
  max-width: var(--measure-prose);
  text-align: center;
}

.ext-subhead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: var(--space-5) 0 var(--space-2);
  letter-spacing: -0.01em;
}

/* Match extension chrome-ui.js dc-light-up — opacity only (no size pulse; φ regard stays separate).
   Class marks the reveal window; live knocks use JS WAAPI numeric [from,1,settle] (~1s).
   CSS animation off — var() keyframe ends dipped to 0 in Chromium. */
.ext-demo-dot.dc-light-up {
  animation: none; /* knock duration 1s via JS SCORE_REVEAL_MS */
}

@keyframes dc-light-up {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: var(--dc-dot-opacity, 0.35);
  }
}

@media (max-width: 799px) {
  .page-hero-compact {
    padding-bottom: var(--space-4);
  }

  .ext-demo-figure {
    max-width: 100%;
  }

  .ext-page .ext-hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .ext-page .ext-hero-cta .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ext-demo-dot.dc-light-up {
    animation: none;
  }
}

/* —— Checkout (Elements Express) —— */
.page-checkout {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

.page-checkout .skip-link:focus {
  top: var(--space-3);
  left: var(--space-3);
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.9rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.checkout-topbar .logo.checkout-brand {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wordmark);
  color: var(--ink);
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.checkout-topbar .logo.checkout-brand:hover {
  color: var(--signal);
}

.checkout-topbar .logo.checkout-brand:active {
  opacity: 0.78;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.checkout-back:hover {
  color: var(--ink);
}

.checkout-back:active {
  opacity: 0.8;
  transform: translateX(-1px);
}

.checkout-back-arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out);
}

.checkout-back:hover .checkout-back-arrow {
  transform: translateX(-2px);
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 1fr);
  min-height: calc(100vh - 3.6rem);
}

.checkout-summary {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
}

.checkout-summary-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.checkout-lockup-wrap {
  margin: 0 0 1.65rem;
  width: 100%;
}

.checkout-lockup {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  mix-blend-mode: screen;
}

.checkout-order {
  width: 100%;
}

.checkout-order-label {
  margin: 0 0 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.checkout-plan-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.checkout-tagline {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--on-ink-soft);
}

.checkout-total {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-total-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(242, 242, 242, 0.72);
}

.checkout-price {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.checkout-renew-note {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(242, 242, 242, 0.62);
}

.checkout-interval-switch-wrap,
.checkout-billing-wrap {
  margin: 0.45rem 0 0;
}

.checkout-billing-wrap {
  margin-top: 0.35rem;
}

a.checkout-quiet-link,
a.checkout-interval-switch,
a.checkout-billing {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(242, 242, 242, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast, 160ms) var(--ease-out, ease);
}

a.checkout-quiet-link:hover,
a.checkout-quiet-link:focus-visible,
a.checkout-interval-switch:hover,
a.checkout-interval-switch:focus-visible,
a.checkout-billing:hover,
a.checkout-billing:focus-visible {
  color: rgba(242, 242, 242, 0.88);
  outline: none;
}

.checkout-bullets {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.checkout-bullets li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.4rem;
  font-size: 0.975rem;
  line-height: 1.45;
  color: rgba(242, 242, 242, 0.9);
}

.checkout-bullets li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
}

.checkout-trust {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-tax-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--on-ink-muted);
}

/* Refund line sits on the ink summary — never inherit global dark `a` color. */
.checkout-refund-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--on-ink-muted);
}

.checkout-refund-line a {
  color: rgba(242, 242, 242, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast, 160ms) var(--ease-out, ease);
}

.checkout-refund-line a:hover,
.checkout-refund-line a:focus-visible {
  color: #fff;
  outline: none;
}

.checkout-payment {
  background: var(--surface);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.checkout-payment-inner {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.checkout-pay-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.checkout-pay-heading {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-secure-icon {
  flex-shrink: 0;
  opacity: 0.75;
}

.checkout-status {
  margin: 0 0 1.35rem;
  min-height: 1.35em;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Keep status for AT while the veil carries the visual load. */
.page-checkout.is-loading .checkout-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide EN summary/legal FOUC until checkout-pay applies locale catalogs. */
.page-checkout.is-loading .checkout-order,
.page-checkout.is-loading .checkout-legal {
  opacity: 0;
}
.page-checkout:not(.is-loading) .checkout-order,
.page-checkout:not(.is-loading) .checkout-legal {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.page-checkout.is-ready .checkout-status {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 1.35rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--ink);
  opacity: 1;
}

.checkout-pay-stage {
  position: relative;
  /* Reserve space so the card block does not jump when wallets appear. */
  min-height: 17rem;
}

.checkout-pay-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0.1rem 0 0;
  /* Opaque cover: Stripe wallets stay layout-visible underneath (required for GPay/Apple Pay). */
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  pointer-events: auto;
}

.page-checkout.is-ready .checkout-pay-veil {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.checkout-veil-wallets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.checkout-veil-wallet {
  height: 3rem;
  margin: 0;
}

.checkout-veil-or {
  margin: 1.35rem 0;
}

.checkout-pay-live {
  position: relative;
  z-index: 1;
  /* Never opacity:0 — Payment Request wallets often fail to init when hidden. */
}

.checkout-express-wrap {
  margin: 0 0 0.15rem;
  width: 100%;
  overflow: visible;
}

.checkout-express-wrap.is-empty,
.checkout-or.is-empty {
  display: none;
}

#express-checkout-element {
  min-height: 3.25rem;
  width: 100%;
  overflow: visible;
}

.checkout-or {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 1.35rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-or::before,
.checkout-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(8, 8, 10, 0.1);
}

.checkout-payment-element {
  min-height: 8rem;
  margin-bottom: 1rem;
}

.checkout-skeleton {
  display: grid;
  gap: 0.75rem;
  padding: 0.25rem 0 1rem;
}

.checkout-skeleton-line {
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-muted) 0%,
    #f0f0f3 48%,
    var(--surface-muted) 100%
  );
  background-size: 220% 100%;
  animation: checkout-shimmer 1.8s ease-in-out infinite;
}

.checkout-skeleton-line.short {
  width: 62%;
  height: 2.25rem;
}

.checkout-error {
  min-height: 1.25em;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #b42318;
}

.checkout-error:empty {
  display: none;
}

.checkout-submit {
  width: 100%;
  justify-content: center;
  min-height: 3rem;
  font-size: 1.02rem;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.checkout-submit:hover:not(:disabled) {
  background: var(--ink-elevated);
  border-color: var(--ink-elevated);
}

.checkout-submit:active:not(:disabled) {
  background: var(--ink);
}

.checkout-submit:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.checkout-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-legal {
  margin: 1.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.checkout-legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-legal a:hover {
  color: var(--ink);
}

@keyframes checkout-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkout-lockup-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkout-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 899px) {
  .checkout-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .checkout-summary {
    align-items: flex-start;
    padding-bottom: 2.25rem;
  }

  .checkout-payment {
    border-left: none;
    border-top: 1px solid rgba(8, 8, 10, 0.08);
    align-items: flex-start;
  }

  .checkout-pay-header {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-summary,
  .checkout-payment,
  .checkout-lockup-wrap {
    animation: none;
  }

  .checkout-skeleton-line {
    animation: none;
  }

  .checkout-pay-veil,
  .checkout-status {
    transition: none;
  }

  .checkout-submit:hover:not(:disabled),
  .checkout-submit:active:not(:disabled) {
    transform: none;
  }
}


/* LP-USE home install primaries */
.hero-cta-install {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0;
  animation: heroRise 0.9s var(--ease-out) 0.15s both;
}
.hero-cta-install .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-cta-install .icon-chrome,
.hero-cta-install .icon-android {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
}
[dir="rtl"] .hero-cta-install .icon-chrome,
[dir="rtl"] .hero-cta-install .icon-android,
[dir="rtl"] .icon-chrome,
[dir="rtl"] .icon-android {
  transform: none;
}
.hero-cta-ghost-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
  animation: heroRise 0.9s var(--ease-out) 0.4s both;
}
@media (max-width: 520px) {
  .hero-cta-install .button {
    width: 100%;
    justify-content: center;
  }
}
