/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }
p { color: var(--ink-soft); }
a { color: var(--accent-deep); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 2px;
}
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
section { padding-block: clamp(var(--s-12), 8vw, var(--s-24)); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep);
  margin-bottom: var(--s-3);
}
.section-title { font-size: var(--text-2xl); max-width: 22ch; margin-bottom: var(--s-4); }
.section-lede { max-width: 58ch; font-size: var(--text-lg); color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--text-base) var(--font-body);
  padding: 14px 28px; border-radius: var(--r-md); border: 0; cursor: pointer;
  text-decoration: none; min-height: 48px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out),
              background-color 160ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-card); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-ui);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); background: #1a3344; }
  .btn-ghost:hover { border-color: var(--ink-soft); background: var(--card); }
}
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }
.btn-note { font-size: var(--text-sm); color: var(--muted); margin-top: var(--s-3); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font: 700 1.35rem var(--font-display); color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: var(--s-6); align-items: center; list-style: none; }
.nav-links a:not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  padding: 8px 2px;
}
@media (hover: hover) { .nav-links a:not(.btn):hover { color: var(--ink); } }
.nav .btn { padding: 9px 18px; min-height: 40px; font-size: var(--text-sm); }
@media (max-width: 760px) { .nav-links li.hide-m { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* Full-viewport hero: the value prop + the single primary CTA (free scan) own the
   screen; the next section sits below the fold. `svh` avoids the mobile URL-bar jump. */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid; align-content: center;
  padding-block: clamp(var(--s-4), 3vw, var(--s-10));
}
.hero-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(var(--s-6), 3vw, var(--s-12)); align-items: center;
}
.hero-copy { grid-column: 1 / 8; position: relative; z-index: 0; }
.hero-art { grid-column: 8 / 13; }
/* Brand target/scope watermark — bleeds off the top-left into the page margin,
   sits behind the copy (z-index:-1) at low opacity so it recedes from the artifact. */
.hero-decal {
  position: absolute; z-index: -1; pointer-events: none;
  top: clamp(-170px, -8vw, -90px);
  left: clamp(-300px, -14vw, -150px);
  width: clamp(440px, 46vw, 720px); height: auto;
  color: var(--accent); opacity: 0.12;
}
@media (max-width: 920px) { .hero-decal { left: clamp(-220px, -30vw, -110px); width: clamp(360px, 70vw, 480px); } }
@media (max-width: 920px) {
  .hero-copy, .hero-art { grid-column: 1 / -1; }
  .hero-art { max-width: 520px; }
}
.hero h1 { font-size: var(--text-3xl); max-width: 16ch; margin-bottom: var(--s-6); }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-sub { font-size: var(--text-lg); max-width: 52ch; margin-bottom: var(--s-8); }
.hero-trust {
  display: flex; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--muted); margin-top: var(--s-6);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; flex: none; }

/* Scan form */
.scan-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card);
  max-width: 460px;
}
.scan-form h2 { font-size: var(--text-lg); margin-bottom: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  margin-bottom: 6px; color: var(--ink-soft);
}
.field input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-ui);
  border-radius: var(--r-sm); min-height: 48px;
}
.field input:focus-visible { outline-offset: 0; border-color: var(--accent-deep); }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.form-error {
  display: none; background: #fbeaea; border: 1px solid #e7c2c2; color: #8a2525;
  padding: 10px 14px; border-radius: var(--r-sm); font-size: var(--text-sm);
  margin-bottom: var(--s-4);
}
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Scan result panel */
.scan-result {
  display: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card);
  max-width: 460px;
}
.scan-result.show { display: block; }
.scan-result h2 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.scan-result table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--text-sm); }
.scan-result td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.scan-result td:first-child { color: var(--muted); }
.scan-result td:last-child { font-weight: 600; text-align: right; }
.flag-count { color: var(--accent-deep); font-weight: 700; }

