:root {
  --bg: #FFFFFF;
  --bg-wash: #F7F8FB;
  --panel: #F6F7FA;
  --panel-alt: #F0F1F6;
  --border: #E6E8EE;
  --indigo: #2F49E8;
  --indigo-dark: #2439C7;
  --indigo-wash: #EEF1FD;
  --rose: #C4574A;
  --rose-wash: #FBEEEC;
  --text: #111318;
  --text-muted: #3F4856;
  --text-faint: #5C6573;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', sans-serif;
  --shadow: 0 1px 2px rgba(15,20,35,0.04), 0 8px 24px rgba(15,20,35,0.06);
  --shadow-lg: 0 4px 10px rgba(15,20,35,0.05), 0 20px 48px rgba(15,20,35,0.09);

  --type-display: 32px;
  --type-title: 32px;
  --type-lede: 18px;
  --type-body: 16px;
  --type-label: 12px;
  --type-ui: 14px;
  --type-card-title: 18px;

  --grid-2: 1fr 1fr;
  --grid-3: repeat(3, 1fr);
  --section-y: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--bg-wash) 0%, #FFFFFF 420px);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1280px; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- NAV ---------- */
#site-header { min-height: 73px; }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { height: 72px; display: flex; align-items: center; gap: 20px; }
nav.legal-nav .wrap { justify-content: flex-start; }
.legal-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-left: 4px;
}
.legal-nav-back { margin-left: auto; }
.legal-footer { padding: 24px 0; border-top: 1px solid var(--border); }
.legal-footer .wrap { font-size: 14px; color: var(--text-faint); }
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-decoration: none;
}
.wordmark-product {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark-by {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a.secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a.secondary:hover { color: var(--text); }
.nav-links a.secondary.active { color: var(--indigo); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
nav.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
nav.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  font-family: var(--sans);
  font-size: var(--type-ui);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-block { width: 100%; justify-content: center; text-align: center; }
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 1px 2px rgba(47,73,232,0.15), 0 6px 16px rgba(47,73,232,0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--indigo-dark);
  box-shadow: 0 6px 20px rgba(47,73,232,0.38);
}
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: #C9CDE0; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 30px 0; }
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer .foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}
footer .foot-left a { color: var(--text-faint); transition: color 0.15s; }
footer .foot-left a:hover { color: var(--text-muted); }
footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
footer .foot-links a {
  color: var(--text);
  text-decoration: none;
}
footer .foot-links a:hover { color: var(--text-muted); }
footer .foot-sep {
  color: var(--text);
  user-select: none;
}

.final-cta { text-align: center; padding: 56px 0; border-top: 1px solid var(--border); }
.final-cta .eyebrow { margin-bottom: 14px; }
.final-cta h2 {
  font-weight: 700;
  font-size: var(--type-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.final-cta p {
  color: var(--text-muted);
  font-size: var(--type-lede);
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.6;
}
.cta-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  nav .wrap { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-end { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 32px 16px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  nav.is-open .nav-links { display: flex; }
  .nav-links a.secondary { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.secondary:last-child { border-bottom: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- SHARED PAGE COMPONENTS ---------- */
.page-hero { padding: 56px 0 20px; scroll-margin-top: 84px; }
.page-hero h1,
.hero h1 {
  font-weight: 700;
  font-size: var(--type-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
  max-width: none;
}
.hero h1 { margin: 16px 0 22px; max-width: 44rem; }
.hero h1 .accent { color: var(--indigo); }
.lede {
  font-size: var(--type-lede);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
  margin: 0;
}
.page-hero .lede { max-width: none; }
.page-hero .lede + .lede { margin-top: 12px; }
.hero .lede { max-width: 500px; margin-bottom: 28px; line-height: 1.6; }
.section-block { padding: var(--section-y) 0; border-top: none; scroll-margin-top: 84px; }
.section-block.tight { padding: 16px 0 40px; border-top: none; }
.section-head { max-width: none; margin-bottom: 22px; }
.section-head h2 {
  font-weight: 700;
  font-size: var(--type-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.section-head .lede { margin-top: 14px; max-width: none; }
.heading-one-line { white-space: nowrap; }
.heading-stack { white-space: normal; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: var(--type-card-title);
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: var(--type-body);
  color: var(--text-muted);
  line-height: 1.55;
}
.card-grid {
  display: grid;
  grid-template-columns: var(--grid-2);
  gap: 14px;
}
.card-grid.cols-3 { grid-template-columns: var(--grid-3); }
.card-grid.dense { gap: 12px; }
.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: var(--type-ui);
  font-weight: 600;
  color: var(--indigo);
  border-bottom: 1px solid transparent;
}
.card-link + .card-link { margin-left: 18px; }
.card-link:hover { border-bottom-color: var(--indigo); }

.link-arrow {
  font-size: var(--type-ui);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.link-arrow:hover { color: var(--indigo); border-color: var(--indigo); }

.prose-p {
  font-size: var(--type-body);
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: none;
  line-height: 1.55;
}
.quote-card {
  border-left: 3px solid var(--indigo);
  max-width: none;
  padding: 28px 30px;
}
.quote-card p {
  font-size: var(--type-body);
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
}
.quote-attr {
  font-family: var(--mono);
  font-size: var(--type-label);
  color: var(--text-muted);
  margin-top: 18px;
}
.section-note {
  margin-top: 20px;
  max-width: none;
  font-size: var(--type-body);
  color: var(--text-muted);
  line-height: 1.55;
}
.section-note a { color: var(--indigo); font-weight: 600; }
.section-note.highlight {
  max-width: none;
  padding: 20px 24px;
  background: var(--indigo-wash);
  border: 1px solid #C5CEF5;
  border-radius: var(--radius-md);
  color: var(--text);
}
.section-note.highlight p { margin: 0; font-size: var(--type-body); color: var(--text); line-height: 1.55; }
.section-note.highlight strong { font-weight: 600; }

.split-2 {
  display: grid;
  grid-template-columns: var(--grid-2);
  gap: 28px;
}
.split-panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
}
.split-panel .section-head { margin-bottom: 22px; }
.split-2 h3 {
  font-size: var(--type-card-title);
  font-weight: 600;
  margin-bottom: 6px;
}
.split-2 p {
  font-size: var(--type-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.steps-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.steps-grid {
  display: grid;
  grid-template-columns: var(--grid-3);
  gap: 28px;
  align-items: start;
}
.step-v2-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #C5CEF5;
  color: var(--indigo);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-v2 h3 { font-weight: 600; font-size: var(--type-card-title); margin-bottom: 8px; }
.step-v2 p { color: var(--text-muted); font-size: var(--type-body); line-height: 1.6; }

.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border: 1.5px solid var(--indigo);
  box-shadow: 0 1px 2px rgba(47,73,232,0.10), 0 10px 24px rgba(47,73,232,0.14);
  position: relative;
}
.tier-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--indigo);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tier-badge[data-tone="rose"] { background: var(--rose); }
.tier-name { font-size: var(--type-ui); font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.tier-price { font-size: 36px; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.01em; }
.tier-price .unit { font-size: var(--type-body); font-weight: 500; color: var(--text-muted); }
.tier-sub { font-size: var(--type-body); color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.tier-cta { margin-bottom: 20px; }
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tier-features li {
  font-size: var(--type-body);
  color: var(--text);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  font-size: var(--type-label);
  line-height: 16px;
  text-align: center;
  color: var(--indigo);
  font-weight: 700;
}
.credit-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: var(--type-ui);
  color: var(--text-muted);
  line-height: 1.5;
}
.credit-note a { color: var(--indigo); font-weight: 600; }

.book-path {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  max-width: 640px;
}
.book-path > div { flex: 1 1 280px; }
.book-path h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.book-path p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.book-path .btn { flex-shrink: 0; align-self: center; }

.form-divider {
  max-width: 640px;
  margin: 8px 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.legal-doc { padding: 40px 0 64px; }
.legal-article {
  max-width: 820px;
  padding: 28px 30px;
}
.legal-article h1 { font-size: var(--type-display); font-weight: 700; margin: 0 0 16px; }
.legal-article h2 { font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.legal-article h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
.legal-article p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.legal-article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-article td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: top; }

.form-card { max-width: 640px; padding: 26px 28px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-row label .opt { font-weight: 500; color: var(--text-faint); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: #fff;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #C5CEF5;
  box-shadow: 0 0 0 3px var(--indigo-wash);
}
.form-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--rose);
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea { border-color: #E8B4AE; }
.form-row.has-error .form-error { display: block; }
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.form-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-status {
  display: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  max-width: 640px;
  margin-bottom: 14px;
}
.form-status.ok { display: block; background: #EEF8F1; color: #1F6B3A; border: 1px solid #C6E6D0; }
.form-status.err { display: block; background: var(--rose-wash); color: var(--rose); border: 1px solid #E8B4AE; }
.form-status.warn { display: block; background: var(--panel); color: var(--text-muted); border: 1px solid var(--border); }

.final-cta .heading-one-line { white-space: nowrap; }

/* Calendly's default close button pins to the viewport corner, which reads as
   disconnected from the popup panel on wide screens — pull it in to sit just
   outside the panel's top-right corner instead. */
.calendly-popup-close {
  top: max(16px, calc(50vh - 320px)) !important;
  right: max(16px, calc(50vw - 490px)) !important;
}

@media (max-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: var(--grid-2); }
}

@media (max-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .page-hero { padding: 48px 0 28px; }
  .section-block { padding: var(--section-y) 0; }
  .card-grid,
  .split-2,
  .steps-grid { grid-template-columns: 1fr; }
  .heading-one-line { white-space: normal; }
  .final-cta .heading-one-line { white-space: normal; }
  .legal-article { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .hero h1 { font-size: 28px; }
  .split-panel { padding: 24px 20px; }
}
