/* ============================================================
   Sourcing Radar — design system v4 "Light & Quick" (bright pivot)
   Card t_0c872ca1: dark "Linear Precision" retired. Warm near-white
   base (pure-white ban kept), single teal accent (teal-700 #0f766e),
   1px hairline edges, soft low-opacity shadows (blur <= 24px),
   8/12px radii. Zero decorative texture layers — flat bright
   surfaces. Mobile-first (375px base), desktop enhancement via
   min-width queries. Zero webfonts — opinionated system stacks.
   WCAG: accent-on-light 5.14:1, white-on-accent 5.47:1 (AA both ways).
   ============================================================ */

:root {
  /* ---- color: base — warm near-white, pure-white hard ban kept ---- */
  --base: #f7f8f6;
  --base-raise: #fdfdfb;
  --base-overlay: #f1f2ef;
  --base-deep: #f2f3f0;

  /* ---- single accent (teal-700 #0f766e, light-palette) ---- */
  --acx: #0f766e;        /* text-grade accent: 5.14:1 on base, 5.47:1 under white */
  --acx-strong: #115e59; /* hover/darker step (teal-800) */
  --acx-dim: #0f766e;    /* bars & flat fills (kept token for lineage) */
  --acx-16: rgba(15, 118, 110, 0.12);
  --acx-08: rgba(15, 118, 110, 0.08);
  --acx-tint: #edf5f3;

  /* ---- text ramp (warm ink tints, AA-checked on #f7f8f6) ---- */
  --tx-hi: #171a17;   /* headings — 16.5:1 */
  --tx: #383e3a;      /* body — 10.3:1 */
  --tx-2: #5b625d;    /* secondary — 5.9:1 */
  --tx-3: #68706a;    /* captions/meta — 4.8:1 */
  --tx-hi-on-acx: #f7f8f6;

  /* ---- hairline system (1px light-gray edges) ---- */
  --edge: rgba(23, 26, 23, 0.08);
  --edge-2: rgba(23, 26, 23, 0.16);
  --edge-acx: rgba(15, 118, 110, 0.35);

  /* ---- typography (system stacks, zero webfont requests) ---- */
  --font-display: "Avenir Next", "Seravek", "Segoe UI Variable Display", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Seravek", "Gotham Rounded", "Avenir Next", "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* ---- 4px spacing grid ---- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-sec: 64px;   /* mobile-first section rhythm */
  --sp-sec-d: 124px;

  /* ---- shape: soft-but-crisp light system (design directive #5: 16-20px) ---- */
  --r: 16px;
  --r-lg: 20px;
  --r-acx: 999px;

  /* ---- accent gradient (design directive #5: teal -> light blue, sampled
     from Ronald's asset palette; both stops keep white text >= 5.3:1) ---- */
  --acx-grad: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);

  /* ---- elevation: soft low-opacity shadows (design directive #5:
     low-opacity, larger blur; every blur <= 48px) ---- */
  --shadow-rest: 0 1px 2px rgba(23, 26, 23, 0.04), 0 6px 20px rgba(23, 26, 23, 0.06);
  --shadow-float: 0 2px 4px rgba(23, 26, 23, 0.04), 0 16px 40px rgba(23, 26, 23, 0.10);

  /* ---- motion ---- */
  --t-fast: 0.15s;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

header, section, footer { position: relative; z-index: 1; }

section { padding: var(--sp-sec) 0; border-top: 1px solid var(--edge); }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acx);
  margin: 0 0 var(--sp-1);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--tx-hi);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h2 { font-size: clamp(1.65rem, 1.3rem + 1.7vw, 2.3rem); font-weight: 700; }

h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

.section-sub {
  color: var(--tx-2);
  max-width: 56ch;
  margin-top: var(--sp-2);
}

strong { color: var(--tx-hi); font-weight: 600; }

