/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --white:        #FFFFFF;
  --warm-gray:    #F7F6F4;
  --warm-gray-2:  #EDEBE8;
  --dark:         #0F172A;
  --navy:         #1E293B;
  --text:         #0F172A;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  --accent:       #2563EB;
  --accent-hover: #1D4ED8;
  --accent-deep:  #1E40AF;
  --accent-light: #EFF6FF;
  --accent-muted: #BFDBFE;
  --accent-dark:  #60A5FA;   /* accent on dark backgrounds */

  --green:        #16A34A;
  --green-light:  #DCFCE7;
  --yellow:       #D97706;
  --yellow-light: #FEF3C7;
  --red:          #DC2626;
  --red-light:    #FEE2E2;

  /* Type scale — Perfect Fourth (×1.333, base 16px) */
  --text-xs:   0.75rem;       /* 12px */
  --text-sm:   0.875rem;      /* 14px */
  --text-base: 1rem;          /* 16px */
  --text-lg:   1.3125rem;     /* 21px */
  --text-xl:   1.75rem;       /* 28px */
  --text-2xl:  2.3125rem;     /* 37px */
  --text-3xl:  3.125rem;      /* 50px */
  --text-4xl:  4.1875rem;     /* 67px */

  /* Spacing — Golden Ratio (×1.618, base 8px) */
  --s1:  5px;
  --s2:  8px;
  --s3:  13px;
  --s4:  21px;
  --s5:  34px;
  --s6:  55px;
  --s7:  89px;
  --s8:  144px;

  --section-pad: 96px;
  --section-pad-sm: 64px;
  --max-width: 1160px;
  --gutter: 28px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-pad { padding: var(--section-pad-sm) 0; }

.bg-white { background: var(--white); }
.bg-warm  { background: var(--warm-gray); }
.bg-dark  { background: var(--dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 14px 24px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-outline-dark {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: var(--text-sm); border-radius: 7px; }

.cta-group {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  display: none;
  gap: var(--s6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: var(--s4); }

.nav-signin {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  display: none;
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--text); }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--s2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s6);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--accent-dark); }

/* Sub-nav (features page) */
.sub-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 46px;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--s6);
  overflow-x: auto;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }

.sub-nav a {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.sub-nav a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(68px + 72px);
  padding-bottom: 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s7);
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: var(--s4);
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s3);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--s5);
}

.hero-cta-note {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--s3);
  letter-spacing: 0.01em;
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-frame {
  width: 268px;
  background: var(--dark);
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 48px 96px rgba(15, 23, 42, 0.22),
    0 16px 40px rgba(15, 23, 42, 0.14);
}

.phone-screen {
  background: #F8FAFC;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  background: #fff;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}

.phone-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.phone-signal {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
.phone-signal span {
  width: 3px;
  background: var(--text);
  border-radius: 1px;
  opacity: 0.7;
}
.phone-signal span:nth-child(1) { height: 4px; }
.phone-signal span:nth-child(2) { height: 7px; }
.phone-signal span:nth-child(3) { height: 10px; }

.doer-step-screen { flex: 1; display: flex; flex-direction: column; }

.doer-step-header {
  background: #fff;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-light);
}

.doer-process-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.doer-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.doer-assigned {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}

.doer-context { padding: 14px 18px; flex: 1; }

.context-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}
.context-row:last-child { border-bottom: none; }

.context-label { font-size: 11px; color: var(--text-light); font-weight: 500; }
.context-value { font-size: 12px; font-weight: 600; color: var(--text); text-align: right; }
.context-value.is-link { color: var(--accent); }

.doer-actions {
  padding: 12px 18px 22px;
  display: flex;
  gap: 8px;
}

.doer-btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}
.doer-btn:hover { opacity: 0.88; }

.doer-btn-primary { background: var(--accent); color: white; }
.doer-btn-ghost   { background: var(--warm-gray); color: var(--text); border: 1px solid var(--border); }

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.section-headline {
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--s4);
}

.section-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-story {
  max-width: 680px;
  margin-bottom: var(--s5);
}

