/* productscanner.app — the same palette as the extension panel, so the site
 * and the product read as one thing. Tokens first, dark mode second. */
:root {
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --muted: #86868b;
  --mist: #d2d2d7;
  --paper: #f5f5f7;
  --white: #ffffff;
  --green: #1d8a4e;
  --amber: #b9790a;
  --red: #d5382f;
  --sans: -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --measure: 62ch;
  /* The extension is light only, and so is this page: white, with the
   * panel's paper for inputs and tiles, whatever the system theme says. */
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--mist); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--slate); }
.nav a { text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .nav { gap: 14px; font-size: 14px; } .nav a:first-child { display: none; } }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 56px 0 28px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 18ch; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--slate); max-width: var(--measure); margin: 0 0 26px; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border-radius: 999px; padding: 13px 22px; font-weight: 600; text-decoration: none; }
.cta:hover { opacity: .9; }
.cta.secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mist); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* the verdict card, the product's own UI as the illustration */
.demo { margin: 40px 0 8px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 420px;
  box-shadow: 0 1px 0 var(--mist);
}
.verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pill { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--white); }
.pill.depends { background: var(--amber); }
.card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 6px 0 14px; color: var(--slate); font-size: 15px; }
.claims { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.claims li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--mist); }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.dot.g { background: var(--green); } .dot.a { background: var(--amber); } .dot.r { background: var(--red); }
.claims small { display: block; color: var(--muted); }

/* three-up */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 48px 0; }
.grid h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.grid p { margin: 0; color: var(--slate); font-size: 15px; }

/* prose pages */
.prose { padding: 40px 0 72px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 6px; }
.prose .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0 22px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.prose th { color: var(--slate); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.callout { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; max-width: calc(var(--measure) + 36px); }
.callout p { margin: 0; }
.toc { font-size: 15px; color: var(--slate); columns: 2; column-gap: 32px; padding-left: 20px; margin: 0 0 8px; }
@media (max-width: 560px) { .toc { columns: 1; } }

footer { border-top: 1px solid var(--mist); padding: 26px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── launch page ────────────────────────────────────────── */
.eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero--launch { padding-top: 44px; }
.hero--launch h1 { max-width: 20ch; }
.cta--install { gap: 10px; font-size: 17px; padding: 15px 24px; }
.cta--install svg { width: 20px; height: 20px; }
.trust { font-size: 14px; color: var(--muted); }
.fine code { font-family: var(--mono); font-size: .95em; }
.shot { margin: 28px 0 8px; }
.shot img { width: 100%; height: auto; max-width: 100%; border-radius: var(--radius); box-shadow: 0 1px 0 var(--mist), 0 24px 60px -30px rgba(0,0,0,.35); display: block; }
.shot-cap { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 48px 0; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; min-width: 0; }
.stat strong { font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--slate); }
.how { margin: 24px 0 48px; }
.how h2, .faq h2, .hero--close h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; margin: 0 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; min-width: 0; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 6px 0 4px; font-size: 17px; }
.steps p { margin: 0; font-size: 15px; color: var(--slate); }
.faq { margin: 8px 0 56px; }
.faq details { border-top: 1px solid var(--mist); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--slate); max-width: var(--measure); }
.hero--close { padding: 24px 0 56px; }
.hero--close h2 { max-width: 20ch; }
@media (max-width: 560px) { .cta--install { width: 100%; justify-content: center; } .cta-row { flex-direction: column; align-items: stretch; } .trust { text-align: center; } }

/* ── Black Friday launch page ───────────────────────────── */
.hero--bf { padding-top: 40px; }
.hero--bf h1 { font-size: clamp(36px, 7vw, 64px); max-width: 16ch; }
.hero--bf .lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--slate); max-width: 58ch; margin: 0 0 24px; }
.hero--bf .lede em { font-style: italic; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bag { background: var(--paper); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; max-width: 640px; }
.bag-label { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.bag-label span { font-weight: 400; color: var(--muted); font-size: 13px; }
.bag textarea, .bag input[type=email] { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--mist); border-radius: 10px; padding: 11px 13px; width: 100%; min-width: 0; }
.bag textarea { resize: vertical; min-height: 84px; }
.bag textarea:focus-visible, .bag input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.bag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.bag-row input[type=email] { flex: 1 1 220px; }
.bag-row .cta { flex: 0 0 auto; }
.bag-fine { font-size: 13px; color: var(--muted); margin: 0; }
.bag-done { margin: 0; font-size: 15px; color: var(--green); font-weight: 600; }
.bag-done.is-error { color: var(--red); }
.bag--compact { background: transparent; padding: 0; max-width: 560px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; max-width: 640px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--mist); }
.cta--secondary { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mist); }
.cta--secondary:hover { background: var(--paper); opacity: 1; }

/* the stamp: the product's own vocabulary, large */
.stamp-demo { margin: 44px 0 8px; }
.stamp-wrap { display: flex; justify-content: center; }
.stamp-card { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 36px; border-radius: 20px; min-width: min(100%, 420px); background: var(--paper); transition: background .35s ease; }
.stamp-card[data-verdict="worth_it"] { background: color-mix(in srgb, var(--green) 12%, var(--paper)); }
.stamp-card[data-verdict="skip_it"] { background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
.stamp-card[data-verdict="depends"] { background: color-mix(in srgb, var(--amber) 12%, var(--paper)); }
.stamp-label { font-size: clamp(40px, 8vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stamp-card[data-verdict="worth_it"] .stamp-label { color: var(--green); }
.stamp-card[data-verdict="skip_it"] .stamp-label { color: var(--red); }
.stamp-card[data-verdict="depends"] .stamp-label { color: var(--amber); }
.stamp-product { font-size: 15px; color: var(--slate); }
.stamp-card.in .stamp-label { animation: stampIn .45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes stampIn { from { transform: scale(1.12) rotate(-2deg); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp-card.in .stamp-label { animation: none; } }

/* what we found */
.checked { margin: 48px 0; }
.checked-head h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 8px; max-width: 24ch; }
.checked-head p { color: var(--slate); margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14px; color: var(--slate); }
.card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.card li { display: flex; gap: 8px; align-items: baseline; }
.card li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mist); transform: translateY(-1px); }
.card li.c-supported::before { background: var(--green); } .card li.c-mixed::before { background: var(--amber); } .card li.c-unsupported::before { background: var(--red); }
.card-alt { font-size: 13px; color: var(--muted); }
.card-conf { font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--white); background: var(--muted); }
.pill--worth { background: var(--green); } .pill--skip { background: var(--red); } .pill--depends { background: var(--amber); }
@media (max-width: 560px) { .bag-row .cta { width: 100%; justify-content: center; } }

.br { display: none; }
@media (min-width: 700px) { .br { display: block; } }

.offer { margin: 0 0 4px; font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--green) 10%, var(--white)); border-radius: 10px; padding: 9px 12px; }
.offer strong { color: var(--green); }
