/* ── Color tokens ──
   Marka's palette, carried forward from the app's own design tokens
   (PLANNING.md §22 / app.css) rather than re-derived. Light-first,
   already AA-audited against both --text and --on-accent. */
:root {
  --bg:           #f5f6f9;
  --surface:      #ffffff;
  --border:       #d8dbe3;
  --text:         #1d2333;
  --text-muted:   #5b6478;
  --accent:       #33407d;
  --accent-dark:  #262f5e;
  --on-accent:    #ffffff;
  --gold:         #91661a;

  --success:      #2f6b4e;
  --warning:      #a6551a;
  --danger:       #a0332f;

  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;

  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --container:    1200px;
  --section-gap:  96px;
  scroll-padding-top: 64px;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-gap) 0; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
p { max-width: 65ch; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 52ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius-sm); }

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(51, 64, 125, 0.08); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Blur lives on a pseudo-element, not .site-header itself, because
   backdrop-filter on an ancestor turns it into a containing block for
   position:fixed descendants (.main-nav), which broke the mobile menu's
   fixed positioning and made it render squashed/see-through over the hero. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 246, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.8; }
.logo-img { height: 32px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(29, 35, 51, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.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); }

/* ── Hero ── */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(51,64,125,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51,64,125,0.08);
  border: 1px solid rgba(51,64,125,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 40px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-visual {
  margin: 40px auto 0;
  max-width: 480px;
}

/* ── Rubric slider mockup (hero + how-it-works visual) ── */
.rubric-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(29,35,51,0.12);
  text-align: left;
}
.rubric-demo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.rubric-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rubric-demo-student {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rubric-demo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}
.rubric-demo-name { font-size: 14px; font-weight: 700; }
.rubric-demo-meta { font-size: 12px; color: var(--text-muted); }
.rubric-demo-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: rgba(47,107,78,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.rubric-criterion { margin-bottom: 18px; }
.rubric-criterion:last-of-type { margin-bottom: 0; }
.rubric-criterion-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.rubric-criterion-score { color: var(--accent); }
.rubric-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
}
.rubric-fill {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--accent);
}
.rubric-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(29,35,51,0.2);
}
.rubric-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