.problem-story p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text);
}
.problem-story p + p { margin-top: var(--s4); }

.problem-scene-break {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: var(--s5);
  line-height: 1.3;
}

.problem-intro {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: var(--s6) 0 var(--s4);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: var(--s6);
}

.problem-card {
  background: var(--white);
  padding: var(--s5);
}

.problem-card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
}

.problem-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.problem-close {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
  max-width: 600px;
}

/* ============================================================
   RECIPE / SOLUTION SECTION
   ============================================================ */
.recipe-quote {
  font-size: clamp(var(--text-xl), 3.8vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--s5);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.recipe-body {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--s7);
  font-weight: 400;
}

.recipe-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.pillar {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.pillar-step {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.pillar-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}

.pillar p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.recipe-close {
  font-size: var(--text-base);
  color: var(--text-muted);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw-layout {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  margin-top: var(--s5);
}

.hiw-steps { display: flex; flex-direction: column; gap: var(--s2); }

.hiw-tab {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s4) var(--s4);
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  text-align: left;
  width: 100%;
  position: relative;
}

.hiw-tab:hover { background: rgba(255,255,255,0.7); }

.hiw-tab.active {
  background: var(--white);
  border-color: var(--accent-muted);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.hiw-tab-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--warm-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}

.hiw-tab.active .hiw-tab-num {
  background: var(--accent);
  color: white;
}

.hiw-tab-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.hiw-tab.active .hiw-tab-title { color: var(--text); }

.hiw-tab-desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.65;
  transition: color 0.2s;
  display: none;
}
.hiw-tab.active .hiw-tab-desc { display: block; color: var(--text-muted); }

/* Progress bar */
.hiw-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: var(--s3);
  overflow: hidden;
}

.hiw-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

/* Panels */
.hiw-panels { position: relative; }

.hiw-panel { display: none; }
.hiw-panel.active {
  display: block;
  animation: fadeUp 0.28s ease;
}

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

.hiw-link {
  display: block;
  margin-top: var(--s4);
  padding-left: calc(30px + var(--s4));
}

.hiw-link a {
  font-size: var(--text-xs);
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-style: normal;
}
.hiw-link a:hover { text-decoration: underline; }

/* ============================================================
   PRODUCT MOCKUPS
   ============================================================ */
.mockup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(15, 23, 42, 0.05);
}

.mockup-bar {
  background: var(--warm-gray);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.mockup-dots { display: flex; gap: 5px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }

.mockup-bar-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}

.builder-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }

.builder-field {}
.builder-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.builder-input-sim {
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.builder-assignee {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
}

.assignee-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.assignee-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); }

.builder-outcomes { display: flex; flex-direction: column; gap: var(--s2); }

.outcome-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 8px 11px;
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: var(--text-xs);
}

.outcome-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.outcome-badge.approve { background: var(--green-light);  color: var(--green); }
.outcome-badge.reject  { background: var(--red-light);    color: var(--red);   }
.outcome-badge.more    { background: var(--accent-light); color: var(--accent);}

.outcome-arrow { color: var(--text-light); }
.outcome-dest  { color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tracker mockup */
.tracker-body { padding: var(--s4) var(--s5); }

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s4);
}

.tracker-header-label { font-size: var(--text-sm); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

.tracker-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--warm-gray-2);
  padding: 2px 9px;
  border-radius: 20px;
}

.run-list { display: flex; flex-direction: column; gap: var(--s2); }

.run-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: white;
}

.run-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.run-dot.done    { background: var(--green); }
.run-dot.active  { background: var(--accent); }
.run-dot.warning { background: var(--yellow); }
.run-dot.late    { background: var(--red); }

.run-info { flex: 1; min-width: 0; }
.run-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-sub  { font-size: 11px; color: var(--text-light); }

.run-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.run-badge.done    { background: var(--green-light);  color: var(--green); }
.run-badge.active  { background: var(--accent-light); color: var(--accent);}
.run-badge.warning { background: var(--yellow-light); color: var(--yellow);}
.run-badge.late    { background: var(--red-light);    color: var(--red);   }