a { color: var(--acx-strong); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r);
  background: var(--base-raise);
  color: var(--tx-hi);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.btn:hover { border-color: var(--edge-acx); background: var(--base-overlay); }

.btn:focus-visible { outline: 2px solid var(--acx); outline-offset: 2px; }

.btn.primary {
  background: var(--acx-grad);
  border-color: var(--acx);
  color: var(--tx-hi-on-acx);
}

.btn.primary:hover {
  border-color: var(--acx-strong);
  box-shadow: var(--shadow-rest);
}

.btn.small { padding: 8px 14px; font-size: 13px; }

/* ---------------- header ---------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--tx-hi);
  white-space: nowrap;
}

.brand-logo { width: 40px; height: 40px; flex: 0 0 auto; } /* design directive #1: logo.png >= 36px */

.site-nav { display: none; }

.header-cta { white-space: nowrap; }

/* ---------------- hero ---------------- */
.hero { padding: var(--sp-5) 0 var(--sp-sec); border-top: 0; }

.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-3); }

.hero-topline {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acx);
  margin-bottom: var(--sp-2);
}

h1 {
  font-size: clamp(2.1rem, 1.55rem + 2.6vw, 3.3rem);
  font-weight: 700;
}

.h1-line { display: block; }

.hero-sub {
  max-width: 54ch;
  color: var(--tx-2);
  font-size: 1.06rem;
  margin-top: var(--sp-3);
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
}

.hero-cta-fineprint {
  margin-top: var(--sp-2);
  font-size: 13px;
  color: var(--tx-3);
}

/* persona ledger */
.persona-grid {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  border-top: 1px solid var(--edge);
}

.persona-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--edge);
}

.persona-idx {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acx);
  padding-top: 3px;
}

.persona-row p { color: var(--tx-2); font-size: 16px; margin-top: 4px; }

/* ---------------- sample report (hero mock) ---------------- */
.hero-sample {
  margin-top: var(--sp-5);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-lg);
  background: var(--base-raise);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 10px var(--sp-2);
  border-bottom: 1px solid var(--edge);
  background: var(--base-overlay);
}

.mock-dots { display: inline-flex; gap: 5px; }

.mock-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--edge-2);
}

.mock-url {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--tx-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-report { padding: var(--sp-2); }

.mock-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--edge);
}

.mock-item-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--tx-hi);
  font-size: 15px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-2);
  border: 1px solid var(--edge-2);
  border-radius: var(--r-acx);
  padding: 3px 9px;
}

.mock-block {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--edge);
}

.mock-block:last-child { border-bottom: 0; padding-bottom: 4px; }

.mock-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acx);
  margin-bottom: var(--sp-1);
}

.mock-mono {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tx);
}

.mock-mono strong { color: var(--tx-hi); }

/* design directive #4: monospace ONLY for data digits — body copy around
   them stays proportional; .num re-applies the mono to figures in mock text */
.mock-mono .num,
.mock-fine .num { font-family: var(--font-mono); }

.mock-fine { font-size: 11.5px; color: var(--tx-3); margin-top: 6px; font-family: var(--font-body); }

.profit-pos { color: var(--acx-strong); font-weight: 600; }

/* sold-price bars */
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 72px;
  padding: 4px 2px 0;
  border-left: 1px solid var(--edge-2);
  border-bottom: 1px solid var(--edge-2);
  margin-bottom: var(--sp-1);
}

.mock-bars span {
  flex: 1;
  height: var(--h, 40%);
  background: var(--acx-dim);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

/* ---------------- how it works ---------------- */
.steps {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.step {
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--base-raise);
  padding: var(--sp-3);
  box-shadow: var(--shadow-rest);
}

.step-idx {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--acx);
}

.step h3 { margin-top: var(--sp-1); }

.step p { color: var(--tx-2); font-size: 16px; margin-top: 6px; }

/* ---------------- included (subscription value) ---------------- */
.included-list {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--edge);
}

.included-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--edge);
}

.included-idx {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acx);
  padding-top: 3px;
}

