/* ============================================================
   PourIntel — landing page
   Dark base + amber/gold. Mobile-first. No webfonts, no frameworks.
   ============================================================ */

:root {
  /* base — warm near-black, not blue-black */
  --ink:        #0a0908;
  --ink-1:      #121010;
  --ink-2:      #1a1715;
  --ink-3:      #221e1a;
  --line:       #2e2822;
  --line-soft:  #201c18;

  /* accent — liquor-warm gold, deliberately desaturated vs. neon */
  --gold:       #d99e30;
  --gold-hi:    #f0c560;
  --gold-deep:  #8a6216;
  --gold-wash:  rgba(217, 158, 48, .10);
  --gold-edge:  rgba(217, 158, 48, .28);

  --bone:       #f4efe5;
  --bone-dim:   #cfc6b8;
  --muted:      #9d9488;
  --muted-2:    #776f65;

  --ok:         #7fb069;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --r: 10px;
  --r-lg: 16px;

  --pad-y: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--gold-hi); text-decoration-color: var(--gold-edge); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.center { text-align: center; }

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: #17110a;
  padding: 10px 16px; border-radius: 0 0 var(--r) 0;
  font-weight: 700; z-index: 99;
}
.skip:focus { left: 0; top: 0; }

/* ── headings ───────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  color: var(--bone);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 8.2vw, 4rem);
  letter-spacing: -.022em;
}
h1 em {
  font-style: normal;
  color: var(--gold-hi);
}

.section-h { font-size: clamp(1.55rem, 5.2vw, 2.4rem); margin-bottom: 14px; }
.section-sub {
  max-width: 62ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.02rem;
}
.center .section-sub { margin-inline: auto; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(176deg, var(--gold-hi), var(--gold));
  color: #1a1206;
  border-color: var(--gold-hi);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 22px -14px rgba(217,158,48,.9);
}
.btn-primary:hover { background: var(--gold-hi); color: #1a1206; }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold-edge); color: var(--gold-hi); background: var(--gold-wash); }

.btn-sm { min-height: 40px; padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ── header ─────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 9, 8, .86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-word {
  font-family: var(--font-body);
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -.015em;
  color: var(--bone);
}
.brand-word-alt { color: var(--gold); }

.head-nav { display: none; gap: 26px; }
.head-nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}
.head-nav a:hover { color: var(--bone); }

.head-cta { display: none; }

@media (min-width: 900px) {
  .head-nav { display: flex; }
  .head-cta { display: inline-flex; }
  .brand { margin-right: 34px; }
  .head-nav { margin-right: auto; }
}

/* ── hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 56px 0 clamp(48px, 9vw, 84px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 78% at 8% -10%, rgba(217,158,48,.15), transparent 58%),
    radial-gradient(80% 60% at 100% 0%, rgba(138,98,22,.13), transparent 60%),
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-edge) 22%, var(--gold-edge) 78%, transparent);
}
.hero-inner { max-width: 880px; }

.br-lg { display: none; }
@media (min-width: 760px) { .br-lg { display: inline; } }

.lede {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  color: var(--bone-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-cta .btn { flex: 1 1 auto; min-width: 210px; }
@media (min-width: 600px) { .hero-cta .btn { flex: 0 0 auto; } }

.hero-note {
  margin: 30px 0 0;
  padding: 16px 18px;
  max-width: 68ch;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--ink-1);
  color: var(--muted);
  font-size: .94rem;
}
.hero-note strong { color: var(--bone); }

.hero-strip {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  padding: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-strip li {
  background: var(--ink-1);
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--bone-dim);
}
.hero-strip span {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
@media (min-width: 720px) { .hero-strip { grid-template-columns: repeat(3, 1fr); } }

/* ── bands ──────────────────────────────────────────────── */

.band {
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--line-soft);
}
.band-alt { background: var(--ink-1); }

@media (min-width: 760px) { :root { --pad-y: 88px; } }

/* ── card grids ─────────────────────────────────────────── */