/* ============================================================
   USE CASES
   ============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.usecase-pill {
  padding: var(--s3) var(--s4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
  transition: all 0.18s;
  text-align: center;
  letter-spacing: -0.01em;
}

.usecase-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent-muted);
  color: var(--accent);
}

.usecase-pill.featured {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-color: var(--dark);
  font-weight: 600;
  grid-column: 1 / -1;
}
.usecase-pill.featured:hover { background: var(--navy); color: white; }

.usecase-close {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-doers-badge {
  display: block;
  text-align: center;
  margin-bottom: var(--s7);
}

.pricing-doers-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  background: var(--accent-light);
  border: 1px solid var(--accent-muted);
  color: var(--accent-deep);
  padding: var(--s3) var(--s5);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pricing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

.pricing-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--s5) var(--s5);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-col.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(37, 99, 235, 0.12);
}

.pricing-recommended {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier-name {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--s2);
}

.pricing-amount-main {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.pricing-amount-suffix {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--s5);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1;
  margin-bottom: var(--s5);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-feature-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 9px;
  color: var(--green);
  font-weight: 700;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--s4);
}

.pricing-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s2) var(--s3);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.pricing-table td {
  padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.45;
}
.pricing-table td:first-child { font-weight: 600; color: var(--text); }
.pricing-table tr:last-child td { border-bottom: none; }

.pricing-footer-note {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-align: center;
  margin-top: var(--s5);
  font-style: italic;
}

/* Need-based collapsible on features page */
.nb-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.nb-toggle-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.nb-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.nb-open .nb-chevron { transform: rotate(180deg); }

.nb-calc-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s ease;
}

.nb-open .nb-calc-wrapper { max-height: 700px; }

/* ============================================================
   OPS SCORE
   ============================================================ */
.ops-layout {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  align-items: center;
}

.ops-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--s5);
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  width: 100%;
  max-width: 380px;
}

.ops-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--border-light);
}

.ops-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.ops-score-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ops-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: 4px;
}

.ops-metrics { display: flex; flex-direction: column; gap: var(--s3); }

.ops-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ops-metric-name { font-size: var(--text-sm); color: var(--text-muted); }

.ops-metric-right {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

.ops-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.ops-trend { font-size: 12px; }
.ops-trend.up   { color: var(--green); }
.ops-trend.down { color: var(--green); }

.ops-copy { max-width: 400px; }

.ops-copy h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--s3);
}

.ops-copy p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}
.ops-copy p + p { margin-top: var(--s3); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section {
  padding: var(--s8) var(--gutter);
  text-align: center;
  background: var(--dark);
}

.final-cta-headline {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: var(--s5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-sub {
  color: rgba(255,255,255,0.45);
  font-size: var(--text-base);
  margin-bottom: var(--s5);
  line-height: 1.65;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 680px; margin: var(--s6) auto 0; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--s4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warm-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.22s ease, background 0.15s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-light);
  color: var(--accent);
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding-bottom: var(--s4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding: var(--s6) var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: center;
  text-align: center;
}

.footer-brand { font-size: var(--text-base); font-weight: 700; color: white; letter-spacing: -0.02em; }
.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.3); margin-top: 4px; }

.footer-links { display: flex; gap: var(--s5); }
.footer-links a { font-size: var(--text-xs); color: rgba(255,255,255,0.35); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.2); }

/* ============================================================
   FEATURES PAGE
   ============================================================ */

.features-hero {
  padding-top: calc(68px + 46px + 64px);
  padding-bottom: 72px;
  background: var(--dark);
}

.features-hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--s3);
}

.features-hero-headline {
  font-size: clamp(2.4rem, 5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: var(--s3);
}

.features-hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  line-height: 1.55;
}

/* Step types */
.step-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

.step-type-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s5);
  transition: border-color 0.15s;
}
.step-type-card:hover { border-color: var(--accent-muted); }

.step-type-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.step-type-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}

.step-type-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--s3);
}

