/* The Multiple Project - site styles
   Bone bg, Ink Navy text, Copper accent. Source Serif display, Inter Tight body. */

:root {
  --ink: #0F2741;
  --ink-soft: rgba(15, 39, 65, 0.72);
  --ink-mute: rgba(15, 39, 65, 0.5);
  --ink-line: rgba(15, 39, 65, 0.12);
  --bone: #F5F1EA;
  --bone-warm: #EFE8DC;
  --copper: #B8763A;
  --copper-soft: rgba(184, 118, 58, 0.12);
  --mint: #C8E2C4;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a:hover { color: var(--copper); }

/* Type ladder */
.display, h1.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h3, .h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.005em;
  margin: 0 0 0.3em;
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.42;
  color: var(--ink-soft);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  display: inline-block;
}

.caption {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-mute);
}

em, .italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section--ink {
  background: var(--ink);
  color: var(--bone);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--bone); }
.section--ink .lede { color: rgba(245, 241, 234, 0.78); }
.section--ink .eyebrow { color: #E2A57A; }
.section--ink a { color: var(--bone); }
.section--ink a:hover { color: #E2A57A; }

.section--warm { background: var(--bone-warm); }

.divider {
  height: 1px;
  background: var(--ink-line);
  border: 0;
  margin: 0;
}

/* Grid helpers */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--copper);
  color: var(--bone);
  border-color: var(--copper);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bone);
}

.section--ink .btn-primary {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.section--ink .btn-primary:hover {
  background: var(--copper);
  color: var(--bone);
  border-color: var(--copper);
}

.btn-arrow::after {
  content: '\2192';
  font-size: 18px;
  line-height: 1;
}

/* Cards */
.card {
  background: var(--bone);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.card--warm { background: var(--bone-warm); border-color: transparent; }
.card--ink { background: var(--ink); color: var(--bone); border-color: transparent; }
.card--ink h3 { color: var(--bone); }
.card--ink p { color: rgba(245, 241, 234, 0.78); }

.card .num {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--copper);
  margin-bottom: 14px;
  display: block;
}

/* Header */
.site-header {
  padding: 22px 0;
  background: var(--bone);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: rgba(245, 241, 234, 0.92);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo img { height: 28px; width: auto; }
.site-header .logo { display: inline-flex; }
.site-header .nav-cta { font-size: 14px; padding: 12px 18px; }

/* Hero */
.hero {
  padding: clamp(72px, 12vw, 144px) 0 clamp(56px, 8vw, 96px);
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-size: clamp(36px, 5.4vw, 64px);
}
.hero h1 span { display: inline; }
@media (min-width: 720px) {
  .hero h1 span { display: block; }
}
.hero .lede {
  max-width: 56ch;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero .meta {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-mute);
}

/* Centered hero variant */
.hero--centered { text-align: center; }
.hero--centered .eyebrow { display: inline-block; }
.hero--centered .lede { margin-left: auto; margin-right: auto; }
.hero--centered .cta-row { justify-content: center; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--copper);
  display: block;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); margin: 0; }

/* Problem blocks */
.problem-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 860px) { .problem-row { grid-template-columns: 1fr; } }
.problem-block {
  border-top: 1px solid var(--ink-line);
  padding-top: 28px;
}
.problem-block h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 14px;
}
.problem-block p { color: var(--ink-soft); margin: 0; }

/* What you get */
.gets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .gets-grid { grid-template-columns: 1fr; } }

/* CTA strip */
.cta-strip {
  text-align: center;
}
.cta-strip h2 {
  max-width: 18ch;
  margin: 0 auto clamp(20px, 2vw, 28px);
}
.cta-strip .lede {
  max-width: 52ch;
  margin: 0 auto clamp(28px, 3vw, 40px);
}