.cols-3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-1);
}
.card.plain { background: var(--ink-2); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

.problem-grid { margin-top: 8px; }

/* ── steps ──────────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: s;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.steps li {
  position: relative;
  background: var(--ink);
  padding: 26px 22px 26px 22px;
}
.band-alt .steps li { background: var(--ink-2); }
.step-n {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 56ch; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ── sample report mock ─────────────────────────────────── */

.report {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-1);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95);
}
.report-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a332c; flex: none; }
.dot:first-child { background: var(--gold-deep); }
.report-subject {
  margin-left: 8px;
  font-size: .78rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-body { padding: 20px 16px 18px; }
@media (min-width: 700px) { .report-body { padding: 26px 28px 22px; } }

.report-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.report-brand {
  display: block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--gold-hi);
}
.report-meta { font-size: .8rem; color: var(--muted-2); }

.report-county {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}
.report-county h4 {
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
}
.report-count { font-size: .8rem; color: var(--gold); font-family: var(--font-mono); }

.lead {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold-deep);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--ink-2);
  margin-bottom: 12px;
}
.lead header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.lead h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-right: 2px;
}
.tag {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tag-new { color: var(--gold-hi); border-color: var(--gold-edge); background: var(--gold-wash); }
.tag-live { color: var(--ok); border-color: rgba(127,176,105,.35); background: rgba(127,176,105,.1); }
.tag-chain { color: var(--bone-dim); }

.lead dl {
  margin: 0;
  display: grid;
  gap: 9px 22px;
  font-size: .87rem;
}
@media (min-width: 620px) { .lead dl { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.lead dl > div { display: flex; gap: 8px; min-width: 0; }
.lead dt {
  flex: none;
  width: 84px;
  color: var(--muted-2);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding-top: 2px;
}
.lead dd { margin: 0; color: var(--bone-dim); min-width: 0; overflow-wrap: anywhere; }
.lead dd.unknown { color: var(--muted-2); font-style: italic; }

.report-foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted-2);
}

.report-legend {
  margin: 14px 0 28px;
  font-size: .85rem;
  color: var(--muted-2);
}
.report-legend strong { color: var(--muted); }

/* ── pricing ────────────────────────────────────────────── */

.tiers {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink);
}
.tier-featured {
  border-color: var(--gold-edge);
  background:
    linear-gradient(180deg, var(--gold-wash), transparent 42%),
    var(--ink-2);
  box-shadow: 0 0 0 1px var(--gold-wash), 0 24px 56px -40px rgba(217,158,48,.5);
}
.tier-flag {
  position: absolute;
  top: -11px; left: 22px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gold);
  color: #1a1206;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tier h3 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.price {
  margin: 10px 0 2px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -.03em;
}
.price .cur { font-size: 1.5rem; vertical-align: super; margin-right: 1px; color: var(--muted); }
.price .per { font-family: var(--font-body); font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier-for { margin: 0 0 18px; font-size: .92rem; color: var(--muted); }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; flex: 1 1 auto; }
.ticks li {
  position: relative;
  padding: 0 0 10px 24px;
  font-size: .92rem;
  color: var(--bone-dim);
}
.ticks li::before {
  content: "";
  position: absolute; left: 3px; top: .5em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.ticks strong { color: var(--bone); }

.pricing-note {
  margin: 26px 0 0;
  font-size: .87rem;
  color: var(--muted-2);
}
.pricing-note strong { font-family: var(--font-mono); color: var(--bone-dim); letter-spacing: .04em; }

/* ── email capture ──────────────────────────────────────── */

.capture {
  background:
    radial-gradient(85% 100% at 50% 0%, rgba(217,158,48,.11), transparent 62%),
    var(--ink);
}
.capture-inner { max-width: 620px; margin-inline: auto; text-align: center; }

.form {
  text-align: left;
  margin-top: 4px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-1);
}
@media (min-width: 620px) { .form { padding: 28px; } }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); }

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-wash);
}
.field input[aria-invalid="true"] { border-color: #c4603f; }

/* honeypot — hidden from humans, reachable by naive bots */
.field-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-fine { margin: 14px 0 0; font-size: .8rem; color: var(--muted-2); }

.form-status {
  margin: 12px 0 0;
  font-size: .9rem;
  min-height: 1.2em;
  color: var(--bone-dim);
}
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: #e08a6a; }

/* The report link app.js injects after a successful submission. Only ever added
   when /api/subscribe returns a reportUrl, so there is no empty state to style. */
.form-report-link { margin-top: 14px; }

.form.is-sent .field, .form.is-sent #sample-submit, .form.is-sent .form-fine { display: none; }

/* ── faq ────────────────────────────────────────────────── */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
}
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq summary:hover { background: var(--ink-2); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 72ch; }