.step-type-example {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-style: italic;
  padding: var(--s3) var(--s4);
  background: var(--warm-gray);
  border-radius: 6px;
  line-height: 1.55;
}

/* Routing */
.routing-diagram {
  background: var(--dark);
  border-radius: 12px;
  padding: var(--s5) var(--s5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  overflow-x: auto;
  white-space: pre;
  margin: var(--s5) 0;
}

.routing-diagram .hl { color: var(--accent-dark); }

.routing-bullets { display: flex; flex-direction: column; gap: var(--s3); }

.routing-bullet {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.routing-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.routing-note-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-muted);
  border-radius: 8px;
  padding: var(--s4) var(--s5);
  font-size: var(--text-sm);
  color: var(--accent-deep);
  line-height: 1.65;
  margin-top: var(--s5);
}

/* Integrations */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

.integration-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s5);
}

.integration-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.integration-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--s4);
}

.code-block {
  background: var(--dark);
  border-radius: 8px;
  padding: var(--s4);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s3);
  line-height: 1.7;
}

.code-block .code-comment { color: rgba(255,255,255,0.3); }
.code-block .code-keyword { color: var(--accent-dark); }

.integration-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}
.integration-link:hover { text-decoration: underline; }

/* Doer experience */
.doer-layout {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  align-items: center;
}

.doer-copy {
  max-width: 480px;
}

.doer-copy p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--s4);
}

.doer-copy p:last-child { margin-bottom: 0; }
.doer-copy strong { color: var(--text); }

/* Pricing calculator */
.pricing-calc {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: var(--s5);
  margin: var(--s4) 0 0;
}

.calc-intro {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--s4);
}

.calc-inputs { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s5); }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
}

.calc-row-label { font-size: var(--text-sm); color: rgba(255,255,255,0.6); }

.calc-counter { display: flex; align-items: center; gap: var(--s3); }

.calc-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.calc-step-btn:hover { background: rgba(255,255,255,0.14); }

.calc-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  min-width: 38px;
  text-align: center;
}

.calc-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--s4);
}

.calc-results { display: flex; flex-direction: column; gap: var(--s2); }

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
  border-radius: 8px;
  border: 1px solid transparent;
}

.calc-result-row.best {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
}

.calc-result-name {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.calc-star { color: var(--accent-dark); font-size: 12px; }

.calc-result-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

.calc-result-row.best .calc-result-price { color: var(--accent-dark); }

.calc-summary {
  margin-top: var(--s4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  text-align: center;
  font-style: italic;
}

.calc-free-banner {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 8px;
  padding: var(--s4);
  font-size: var(--text-sm);
  color: #86EFAC;
  text-align: center;
  display: none;
}

/* Ops score features detailed */
.ops-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-top: var(--s6);
}

.ops-metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--s4) var(--s5);
}

.ops-metric-card-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}

.ops-metric-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-pillars { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid { grid-template-columns: repeat(3, 1fr); }
  .usecase-pill.featured { grid-column: auto; }
  .step-types-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(3, 1fr); }
  .ops-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .section-pad { padding: var(--section-pad) 0; }
  .nav-links { display: flex; }
  .nav-signin { display: block; }
  .nav-hamburger { display: none; }

  .hero { padding-top: calc(68px + 96px); padding-bottom: 104px; }
  .hero-inner { flex-direction: row; align-items: center; gap: var(--s7); }
  .hero-copy { flex: 0 0 56%; max-width: 56%; }
  .hero-visual { flex: 0 0 44%; max-width: 44%; display: flex; justify-content: flex-end; }

  .hiw-layout { flex-direction: row; align-items: flex-start; gap: var(--s7); }
  .hiw-steps { flex: 0 0 40%; }
  .hiw-panels { flex: 0 0 60%; position: sticky; top: 120px; }

  .ops-layout { flex-direction: row; align-items: center; gap: var(--s7); }
  .ops-copy { text-align: left; }

  .doer-layout { flex-direction: row; align-items: center; gap: var(--s7); }
  .doer-copy { text-align: left; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }

  .ops-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .step-types-grid { grid-template-columns: repeat(3, 1fr); }
}
