/* BotixDigital: one stylesheet, design tokens from ARCHITECTURE.md.
   Light by default, automatic dark theme through prefers-color-scheme (see recomendation.md). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --surface: #f6f6f3;       /* alternate section background */
  --text: #111111;
  --text-2: #5b5b57;        /* secondary text */
  --border: #e5e5e0;
  --accent: #2340e0;        /* the only brand colour; change it here */
  --accent-ink: #ffffff;
  --ok: #1a7f4b;            /* ticks and instant-access note only */
  --radius: 12px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
  --accent-text: var(--accent);
}
/* Dark tokens appear twice on purpose: once for the device setting, once for ?theme=dark. Keep them identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #f2f3f5;
    --text-2: #a3a8b3;
    --border: #272b35;
    --accent: #3d5afe;
    --accent-ink: #ffffff;
    --ok: #4cc38a;
    --accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #f2f3f5;
  --text-2: #a3a8b3;
  --border: #272b35;
  --accent: #3d5afe;
  --accent-ink: #ffffff;
  --ok: #4cc38a;
  --accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 7vw, 56px); line-height: 1.1; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--text-2); margin-top: 8px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; background: var(--bg); padding: 8px 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon--ok { color: var(--ok); }
.icon--no { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--font);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000000); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.9; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: var(--accent-ink);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn {
  display: inline-flex; align-items: center; background: none; border: 0; padding: 0; min-height: 44px;
  color: var(--accent-text); font: 600 16px/1.4 var(--font); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn[disabled] { color: var(--text-2); cursor: default; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.topbar-cta { transition: opacity 150ms ease, transform 150ms ease; }
@media (max-width: 767px) {
  .topbar-cta { opacity: 0; transform: translateY(-4px); pointer-events: none; }
  .topbar.is-cta-visible .topbar-cta { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Offer ticker ---------- */
html:not(.is-offer) .offer-only { display: none !important; }
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; font-size: 14px; font-weight: 600; }
.ticker-track { display: flex; width: max-content; padding: 8px 0; animation: ticker 30s linear infinite; }
.ticker-track span { white-space: nowrap; padding: 0 20px; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero: banner, then buy box, then description ---------- */
.hero { padding: 16px 0 48px; }
.hero-grid { display: grid; gap: 20px; grid-template-areas: "media" "buy" "copy"; }
.hero-media { grid-area: media; }
.hero-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08); }
.buy-box {
  grid-area: buy; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--bg); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}