/* ── final cta ──────────────────────────────────────────── */

.final {
  background:
    radial-gradient(70% 120% at 50% 110%, rgba(217,158,48,.14), transparent 60%),
    var(--ink-1);
}

/* ── footer ─────────────────────────────────────────────── */

.site-foot {
  padding: 48px 0 32px;
  background: var(--ink);
  font-size: .9rem;
}
.foot-inner {
  display: grid;
  gap: 28px;
  padding-bottom: 32px;
}
@media (min-width: 760px) {
  .foot-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}
.foot-brand p { margin: 10px 0 0; color: var(--muted-2); max-width: 36ch; font-size: .88rem; }
.foot-col h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--bone); text-decoration: underline; }

.foot-legal {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.foot-legal p { margin: 0 0 14px; color: var(--muted-2); font-size: .8rem; max-width: 90ch; }
.foot-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 !important;
}
.foot-copy a { color: var(--muted-2); }

/* ── print ──────────────────────────────────────────────── */

@media print {
  .site-head, .hero-cta, .capture, .final { display: none; }
  body { background: #fff; color: #000; }
}

/* ── checkout CTAs (pricing) ─────────────────────────────── */
/* The disabled state is the default in the markup, so it has to look
   deliberate rather than broken: dimmed, not-allowed, and always paired with a
   visible sentence saying what to do instead. */
.tier-cta { margin-top: auto; }
.tier-buy[disabled],
.btn[disabled] {
  cursor: not-allowed;
  background: var(--ink-3);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
  opacity: 1;
}
.tier-buy[disabled]:hover { background: var(--ink-3); border-color: var(--line); color: var(--muted); }
.tier-buy[disabled]:active { transform: none; }
.tier-buy.is-busy { cursor: progress; }
.is-hidden { display: none !important; }

.tier-cta-note {
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.tier-cta-note.is-err { color: #e08a6a; }
.tier-cta-note.is-ok  { color: var(--ok); }
.tier-cta-alt { margin: 8px 0 0; font-size: .82rem; }
.tier-cta-alt a { color: var(--muted); }
.tier-cta-alt a:hover { color: var(--gold-hi); }
.tier-cta-manual + .tier-cta-note { margin-top: 10px; }

/* ── checkout result pages (/checkout/success, /checkout/cancelled) ──── */
.result {
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding: var(--pad-y) 0;
}
.result-inner { max-width: 620px; margin-inline: auto; text-align: center; }
.result-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-edge);
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold-hi);
  font-size: 1.5rem;
}
.result-mark.is-ok { color: var(--ok); border-color: rgba(127,176,105,.35); background: rgba(127,176,105,.1); }
.result dl.result-facts {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-1);
  text-align: left;
  font-size: .93rem;
}
.result-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.result-facts dt { color: var(--muted); }
.result-facts dd { margin: 0; color: var(--bone-dim); font-family: var(--font-mono); overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.result-actions .btn { flex: 1 1 auto; min-width: 200px; }
.result-fine { margin: 22px 0 0; font-size: .82rem; color: var(--muted-2); }
.result-fine.is-err { color: #e08a6a; }