.included-row p { color: var(--tx-2); font-size: 16px; margin-top: 4px; }

/* ---------------- early access / conversion ---------------- */
/* CTA section texture (design directive #3): share-card.png ripples as a
   low-opacity backdrop under a near-white wash — text keeps its AA contrast
   against the base; the art only whispers. */
.ea-textured {
  background:
    linear-gradient(rgba(247, 248, 246, 0.8), rgba(247, 248, 246, 0.8)),
    url("assets/share-card.png") right -60px top -40px / 640px auto no-repeat;
}

.ea-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

/* form */
.waitlist-form { margin-top: var(--sp-4); }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-2);
  margin-bottom: var(--sp-1);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--tx-hi);
  background: var(--base-deep);
  border: 1px solid var(--edge-2);
  border-radius: var(--r);
}

.form-input::placeholder { color: var(--tx-3); }

.form-input:focus {
  outline: none;
  border-color: var(--acx);
  box-shadow: 0 0 0 1px var(--acx);
}

.form-input[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 1px #b91c1c;
}

.form-submit { width: 100%; }

.form-error {
  margin-top: var(--sp-1);
  font-size: 13.5px;
  color: #b91c1c;
  font-family: var(--font-body);
}

/* founding submit: secondary weight — outlined teal, not filled */
.founding-submit {
  background: transparent;
  border: 1.5px solid var(--edge-acx);
  color: var(--acx-strong);
}

.founding-submit:hover {
  background: var(--acx-08);
  border-color: var(--acx);
}

/* survey selects (card t_6bdf41dd): inherit the email-input look exactly —
   one control vocabulary across the whole form, no second design language */
.survey-row { margin-bottom: var(--sp-2); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  color: var(--tx-hi);
}

.form-select:invalid { color: var(--tx-3); }

.form-select option {
  color: var(--tx-hi);
  background: var(--base-deep);
}

/* flagship output (card t_6bdf41dd): the Maximum Buy Price triple —
   Ask / Your max / Suggested offer, negotiation chip row in the sample report */
.maxprice-trio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.maxprice-slot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 10px 14px;
  background: var(--base-deep);
  border: 1px solid var(--edge);
  border-radius: var(--r);
}

.maxprice-word {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-2);
}

.maxprice-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--tx-hi);
}

.maxprice-max {
  border-color: var(--acx);
  border-width: 1.5px;
  background: var(--acx-08);
}

.maxprice-max .maxprice-num { color: var(--acx-strong); }

.maxprice-offer .maxprice-num { color: var(--acx-strong); }

.fineprint { font-size: 12.5px; color: var(--tx-3); margin-top: var(--sp-1); }

/* founding success state: hairline accent, calm */
.founding-success {
  border-color: var(--edge-acx);
  background: var(--base-raise);
}

.founding-success h3 { color: var(--tx-hi); }

/* success state (hidden until valid submit) */
.form-success {
  margin-top: var(--sp-4);
  border: 1px solid var(--edge-acx);
  border-radius: var(--r-lg);
  background: var(--base-raise);
  box-shadow: var(--shadow-rest);
  padding: var(--sp-3);
}

.form-success h3 { color: var(--acx-strong); }

.form-success p { color: var(--tx); margin-top: 6px; }

/* pricing card (founding track) */
.pricing-card {
  align-self: start;
  border: 1px solid var(--edge-acx);
  border-radius: var(--r-lg);
  background: var(--acx-tint);
  padding: var(--sp-3);
  box-shadow: var(--shadow-float);
}

/* price-anchor line inside the founding card: $9.99 struck, $4.99 is the anchor */
.founding-lock-note {
  color: var(--tx-2);
  font-size: 13.5px;
  margin-top: 4px;
}

.founding-was {
  font-family: var(--font-body);
  color: var(--tx-3);
}

