/*
 * Milo Design System v3.0
 * 2026 Rebrand — Blueprint Direction
 * Warm-tinted OKLCH palette · Cormorant Garamond + Outfit + JetBrains Mono
 */

/* ===========================================
   FONTS
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ===========================================
   TOKENS
   =========================================== */

:root {
  /* Backgrounds */
  --bg:              oklch(97.5% 0.008 65);
  --surface:         oklch(95% 0.01 65);
  --surface-raised:  oklch(99% 0.005 65);

  /* Borders */
  --border:          oklch(88% 0.012 65);
  --border-subtle:   oklch(92% 0.008 65);

  /* Brand — Gold */
  --gold:            oklch(62% 0.12 65);
  --gold-text:       oklch(46% 0.10 65);
  --gold-light:      oklch(90% 0.04 65);

  /* Text — Light surfaces */
  --text-1:          oklch(16% 0.015 65);
  --text-2:          oklch(42% 0.015 65);
  --text-3:          oklch(46% 0.01 65);

  /* Text — Dark surfaces */
  --text-inv:           oklch(97% 0.005 65);
  --text-on-dark:       oklch(78% 0.008 65);
  --text-on-dark-muted: oklch(52% 0.008 65);

  /* Semantic */
  --success:         oklch(68% 0.14 155);
  --error:           oklch(55% 0.18 25);
  --warning:         oklch(72% 0.14 85);

  /* Dark surfaces */
  --dark:            oklch(12% 0.012 65);
  --dark-surface:    oklch(16% 0.015 65);
  --dark-raised:     oklch(25% 0.01 65);
  --dark-muted:      oklch(30% 0.01 65);

  /* Syntax highlighting */
  --code-string:     oklch(72% 0.08 65);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.78rem);
  --text-sm:   clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  --text-2xl:  clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  --text-3xl:  clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  --text-4xl:  clamp(2.8rem, 2rem + 4vw, 5.2rem);

  /* Spacing — 4pt base */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  /* Easing */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ===========================================
   RESET & BASE
   =========================================== */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Body-text links: underline for accessibility (non-color distinguisher) */
main p a,
main li a,
main dd a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms;
}
main p a:hover,
main li a:hover,
main dd a:hover {
  text-decoration-color: currentColor;
}

/* ===========================================
   GRID BACKGROUND — Blueprint paper
   =========================================== */

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   SKIP LINK
   =========================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--text-1);
  color: var(--text-inv);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  z-index: 100;
  transition: top 150ms var(--ease-out-quart);
}
.skip-link:focus { top: 0; }

/* ===========================================
   SCROLL REVEAL
   =========================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms var(--ease-out-expo),
              transform 550ms var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }
.reveal[data-delay="4"] { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===========================================
   SPEC LABELS & MARKERS
   =========================================== */

.spec-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-on-dark-muted);
  background: var(--text-1);
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.spec-coord {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-left: var(--sp-3);
}

.section-marker {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-8);
}

/* ===========================================
   LAYOUT
   =========================================== */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.wrap--narrow {
  max-width: 720px;
}

.section {
  padding: var(--sp-20) 0;
}

.section--lg {
  padding: var(--sp-24) 0;
}

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

/* ===========================================
   NAVIGATION
   =========================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--sp-4) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.nav__links {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-3);
  transition: color 150ms;
}
.nav__link:hover { color: var(--text-1); }
.nav__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav__link--active { color: var(--text-1); font-weight: 600; }
.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inv);
  background: var(--text-1);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  transition: opacity 150ms;
}
.nav__cta:hover { opacity: 0.85; }
.nav__cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: transform 200ms var(--ease-out-quart), opacity 150ms;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-1);
  font-weight: 400;
}
.mobile-menu a:hover { color: var(--gold-text); }
.mobile-menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-8);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out-quart), opacity 150ms;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--dark {
  background: var(--text-1);
  color: var(--text-inv);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-weight: 500;
}
.btn--outline:hover { border-color: var(--text-3); color: var(--text-1); }

.btn--gold {
  background: var(--gold);
  color: var(--text-1);
}

.btn--gold-on-dark {
  background: var(--gold);
  color: var(--text-1);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost::after {
  content: ' →';
  transition: transform 150ms var(--ease-out-quart);
  display: inline-block;
}
.btn--ghost:hover::after { transform: translateX(3px); }

.btn--sm { font-size: var(--text-xs); padding: var(--sp-2) var(--sp-4); }
.btn--lg { font-size: var(--text-base); padding: var(--sp-4) var(--sp-10); }
.btn--full { width: 100%; justify-content: center; }

/* ===========================================
   TYPOGRAPHY
   =========================================== */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--text-1);
  line-height: 1.35;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-1);
  line-height: 1.4;
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
}

