/* IntelliFunnel Labs — design tokens & base */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --card: #FFFFFF;
  --card-alt: #F5F0EA;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E5DDD3;
  --orange: #E8521A;
  --amber: #D97706;
  --gray: #9CA3AF;

  --maxw: 1100px;
  --section-pad: 96px;
  --gap-card: 24px;
  --radius: 16px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-density="compact"] {
  --section-pad: 64px;
  --gap-card: 16px;
}
[data-density="spacious"] {
  --section-pad: 128px;
  --gap-card: 32px;
}

[data-theme="dark"] {
  --bg: #0E0E10;
  --bg-alt: #18181B;
  --card: #18181B;
  --card-alt: #1F1F23;
  --ink: #F5F0EA;
  --muted: #9CA3AF;
  --border: #2A2A2E;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography ---------------------------------------------------------- */
.h1 { font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h2 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.body { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--muted); margin: 0; }
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
  display: inline-block;
}
.label.amber { color: var(--amber); }
.label.dark { color: var(--ink); }

@media (max-width: 720px) {
  .h1 { font-size: 40px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 20px; }
}

/* Layout primitives --------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-pad) 0;
}
.section.tight { padding: calc(var(--section-pad) * 0.6) 0; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  padding: 14px 28px;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { background: #000; color: #fff; }
[data-theme="dark"] .btn-dark { background: #F5F0EA; color: #0E0E10; border-color: #F5F0EA; }
[data-theme="dark"] .btn-dark:hover { background: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 13px 27px;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .btn-outline:hover { background: #F5F0EA; color: #0E0E10; }

.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: #d24612; border-color: #d24612; }

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: 13px 27px;
}
.btn-white-outline:hover { background: #fff; color: var(--ink); }

.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }

/* Badge pills --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.badge .spark { color: var(--orange); font-size: 11px; }

.stage-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.stage-tofu { background: var(--orange); }
.stage-mofu { background: var(--amber); }
.stage-bofu { background: var(--ink); }
[data-theme="dark"] .stage-bofu { background: #F5F0EA; color: #0E0E10; }
.stage-coming { background: var(--gray); }
.stage-all { background: linear-gradient(90deg, var(--orange), var(--amber), var(--ink)); }

/* Cards --------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(232,82,26,.4);
  box-shadow: 0 12px 32px -16px rgba(26,26,26,.18);
}

/* Chips --------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip.sm { font-size: 12px; padding: 6px 12px; }
.chip.outline-orange {
  background: transparent;
  border: 1px solid rgba(232,82,26,.4);
  color: var(--orange);
  cursor: default;
}
.chip.outline-orange:hover { border-color: var(--orange); }

/* Reveal animation ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Navbar -------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-logo .spark { color: var(--orange); font-size: 14px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 4px;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
  transition: opacity .2s;
}
.nav-link:hover { opacity: .65; }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .nav-right .nav-link, .nav-right .btn { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Footer -------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #f5f0ea;
  padding: 48px 24px 96px;
  text-align: center;
}
[data-theme="dark"] .footer { background: #050507; }
.footer .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14px;
  color: #9CA3AF;
}
.footer .links span.sep { padding: 0 14px; opacity: .5; }
.footer .links button {
  background: none; border: 0; color: inherit;
  font-family: inherit; font-size: 14px; padding: 0; cursor: pointer;
  transition: color .2s;
}
.footer .links button:hover, .footer .links a:hover { color: #fff; }
.footer .copyright { font-size: 13px; color: #6B6B6B; margin-top: 16px; }


/* Hero gradient ------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(232,82,26,.16), transparent 60%),
    radial-gradient(900px 600px at 92% 30%, rgba(217,119,6,.10), transparent 65%),
    var(--bg);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(232,82,26,.22), transparent 60%),
    radial-gradient(900px 600px at 92% 30%, rgba(217,119,6,.10), transparent 65%),
    var(--bg);
}
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.hero .badge { margin-bottom: 32px; }
.hero .h1 { margin-bottom: 24px; }
.hero .body { max-width: 560px; margin: 0 auto 40px; font-size: 18px; }

/* Stats strip --------------------------------------------------------- */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.stats-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 64px;
}
.stat { text-align: center; flex: 1 1 160px; }
.stat .num {
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Problem ------------------------------------------------------------- */
.problem-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}
.problem-item .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(232,82,26,.12);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* Funnel rows --------------------------------------------------------- */
.funnel-row { margin-bottom: 56px; }
.funnel-row:last-child { margin-bottom: 0; }
.funnel-row .row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.funnel-row .row-label .dot { width: 8px; height: 8px; border-radius: 999px; }
.funnel-row.tofu .row-label { color: var(--orange); }
.funnel-row.tofu .row-label .dot { background: var(--orange); }
.funnel-row.mofu .row-label { color: var(--amber); }
.funnel-row.mofu .row-label .dot { background: var(--amber); }
.funnel-row.bofu .row-label { color: var(--ink); }
.funnel-row.bofu .row-label .dot { background: var(--ink); }

