/* ==========================================================================
   FlowPilot — Marketing Homepage
   Dark-mode-first B2B SaaS. Deep indigo/slate base, single amber accent.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0a0e15;
  --bg-alt: #0d121b;
  --surface: #131a25;
  --surface-2: #1a2331;
  --surface-3: #212c3d;
  --border: #26313f;
  --border-soft: #1c2632;

  /* Text */
  --text: #eef1f6;
  --text-dim: #9aa8bd;
  --text-faint: #5e6c81;

  /* Accent — signal amber */
  --accent: #f5a524;
  --accent-hover: #ffb84d;
  --accent-ink: #16110a;
  --accent-dim: rgba(245, 165, 36, 0.12);
  --accent-border: rgba(245, 165, 36, 0.35);

  /* Status semantics (dashboard) */
  --ok: #3ecf7d;
  --ok-dim: rgba(62, 207, 125, 0.14);
  --warn: #f2b84b;
  --warn-dim: rgba(242, 184, 75, 0.14);
  --bad: #f16565;
  --bad-dim: rgba(241, 101, 101, 0.14);

  /* Light neutral for contrast sections */
  --light: #f4f2ec;
  --light-ink: #14181f;

  /* Type */
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  /* Rhythm */
  --gutter: 24px;
  --section-pad: 96px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0; color: var(--text); letter-spacing: -0.015em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-hover); }

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

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}
.btn-ghost:hover { background: rgba(255,255,255,0.11); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 21, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-mark { color: var(--accent); display: inline-flex; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s var(--ease);
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.link-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s var(--ease);
}
.link-login:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu-divider { height: 4px; }
.mobile-menu a.btn { margin-top: 12px; padding: 14px 22px; border-bottom: none; }
.mobile-menu a.btn-accent,
.mobile-menu a.btn-accent:hover { color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy,
.hero-visual { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 15ch;
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-microcopy {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.eyebrow-light { color: var(--accent); }

/* ---------- Dashboard mockup component ---------- */
.dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02);
}
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.dash-titlebar-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

.dash-body { display: flex; min-height: 380px; }

.dash-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.dash-org {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dash-org-mark {
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-org-name { font-size: 12.5px; font-weight: 700; color: var(--text); }

.dash-sidenav { display: flex; flex-direction: column; gap: 3px; }
.dash-sidenav-item {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.dash-sidenav-item.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

.dash-main { flex: 1; padding: 20px 22px 24px; min-width: 0; }

.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.dash-tab {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s var(--ease);
}
.dash-tab:hover { color: var(--text-dim); }
.dash-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dash-panel { display: none; }
.dash-panel.is-active { display: block; }

.dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash-panel-head h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.dash-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.dash-table { font-size: 12.5px; }
.dash-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 500;
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--border);
}
.dash-table td {
  padding: 11px 10px 11px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.avatar-lg {
  width: 40px; height: 40px;
  font-size: 13px;
  background: var(--accent-dim);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-dim); color: var(--ok); }
.badge-warn { background: var(--warn-dim); color: var(--warn); }
.badge-bad { background: var(--bad-dim); color: var(--bad); }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}
.status-dot-ok { background: var(--ok); }
.status-dot-warn { background: var(--warn); }
.status-dot-bad { background: var(--bad); }

/* Capacity panel */
.cap-list { display: flex; flex-direction: column; gap: 14px; }
.cap-row { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 12px; }
.cap-name { font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.cap-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.cap-fill { display: block; height: 100%; background: var(--accent); border-radius: 100px; }
.cap-pct { font-size: 11.5px; color: var(--text-dim); text-align: right; }
.cap-pct-high { color: var(--bad); }
.cap-pct-low { color: var(--ok); }
.dash-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

/* Reports chart */
.chart-wrap { display: flex; flex-direction: column; gap: 14px; }
.bar-chart { width: 100%; height: auto; }
.chart-gridline { stroke: var(--border); stroke-width: 1; }
.bar-ok { fill: var(--ok); }
.bar-warn { fill: var(--warn); }
.bar-bad { fill: var(--bad); }
.chart-legend {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-bad { background: var(--bad); }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 44px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.logo-strip-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.logo-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  row-gap: 20px;
}
.logo-strip-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-faint);
  letter-spacing: -0.01em;
}

/* ---------- Problem ---------- */
.problem { padding: var(--section-pad) 0; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.problem-num {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.problem-card > p:not(.problem-cost) {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin-bottom: 16px;
}
.problem-cost {
  font-size: 0.9rem;
  color: var(--text-faint);
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.problem-cost strong { color: var(--text-dim); }

/* ---------- Workflow ---------- */
.workflow { padding: var(--section-pad) 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.workflow-steps { display: flex; flex-direction: column; gap: 4px; }
.workflow-step {
  display: flex;
  gap: 16px;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.workflow-step:hover { background: var(--surface); }
.workflow-step.is-active {
  background: var(--surface);
  border-color: var(--border);
}
.workflow-step-num {
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
  padding-top: 2px;
}
.workflow-step.is-active .workflow-step-num { color: var(--accent); }
.workflow-step-text { display: flex; flex-direction: column; gap: 5px; }
.workflow-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.workflow-step-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.workflow-visual { min-width: 0; }
.dash-compact .dash-main { padding: 22px; }

.form-mock { display: flex; flex-direction: column; gap: 10px; }
.form-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.form-mock-label { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.04em; }
.form-mock-value { font-size: 12.5px; color: var(--text); font-weight: 600; }
.form-mock-btn {
  margin-top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: default;
}

.route-trace { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.route-trace li {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

.rollup-mock { display: flex; flex-direction: column; gap: 10px; }
.rollup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ---------- Features ---------- */
.features { padding: var(--section-pad) 0; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.feature-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 9px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- Integrations ---------- */
.integrations { padding: var(--section-pad) 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.integration-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dim);
  text-align: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.integration-chip:hover { border-color: var(--accent-border); color: var(--text); }

/* ---------- Proof ---------- */
.proof { padding: var(--section-pad) 0; }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.proof-card {
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.proof-card blockquote { margin: 0; }
.proof-card blockquote p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.55;
}
.proof-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proof-person { display: flex; flex-direction: column; font-size: 0.85rem; }
.proof-person strong { color: var(--text); font-size: 0.92rem; }
.proof-person span { color: var(--text-faint); }
.proof-metric {
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.proof-metric-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

/* ---------- Pricing ---------- */
.pricing { padding: var(--section-pad) 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.pricing .section-head { max-width: 100%; text-align: center; }
.pricing .section-head p.section-sub { margin-left: auto; margin-right: auto; }

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}
.pricing-toggle-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-faint);
}
.save-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--surface-3);
  border-radius: 100px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.toggle-switch[aria-checked="true"] { background: var(--accent-dim); border-color: var(--accent-border); }
.toggle-switch[aria-checked="true"] .toggle-knob {
  transform: translateX(20px);
  background: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-dim), var(--surface) 40%);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price-desc { color: var(--text-dim); font-size: 0.88rem; min-height: 40px; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}
.price-num { font-size: 2.4rem; font-weight: 700; color: var(--text); }
.price-period { font-size: 0.88rem; color: var(--text-faint); }
.price-billed-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
}
.price-save {
  margin: -12px 0 18px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.price-save[hidden] { display: none; }
.pricing-toggle-label { cursor: pointer; }
.pricing-toggle-label.is-on { color: var(--text); }
.price-features {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L6.2 12L13 4' fill='none' stroke='%23f5a524' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.price-features li:first-child { color: var(--text-faint); font-weight: 600; padding-left: 0; }
.price-features li:first-child::before { display: none; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 90px 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.final-cta p { margin-top: 16px; color: var(--text-dim); font-size: 1.05rem; }
.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding-top: 64px; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 16px; color: var(--text-dim); font-size: 0.92rem; max-width: 40ch; line-height: 1.6; }
.social-icons { display: flex; gap: 12px; margin-top: 22px; }
.social-icons a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent-border); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-faint); transition: color 0.15s var(--ease); }
.footer-legal a:hover { color: var(--text-dim); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* ---- >= 480px small phones landscape / phablets ---- */
@media (min-width: 480px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- >= 640px ---- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .final-cta-actions { flex-wrap: nowrap; }
}

/* ---- >= 768px ---- */
@media (min-width: 768px) {
  :root { --section-pad: 112px; }
  .cap-row { grid-template-columns: 130px 1fr 50px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card-featured { transform: translateY(-10px); }
}

/* ---- >= 1024px ---- */
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
  .hero-wrap {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 64px;
  }
  .hero-copy h1 { max-width: 13ch; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .integrations-grid { grid-template-columns: repeat(5, 1fr); }
  .workflow-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ---- < 1024px: hide desktop nav, show hamburger ---- */
@media (max-width: 1023.98px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---- >= 1280px ---- */
@media (min-width: 1280px) {
  :root { --gutter: 40px; }
}

/* ---- Narrow phones: keep dashboard legible ---- */
@media (max-width: 479.98px) {
  .dash-sidebar { display: none; }
  .dash-main { padding: 16px 14px 18px; }
  .dash-table { font-size: 11px; }
  .dash-table th:nth-child(2), .dash-table td:nth-child(2) { display: none; }
  .cap-row { grid-template-columns: 78px 1fr 36px; gap: 8px; }
  .header-inner { height: 60px; gap: 12px; }
  .header-actions { gap: 10px; }
  .link-login { display: none; }
  .logo-word { font-size: 1rem; }
  .dash-tabs { gap: 0; }
  .dash-tab { padding: 9px 9px; font-size: 11.5px; }
  .dash-panel-head { flex-wrap: wrap; gap: 4px; }
}