h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p { margin-bottom: var(--sp-4); }

.accent { color: var(--gold-text); }
.lead {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.65;
}

.caption {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.125em 0.375em;
  border-radius: var(--radius-sm);
  color: var(--text-1);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--dark-surface);
  color: var(--text-on-dark);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  line-height: 1.7;
}

/* ===========================================
   TERMINAL / CODE BLOCKS
   =========================================== */

.terminal {
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--dark);
}
.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-muted);
}
.terminal__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  margin-left: var(--sp-2);
}
.terminal__body {
  padding: var(--sp-6);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.82rem);
  line-height: 1.75;
  color: var(--text-on-dark);
  overflow-x: auto;
  white-space: pre;
}

/* Terminal syntax colors */
.t-prompt { color: var(--gold); }
.t-cmd { color: var(--text-inv); }
.t-muted { color: var(--text-on-dark-muted); }
.t-success { color: var(--success); }
.t-accent { color: var(--gold); }
.t-bar { color: var(--gold); }
.t-bar-empty { color: var(--dark-raised); }
.t-num { color: var(--text-inv); }

/* Config block (YAML-style) */
.config-block {
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.config-block__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--dark);
}
.config-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-muted);
}
.config-block__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  margin-left: var(--sp-2);
}
.config-block__body {
  padding: var(--sp-6);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.82rem);
  line-height: 1.85;
  color: var(--text-on-dark);
  overflow-x: auto;
  white-space: pre;
}
.c-key { color: var(--gold); }
.c-str { color: var(--code-string); }
.c-comment { color: var(--text-on-dark-muted); font-style: italic; }
.c-arrow { color: var(--success); }

/* ===========================================
   STACKED LIST (replaces card grids)
   =========================================== */

.stacked-list {
  list-style: none;
}

.stacked-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}
.stacked-item:last-child { border-bottom: none; }

.stacked-item__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold-text);
  padding-top: var(--sp-1);
}

.stacked-item__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}

.stacked-item__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.65;
}

/* ===========================================
   FEATURE LIST (checkmarks)
   =========================================== */

.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.6;
}
.feature-list li::before {
  content: '✓';
  color: var(--gold-text);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===========================================
   PRICING — editorial layout, not card grid
   =========================================== */

.pricing-tier {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: var(--sp-8);
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pricing-tier:last-child { border-bottom: none; }

.pricing-tier__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-1);
  font-weight: 400;
}
.pricing-tier__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: var(--sp-2);
}
.pricing-tier__featured .pricing-tier__name {
  color: var(--gold-text);
}
.pricing-tier__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .pricing-tier { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ===========================================
   FAQ — accordion style
   =========================================== */

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

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-1);
  min-height: 44px;
}
.faq__question:hover { color: var(--gold-text); }
.faq__question:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.faq__question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-3);
  transition: transform 200ms var(--ease-out-quart);
}
.faq__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out-expo);
}
.faq__answer[aria-hidden="false"] {
  grid-template-rows: 1fr;
}
.faq__answer-inner {
  overflow: hidden;
}
.faq__answer-inner p {
  padding-bottom: var(--sp-6);
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 640px;
}

/* ===========================================
   FORMS & INPUTS
   =========================================== */

.input, .select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text-1);
  width: 100%;
  transition: border-color 150ms, box-shadow 150ms;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold), transparent 85%);
}
.input::placeholder { color: var(--text-3); }

.textarea {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-1);
  width: 100%;
  min-height: 200px;
  resize: vertical;
  line-height: 1.7;
  transition: border-color 150ms, box-shadow 150ms;
}
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold), transparent 85%);
  background: var(--surface-raised);
}