.svc-grid { display: grid; gap: var(--gap-card); }
.svc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.svc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.svc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
@media (max-width: 900px) {
  .svc-grid.cols-3, .svc-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .svc-grid.cols-3, .svc-grid.cols-4, .svc-grid.cols-2 { grid-template-columns: 1fr; }
}

.svc-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.svc-card .name { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.svc-card .hook { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.svc-card .map-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none; border: 0; padding: 0;
  font-family: inherit;
  transition: gap .2s;
}
.svc-card .map-link:hover { gap: 8px; }

/* Signal teaser ------------------------------------------------------- */
.signal-teaser { background: var(--bg-alt); }
.signal-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 40px auto 24px;
  max-width: 880px;
}
.see-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: gap .2s;
}
.see-link:hover { gap: 10px; }

/* Principles ---------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); margin-top: 40px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.principle .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.principle .title { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.principle .copy { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Bottom CTA ---------------------------------------------------------- */
.cta-dark {
  background: var(--ink);
  color: #fff;
  padding: var(--section-pad) 24px;
  text-align: center;
}
[data-theme="dark"] .cta-dark { background: #050507; }
.cta-dark .h2 { color: #fff; max-width: 780px; margin: 0 auto 16px; }
.cta-dark .sub { color: #9CA3AF; max-width: 580px; margin: 0 auto 36px; font-size: 17px; }
.cta-dark .btn-row { justify-content: center; }

/* Signal Table -------------------------------------------------------- */
.signal-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.signal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.signal-table thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 20px;
}
[data-theme="dark"] .signal-table thead th { background: #050507; }
.signal-table tbody td {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink);
}
.signal-table tbody tr:nth-child(odd) td { background: var(--card); }
.signal-table tbody tr:nth-child(even) td { background: var(--bg); }
.signal-table tbody tr:hover td { background: color-mix(in oklab, var(--orange) 6%, var(--card)); }
.signal-table .col-num { width: 40px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.signal-table .col-sig { font-weight: 600; width: 220px; }
.signal-table .col-trig { white-space: nowrap; }
.signal-table .triggers { display: flex; gap: 6px; flex-wrap: wrap; }
.note {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .signal-table { font-size: 13px; }
  .signal-table thead th, .signal-table tbody td { padding: 12px 14px; }
  .signal-table .col-sig { width: auto; }
}

/* Service blocks (Page 2) -------------------------------------------- */
.service-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  border-left-width: 4px;
  border-left-style: solid;
  margin-bottom: 20px;
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.service-block.tofu { border-left-color: var(--orange); }
.service-block.mofu { border-left-color: var(--amber); }
.service-block.bofu { border-left-color: var(--ink); }
[data-theme="dark"] .service-block.bofu { border-left-color: #F5F0EA; }
.service-block.dim { opacity: .35; }
.service-block.match {
  box-shadow: 0 0 0 2px rgba(232,82,26,.5), 0 12px 32px -16px rgba(232,82,26,.3);
}

.sb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sb-top .right { display: flex; gap: 8px; flex-shrink: 0; }
.sb-h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0; flex: 1; min-width: 200px; }

.sb-meta { margin-bottom: 16px; }
.sb-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sb-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-do { font-size: 15px; color: var(--ink); line-height: 1.6; margin: 0; }
.sb-get { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.sb-for { font-size: 14px; font-style: italic; color: var(--muted); display: flex; gap: 8px; }
.sb-for::before { content: "›"; color: var(--orange); flex-shrink: 0; font-style: normal; font-weight: 700; }
.sb-outcome {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  background: rgba(232,82,26,.08);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 0;
}
.sb-bottom { display: flex; justify-content: flex-end; margin-top: 24px; }

@media (max-width: 640px) {
  .service-block { padding: 24px 20px; }
}

/* Talk to Us ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
}
.step-dot {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
  color: var(--muted);
  transition: all .25s ease;
}
.step-dot.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.step-dot.done { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step-bar { flex: 1; height: 1px; background: var(--border); }
.step-bar.done { background: var(--ink); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,82,26,.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .err { color: var(--orange); font-size: 12px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.opt-grid { display: grid; gap: 10px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .opt-grid.cols-2 { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: 14px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.opt:hover { border-color: var(--orange); }
.opt.selected {
  border-color: var(--orange);
  background: rgba(232,82,26,.06);
  box-shadow: 0 0 0 1px var(--orange);
}
.opt .check {
  width: 16px; height: 16px; border-radius: 999px;
  border: 1.5px solid var(--border);
  flex-shrink: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
}
.opt.selected .check { border-color: var(--orange); background: var(--orange); color: #fff; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.success {
  text-align: center;
  padding: 24px 0;
}
.success .check-circle {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin-bottom: 20px;
}

.value-prop { display: flex; flex-direction: column; gap: 24px; }
.vp-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.vp-item .vp-num {
  font-size: 12px; font-weight: 700; color: var(--orange);
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.vp-item .vp-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.vp-item .vp-copy { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

.quote {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.quote .who {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 12px;
  display: block;
}

/* Stage badge inline w/ amber/dark variants for triggers */
.trig-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