/* Hero artifact — the one bold move: the product itself, tilted off-grid */
.report-artifact {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-8);
  box-shadow: var(--shadow-float);
  transform: rotate(-1.2deg);
  max-width: 520px; margin-left: auto;
}
@media (max-width: 920px) { .report-artifact { margin: var(--s-8) auto 0; } }
.artifact-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); margin-bottom: var(--s-6);
  font-size: 12px; color: var(--faint);
}
.artifact-head strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.artifact-score { display: flex; gap: var(--s-6); align-items: center; margin-bottom: var(--s-6); }
.artifact-score figcaption { font-size: var(--text-sm); color: var(--muted); max-width: 20ch; }
.acat { margin-bottom: var(--s-3); }
.acat-label {
  display: flex; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; margin-bottom: 4px;
}
.acat-label span:last-child { color: var(--muted); font-weight: 400; }
.abar { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; }
.abar i { display: block; height: 100%; border-radius: 4px; }
.artifact-row {
  display: flex; justify-content: space-between; gap: var(--s-3);
  font-size: 12px; color: var(--ink-soft);
  border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px;
}
.artifact-row .tag {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-deep); background: var(--accent-wash);
  padding: 2px 7px; border-radius: var(--r-pill); align-self: center;
}

/* ── How it works ──────────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8); margin-top: var(--s-12); counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.step::before {
  content: "0" counter(step);
  font: 700 var(--text-sm) var(--font-body); letter-spacing: 0.08em; color: var(--faint);
}
.step h3 { font-size: var(--text-xl); margin: var(--s-2) 0 var(--s-3); }
.step p { font-size: var(--text-base); color: var(--muted); max-width: 38ch; }

/* ── Inside the report ─────────────────────────────────────────────────── */
.report-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.report-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(var(--s-8), 4vw, var(--s-16)); align-items: start; margin-top: var(--s-8);
}
@media (max-width: 920px) { .report-grid { grid-template-columns: 1fr; } }
.report-list { list-style: none; }
.report-list li {
  padding: var(--s-4) 0 var(--s-4) var(--s-8); position: relative;
  border-bottom: 1px solid var(--line-strong);
}
.report-list li::before {
  content: ""; position: absolute; left: 0; top: 26px;
  width: 18px; height: 18px;
  background: var(--accent-wash); border: 1.5px solid var(--accent-deep); border-radius: 50%;
}
.report-list li::after {
  content: ""; position: absolute; left: 5px; top: 31px;
  width: 8px; height: 5px; border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep); transform: rotate(-45deg);
}
.report-list strong { display: block; font-size: var(--text-base); }
.report-list span { font-size: var(--text-sm); color: var(--muted); }
.sample-frame {
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-float); background: var(--card);
}
.sample-frame .chrome {
  display: flex; gap: 6px; padding: 10px 14px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.sample-frame .chrome i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong);
}
.sample-cta { text-align: center; margin-top: var(--s-6); }

/* Sample preview — a calm, framed image of the real report (links to the full sample) */
.sample-shot {
  display: block; text-decoration: none;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sample-shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
}
.sample-frame .chrome-url {
  margin-left: 8px; align-self: center;
  font: 500 12px var(--font-body); color: var(--faint);
}
.shot-clip { display: block; position: relative; max-height: 520px; overflow: hidden; }
.shot-clip img { display: block; width: 100%; height: auto; }
.shot-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 132px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--card));
}

/* ── Versus table ──────────────────────────────────────────────────────── */
.versus { max-width: 760px; margin: var(--s-12) auto 0; }
.versus table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.versus th {
  font-family: var(--font-display); font-size: var(--text-lg); text-align: left;
  padding: var(--s-3) var(--s-4); border-bottom: 2px solid var(--ink);
}
.versus th:last-child { color: var(--accent-deep); }
.versus td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.versus td:first-child { color: var(--muted); font-size: var(--text-sm); width: 30%; }
.versus td:last-child { font-weight: 600; color: var(--ink); }
/* Phones: the 3-column comparison is tight, so shrink type + tighten the cells
   (and narrow the label column) so the Skopely column stops over-wrapping. */
