/* =============================================================
   Mergic — Classic Light Design
   No gradients. No shadows. No glows. No neon.
   Editorial serif headings (Fraunces) + neutral sans body (Inter).
   ============================================================= */

:root {
  /* Palette — warm off-white paper feel */
  --bg:           #fafaf7;   /* warm off-white page */
  --bg-1:         #f4f3ee;
  --bg-2:         #edece6;
  --surface-1:    #ffffff;
  --surface-2:    #f6f5f1;
  --surface-3:    #ecebe5;

  --border:        #e3e1d8;
  --border-strong: #cfcdc2;

  --text:      #1a1a1a;
  --text-dim:  #555550;
  --text-mute: #8a8a82;

  /* Single restrained accent — deep ink */
  --accent:    #1a1a1a;
  --accent-2:  #555550;

  /* Functional (muted) */
  --success: #3f7d52;
  --warning: #b08236;
  --danger:  #b04545;

  /* Radii — modest, classic */
  --radius-sm: 3px;
  --radius:    4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  /* Typography
     Display & accent: Fraunces — editorial serif with character
     Body / UI:        Inter   — neutral, highly legible
     Mono:             JetBrains Mono
  */
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-serif:   "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-mono:    "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --container-wide: 1280px;
  --nav-h: 64px;

  /* Backwards-compat aliases for inline styles in old HTML */
  --brand:           var(--text);
  --brand-2:         var(--text);
  --brand-3:         var(--text);
  --gradient-brand:  var(--surface-3);
  --gradient-brand-vivid: var(--surface-3);
  --gradient-soft:   var(--surface-2);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body { overflow-x: hidden; }

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

::selection { background: #1a1a1a; color: #fafaf7; }

/* ============== Typography ============== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em 0;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.015em; font-weight: 500; }
h4 { font-size: 1.08rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }
p  { color: var(--text-dim); margin: 0 0 1em 0; }

/* Editorial italic accent — Fraunces italic is gorgeous */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Plain emphasis (was gradient-text) */
.gradient-text {
  color: var(--text);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

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

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

/* ============== Navbar ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1px;
  background: var(--text);
}

.nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Dropdown */
.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.menu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 3px;
  color: var(--text);
}
.menu a:hover { background: var(--surface-2); }
.menu a .ic {
  width: 28px; height: 28px; border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 14px;
  flex: 0 0 28px;
  color: var(--text);
}
.menu a .ic .ico { width: 16px; height: 16px; }
.menu a .mt { font-weight: 600; color: var(--text); font-size: 14px; }
.menu a .md { font-size: 12.5px; color: var(--text-mute); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: #000; border-color: #000; }

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

.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 13px 22px; font-size: 14.5px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  max-width: 20ch;
  margin: 20px auto 18px;
  line-height: 1.05;
  text-wrap: balance;
}
.hero h1 .serif { line-height: 1.0; display: inline-block; padding: 0 0.04em; }
.hero p.lead {
  max-width: 62ch;
  margin: 0 auto 32px;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}
.hero-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-meta {
  margin-top: 36px;
  display: inline-flex; gap: 22px 28px; flex-wrap: wrap; justify-content: center;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.hero-meta .check .ico { width: 11px; height: 11px; stroke-width: 2.2; }

@media (max-width: 720px) {
  .hero h1 { margin-top: 14px; }
  .hero-meta { gap: 12px 20px; margin-top: 24px; font-size: 12.5px; }
}

/* Hero showcase card */
.showcase {
  margin-top: 48px;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 10px;
  overflow: hidden;
}
.showcase-window {
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
.window-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.window-bar .url { margin-left: 12px; }

.code-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.code-block .pane { padding: 18px 22px; }
.code-block .pane + .pane { border-left: 1px solid var(--border); background: var(--surface-2); }
.code-block .gutter { color: var(--text-mute); padding-right: 12px; user-select: none; }
.code-block .line { display: grid; grid-template-columns: 28px 1fr; }
/* Classic muted syntax tokens for light bg */
.tok-key { color: #7a3e9d; }
.tok-fn  { color: #2c6fb1; }
.tok-str { color: #8a6d1f; }
.tok-cm  { color: var(--text-mute); font-style: italic; }
.tok-num { color: #a14f2d; }
.tok-var { color: var(--text); }
.line.add { background: rgba(63,125,82,0.10); }
.line.del { background: rgba(176,69,69,0.10); }
.review-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ============== Logo strip ============== */
.logos {
  padding: 28px 0 48px;
  text-align: center;
}
.logos .label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.logo-row {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center;
}
.logo-row .logo {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-mute);
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ============== Sections / cards / features ============== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card .icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--text);
}
.card .icon .ico { width: 20px; height: 20px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* SVG icon system */
.ico {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ico-lg { width: 22px; height: 22px; }
.btn .ico { width: 16px; height: 16px; }

/* Feature row (asymmetric) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.feature-row .preview {
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 22px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.bullets { list-style: none; padding: 0; margin: 14px 0 0; }
.bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 14.5px;
}
.bullets li::before {
  content: "";
  width: 16px; height: 16px; flex: 0 0 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  display: inline-block;
  margin-top: 3px;
}

/* ============== Metrics ============== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.metric {
  padding: 32px 22px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: 0; }
.metric .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.metric .lbl { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }

/* ============== Testimonials ============== */
.tcard {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  height: 100%;
  transition: border-color .2s ease;
}
.tcard:hover { border-color: var(--border-strong); }
.tcard .quote {
  color: var(--text);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
}
.tcard .meta { font-size: 13.5px; color: var(--text-dim); }
.tcard .meta strong { color: var(--text); display: block; font-weight: 600; }

/* ============== Pricing ============== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.featured {
  background: var(--surface-2);
  border-color: var(--text);
}
.plan .pname { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.plan .badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--text);
  color: var(--bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan .price {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-mute); font-family: var(--font-sans); }
.plan .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.plan ul li {
  padding: 9px 0;
  color: var(--text-dim);
  font-size: 14px;
  display: flex; gap: 10px;
  border-top: 1px solid var(--border);
}
.plan ul li::before {
  content: "✓"; color: var(--text); font-weight: 600;
}
.plan ul li.no { color: var(--text-mute); }
.plan ul li.no::before { content: "−"; color: var(--text-mute); }
.plan .btn { width: 100%; }

/* ============== FAQ ============== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 20px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem; color: var(--text-dim);
  transition: transform .2s ease, color .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--text); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-dim);
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 0 22px; font-size: 14.5px; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* ============== CTA banner ============== */
.cta-banner {
  margin: 0 auto;
  padding: 56px 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.cta-banner h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.cta-banner p { max-width: 580px; margin: 0 auto 26px; color: var(--text-dim); }

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 56px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 44px;
  margin-bottom: 44px;
}
.footer h5 {
  font-size: 12.5px; color: var(--text);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-sans);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer a { color: var(--text-dim); font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer .desc { color: var(--text-dim); font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 3px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
.socials a:hover { color: var(--text); border-color: var(--border-strong); }

/* ============== Newsletter ============== */
.newsletter {
  display: flex; gap: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: var(--radius);
  max-width: 380px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}
.newsletter input::placeholder { color: var(--text-mute); }
.newsletter button {
  padding: 9px 16px;
  border-radius: 3px;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.newsletter button:hover { background: #000; }

/* ============== Page hero ============== */
.page-hero {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 72px);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  max-width: 22ch;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.page-hero h1 .serif { line-height: 1.0; display: inline-block; padding: 0 0.04em; }
.page-hero p {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ============== Comparison table ============== */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare tbody td { color: var(--text-dim); }
.compare tbody td:first-child { color: var(--text); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--text); font-weight: 600; }
.compare .no  { color: var(--text-mute); }

/* ============== Form ============== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--text);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { font-size: 12.5px; color: var(--danger); }
.field.full { grid-column: 1 / -1; }

/* ============== Legal pages ============== */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 36px; font-size: 1.5rem; font-family: var(--font-display); font-weight: 500; }
.legal h3 { margin-top: 22px; font-size: 1.15rem; color: var(--text); font-family: var(--font-display); font-weight: 500; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; line-height: 1.75; }

/* ============== Reveal animations (minimal) ============== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .grid-3, .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics .metric:nth-child(2) { border-right: 0; }
  .metrics .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .code-block { grid-template-columns: 1fr; }
  .code-block .pane + .pane { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 14px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 12px; font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .menu { position: static; opacity: 1; pointer-events: auto; transform: none; background: transparent; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .has-menu .menu { display: none; }
  .has-menu.open .menu { display: block; }

  .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metrics .metric { border-right: 0; border-bottom: 1px solid var(--border); }
  .metrics .metric:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { padding: 36px 22px; }
  .hero { padding: 56px 0 36px; }
  .footer-bottom { flex-direction: column; }
}