.label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}

.form-helper {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-1);
}

/* Range slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-1);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 1px 4px color-mix(in oklch, var(--text-1), transparent 80%);
}

/* ===========================================
   STATS BAR — horizontal, monospace
   =========================================== */

.stats-bar {
  display: flex;
  gap: var(--sp-12);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar__item {
  text-align: left;
}
.stats-bar__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-1);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.stats-bar__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-1);
}

@media (max-width: 640px) {
  .stats-bar { flex-direction: column; gap: var(--sp-6); }
}

/* ===========================================
   EDITORIAL LAYOUT — 2-col asymmetric
   =========================================== */

.editorial {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: var(--sp-16);
  align-items: start;
}
.editorial--flip {
  grid-template-columns: 1.35fr 0.65fr;
}
.editorial__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.25;
}
.editorial__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
}
.editorial__body p {
  margin-bottom: var(--sp-4);
}
.editorial__body--columns {
  columns: 2;
  column-gap: var(--sp-8);
}
.editorial__body--columns p { break-inside: avoid; }

@media (max-width: 768px) {
  .editorial, .editorial--flip { grid-template-columns: 1fr; gap: var(--sp-8); }
  .editorial__body--columns { columns: 1; }
}

/* ===========================================
   PULL QUOTE
   =========================================== */

.pull-quote {
  padding: var(--sp-20) 0;
}
.pull-quote__inner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-12) 0;
  text-align: center;
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.35;
  max-width: 640px;
  margin: 0 auto var(--sp-4);
}
.pull-quote__attr {
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* ===========================================
   CTA SECTION — dark inset
   =========================================== */

.cta-section {
  background: var(--text-1);
  color: var(--text-inv);
  padding: var(--sp-24) 0;
  border-radius: var(--radius-xl);
  margin: 0 clamp(12px, 2vw, 24px) var(--sp-16);
  position: relative;
  z-index: 1;
}
.cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--sp-12);
  align-items: end;
}
.cta__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--text-inv);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.cta__title .accent { color: var(--gold); }
.cta__body {
  font-size: var(--text-base);
  color: var(--text-on-dark);
  margin-bottom: var(--sp-8);
  max-width: 460px;
  line-height: 1.65;
}
.cta__pricing {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  line-height: 1.9;
  text-align: right;
}
.cta__pricing strong {
  color: var(--text-on-dark);
  font-weight: 400;
}

@media (max-width: 768px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__pricing { text-align: left; }
}

/* ===========================================
   PAGE HERO (subpages)
   =========================================== */

.page-hero {
  padding: clamp(120px, 14vh, 180px) 0 var(--sp-12);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.6;
}

/* ===========================================
   COMPARISON TABLE
   =========================================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.comparison-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-2);
  vertical-align: top;
}
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-1);
}
.comparison-table .highlight {
  background: var(--gold-light);
}

/* ===========================================
   WIZARD / STEP FLOW
   =========================================== */

.wizard__steps {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-8);
}
.wizard__step {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: background 200ms var(--ease-out-quart);
}
.wizard__step--active {
  background: var(--text-1);
}
.wizard__step--done {
  background: var(--gold);
}
.wizard__step-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-1);
}

.wizard__panel {
  display: none;
}
.wizard__panel--active {
  display: block;
}

/* ===========================================
   RESULTS PANEL
   =========================================== */

.results-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.results-panel__row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base);
}
.results-panel__row:last-child { border-bottom: none; }
.results-panel__key { color: var(--text-2); }
.results-panel__val {
  font-weight: 600;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.success-banner {
  background: color-mix(in oklch, var(--success), transparent 92%);
  border: 1px solid color-mix(in oklch, var(--success), transparent 75%);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  color: var(--text-1);
  font-weight: 500;
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
  padding: var(--sp-10) 0 var(--sp-8);
  position: relative;
  z-index: 1;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-3);
}
.footer__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}
.footer__links {
  display: flex;
  gap: var(--sp-6);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-3);
  padding: var(--sp-1) 0;
  transition: color 150ms;
}
.footer__links a:hover { color: var(--text-1); }
.footer__links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-3);
}

