/* ============================================================
   PAYCURE — Marketing site, aligned to application design tokens
   www.paycure.ai · navy / slate · Inter + JetBrains Mono
   ============================================================ */

:root {
  /* Brand — navy (from application tailwind.config.ts) */
  --brand: #1e3a8a;
  --brand-dark: #172554;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  /* Text */
  --ink: #0f172a;
  --text: #0f172a;
  --text-soft: #334155;
  --text-faint: #64748b;
  --text-inverse: #f8fafc;
  --text-inverse-soft: rgba(248, 250, 252, 0.72);

  /* Surfaces */
  --card: #ffffff;
  --paper: #f8fafc;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Status (application status language) */
  --st-draft-bg: #f8fafc;    --st-draft-fg: #475569;
  --st-pending-bg: #fffbeb;  --st-pending-fg: #b45309;
  --st-review-bg: #fff7ed;   --st-review-fg: #c2410c;
  --st-ok-bg: #f0fdf4;       --st-ok-fg: #15803d;
  --st-blocked-bg: #fef2f2;  --st-blocked-fg: #dc2626;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii & shadows — flat and quiet, like the app */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 12px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);

  --nav-h: 72px;
  --max-w: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection { background: var(--brand-100); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 620; letter-spacing: -0.02em; line-height: 1.14; color: var(--ink); }
.display-xl { font-size: clamp(2.4rem, 4.8vw, 3.8rem); letter-spacing: -0.03em; font-weight: 650; }
.display-lg { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; }
.display-md { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.display-sm { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-soft); line-height: 1.65; font-weight: 420; }
.mono, .mk-amount, .figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--brand-100); }
.eyebrow.on-dark::before { background: var(--brand-100); }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 14px 0 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-md);
  font-size: 0.94rem; font-weight: 560; letter-spacing: -0.005em;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn svg { transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-50); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-dark { color: #fff; border: 1.5px solid var(--border-dark); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.25s ease; }
.nav-wrap.scrolled { backdrop-filter: blur(14px); background: rgba(248, 250, 252, 0.88); border-bottom: 1px solid var(--border); }
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand);
  display: grid; place-items: center;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links a.nav-item, .nav-links button.nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 0.93rem; font-weight: 500; color: var(--text-soft);
  transition: all 0.15s ease;
}
.nav-links a.nav-item:hover, .nav-links button.nav-item:hover,
.nav-links li:hover > .nav-item { background: var(--border-subtle); color: var(--ink); }
.nav-item .chev { transition: transform 0.2s ease; opacity: 0.5; }
.nav-links li:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 460px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.18s ease;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); transition: background 0.12s ease; }
.dropdown a:hover { background: var(--brand-50); }
.dd-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center;
}
.dd-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dd-desc { font-size: 0.79rem; color: var(--text-faint); line-height: 1.4; margin-top: 2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile nav */
.hamburger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 2.5px 0; border-radius: 2px; }
.mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--paper); padding: 24px 32px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 550; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-group { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); padding: 20px 0 6px; font-weight: 650; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--paper); border-bottom: 1px solid var(--border-subtle); }
.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 8px; border-radius: 100px;
  background: #fff; border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 520; color: var(--text-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.hero-badge .pill { background: var(--brand-100); color: var(--brand-dark); font-weight: 650; font-size: 0.75rem; padding: 3px 10px; border-radius: 100px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 660px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--text-faint); }
.hero-visual { margin-top: 64px; }