/* Owner letter (between hero and problem) */
.owner-title {
  text-align: left;
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: none;
  margin: 0 0 clamp(36px, 4vw, 56px);
}
.owner-body {
  max-width: 64ch;
}
.owner-body p {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1em;
}
.owner-body ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}
.owner-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}
.owner-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--copper);
  border-radius: 2px;
}
.owner-body p.punch {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  text-align: left;
  margin: 32px 0;
  max-width: 28ch;
}
.owner-body .cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Mission section */
.mission {
  max-width: 64ch;
  margin: 0 auto;
  text-align: left;
}
.mission .eyebrow { display: block; margin-bottom: 20px; }
.mission p { font-size: 22px; line-height: 1.5; color: var(--ink-soft); }
.mission p strong { color: var(--ink); font-weight: 500; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(245, 241, 234, 0.72);
  padding: clamp(56px, 7vw, 88px) 0 36px;
}
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: #E2A57A; text-decoration: underline; }
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) {
  .site-footer .top { grid-template-columns: 1fr; gap: 36px; }
}
.site-footer .brand img { height: 32px; width: auto; margin-bottom: 18px; }
.site-footer .brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  color: rgba(245, 241, 234, 0.86);
  max-width: 36ch;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 16px; }
.site-footer .legal {
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(245, 241, 234, 0.5);
}
.site-footer .legal a { font-size: 13px; }

/* Long-form page (privacy/terms/disclaimer) */
.longform {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
}
.longform h1 { margin-bottom: 16px; }
.longform .updated { color: var(--ink-mute); font-size: 14px; margin-bottom: 36px; }
.longform h2 { margin-top: 48px; font-size: 26px; }
.longform p, .longform li { color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.longform ul { padding-left: 22px; }
.longform li { margin-bottom: 8px; }

/* Discovery page */
.discovery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 1024px) { .discovery-shell { grid-template-columns: 1fr; } }

.discovery-intro h1 { margin-bottom: 18px; max-width: 16ch; }
.discovery-intro .lede { max-width: 48ch; margin-bottom: 28px; }
.discovery-intro ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.discovery-intro ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}
.discovery-intro ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  background: var(--copper);
  border-radius: 2px;
}

.chat-card {
  background: var(--bone-warm);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--ink-line);
  height: 640px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .chat-card { height: 580px; }
}
.chat-card .chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ink-line);
}
.chat-card .chat-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2EA86E;
  box-shadow: 0 0 0 4px rgba(46, 168, 110, 0.16);
}
.chat-card .chat-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.chat-card .chat-head .meta { margin-left: auto; font-size: 12px; color: var(--ink-mute); }

#chat-mount {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chat-mount > * { flex: 1 1 auto; min-height: 0; }

/* Snapshot card */
.snapshot {
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--bone-warm);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--ink-line);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.snapshot[data-state="empty"] .snapshot-body { display: none; }
.snapshot[data-state="empty"] .snapshot-empty { display: block; }
.snapshot[data-state="ready"] .snapshot-empty { display: none; }
.snapshot[data-state="ready"] .snapshot-body { display: block; animation: snapshotFade 480ms ease-out; }
.snapshot[data-state="error"] .snapshot-empty { display: none; }
.snapshot[data-state="error"] .snapshot-body { display: none; }
.snapshot[data-state="error"] .snapshot-error { display: block; }
.snapshot-error { display: none; color: var(--ink-soft); font-style: italic; text-align: center; padding: 28px; }

@keyframes snapshotFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.snapshot-empty { color: var(--ink-mute); text-align: center; padding: 40px 16px; }
.snapshot-empty p { margin: 0; }

.snapshot h2 {
  font-family: var(--serif);
  font-weight: 600;
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 6px;
}
.snapshot .biz {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.score-chip {
  background: var(--ink);
  color: var(--bone);
  width: fit-content;
  margin: 0 auto 28px;
  padding: 22px 36px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.values .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.values .amount {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.gap-pill {
  background: var(--mint);
  color: #1F4530;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 16px;
  width: fit-content;
  margin: 0 auto 36px;
}

.bars { margin: 0; padding: 0; list-style: none; }
.bars li {
  display: grid;
  grid-template-columns: 140px 1fr 56px;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
@media (max-width: 540px) {
  .bars li { grid-template-columns: 110px 1fr 48px; gap: 10px; font-size: 14px; }
}
.bars .name { color: var(--ink-soft); text-align: right; font-size: 14px; }
.bars .track { background: rgba(15, 39, 65, 0.08); border-radius: 999px; height: 12px; overflow: hidden; }
.bars .fill {
  background: linear-gradient(90deg, #2D6CDF, #5A8DE9);
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 720ms ease-out;
}
.bars .pct { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.snapshot .footnote {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

/* Utilities */
.center-text { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.text-soft { color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