@media (max-width: 560px) {
  .versus { margin-top: var(--s-8); }
  .versus table { font-size: var(--text-sm); }
  .versus th { font-size: var(--text-base); padding: var(--s-2); }
  .versus td { padding: var(--s-3) var(--s-2); }
  .versus td:first-child { width: 24%; font-size: 12px; }
  .price-card .btn { font-size: var(--text-sm); padding-inline: var(--s-4); }
}

/* ── Pricing (the single dark band) ────────────────────────────────────── */
.pricing { background: var(--ink); color: var(--paper); }
.pricing .eyebrow { color: var(--accent); }
.pricing .section-title { color: #fff; }
.pricing .section-lede { color: #b8c2cb; }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6); margin-top: var(--s-12); align-items: stretch;
}
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card {
  background: #16303f; border: 1px solid #29465a;
  border-radius: var(--r-lg); padding: var(--s-8);
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.price-card h3 { font-size: var(--text-xl); }
.price-card .for { font-size: var(--text-sm); color: #9fb0bd; margin-top: 4px; min-height: 2.6em; }
.price-card.featured .for { color: var(--muted); }
.price { font: 700 var(--text-3xl) var(--font-display); margin: var(--s-4) 0 2px; }
.price.is-cta { font-size: var(--text-2xl); }
.price small { font: 600 var(--text-sm) var(--font-body); color: #9fb0bd; }
.price-card.featured .price small { color: var(--muted); }
.price-feats { list-style: none; margin: var(--s-6) 0 var(--s-8); flex: 1; }
.price-feats li {
  padding: 8px 0 8px 26px; position: relative;
  font-size: var(--text-sm); color: #c8d2da; border-bottom: 1px solid #20394a;
}
.price-card.featured .price-feats li { color: var(--ink-soft); border-color: var(--line); }
.price-feats li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700;
}
.price-card.featured .price-feats li::before { color: var(--accent-deep); }
.price-card .btn { width: 100%; }
.price-card:not(.featured) .btn { background: transparent; color: #fff; border: 1px solid #3d5b70; }
@media (hover: hover) {
  .price-card:not(.featured) .btn:hover { background: #1d3a4c; border-color: #557791; }
}
.price-card.featured .btn { background: var(--ink); color: var(--paper); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink);
  font: 700 12px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill);
}
.price-card { position: relative; }
.guarantee {
  text-align: center; margin-top: var(--s-8); font-size: var(--text-sm); color: #9fb0bd;
}
.guarantee a { color: var(--accent); }

/* ── Methodology ───────────────────────────────────────────────────────── */
.method-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6); margin-top: var(--s-12);
}
@media (max-width: 820px) { .method-grid { grid-template-columns: 1fr; } }
.method-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-6); box-shadow: var(--shadow-card);
}
.method-card h3 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.method-card p { font-size: var(--text-sm); color: var(--muted); }
.method-foot {
  margin-top: var(--s-10); padding-top: var(--s-6);
  border-top: 1px solid var(--line-strong);
  font-size: var(--text-sm); color: var(--muted); max-width: none;
}
.method-foot strong { color: var(--ink-soft); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin-top: var(--s-8); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 4px; cursor: pointer; list-style: none;
  font: 600 var(--text-lg) var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font: 400 1.6rem var(--font-body); color: var(--faint);
  transition: transform 180ms var(--ease-out); flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px var(--s-6); max-width: 65ch; color: var(--muted); }

/* ── Final CTA + Footer ────────────────────────────────────────────────── */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--text-2xl); max-width: 24ch; margin: 0 auto var(--s-6); }
footer.site {
  border-top: 1px solid var(--line); padding: var(--s-12) 0; font-size: var(--text-sm);
}
.footer-grid { display: flex; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; }
.footer-grid nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.footer-grid a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .footer-grid a:hover { color: var(--ink); text-decoration: underline; } }
.footer-note { color: var(--faint); margin-top: var(--s-6); max-width: 72ch; }