.rubric-demo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.rubric-demo-lock {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ── How it works ── */
.how-it-works { background: var(--surface); }
.how-it-works .section-header { text-align: center; margin-bottom: 60px; }
.how-it-works .section-subtitle { margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(51,64,125,0.08);
  border: 2px solid rgba(51,64,125,0.2);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; margin: 0 auto; }

/* ── Features grid ── */
.features-section .section-header { text-align: center; margin-bottom: 60px; }
.features-section .section-subtitle { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(51,64,125,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29,35,51,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(51,64,125,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── Trust stat ── */
.trust-stat-section {
  background: var(--surface);
  text-align: center;
}

.trust-stat {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
}
.trust-stat-label { color: var(--text-muted); font-size: 1rem; max-width: 46ch; margin: 0 auto; }

/* ── Pricing summary ── */
.pricing-summary { text-align: center; }
.pricing-summary .section-header { margin-bottom: 48px; }

.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.price-badge {
  display: inline-block;
  background: rgba(51,64,125,0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.price-period { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.price-features {
  text-align: left;
  margin-bottom: 32px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features .check { color: var(--success); flex-shrink: 0; display: flex; align-items: center; }
.price-features .check-partial { color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center; }

.price-cta { width: 100%; text-align: center; justify-content: center; }
.price-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

.price-play-billing { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.price-cta-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── FAQ ── */
.faq-section { background: var(--surface); }
.faq-section .section-header { text-align: center; margin-bottom: 56px; }

.faq-list { max-width: 720px; margin: 0 auto; }

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-answer p { max-width: none; padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-group h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-nav-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-nav-group a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ── Prose (terms/privacy) ── */
.prose {
  max-width: 720px;
  padding: 64px 0;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 12px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul { color: var(--text-muted); padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--accent); text-decoration: underline; }
/* .btn links (e.g. 404's "Back to home") need their own color/no-underline,
   not the plain-prose-link style above, or button text on an accent
   background renders in the same color as the background itself. */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: var(--on-accent); }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Focus styles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utilities ── */
.container-sm { max-width: 560px; }
.container-md { max-width: 860px; }
.link-accent { color: var(--accent); }
.hidden { display: none; }
.section-cta { text-align: center; margin-top: 48px; }
.pricing-more { text-align: center; margin-top: 24px; }
.features-section-surface { background: var(--surface); }

/* ── Features page: detail sections ── */
.feature-detail { padding: var(--section-gap) 0; }
.feature-detail-alt { background: var(--surface); }

.feature-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-detail-visual { min-width: 0; }

.feature-detail-reverse .feature-detail-text { order: 2; }
.feature-detail-reverse .feature-detail-visual { order: 1; }

.feature-detail-text .section-label { margin-bottom: 8px; }
.feature-detail-text h2 { margin-bottom: 16px; }
.feature-detail-text > p { color: var(--text-muted); margin-bottom: 24px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); }
.check-green { color: var(--success); flex-shrink: 0; display: flex; align-items: center; }

/* Generic bordered-panel visual used across feature-detail sections */
.detail-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.detail-visual-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }

/* Roster table mockup */
.roster-table { display: flex; flex-direction: column; gap: 8px; }
.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.roster-name { font-weight: 600; color: var(--text); flex: 1; }
.roster-code { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }
.roster-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.roster-status-done { background: rgba(47,107,78,0.1); color: var(--success); }
.roster-status-pending { background: rgba(91,100,120,0.1); color: var(--text-muted); }

/* Locked/withheld visual */
.withheld-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.withheld-icon { color: var(--text-muted); flex-shrink: 0; }
.withheld-name { font-size: 13px; font-weight: 600; color: var(--text); }
.withheld-note { font-size: 12px; color: var(--text-muted); }
.withheld-card.ready .withheld-icon { color: var(--success); }

/* Rollup bar chart mockup */
.rollup-bars { display: flex; flex-direction: column; gap: 14px; }
.rollup-bar-row { display: flex; align-items: center; gap: 12px; }
.rollup-bar-label { font-size: 12px; color: var(--text-muted); width: 96px; flex-shrink: 0; }
.rollup-bar-track { flex: 1; height: 10px; background: var(--surface); border-radius: 100px; overflow: hidden; }
.rollup-bar-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.rollup-bar-fill.gold { background: var(--gold); }
.rollup-bar-value { font-size: 12px; font-weight: 700; color: var(--text); width: 32px; text-align: right; flex-shrink: 0; }

@media (max-width: 768px) {
  .feature-detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail-reverse .feature-detail-text { order: unset; }
  .feature-detail-reverse .feature-detail-visual { order: unset; }
}

/* ── Pricing page ── */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.pricing-card-featured { border-color: var(--accent); position: relative; }
.pricing-card-header { margin-bottom: 28px; }
.pricing-card-header .price-amount { font-size: 2rem; margin: 8px 0 4px; }

.pricing-faq { margin-top: 80px; }
.pricing-faq-title { margin-bottom: 40px; text-align: center; }

@media (max-width: 680px) {
  .pricing-cards { grid-template-columns: 1fr; }
}

/* ── Contact page ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon { color: var(--accent); flex-shrink: 0; width: 40px; display: flex; justify-content: center; }
.contact-item h3 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { color: var(--text-muted); font-size: 14px; margin: 0; }
.contact-note { margin-top: 4px; font-size: 13px; }

/* ── Delete-account page ── */
.deletion-steps { display: flex; flex-direction: column; gap: 20px; margin: 20px 0 8px; }
.deletion-step { display: flex; gap: 16px; align-items: flex-start; }
.deletion-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(51,64,125,0.08);
  border: 1.5px solid rgba(51,64,125,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.deletion-step strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.deletion-step p { font-size: 13px; color: var(--text-muted); margin: 0; max-width: none; }

/* ── Webhook forms (deletion request, Insights request) ── */
.webhook-form {
  max-width: 460px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.webhook-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.webhook-form input,
.webhook-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.webhook-form textarea { resize: vertical; min-height: 80px; }
.webhook-form input::placeholder,
.webhook-form textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.webhook-form input:focus,
.webhook-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51,64,125,0.12); }
.webhook-form-help { margin: -2px 0 6px; color: var(--text-muted); font-size: 0.85rem; }
.webhook-form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.webhook-form .btn-sending { display: none; }
.webhook-form-feedback {
  max-width: 460px;
  margin: -10px 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}
.webhook-form-feedback a { color: inherit; text-decoration: underline; }
.webhook-form-feedback-success { border: 1px solid rgba(47,107,78,0.25); background: rgba(47,107,78,0.08); color: var(--success); }
.webhook-form-feedback-error { border: 1px solid rgba(160,51,47,0.25); background: rgba(160,51,47,0.08); color: var(--danger); }

/* ── Mobile nav CTAs (desktop hidden) ── */
.mobile-nav-ctas { display: none; }

/* ── CTA banner ── */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(51,64,125,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p  { color: var(--text-muted); font-size: 1.1rem; margin: 0 auto 36px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(29,35,51,0.12);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 18px; padding: 12px 16px; width: 100%; }

  .mobile-nav-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .mobile-nav-ctas .btn { width: 100%; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { gap: 32px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 24px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .feature-card:hover { transform: none; }
  .faq-answer { transition: none; }
}
