/* STR Modeler — landing page
   Production stylesheet. Tokens from DESIGN_SYSTEM.md (v3, modern clean).
   Fixed palette: cobalt (#2563EB) + lime (#D6FB4F). Values resolved from the
   Claude Design v2 export; inline styles translated to tokens + classes. */

:root {
  /* Brand */
  --primary: #2563EB;          /* cobalt — CTAs, links, number chips */
  --primary-text: #FFFFFF;     /* readable on cobalt */
  --primary-on-light: #2563EB; /* cobalt already AA on white */
  --accent: #D6FB4F;           /* lime — hero pill, final CTA block, mark center */
  --accent-text: #0A0A0B;      /* readable on lime */
  --accent-on-dark: #D6FB4F;   /* lime already AA on dark */
  --tertiary-on-light: #1F2430;/* muted-dark — step numerals 01/02/03 */

  /* Neutrals */
  --ink: #0A0A0B;              /* headings, body, dark buttons */
  --surface: #FFFFFF;          /* page background */
  --soft: #F5F6F8;             /* card / panel fill */
  --line: #E7E8EC;             /* hairline borders */
  --muted: #6B7280;            /* secondary text */
  --subtle: #8A8F9C;           /* tertiary / captions */
  --body: #4A4C55;             /* paragraph text on light */
  --dark: #0F1013;             /* dark section background */
  --danger: #D93A2B;           /* worked-example loss figures */

  /* Sensitivity grid — semantic diverging (never themed by brand color) */
  --grid-neg-bg: #FFE1DE; --grid-neg-fg: #C33224;
  --grid-mid-bg: #EEF0F3; --grid-mid-fg: #7A8091;
  --grid-pos-bg: #D8F7E4; --grid-pos-fg: #12864A;

  --cta-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }

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

.page { width: 100%; background: var(--surface); overflow-x: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 2px; padding: 6px; flex: 0 0 auto;
}
.mark span { border-radius: 1px; background: rgba(255, 255, 255, 0.9); }
.mark span:nth-child(1), .mark span:nth-child(3),
.mark span:nth-child(7), .mark span:nth-child(9) { background: rgba(255, 255, 255, 0.35); }
.mark span:nth-child(5) { background: var(--accent); }
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 4vw, 20px); color: var(--ink); letter-spacing: -0.02em;
}
.header-link { font-size: 13px; font-weight: 600; color: var(--primary-on-light); }

/* ---------- Shared bits ---------- */
.eyebrow-pill {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--primary-on-light); margin-bottom: 12px;
}
.section-title {
  margin: 0 0 30px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-text); padding: 15px 28px; font-size: 16px; box-shadow: var(--cta-shadow); }
.btn-secondary { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 13.5px 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 60px); align-items: center;
  padding: clamp(36px, 6vw, 68px) 0 clamp(36px, 6vw, 56px);
}
.hero-copy { flex: 1 1 340px; min-width: min(100%, 320px); }
.hero-copy .eyebrow-pill { margin-bottom: 22px; }
.hero-h1 {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 7.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.hero-sub { margin: 0 0 30px; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.55; color: var(--body); max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Sensitivity grid card ---------- */
.grid-side { flex: 1 1 360px; min-width: min(100%, 320px); }
.grid-card { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 26px); }
.grid-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.grid-card-title { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.grid-axis-x { margin: 0; font-size: 11px; font-weight: 600; color: var(--subtle); letter-spacing: 0.02em; }
.grid-card-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.grid-body { display: flex; gap: 8px; }
.grid-axis-y { display: flex; align-items: center; flex: 0 0 auto; }
.grid-axis-y span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; color: var(--subtle); letter-spacing: 0.02em; }
.grid {
  flex: 1 1 auto; display: grid;
  grid-template-columns: 2.2rem repeat(5, minmax(0, 1fr)); gap: 5px;
}
.grid .corner { min-height: 20px; }
.grid .colhead { display: flex; align-items: flex-end; justify-content: center; padding: 0 0.2rem 0.35rem; font-size: 11px; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; }
.grid .rowhead { display: flex; align-items: center; justify-content: flex-end; padding-right: 0.45rem; font-size: 11px; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; }
.grid .cell {
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  padding: 0.5rem 0.2rem; font-size: clamp(10px, 2.4vw, 12.5px);
  font-variant-numeric: tabular-nums; font-weight: 500; min-height: 38px;
  text-align: center; line-height: 1.1;
}
.grid .cell.neg { background: var(--grid-neg-bg); color: var(--grid-neg-fg); }
.grid .cell.mid { background: var(--grid-mid-bg); color: var(--grid-mid-fg); }
.grid .cell.pos { background: var(--grid-pos-bg); color: var(--grid-pos-fg); }
.grid .cell.ex { box-shadow: inset 0 0 0 2px var(--primary-on-light); font-weight: 700; }

.grid-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.grid-legend span.item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 4px; }
.swatch.neg { background: var(--grid-neg-bg); }
.swatch.mid { background: var(--grid-mid-bg); border: 1px solid var(--line); }
.swatch.pos { background: var(--grid-pos-bg); }
.grid-caption { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: var(--subtle); }