/* ── Checkout modal ────────────────────────────────────────────────────── */
dialog.checkout {
  border: 0; border-radius: var(--r-lg); padding: 0;
  width: min(520px, calc(100vw - 32px)); background: var(--card);
  box-shadow: var(--shadow-float);
  /* Center the modal. The global `*{margin:0}` reset removes the UA dialog
     `margin:auto`, which otherwise drops a showModal() dialog to the top-left. */
  margin: auto; inset: 0;
  max-height: calc(100dvh - 32px); overflow: auto;
}
dialog.checkout::backdrop { background: rgba(16, 34, 46, 0.55); backdrop-filter: blur(3px); }

/* Autocomplete business picker */
.combo { position: relative; }
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10;
  list-style: none; margin: 0; padding: 4px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); max-height: 260px; overflow: auto;
}
.suggestions li {
  padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer; line-height: 1.3;
}
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--accent-wash); }
.suggestions .s-main { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.suggestions .s-sub { font-size: 12.5px; color: var(--muted); }
/* Non-selectable status row (empty results / lookup error) — feedback instead of a silent blank. */
.suggestions li.s-empty {
  cursor: default; color: var(--muted); font-size: 13px; line-height: 1.4; background: none;
}
/* On phones, render the dropdown IN-FLOW (not absolutely positioned). An absolute dropdown inside
   the fixed checkout <dialog> can land under the on-screen keyboard or get clipped by the dialog's
   scroll box on iOS — the result is "no options appear". In-flow, it always takes real space right
   under the input and pushes the rest of the form down, so it's reliably visible and scrollable. */
@media (max-width: 640px) {
  .suggestions {
    position: static; max-height: none; overflow: visible;
    margin-top: 6px; box-shadow: none;
  }
}
.biz-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--accent-deep); border-radius: var(--r-md);
  background: var(--accent-wash); margin-bottom: var(--s-4);
}
/* `display:flex` above would otherwise defeat the `hidden` attribute, leaving an
   empty confirmation card on screen before the visitor picks anything. */
.biz-card[hidden] { display: none; }
.biz-card-name { font-weight: 600; color: var(--ink); }
.biz-card-name::before { content: "✓ "; color: var(--accent-deep); }
.biz-card-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 88px; gap: var(--s-4); }
.field-row .field { margin-bottom: 0; }
.field select {
  width: 100%; padding: 10px 11px; border: 1px solid var(--line-ui);
  border-radius: var(--r-sm); background: var(--card); font: inherit; color: var(--ink);
}
.linklike {
  background: none; border: 0; padding: 0; color: var(--accent-deep);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: var(--text-lg); }
.modal-close {
  background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--muted); padding: 8px; border-radius: var(--r-sm); min-width: 40px; min-height: 40px;
}
.modal-body { padding: var(--s-6); }
.modal-intro { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--s-6); }
.field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); line-height: 1.5;
  background: var(--paper); border: 1px solid var(--line-ui);
  border-radius: var(--r-sm); min-height: 104px; resize: vertical;
}
.field textarea:focus-visible { outline-offset: 0; border-color: var(--accent-deep); }
.consult-done { padding: var(--s-4) 0; }
.consult-done p { color: var(--ink-soft); margin-bottom: var(--s-3); }
.consult-done strong { color: var(--ink); }
.modal-body .sku-line {
  display: flex; justify-content: space-between; font-size: var(--text-sm);
  background: var(--paper-deep); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: var(--s-6);
}
#checkout-mount { min-height: 420px; }

/* ── Reveal on scroll (progressive; honors reduced motion) ─────────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print { .nav, .scan-form, dialog { display: none !important; } }