.founding-was [data-price-full] {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.founding-free-note {
  color: var(--tx-2);
  font-size: 13px;
  margin-top: var(--sp-1);
}

.pricing-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acx);
  margin: 0;
}

.pricing-figure { margin: var(--sp-1) 0 0; }

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--tx-hi);
}

.pricing-per {
  font-family: var(--font-display);
  color: var(--tx-2);
  margin-left: 6px;
}

.pricing-note { color: var(--tx-2); font-size: 13.5px; margin-top: 4px; }

.pricing-list {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: var(--sp-2) 0 0;
  border-top: 1px solid var(--edge);
}

.pricing-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14.5px;
  color: var(--tx);
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--acx);
  border-radius: 50%;
  background:
    linear-gradient(var(--base-raise), var(--base-raise)) center/6px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5 5 9l4.5-6' fill='none' stroke='%230f766e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}

.pricing-fineprint { color: var(--tx-3); font-size: 12.5px; margin-top: var(--sp-2); }

/* ---------------- FAQ ---------------- */
.faq-inner { max-width: 780px; }

.faq-list {
  margin-top: var(--sp-4);
  border-top: 1px solid var(--edge);
}

.faq-item {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--edge);
}

.faq-q { font-size: 1.02rem; }

.faq-a { color: var(--tx-2); font-size: 16px; margin-top: var(--sp-1); max-width: 62ch; }

/* ---------------- FAQ closer art (empty-state asset, design directive #3) --- */
.faq-art {
  margin: var(--sp-4) auto 0;
  max-width: 720px;
}

.faq-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: var(--sp-4) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tx-hi);
  letter-spacing: -0.02em;
}

.footer-note { color: var(--tx-3); font-size: 13px; }

.footer-copy { color: var(--tx-3); font-size: 12px; }

/* ---------------- hero art + verdict trio + footer mascot ----------------
   (card t_5129d0b0 — Ronald's transparent PNGs over the light base) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.hero-art { margin: 0; }

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* verdict trio: icon assets mapped to BUY / WALK AWAY / PASS */
.verdict-trio {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.verdict-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--base);
  text-align: center;
}

.verdict-card img {
  /* design directive #2: the 3D verdict icons are the main visual —
     every icon >= 72px, not small chips padding out a row */
  width: 76px;
  height: 76px;
  object-fit: contain; /* non-square sources letterbox, never distort */
}

.verdict-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--tx-hi);
}

.verdict-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--tx-3);
}

/* footer mascot: trust area, deliberately quiet */
.footer-mascot {
  width: 40px;
  height: auto;
  flex: 0 0 auto;
}

/* ============================================================
   DESKTOP ENHANCEMENT (min-width — mobile-first)
   ============================================================ */
@media (min-width: 720px) {
  section { padding: var(--sp-sec-d) 0; }

  .hero { padding: var(--sp-6) 0 var(--sp-sec-d); }

  .site-nav {
    display: flex;
    gap: var(--sp-3);
  }

  .site-nav a {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--tx-2);
    transition: color var(--t-fast);
  }

  .site-nav a:hover { color: var(--acx-strong); }

  .hero-cta-row { flex-direction: row; align-items: center; }

  /* hero split: art rides the right column, top-aligned with the headline */
  .hero-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-4);
  }

  .hero-art {
    align-self: start;
    position: sticky;
    top: 110px;
  }

  .persona-row,
  .included-row {
    grid-template-columns: 180px 1fr;
    gap: var(--sp-3);
    align-items: baseline;
  }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .ea-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-5); }

  .form-row { flex-direction: row; }

  .form-input { flex: 1; }

  /* the founding card is a narrow aside — its input+button row would squeeze
     the email box into placeholder-clipping; keep it stacked there */
  .founding-card .form-row { flex-direction: column; }

  .form-submit { width: auto; white-space: nowrap; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-2);
  }

  .mock-report { padding: var(--sp-3); }

  .mock-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 720px) {
  .hero-sample { margin-top: var(--sp-6); }
}