/* ---------- Section spacing ---------- */
.section { padding: clamp(28px, 5vw, 48px) 0; }
.section-cost { padding: clamp(24px, 4vw, 44px) 0; }
.section-final { padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 5vw, 44px); }

/* ---------- Cost of getting it wrong ---------- */
.cost-card { background: var(--dark); border-radius: 24px; padding: clamp(28px, 5vw, 52px); }
.cost-eyebrow { display: inline-block; background: rgba(214, 251, 79, 0.2); color: var(--accent-on-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.cost-lead { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3.6vw, 34px); line-height: 1.22; letter-spacing: -0.02em; color: #FFFFFF; max-width: 24ch; text-wrap: balance; }
.cost-sub { margin: 18px 0 0; font-size: clamp(15px, 2.2vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, 0.62); max-width: 44ch; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }

.feature-card { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.feature-num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--primary-text); margin-bottom: 18px; }
.feature-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.feature-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

.step-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px; }
.step-num { margin: 0 0 14px; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--tertiary-on-light); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.step-card p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ---------- Proof ---------- */
.proof-intro { margin: 0 0 30px; font-size: clamp(15px, 2.2vw, 18px); line-height: 1.55; color: var(--body); max-width: 52ch; }
.proof-title { margin: 0 0 14px; }
.proof-example { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.proof-label { margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 22px; }
.stat-num { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 5vw, 38px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--danger); line-height: 1; letter-spacing: -0.02em; }
.stat-label { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.flag { background: var(--grid-neg-bg); border-radius: 12px; padding: 14px 16px; }
.flag p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--grid-neg-fg); font-weight: 600; }

.proof-lite { background: var(--primary); border-radius: 20px; padding: 30px; }
.proof-lite .lite-label { margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.85); }
.proof-lite h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; color: var(--primary-text); }
.proof-lite p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.btn-lite { background: #FFFFFF; color: var(--ink); padding: 13px 24px; font-size: 15px; }

/* ---------- Objections ---------- */
.qa-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qa-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.qa-item h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.qa-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 60ch; }

/* ---------- Final CTA ---------- */
.final-card { background: var(--accent); border-radius: 24px; padding: clamp(34px, 6vw, 60px); text-align: center; }
.final-card h2 { margin: 0 auto 24px; max-width: 20ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 46px); line-height: 1.04; letter-spacing: -0.035em; color: var(--accent-text); text-wrap: balance; }
.btn-final { background: var(--ink); color: #FFFFFF; padding: 16px 32px; font-size: 17px; }
.final-note { margin: 18px 0 0; font-size: 14px; color: rgba(10, 10, 11, 0.72); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 44px; border-top: 1px solid var(--line); }
.site-footer .foot-name { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.disclaimer { margin: 0; font-size: 12px; line-height: 1.6; color: var(--subtle); max-width: 70ch; }
