/* ==========================================================================
   PourIntel — dark base + amber/gold accent
   Two amber roles, deliberately different:
     --accent    #F0A92C  UI accent (buttons, links, rules). Not a data colour.
     --series-1  #C98500  the ONLY colour any data mark wears. Chosen because it
                          is the amber that sits inside the dark-mode lightness
                          band (OKLCH L 0.48-0.67) AND clears 3:1 on --surface-1.
                          #F0A92C is L 0.784 — too light for a data mark here.
   ========================================================================== */

:root {
  --surface-0: #0b0a09;
  --surface-1: #161412;
  --surface-2: #1f1b17;
  --surface-3: #2a241e;
  --border: #302921;
  --border-strong: #3f362c;

  --text-primary: #f7f4ef;
  --text-secondary: #b9b0a3;
  --text-muted: #8b8276;

  --accent: #f0a92c;
  --accent-bright: #ffc15e;
  --accent-deep: #8a5c08;
  --series-1: #c98500;

  --good: #4f9d69;

  --max: 1060px;
  --radius: 10px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #17120a; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

section { padding: clamp(56px, 9vw, 96px) 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.lede { font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--text-secondary); max-width: 62ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; font-size: 1.06rem; color: var(--text-primary); text-decoration: none; letter-spacing: -.02em; }
.brand svg { display: block; flex: none; }
.brand b { color: var(--accent); font-weight: 680; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: .93rem; }
.nav a:hover { color: var(--text-primary); }
@media (max-width: 720px) { .nav a.nav-hide { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  font: 620 .97rem/1 var(--font-sans); cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #17120a; }
.btn-primary:hover { background: var(--accent-bright); color: #17120a; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 80px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: start; } }

.hero h1 .amber { color: var(--accent); }
.hero .lede { margin-bottom: 28px; }

.prelaunch {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text-secondary); border-radius: 999px;
  padding: 6px 14px 6px 11px; font-size: .8rem; margin-bottom: 22px;
}
.prelaunch .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: .97rem; }
.hero-points li::before {
  content: ""; position: absolute; left: 6px; top: .58em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--series-1);
}

/* ---------- forms ---------- */
.capture { max-width: 470px; }
.capture-row { display: grid; gap: 10px; }
@media (min-width: 470px) { .capture-row { grid-template-columns: 1fr auto; } }
.capture input[type="email"] {
  width: 100%; padding: 13px 14px; font: inherit; font-size: .97rem;
  color: var(--text-primary); background: var(--surface-1);
  border: 1px solid var(--border-strong); border-radius: 8px;
}
.capture input::placeholder { color: var(--text-muted); }
.capture input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(240,169,44,.16); }
.capture .fineprint { margin: 12px 0 0; font-size: .82rem; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin: 12px 0 0; font-size: .9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--accent-bright); }

/* ---------- report card (the sample preview) ---------- */
.viz-root { --surface-1: #161412; }

.report-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.report-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.report-head .title { font: 620 .95rem/1.3 var(--font-sans); }
.report-head .meta { font: 400 .78rem/1.3 var(--font-mono); color: var(--text-muted); margin-left: auto; }
.report-body { padding: 20px; }
.report-body > * + * { margin-top: 26px; }

/* stat tiles — label (sentence case) + value + delta-free caption */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.tile .t-label { font-size: .76rem; color: var(--text-secondary); margin: 0 0 6px; line-height: 1.3; }
.tile .t-value { font: 640 clamp(1.5rem, 4.4vw, 1.9rem)/1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tile .t-note { font: 400 .7rem/1.3 var(--font-mono); color: var(--text-muted); margin: 6px 0 0; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* single-series horizontal bar chart.
   One series => no legend (the figure title names it). Value at the tip.
   Marks <=24px thick, 4px rounded data-end, square at the baseline. */
.figure { margin: 0; }
.figure figcaption { font: 620 .85rem/1.3 var(--font-sans); margin-bottom: 4px; }
.figure .sub { font: 400 .76rem/1.4 var(--font-mono); color: var(--text-muted); margin: 0 0 14px; }

.bars { display: grid; gap: 8px; }              /* >2px surface gap between bars */
.bar-row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; position: relative; }
.bar-row .b-label { font-size: .82rem; color: var(--text-secondary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bar-fill {
  height: 14px; background: var(--series-1);
  border-radius: 0 4px 4px 0;                    /* square at baseline, rounded data-end */
  min-width: 3px; flex: none;
}
.bar-val { font: 500 .8rem/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-secondary); flex: none; }

/* hover layer: hit target spans the whole row, tooltip on the mark */
.bar-row::after {
  content: attr(data-tip);
  position: absolute; left: 128px; bottom: calc(100% + 6px); z-index: 5;
  background: var(--surface-3); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 6px 9px; font: 400 .76rem/1.35 var(--font-sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.bar-row:hover::after, .bar-row:focus-visible::after { opacity: 1; }
.bar-row:hover .bar-fill { background: var(--accent); }

/* data table — also the table view that backs the chart */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
table.data caption { text-align: left; font: 620 .85rem/1.3 var(--font-sans); color: var(--text-primary); margin-bottom: 4px; }
table.data caption .sub { display: block; font: 400 .76rem/1.4 var(--font-mono); color: var(--text-muted); margin-top: 4px; }
table.data th, table.data td { padding: 9px 12px 9px 0; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data thead th { font: 600 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
table.data tbody td { color: var(--text-secondary); }
table.data tbody td.name { color: var(--text-primary); font-weight: 560; white-space: normal; min-width: 180px; }
table.data td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data tbody tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block; font: 600 .68rem/1 var(--font-mono); letter-spacing: .06em;
  padding: 4px 7px; border-radius: 4px; background: var(--surface-3);
  color: var(--accent); border: 1px solid var(--border-strong);
}
.src { font: 400 .76rem/1.5 var(--font-mono); color: var(--text-muted); margin: 0; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: var(--accent-deep); color: var(--accent-bright);
  font: 640 .85rem/1 var(--font-mono); border: 1px solid var(--border-strong);
}
.step p { margin: 0; color: var(--text-secondary); font-size: .94rem; }
.step h3 { margin-bottom: 8px; }

/* ---------- pricing ---------- */
.prices { display: grid; gap: 18px; margin-top: 36px; align-items: start; }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--accent-deep); background: var(--surface-2); }
.plan .tag {
  align-self: flex-start; font: 600 .66rem/1 var(--font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-deep);
  border-radius: 999px; padding: 5px 9px; margin-bottom: 12px;
}
.plan h3 { margin-bottom: 6px; }
.plan .who { font-size: .85rem; color: var(--text-muted); margin: 0 0 18px; }
.plan .price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 18px; }
.plan .price .amt { font: 650 2.3rem/1 var(--font-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan .price .per { color: var(--text-muted); font-size: .9rem; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 24px; font-size: .91rem; color: var(--text-secondary); }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--series-1);
}
.plan .btn { margin-top: auto; width: 100%; }
.price-note { margin: 26px 0 0; font-size: .86rem; color: var(--text-muted); max-width: 70ch; }

/* ---------- cta band ---------- */
.cta-band { background: var(--surface-1); }
.cta-band .inner { display: grid; gap: 30px; }
@media (min-width: 880px) { .cta-band .inner { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- faq ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font: 400 1.35rem/1 var(--font-mono);
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 20px; color: var(--text-secondary); font-size: .95rem; max-width: 74ch; }
.faq .answer :last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: 48px 0 36px; font-size: .88rem; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font: 600 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--text-muted); }
.foot-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  color: var(--text-muted); font-size: .82rem;
}
.foot-bottom p { margin: 0; }