.hero-copy { grid-area: copy; padding-top: 8px; }
.hero-copy h1 { max-width: 820px; }
.hero-sub { font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 680px; }
.offer-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-text); font-size: 13px; font-weight: 600;
}
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-row .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.was { color: var(--text-2); font-size: 22px; text-decoration-thickness: 2px; }
.save {
  align-self: center; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600;
}
.price-note { color: var(--text-2); font-size: 14px; margin: 4px 0 16px; }
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 16px; }
@media (min-width: 400px) { .btn-lg { font-size: 18px; } }
.buy-box .microcopy { margin-top: 12px; }
.microcopy { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-actions { margin-top: 16px; display: grid; gap: 12px; }

/* ---------- What's inside: materials, folders, proof ---------- */
.sub-h { font-size: 18px; margin: 36px 0 12px; }
.section-head + .sub-h { margin-top: 4px; }
.materials { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.material img { width: 100%; height: auto; aspect-ratio: 600 / 385; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

/* Folder filter: one row of chips that scrolls sideways on narrow phones instead of wrapping. */
.filter {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 12px; padding: 2px 20px; scroll-padding-inline: 20px;
}
.filter::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text);
  font: 600 14px/1 var(--font); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.filter-chip span { font-weight: 600; font-size: 12px; color: var(--text-2); }
.filter-chip:hover { border-color: var(--accent-text); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-chip[aria-pressed="true"] span { color: var(--accent-ink); opacity: 0.85; }

/* Folder tiles: compact two-up cards on phones, four-up on PC. */
.folder-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ftile {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
  align-items: center; padding: 10px 12px; min-height: 64px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  transition: border-color 150ms ease, transform 150ms ease;
}
.ftile:hover { border-color: var(--accent-text); }
.ftile[hidden] { display: none; }
.ftile-badge {
  grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 600; font-size: 15px; color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ftile-badge .icon { width: 18px; height: 18px; }
.ftile-name { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.ftile-tag { font-size: 12px; color: var(--text-2); line-height: 1.3; }

/* How to use it: one compact card with three rows. */
.use-table { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.use-row { display: grid; gap: 8px; padding: 14px 16px; }
.use-row + .use-row { border-top: 1px solid var(--border); }
.use-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.use-label span { font-size: 13px; color: var(--text-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

/* Drive screenshot: behind a toggle on phones, always open on PC (see app.js). */
.drive-details { border: 1px solid var(--border); border-radius: var(--radius); }
.drive-details summary {
  list-style: none; cursor: pointer; position: relative; min-height: 48px; padding: 14px 44px 14px 16px;
  font-weight: 600; font-size: 15px; color: var(--accent-text);
}
.drive-details summary::-webkit-details-marker { display: none; }
.drive-details summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform 150ms ease;
}
.drive-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.drive-details .drive-shot { padding: 0 16px 16px; max-width: 360px; }
.proof-grid { display: grid; gap: 12px; align-items: start; }
.proof-grid figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.proof-grid .banner { margin: 0; }
.final-grid { display: grid; gap: 24px; align-items: center; }
.final-media { margin: 0; max-width: 520px; }
.final-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.final-copy { display: grid; gap: 12px; }
.final-copy .price-row { margin-top: 8px; }
.final-copy .price-note { margin: 0 0 4px; }

/* ---------- Banner, Drive screenshot, featured sample ---------- */
.banner { margin: 0 0 32px; }
.banner img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.inside-grid { display: grid; gap: 24px; align-items: start; }
.drive-shot { margin: 0; max-width: 420px; }
.drive-shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.drive-shot figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.cards--stack { grid-template-columns: 1fr; }
.sample-feature { display: grid; gap: 32px; align-items: center; }
.sample-feature .sample { max-width: 420px; }
.sample-feature .ticks { margin-bottom: 8px; }

/* ---------- Facts ---------- */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 24px 16px 24px 0; }
.fact-num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.fact-label { font-size: 14px; color: var(--text-2); }

/* ---------- Cards / subjects ---------- */
.cards { display: grid; gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card h3 { margin-bottom: 4px; }
.card .meta { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { margin-top: 3px; }
.format-note { margin-top: 24px; color: var(--text-2); font-size: 15px; }

/* ---------- Samples ---------- */
.samples {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 16px; margin: 0 -20px;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.sample { scroll-snap-align: start; margin: 0; }
.sample button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); cursor: zoom-in; overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.06);
  transition: transform 150ms ease;
}
.sample button:hover { transform: translateY(-2px); }
.sample figcaption { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.samples-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 16px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 600; background: var(--bg);
}
.steps h3 { margin-top: 6px; }
.steps p { color: var(--text-2); }

/* ---------- Fit ---------- */
.fit { display: grid; gap: 32px; }
.fit h3 { margin-bottom: 16px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 16px; }
.review blockquote { margin: 0 0 12px; }
.review cite { font-style: normal; color: var(--text-2); font-size: 14px; }

/* ---------- Offer ---------- */
.offer { max-width: 560px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; background: var(--bg); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06); }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 4px; }
.offer .muted.small { margin-bottom: 24px; }
.offer-price .amount { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.offer .ticks { margin-bottom: 24px; }
.offer-foot { margin-top: 16px; display: grid; gap: 8px; }
.countdown { font-size: 14px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--text-2); max-width: 680px; }
.faq .answer p + p { margin-top: 8px; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; color: var(--text-2); }
.footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 16px 0; }
.footer nav a { color: var(--text); display: inline-block; padding: 10px 0; }
.footer p + p { margin-top: 8px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: 400 16px/1.4 var(--font); color: var(--text); background: var(--bg);
  transition: border-color 150ms ease;
}
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--text); border-width: 2px; }
.input[readonly] { background: var(--surface); color: var(--text-2); }
.phone { display: flex; align-items: stretch; }
.phone .prefix {
  display: grid; place-items: center; padding: 0 14px; min-width: 56px;
  border: 1px solid var(--border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface); color: var(--text-2); font-weight: 600;
}
.phone .input { border-radius: 0 var(--radius) var(--radius) 0; }
.field-error { font-size: 14px; color: var(--text); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-hint { font-size: 14px; color: var(--text-2); }
.form-alert {
  border: 1px solid var(--border); border-left: 3px solid var(--text); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 15px; background: var(--surface);
}
.form-alert--ok { border-left-color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Checkout sheet (dialog) ---------- */
dialog { color: var(--text); }
.sheet {
  border: 0; padding: 0; max-width: 100%; width: 100%;
  margin: auto 0 0; border-radius: 16px 16px 0 0;
  background: var(--bg); max-height: 92vh; overflow-y: auto;
}
.sheet::backdrop { background: rgba(17, 17, 17, 0.45); }
.sheet-inner { padding: 12px 20px 24px; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sheet-head h2 { font-size: 20px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none;
  border-radius: 50%; cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.summary-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; margin-bottom: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.summary-line .amount { font-weight: 600; font-size: 18px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); margin-top: 12px; }
.terms-note { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(17, 17, 17, 0.88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 8px 72px; }
.lightbox img { max-height: 100%; max-width: min(100%, 900px); width: auto; border-radius: 8px; background: var(--bg); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #ffffff; font-size: 14px; padding: 0 64px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; bottom: 12px; }
.lb-next { right: 8px; bottom: 12px; }

/* ---------- Success / support pages ---------- */
.page-narrow { max-width: 600px; margin: 0 auto; padding: 48px 20px 80px; }
.state { display: grid; gap: 16px; }
.state h1 { font-size: clamp(28px, 6vw, 40px); }
.status-row { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.status-row .spinner { border-color: var(--border); border-top-color: var(--accent); }
.order-meta { font-size: 14px; color: var(--text-2); }
.order-meta code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--text); word-break: break-all; }
.ok-line { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; }
.help { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 24px; }
.help h2 { font-size: 20px; margin-bottom: 8px; }
.help-actions { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.help-actions li { display: grid; justify-items: start; gap: 0; }
.help-actions li > .muted { margin-top: -6px; }
.help-actions .result { font-size: 14px; color: var(--text-2); width: 100%; }
.checklist { margin: 8px 0 0 20px; color: var(--text-2); }
.checklist li + li { margin-top: 4px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.placeholder-note { border: 1px dashed var(--text-2); border-radius: 8px; padding: 12px 16px; margin: 16px 0 24px; font-size: 14px; color: var(--text-2); }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .samples { grid-auto-columns: 40%; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; }
  .use-row { grid-template-columns: 200px 1fr; align-items: center; }
  .use-label { flex-direction: column; gap: 0; }
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .hero { padding: 32px 0 80px; }
  .buy-box { max-width: 520px; }
  .inside-grid { grid-template-columns: 5fr 6fr; gap: 32px; }
  .cards.cards--stack { grid-template-columns: 1fr 1fr; }
  .sample-feature { grid-template-columns: 420px 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 12px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .samples { grid-auto-columns: calc((100% - 48px) / 4); margin: 0; padding: 4px 0 16px; }
  .sheet { width: 440px; margin: auto; border-radius: var(--radius); }
  .sheet-handle { display: none; }
  .sheet-inner { padding: 24px 32px 32px; }
  .lb-prev { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-close { top: 16px; right: 16px; }
}

/* PC: banner on the left, buy box beside it at eye level, description below. */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    grid-template-areas: "media buy" "copy copy";
    gap: 32px 40px; align-items: center;
  }
  .buy-box { max-width: none; padding: 28px; }
  .materials { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .folder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .ftile { padding: 12px 14px; }
  .sub-h { margin-top: 48px; }
  .proof-grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
  .final-grid { grid-template-columns: 5fr 6fr; gap: 56px; }
  .hero-copy { padding-top: 16px; }
}

/* ---------- V1 FEATURE: returning-buyer view (remove with v1-returning-buyer.js) ---------- */
html.v1-checking #main, html.v1-checking .ticker, html.v1-checking .topbar-cta { visibility: hidden; }
html.v1-owned #main > :not(#v1-owned), html.v1-owned .ticker, html.v1-owned .topbar-cta { display: none !important; }
.v1-panel { padding: 16px 0 80px; }
.v1-back { margin-bottom: 24px; padding-left: 12px; }
.v1-card {
  max-width: 520px; margin: 0 auto; display: grid; gap: 14px; padding: 28px 22px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}
.v1-title { font-size: clamp(26px, 6vw, 34px); line-height: 1.2; }
.v1-result:empty { display: none; }
.v1-forget { justify-self: center; font-size: 14px; font-weight: 400; min-height: 36px; }
.btn-outline { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.btn-outline:hover { background: var(--surface); }

/* ---------- Cookie notice (only when an analytics ID is configured) ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: grid; gap: 8px; padding: 14px 16px; max-width: 560px; margin: 0 auto;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12); font-size: 14px;
}
.consent-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
@media (min-width: 600px) { .consent { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .spinner { animation: spin 1.5s linear infinite !important; }
}

/* ---------- My purchases ---------- */
.purchase-list { list-style: none; display: grid; gap: 16px; margin-top: 16px; padding: 0; }
.purchase-item {
  display: grid; gap: 10px; padding: 20px; justify-items: start;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
.purchase-item .btn { justify-self: stretch; }
.purchase-title { font-weight: 600; }
.purchase-item [role="status"]:empty { display: none; }

/* ---------- Staging bar (STAGING=on only) ---------- */
.staging-bar {
  position: sticky; top: 0; z-index: 100; padding: 6px 16px; text-align: center;
  font-size: 13px; font-weight: 600; background: var(--accent); color: var(--accent-ink);
}