@media (max-width: 640px) {
  .footer .wrap { flex-direction: column; gap: var(--sp-4); text-align: center; }
}

/* ===========================================
   GOLD LINE DIVIDER
   =========================================== */

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: var(--sp-16) 0;
}

/* ===========================================
   SCREEN-READER ONLY
   =========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================
   SPEC LABEL — ON DARK VARIANT
   =========================================== */

.spec-label--on-dark {
  background: var(--dark-raised);
}
.spec-coord--on-dark {
  color: var(--text-on-dark-muted);
}
.section-marker--cta {
  padding: 0 clamp(24px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto var(--sp-8);
}

/* ===========================================
   DELIGHT — Micro-interactions & personality
   =========================================== */

/* Nav logo dot — breathes on hover */
.nav__logo:hover .nav__dot {
  animation: dot-breathe 1.2s var(--ease-out-expo) infinite alternate;
}
@keyframes dot-breathe {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.6); opacity: 0.6; }
}

/* Nav links — gold underline slides in from left */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 250ms var(--ease-out-expo);
}
.nav__link:hover::after { width: 100%; }

/* Buttons — satisfying press depth */
.btn:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

/* Spec labels — subtle gold glow on hover */
.spec-label {
  transition: box-shadow 200ms;
}
.section-marker:hover .spec-label {
  box-shadow: 0 0 12px color-mix(in oklch, var(--gold), transparent 70%);
}

/* Stacked list numbers — gold shift on row hover */
.stacked-item:hover .stacked-item__num {
  color: var(--gold);
  transition: color 200ms;
}

/* Input focus — gold ring bloom */
.input:focus, .select:focus, .textarea:focus {
  animation: focus-bloom 300ms var(--ease-out-expo);
}
@keyframes focus-bloom {
  from { box-shadow: 0 0 0 0px color-mix(in oklch, var(--gold), transparent 60%); }
  to   { box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold), transparent 85%); }
}

/* FAQ question — arrow has spring feel */
.faq__question::after {
  transition: transform 300ms var(--ease-out-expo);
}

/* Footer dot — slow idle pulse */
.footer__dot {
  animation: footer-pulse 3s ease-in-out infinite alternate;
}
@keyframes footer-pulse {
  from { opacity: 0.5; }
  to   { opacity: 0.9; }
}

/* Terminal cursor blink */
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pull quote — entrance glow */
.pull-quote__inner {
  transition: border-color 600ms;
}
.pull-quote .reveal.visible .pull-quote__inner {
  border-color: var(--gold-light);
}

/* CTA hover lift for the whole section */
.cta-section {
  transition: transform 400ms var(--ease-out-expo), box-shadow 400ms;
}
.cta-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px color-mix(in oklch, var(--text-1), transparent 85%);
}

/* Gold line — shimmer on scroll reveal */
.gold-line.reveal.visible {
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
  background-size: 200% 100%;
  animation: gold-shimmer 2s var(--ease-out-expo) forwards;
}
@keyframes gold-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* Comparison table — row highlight on hover */
.comparison-table tr:hover td {
  background: color-mix(in oklch, var(--gold-light), transparent 60%);
  transition: background 150ms;
}

/* Pricing tier — gold accent on hover */
.pricing-tier:hover .pricing-tier__name {
  color: var(--gold-text);
  transition: color 200ms;
}

/* Feature list checkmarks — gold pulse on hover */
.feature-list li:hover::before {
  color: var(--gold);
  transition: color 150ms;
}

/* Success checkmark draw animation */
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}
.success-check-anim {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: check-draw 500ms var(--ease-out-expo) 200ms forwards;
}

/* Reduce all delight for users who prefer */
@media (prefers-reduced-motion: reduce) {
  .nav__logo:hover .nav__dot,
  .footer__dot,
  .terminal__cursor { animation: none; }
  .cta-section:hover { transform: none; }
  .gold-line.reveal.visible { animation: none; }
  .input:focus, .select:focus, .textarea:focus { animation: none; }
}

/* ===========================================
   RESPONSIVE UTILITIES
   =========================================== */

@media (max-width: 768px) {
  .hide-mobile { display: none; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