/* ---------- Product mockup ---------- */
.mockup {
  background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--border); border-bottom: none;
  box-shadow: 0 -4px 24px rgb(15 23 42 / 0.05), var(--shadow-md);
  overflow: hidden; text-align: left;
  font-size: 12.5px;
}
.mockup.rounded { border-radius: var(--r-lg); border-bottom: 1px solid var(--border); }
.mk-titlebar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--paper); }
.mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mk-url { margin-left: 14px; flex: 1; max-width: 340px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 6px; padding: 4px 14px; color: var(--text-faint); font-size: 11.5px; }
.mk-body { display: grid; grid-template-columns: 200px 1fr; min-height: 430px; }
.mk-side { background: var(--paper); border-right: 1px solid var(--border); padding: 14px 10px; }
.mk-side-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 4px 10px 14px; letter-spacing: -0.02em; }
.mk-side-logo i { width: 20px; height: 20px; border-radius: 5px; background: var(--brand); }
.mk-navgroup { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); padding: 11px 10px 4px; font-weight: 660; }
.mk-navitem { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 6px; color: var(--text-soft); font-weight: 500; }
.mk-navitem.active { background: var(--brand-50); color: var(--brand); font-weight: 620; }
.mk-navitem .ic { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: 0.25; }
.mk-navitem .count { margin-left: auto; background: var(--brand-100); color: var(--brand-dark); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 100px; font-family: var(--font-mono); }
.mk-main { padding: 20px 24px; background: #fff; }
.mk-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mk-header h5 { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.mk-header .sub { color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }
.mk-btn { background: var(--brand); color: #fff; padding: 7px 14px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mk-stat { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; }
.mk-stat .lbl { color: var(--text-faint); font-size: 10.5px; font-weight: 550; }
.mk-stat .val { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-top: 3px; font-family: var(--font-mono); }
.mk-stat .delta { font-size: 10px; font-weight: 600; margin-top: 2px; }
.delta.up { color: var(--st-ok-fg); } .delta.down { color: var(--st-blocked-fg); } .delta.warn { color: var(--st-pending-fg); }
.mk-table { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.mk-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.9fr; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.mk-row:last-child { border-bottom: none; }
.mk-row.head { background: var(--paper); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 650; padding: 7px 14px; }
.mk-vendor { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.mk-avatar { width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mk-muted { color: var(--text-soft); }
.mk-amount { font-weight: 600; text-align: right; }

/* Status chips — the application's real status language */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 620; padding: 3px 9px; border-radius: 6px; width: fit-content;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--st-ok-bg); color: var(--st-ok-fg); }
.status.pending { background: var(--st-pending-bg); color: var(--st-pending-fg); }
.status.review { background: var(--st-review-bg); color: var(--st-review-fg); }
.status.flagged { background: var(--st-blocked-bg); color: var(--st-blocked-fg); }
.status.draft { background: var(--st-draft-bg); color: var(--st-draft-fg); border: 1px solid var(--border); }

/* ---------- Integration band ---------- */
.logos { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.logos-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.logos-label { font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.logo-item { font-size: 1.1rem; font-weight: 660; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo-item .qbo { width: 26px; height: 26px; border-radius: 50%; background: #2ca01c; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.logos-note { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px; transition: all 0.2s ease;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { font-size: 0.93rem; color: var(--text-soft); line-height: 1.6; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--brand); }
.card:hover .card-link svg { transform: translateX(3px); }

/* Feature split rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 52px 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h2 { margin: 14px 0 16px; }
.feature-copy p { color: var(--text-soft); font-size: 1rem; }
.feature-list { margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; margin-top: 2px;
  background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
}
.feature-visual {
  background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.feature-visual.tint { background: var(--brand-50); border-color: var(--brand-100); }

/* ---------- Fact band (dark navy) ---------- */
.stats-band { background: var(--brand-dark); color: var(--text-inverse); border-radius: var(--r-lg); padding: 56px 52px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.stat-item .num { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 650; letter-spacing: -0.03em; color: #fff; line-height: 1; font-family: var(--font-mono); }
.stat-item .num .accent { color: var(--brand-100); }
.stat-item .cap { margin-top: 10px; font-size: 0.89rem; color: var(--text-inverse-soft); line-height: 1.45; }

/* ---------- Dark sections ---------- */
.dark { background: var(--brand-dark); color: var(--text-inverse); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark p { color: var(--text-inverse-soft); }
.dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--border-dark); }
.dark .card:hover { border-color: rgba(219, 234, 254, 0.35); box-shadow: none; }
.dark .card h3 { color: #fff; }
.dark .card p { color: var(--text-inverse-soft); }
.dark .card-icon { background: rgba(219, 234, 254, 0.12); color: var(--brand-100); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 0.78rem; font-weight: 700; color: var(--brand); font-family: var(--font-mono);
  background: var(--brand-50); padding: 3px 10px; border-radius: 6px;
  display: inline-block; margin-bottom: 14px;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.87rem; color: var(--text-soft); }

/* ---------- Founder note ---------- */
.founder-note {
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: var(--r-lg); padding: 32px 36px;
}
.founder-note .fn-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; color: var(--brand); margin-bottom: 14px; }
.founder-note p { font-size: 1.02rem; line-height: 1.7; color: var(--text-soft); }

/* ---------- Definition table (SoD, controls) ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border-subtle); }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { background: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); font-weight: 650; }
.compare td.rule { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand); white-space: nowrap; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow-md); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.74rem; font-weight: 650; padding: 4px 14px; border-radius: 100px; letter-spacing: 0.03em; }
.price-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.price-desc { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 24px; min-height: 42px; }
.price { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-family: var(--font-mono); }
.price .per { font-size: 0.92rem; font-weight: 450; color: var(--text-faint); letter-spacing: 0; font-family: var(--font-sans); }
.price-note { font-size: 0.8rem; color: var(--text-faint); margin: 8px 0 26px; }
.price-card ul { display: grid; gap: 11px; margin-bottom: 30px; font-size: 0.91rem; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card .btn { margin-top: auto; width: 100%; }

/* Module callout */
.module-callout {
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-lg);
  padding: 32px 36px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.module-callout h3 { font-size: 1.15rem; }
.module-callout p { color: var(--text-soft); font-size: 0.94rem; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; text-align: left; font-size: 1.02rem; font-weight: 580; color: var(--ink);
}
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; transition: all 0.2s ease; font-weight: 400; }
.faq-item.open .plus { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 4px 24px; color: var(--text-soft); font-size: 0.95rem; max-width: 680px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); border-radius: var(--r-lg); padding: 72px 56px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto 32px; font-size: 1.04rem; }

/* ---------- Storylane embed ---------- */
.demo-frame { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-md); }
.demo-placeholder {
  aspect-ratio: 16 / 9.5; border-radius: var(--r-sm);
  background: var(--brand-dark);
  display: grid; place-items: center; text-align: center; color: var(--text-inverse);
}
.demo-placeholder .play {
  width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 20px;
  transition: transform 0.2s ease;
}
.demo-placeholder:hover .play { transform: scale(1.06); }
.demo-placeholder h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.demo-placeholder p { color: var(--text-inverse-soft); font-size: 0.92rem; max-width: 400px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 0.94rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
footer { background: var(--brand-dark); color: var(--text-inverse); }
.footer-cta-offset { margin-bottom: -72px; position: relative; z-index: 2; }
.footer-main { padding: 150px 0 52px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 44px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: var(--text-inverse-soft); max-width: 290px; }
.footer-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(248, 250, 252, 0.45); margin-bottom: 16px; font-weight: 650; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.91rem; color: var(--text-inverse-soft); transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.84rem; color: rgba(248, 250, 252, 0.45);
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.26rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.footer-logo .logo-mark { background: rgba(255, 255, 255, 0.12); }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 56px; position: relative; }
.page-hero .hero-bg { z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-faint); margin-bottom: 22px; font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- Reveal ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.07s; } .reveal-d2 { transition-delay: 0.14s; } .reveal-d3 { transition-delay: 0.21s; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 560; color: var(--text-soft);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-row { gap: 40px; }
  .mk-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: grid; }
  .feature-row { grid-template-columns: 1fr; padding: 36px 0; }
  .feature-row.reverse .feature-copy { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .mk-body { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .mk-stats { grid-template-columns: repeat(2, 1fr); }
  .mk-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .mk-row > *:nth-child(4) { display: none; }
  .section { padding: 64px 0; }
  .stats-band { padding: 44px 30px; }
  .cta-band { padding: 56px 26px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .grid-3, .grid-4, .steps, .stats-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   DEPTH COMPONENTS — professional feature development
   ============================================================ */

/* ---------- Mega menu (two-column, with headers) ---------- */
.dropdown.mega { min-width: 660px; grid-template-columns: 1fr 1fr; gap: 4px 20px; padding: 20px; }
.dd-col-head {
  grid-column: span 1; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.11em;
  font-weight: 700; color: var(--text-faint); padding: 4px 12px 8px; border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.dd-col-head .tag { background: var(--brand-50); color: var(--brand); font-size: 0.62rem; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.04em; }
.dd-foot {
  grid-column: 1 / -1; margin-top: 8px; padding: 14px 12px 4px; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dd-foot span { font-size: 0.82rem; color: var(--text-faint); }
.dd-foot a { padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.dd-foot a:hover { background: transparent; text-decoration: underline; }

/* ---------- Lifecycle stage strip ---------- */
.lifecycle {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.lc-stage { padding: 22px 20px; border-right: 1px solid var(--border-subtle); position: relative; }
.lc-stage:last-child { border-right: none; }
.lc-stage .lc-num {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--brand);
  background: var(--brand-50); padding: 3px 8px; border-radius: 5px; display: inline-block; margin-bottom: 12px;
}
.lc-stage h4 { font-size: 0.95rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.lc-stage p { font-size: 0.82rem; color: var(--text-faint); line-height: 1.5; }
.lc-stage.gate { background: var(--brand-50); }
.lc-stage.gate .lc-num { background: var(--brand); color: #fff; }

/* ---------- Deep feature section ---------- */
.deep {
  border-top: 1px solid var(--border); padding: 72px 0 0; margin-top: 72px;
}
.deep:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.deep-head { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; margin-bottom: 40px; }
.deep-head .deep-num {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--brand);
  letter-spacing: 0.06em; margin-bottom: 12px; display: block;
}
.deep-head h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: -0.025em; }
.deep-head .deep-intro { font-size: 1rem; color: var(--text-soft); line-height: 1.7; }
.deep-head .deep-intro p + p { margin-top: 14px; }
.deep-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* ---------- Mechanism list (how it works, ordered) ---------- */
.mechanism { counter-reset: mech; display: grid; gap: 0; }
.mechanism li {
  counter-increment: mech; position: relative; padding: 16px 0 16px 46px;
  border-bottom: 1px solid var(--border-subtle); font-size: 0.94rem; color: var(--text-soft); line-height: 1.6;
}
.mechanism li:last-child { border-bottom: none; }
.mechanism li::before {
  content: counter(mech); position: absolute; left: 0; top: 15px;
  width: 28px; height: 28px; border-radius: 7px; background: var(--brand-50); color: var(--brand);
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700;
  display: grid; place-items: center;
}
.mechanism li strong { color: var(--ink); font-weight: 620; }

/* ---------- Prevents / spec panel ---------- */
.spec-panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; }
.spec-panel h4 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.11em; font-weight: 700;
  color: var(--text-faint); margin-bottom: 18px;
}
.spec-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-row .spec-k { flex: 0 0 42%; color: var(--text-faint); }
.spec-row .spec-v { flex: 1; color: var(--ink); font-weight: 520; }
.spec-panel.danger { background: var(--st-blocked-bg); border-color: #fecaca; }
.spec-panel.danger h4 { color: var(--st-blocked-fg); }

/* ---------- Decision matrix ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.matrix th, .matrix td { padding: 13px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border-subtle); }
.matrix tr:last-child td { border-bottom: none; }
.matrix thead th { background: var(--paper); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); font-weight: 700; }
.matrix td:first-child { font-weight: 550; color: var(--ink); }
.matrix .verdict { font-weight: 620; white-space: nowrap; }
.matrix .verdict.block { color: var(--st-blocked-fg); }
.matrix .verdict.keep { color: var(--st-ok-fg); }

/* ---------- Inline callout ---------- */
.callout {
  border-left: 3px solid var(--brand); background: var(--brand-50);
  padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 24px;
}
.callout p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }
.callout strong { color: var(--brand-dark); font-weight: 640; }

/* ---------- Section intro (page-level) ---------- */
.section-intro { max-width: 780px; }
.section-intro .lead + .lead { margin-top: 16px; }

/* ---------- Anchor sub-nav ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(248, 250, 252, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 0.87rem; font-weight: 520;
  color: var(--text-soft); white-space: nowrap; transition: all 0.15s ease;
}
.subnav a:hover { background: var(--border-subtle); color: var(--ink); }

/* ---------- Module hero band ---------- */
.module-hero { background: var(--brand-dark); color: var(--text-inverse); padding: calc(var(--nav-h) + 72px) 0 72px; }
.module-hero h1, .module-hero h2 { color: #fff; }
.module-hero .lead { color: var(--text-inverse-soft); }
.module-hero .breadcrumb { color: rgba(248,250,252,0.5); }
.module-hero .breadcrumb .current { color: #fff; }
.module-hero .breadcrumb a:hover { color: var(--brand-100); }
.module-hero .eyebrow { color: var(--brand-100); }
.module-hero .eyebrow::before { background: var(--brand-100); }
.module-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: rgba(219,234,254,0.14); color: var(--brand-100);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 22px;
}
.module-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border-dark); }
.module-stats .ms-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 650; color: #fff; letter-spacing: -0.02em; }
.module-stats .ms-lbl { font-size: 0.85rem; color: var(--text-inverse-soft); margin-top: 6px; line-height: 1.45; }

@media (max-width: 1024px) {
  .dropdown.mega { min-width: 520px; }
  .lifecycle { grid-auto-flow: row; grid-auto-columns: auto; }
  .lc-stage { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .deep-head { grid-template-columns: 1fr; gap: 20px; }
  .module-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .deep-body { grid-template-columns: 1fr; }
  .deep { padding-top: 48px; margin-top: 48px; }
  .module-hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
}
@media (max-width: 560px) {
  .module-stats { grid-template-columns: 1fr; gap: 24px; }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-row .spec-k { flex: none; }
}

/* ---------- Nav on dark module heroes ---------- */
body:has(.module-hero) .nav-wrap:not(.scrolled) .logo { color: #fff; }
body:has(.module-hero) .nav-wrap:not(.scrolled) .logo-mark { background: rgba(255,255,255,0.16); }
body:has(.module-hero) .nav-wrap:not(.scrolled) .nav-item { color: rgba(248,250,252,0.82); }
body:has(.module-hero) .nav-wrap:not(.scrolled) .nav-item:hover,
body:has(.module-hero) .nav-wrap:not(.scrolled) .nav-links li:hover > .nav-item { background: rgba(255,255,255,0.1); color: #fff; }
body:has(.module-hero) .nav-wrap:not(.scrolled) .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
body:has(.module-hero) .nav-wrap:not(.scrolled) .btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
body:has(.module-hero) .nav-wrap:not(.scrolled) .hamburger span { background: #fff; }
/* dropdown panels stay light-on-white regardless */
body:has(.module-hero) .nav-wrap .dropdown .dd-title { color: var(--ink); }
body:has(.module-hero) .nav-wrap .dropdown a { color: var(--ink); }

/* ---------- Anchor offset under sticky nav + subnav ---------- */
.deep[id], section[id], div[id].deep { scroll-margin-top: 150px; }
.subnav ~ * [id] { scroll-margin-top: 150px; }
