/* ==========================================================
   PRECONSTRUCT — MARKETING PAGES
   Direction: "night shift → daylight". Every page opens in the
   login screen's dark wireframe world, then hands off to a light
   page whose bands alternate white / green tint / amber wash /
   dark. Every colour below is a token from app/src/theme.css
   (or an rgba tint of one) — nothing invented.
   Inter is self-hosted: the static-page CSP sets
   font-src 'self' data:, which blocks fonts.googleapis.com.
========================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

:root {
  /* brand (theme.css --brand / --brand-hover / --brand-active) */
  --brand: #1FAA00;
  --brand-hover: #0e8800;
  --brand-active: #066600;      /* green TEXT on light: 7.22:1 on white */
  --brand-soft: rgba(31, 170, 0, 0.12);
  --brand-border: rgba(31, 170, 0, 0.35);

  /* neutrals (theme.css --gray-*) */
  --gray-50:  #fafafa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --text-main: #111827;
  --text-muted: #374151;

  /* dark world = gray-900 lifted with a 12% brand tint → #132a22
     (rgba(31,170,0,0.12) over #111827; deep green-tinted navy).
     Text on it: white 15.2:1, gray-300 10.3:1, gray-400 6.0:1,
     brand 4.93:1, amber 7.27:1. On-brand text stays gray-900 (5.75:1). */
  --ink: #132a22;
  --ink-text: var(--gray-900);
  --wash-pale: rgba(31, 170, 0, 0.05);
  --fade: 200px;
  --fade-hero: 240px;
  --on-ink: #ffffff;
  --on-ink-dim: var(--gray-300);
  --on-ink-faint: var(--gray-400);
  --ink-line: rgba(255, 255, 255, 0.10);

  /* amber (theme.css --amber / --amber-deep / --amber-wash) */
  --amber: #F4A225;
  --amber-deep: #A65E08;        /* amber TEXT on light: 4.97 white, 4.59 wash */
  --amber-wash: #FDF5E6;

  /* info blue (theme.css --color-info) */
  --blue: #2563eb;              /* 5.17:1 on white */
  --blue-soft: rgba(37, 99, 235, 0.06);

  /* section washes — every one is a token tint over white; the page walks
     green → amber → neutral → blue in small steps, never back to #fff */
  --wash-green: rgba(31, 170, 0, 0.08);
  --wash-amber: var(--amber-wash);
  --wash-blue: var(--blue-soft);
  --w-g1: #f4fbf2;                          /* rgba(31,170,0,0.05) over #fff, resolved — also the body colour */
  --w-g2: rgba(31, 170, 0, 0.08);
  --w-g3: rgba(31, 170, 0, 0.12);
  --w-a1: #FDF5E6;                         /* theme --amber-wash */
  --w-a2: rgba(244, 162, 37, 0.07);
  --w-a3: rgba(244, 162, 37, 0.035);
  --w-n:  var(--gray-50);
  --w-b1: rgba(37, 99, 235, 0.04);
  --w-b2: rgba(37, 99, 235, 0.07);
  --w-b3: rgba(37, 99, 235, 0.045);

  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.09);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-frame: 0 40px 80px -24px rgba(17, 24, 39, 0.45), 0 0 0 1px rgba(17,24,39,0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--w-g1);          /* page never shows #fff */
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.ink :focus-visible, .hero :focus-visible, header :focus-visible, footer :focus-visible { outline-color: var(--amber); }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--text-main); }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
h2 { margin-bottom: 0; }
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.02em; }
h4 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-active);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.amber { color: var(--amber-deep); }
.eyebrow.blue  { color: var(--blue); }

.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--text-muted); max-width: 40em; }

/* Section numbers — clause numbers on terms.html / privacy.html only */
.secnum {
  display: block; margin: 0 0 14px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--brand-active);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--on-ink);
}
.wordmark .mark { width: 32px; height: 32px; color: var(--on-ink); flex: none; }  /* P = brand, C = currentColor */
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a { color: var(--on-ink-dim); font-size: 0.9375rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-md); transition: color .15s, background .15s; }
.bar nav a:hover, .bar nav a.active { color: var(--on-ink); background: rgba(255,255,255,0.06); }
.bar nav a.active { color: var(--brand); }
.navsep { width: 1px; height: 22px; background: var(--ink-line); margin: 0 8px; }
.bar nav a.cta {
  color: var(--ink-text); background: var(--brand); font-weight: 700;
  padding: 10px 18px; margin-left: 4px;
}
.bar nav a.cta:hover { background: var(--brand); color: var(--ink-text); filter: brightness(1.08); }
.cta-short { display: none; }   /* short CTA label, shown only <=480 */
/* Features dropdown — pure CSS: opens on hover and on keyboard focus (:focus-within). */
.navdrop { position: relative; display: flex; align-items: center; }
.navdrop > .navlink::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; margin-bottom: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.7;
}
.navmenu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 560px; padding: 18px 20px 20px; margin-top: 6px;
  display: none; grid-template-columns: repeat(3, auto); gap: 6px 32px;
  background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
/* keep the menu open while the pointer crosses the 6px gap */
.navmenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.navdrop:hover .navmenu, .navdrop:focus-within .navmenu { display: grid; }
.navmenu-group { display: flex; flex-direction: column; gap: 2px; }
.navmenu-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-ink-faint); padding: 0 12px 6px;
}
.bar nav .navmenu a { display: block; padding: 8px 12px; font-size: 0.9375rem; white-space: nowrap; }
.bar nav .navmenu a.active { color: var(--brand); }

/* Mobile: <details> disclosure instead of a hover menu; the desktop dropdown is hidden. */
.navmobile { display: none; }
@media (max-width: 860px) {
  .bar nav .navlink, .navsep, .navdrop { display: none; }
  .navmobile { display: block; position: static; }
  .navmobile > summary {
    list-style: none; cursor: pointer; color: var(--on-ink-dim); font-size: 0.9375rem; font-weight: 500;
    padding: 8px 12px; border-radius: var(--r-md); white-space: nowrap;
  }
  .navmobile > summary::-webkit-details-marker { display: none; }
  .navmobile > summary::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; margin-bottom: 2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.7;
  }
  .navmobile[open] > summary { color: var(--on-ink); background: rgba(255,255,255,0.06); }
  .navmobile[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
  .navmobile-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    background: var(--ink); border-top: 1px solid var(--ink-line); box-shadow: var(--shadow-lg);
    padding: 12px 16px 18px; display: grid; gap: 4px;
  }
  .navmobile-panel .navmenu-label { padding-top: 10px; }
  .bar nav .navmobile-panel a { display: block; padding: 10px 12px; font-size: 1rem; }
  .bar nav .navmobile-panel a.active { color: var(--brand); }
}
@media (max-width: 480px) {
  .navmobile > summary { padding: 8px 6px; }
  .navmobile > summary::after { display: none; }   /* no room for the chevron on the narrowest phones */
}
@media (max-width: 480px) {
  /* narrow phones: smaller wordmark, tighter nav, short CTA label so Features, Log in and the CTA
     all stay on one line */
  .bar { gap: 8px; }
  .bar nav { gap: 2px; }
  .wordmark { font-size: 1rem; gap: 6px; }
  .wordmark .mark { width: 24px; height: 24px; }
  .bar nav a { white-space: nowrap; padding: 8px 6px; }
  .bar nav a.cta { padding: 10px 10px; margin-left: 2px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 360px) {
  /* smallest phones: logo mark only; the name stays in the DOM for screen readers / crawlers */
  .wordmark { gap: 0; }
  .wordmark-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-md);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
/* Primary: brand fill, ink text = 5.75:1 (white text on brand was 3.08:1) */
.btn-primary { background: var(--brand); color: var(--ink-text); box-shadow: 0 8px 24px -8px rgba(31,170,0,0.6); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 30px -10px rgba(31,170,0,0.7); }
.btn-ghost { background: transparent; color: var(--text-main); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text-main); }
.hero .btn-ghost, .ink .btn-ghost { color: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.hero .btn-ghost:hover, .ink .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-ink); background: rgba(255,255,255,0.06); }
.cta-note { margin: 16px 0 0; font-size: 0.9375rem; color: var(--text-muted); }
.cta-note a { color: var(--brand-active); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero .cta-note, .ink .cta-note { color: var(--on-ink-dim); }
.hero .cta-note a, .ink .cta-note a { color: var(--brand); }

/* ---------- HERO — the dark wireframe world ---------- */
.hero {
  position: relative;
  background: var(--w-g1);           /* the ink lives in .hero-bg so it can fade out into this */
  color: var(--on-ink);
  isolation: isolate;
  padding-bottom: var(--fade-hero);
}
/* atmosphere lives in .hero-bg so the screenshot can overflow the band */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero h1, .hero h2, .hero h3 { color: var(--on-ink); }
.hero .eyebrow { color: var(--brand); }
.hero .lede { color: var(--on-ink-dim); }
.hero-note { margin: 22px 0 0; font-size: 0.9375rem; color: var(--on-ink-faint); }

/* layered atmosphere: radial brand glow + drifting wireframe grid + fine dots */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(95% 85% at 75% 20%, rgba(31,170,0,0.05) 0%, rgba(31,170,0,0) 75%),
    radial-gradient(70% 60% at 5% 95%, rgba(244,162,37,0.04) 0%, rgba(244,162,37,0) 75%),
    linear-gradient(180deg, var(--ink) 0, var(--ink) calc(100% - var(--fade-hero)),
                            rgba(19,42,34,0.55) calc(100% - var(--fade-hero) * 0.5), rgba(19,42,34,0) calc(100% - 2px));
}
.hero-bg::after {
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(31,170,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,170,0,0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(31,170,0,0.12) 1px, transparent 1.6px);
  background-size: 96px 96px, 96px 96px, 24px 24px;
  background-position: 0 0, 0 0, 12px 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--fade-hero) - 60px), transparent calc(100% - 60px));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--fade-hero) - 60px), transparent calc(100% - 60px));
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(96px, 96px, 0); } }

/* wireframe drawing lines (inline svg .wire) */
.wire { position: absolute; z-index: -1; pointer-events: none; color: var(--brand); opacity: 0.18; }
.wire path, .wire rect, .wire line, .wire polyline, .wire circle { vector-effect: non-scaling-stroke; }
.wire-a { right: -4%; top: -6%; width: 46%; }
.wire-b { left: -6%; bottom: -8%; width: 30%; color: var(--amber); opacity: 0.12; }
@media (max-width: 900px) { .wire-a { width: 80%; right: -30%; top: 0; } .wire-b { display: none; } }

.hero-home { padding-top: clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; }
}
.hero-copy { max-width: 620px; }

/* module chips — laid out as the precon process chain, in order */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; counter-reset: chain; }
.chain .chip { counter-increment: chain; position: relative; }
.chain .chip::before {
  content: counter(chain); width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800;
  background: var(--brand); color: var(--ink-text);
}
.chain .chip:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 10px; height: 1px; background: var(--brand-border);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px; border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--on-ink-dim);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  transition: border-color .15s, color .15s, background .15s;
}
.chip svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.chip:hover { border-color: var(--brand-border); color: var(--on-ink); background: rgba(31,170,0,0.10); }

/* hero media — the screenshot breaks out of the dark band */
.hero-media { position: relative; }
.hero-home .hero-media { margin-bottom: -60px; }
@media (min-width: 980px) {
  .hero-home .hero-media { margin-bottom: -120px; align-self: end; margin-right: -40px; }
  .hero-home .hero-media .frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
  .hero-home .hero-media:hover .frame { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
}
.hero-home .hero-copy { padding-bottom: clamp(24px, 4vw, 48px); }

/* browser frame */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--gray-900);
  padding: 8px;
  box-shadow: var(--shadow-frame);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  transform-origin: 50% 50%;
}
.frame img { border-radius: calc(var(--r-lg) - 6px); width: 100%; height: auto; background: #fff; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.frame-dot:nth-child(1) { background: var(--brand); }
.frame-dot:nth-child(2) { background: var(--amber); }
.frame-url {
  margin-left: 10px; flex: 1; text-align: center;
  font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--gray-400);
  background: rgba(255,255,255,0.06); border-radius: 6px; padding: 3px 10px;
}
/* callout pin: text label with a stem, sits over the screenshot */
.pin {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-md);
  background: var(--ink); color: var(--on-ink);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(17,24,39,0.6);
  transform: translateY(-50%);
}
.pin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(31,170,0,0.28); flex: none; }
@media (max-width: 640px) { .pin { font-size: 0.7rem; padding: 5px 9px; } }
@media (max-width: 400px) { .pin { display: none; } }

/* Page hero (module / pricing / contact) */
.hero-page { padding-top: clamp(48px, 7vw, 88px); }
.hero-page .hero-copy { max-width: 780px; }
.hero-page h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.9rem); }
.hero-page p:not(.eyebrow):not(.cta-note):not(.breadcrumb) { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--on-ink-dim); max-width: 44em; }
.breadcrumb { margin: 0 0 22px; font-size: 0.875rem; color: var(--on-ink-faint); }
.breadcrumb a { color: var(--on-ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--on-ink); }
.page-shot { position: relative; z-index: 2; }
.hero + .page-shot { margin-top: calc(-1 * var(--fade-hero) + 40px); }
.has-shot .hero-copy { padding-bottom: clamp(24px, 4vw, 56px); }
.page-shot .frame { max-width: 1040px; margin: 0 auto; }
.page-shot + section { padding-top: clamp(64px, 8vw, 112px); }

/* ---------- Sections & washes ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
section + section { padding-top: clamp(56px, 8vw, 104px); }
.w-green { background: var(--wash-green); }
.w-amber { background: var(--wash-amber); }
.w-blue  { background: var(--wash-blue); }
.w-gray  { background: var(--gray-50); }
.w-pale, .w-g1 { background: var(--w-g1); }
.w-g2 { background: var(--w-g2); }
.w-g3 { background: var(--w-g3); }
.w-ga { background: linear-gradient(rgba(31,170,0,0.06), rgba(31,170,0,0.06)), var(--w-a1); }  /* green→amber step */
.w-a1 { background: var(--w-a1); }
.w-a2 { background: var(--w-a2); }
.w-a3 { background: var(--w-a3); }
.w-n  { background: var(--w-n); }
.w-b1 { background: var(--w-b1); }
.w-b2 { background: var(--w-b2); }
.w-b3 { background: var(--w-b3); }
/* deep tint — the homepage's third band is a strong warm tint, not dark */
.w-deep { background: linear-gradient(rgba(17,24,39,0.03), rgba(17,24,39,0.03)), rgba(244,162,37,0.16); }
.w-ga .eyebrow.amber, .w-ga .learn { color: var(--brand-active); }  /* amber-deep only 4.30:1 on ga */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.section-intro { margin: 18px 0 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); max-width: 46em; }
.section-close { margin: 40px 0 0; font-size: 1.0625rem; color: var(--text-muted); }
.section-close a { color: var(--brand-active); font-weight: 700; }
.section-close a:hover { text-decoration: underline; text-underline-offset: 3px; }
.center { text-align: center; }
.center .lede, .center .section-intro { margin-left: auto; margin-right: auto; }
.center .btns { justify-content: center; }

.prose h2 { margin-bottom: 20px; }
.prose p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--text-muted); max-width: 44em; }
.prose-split { display: grid; gap: 28px 64px; align-items: start; }
@media (min-width: 900px) { .prose-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .prose-split h2 { margin: 0; } }

/* Dark bands */
.ink { background: transparent; color: var(--on-ink); position: relative; isolation: isolate;
  padding-top: calc(clamp(64px, 9vw, 120px) + var(--fade)); padding-bottom: calc(clamp(64px, 9vw, 120px) + var(--fade)); }
section + .ink { padding-top: calc(clamp(64px, 9vw, 120px) + var(--fade)); }
.ink h1, .ink h2, .ink h3 { color: var(--on-ink); }
.ink .lede, .ink .section-intro, .ink .section-close { color: var(--on-ink-dim); }
.ink .eyebrow { color: var(--brand); }
/* the band's own colour = the section above it, so the fade lands on the same tint */
.w-g1 + .ink, .w-pale + .ink { background: var(--w-g1); }
.w-g2 + .ink { background: var(--w-g2); }
.w-g3 + .ink { background: var(--w-g3); }
.w-a1 + .ink { background: var(--w-a1); }
.w-a2 + .ink { background: var(--w-a2); }
.w-a3 + .ink { background: var(--w-a3); }
.w-n  + .ink { background: var(--w-n); }
.w-b1 + .ink { background: var(--w-b1); }
.w-b2 + .ink { background: var(--w-b2); }
.w-b3 + .ink { background: var(--w-b3); }
/* base layer fades in over the neighbour's colour at both edges (--fade px each) */
.ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 85% 25%, rgba(31,170,0,0.05), transparent 75%),
    radial-gradient(70% 60% at 5% 90%, rgba(244,162,37,0.04), transparent 75%),
    linear-gradient(180deg, rgba(19,42,34,0) 2px, rgba(19,42,34,0.55) calc(var(--fade) * 0.5), var(--ink) var(--fade),
                            var(--ink) calc(100% - var(--fade)), rgba(19,42,34,0.55) calc(100% - var(--fade) * 0.5), rgba(19,42,34,0) calc(100% - 2px));
}
.ink-grid::after {
  content: ""; position: absolute; inset: var(--fade) 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent);
}

/* ---------- Steps chain ---------- */
.steps-layout { display: grid; gap: 40px 72px; align-items: start; }
@media (min-width: 960px) {
  .steps-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .steps-layout .sec-head { position: sticky; top: 100px; margin-bottom: 0; }
}
.steps { --chain-fill: 0px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: var(--border-strong); border-radius: 2px;
}
.steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; width: 2px;
  height: var(--chain-fill, 0px); max-height: calc(100% - 44px);
  background: linear-gradient(180deg, var(--brand), var(--brand-active));
  border-radius: 2px; transition: height .8s var(--ease);
}
.step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 18px 0 18px; align-items: start;
}
.step > span:last-child { font-size: 1.0625rem; line-height: 1.55; color: var(--text-muted); padding-top: 8px; }
.step strong { display: block; color: var(--text-main); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.step-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  background: #fff; color: var(--text-main);
  border: 2px solid var(--border-strong);
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.step.lit .step-num { background: var(--brand); border-color: var(--brand); color: var(--ink-text); box-shadow: 0 0 0 6px var(--brand-soft); }
.step.lit strong { color: var(--text-main); }
.w-green .step-num, .w-amber .step-num, .w-blue .step-num { background: #fff; }
/* module pages: compact steps, one line each; numbers already lit */
.steps-compact .step > span:last-child { font-size: 1.125rem; color: var(--text-main); }
.steps-compact .step-num { background: var(--brand); border-color: var(--brand); color: var(--ink-text); }
.steps-compact::after { height: calc(100% - 44px); }

/* ---------- Feature rows ---------- */
.featrow { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .featrow { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  /* flip swaps order AND column widths, so the image always sits in the wide column */
  .featrow.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .featrow.flip .featrow-copy { order: 2; }
  .featrow.flip .featrow-media { order: 1; }
}
.featrow-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.featrow-copy h3 a { color: inherit; }
.featrow-copy h3 a:hover { color: var(--brand-active); }
.featrow-copy p:not(.eyebrow) { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); max-width: 32em; }
.learn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-active); margin-top: 6px; }
.learn:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-amber .learn, .w-amber .featrow-copy h3 a:hover { color: var(--amber-deep); }
.w-blue .learn, .w-blue .featrow-copy h3 a:hover { color: var(--blue); }
.featrow-media .frame { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.featrow-media:hover .frame { transform: translateY(-6px); }
.featband { padding: clamp(56px, 8vw, 104px) 0; }


/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); }
.card h3 { font-size: 1.375rem; margin: 18px 0 10px; }
.card h3 a { color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--text-muted); font-size: 1rem; flex: 1; }
.card .learn { margin-top: 10px; }
.icon-chip {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-active);
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.amber { background: rgba(244,162,37,0.18); color: var(--amber-deep); }
.icon-chip.blue  { background: rgba(37,99,235,0.10); color: var(--blue); }

/* Also included */
.also-title { margin: clamp(48px, 6vw, 72px) 0 20px; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.also { display: grid; gap: 16px; }
@media (min-width: 720px) { .also { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.also p {
  margin: 0; padding: 22px 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55;
}
.also p strong { display: block; color: var(--text-main); font-size: 1.0625rem; margin-bottom: 6px; }

/* ---------- Questions band ---------- */
.questions { display: grid; gap: 18px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: q; }
@media (min-width: 900px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }
.questions li {
  counter-increment: q;
  position: relative; padding: 22px 24px 22px 64px;
  border: 1px solid rgba(166,94,8,0.18); border-radius: var(--r-lg);
  background: #fff;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.45; font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.questions li:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; color: var(--amber-deep);
  font-variant-numeric: tabular-nums;
}
.questions-close { margin: 36px 0 0; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--text-main); font-weight: 600; }
.questions-close::before { content: "→ "; color: var(--brand-active); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; } }
.checklist li {
  position: relative; padding: 18px 20px 18px 56px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: 1.0625rem; line-height: 1.5; color: var(--text-main); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand);
}
.checklist li::after {
  content: ""; position: absolute; left: 26px; top: 24px; width: 8px; height: 5px;
  border-left: 2.5px solid var(--ink-text); border-bottom: 2.5px solid var(--ink-text); transform: rotate(-45deg);
}
.w-amber .checklist li::before { background: var(--amber); }

/* ---------- Pricing band ---------- */
.price-layout { display: grid; gap: 36px 72px; align-items: start; }
@media (min-width: 960px) { .price-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.price-layout .checklist { margin-top: 0; grid-template-columns: 1fr; }

/* ---------- Proof slots (EMPTY, HIDDEN) ---------- */
/* Fully styled so content can drop in; display:none until real permission exists. */
.proof-logos { display: none; margin-top: 40px; }
.proof-logos-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.proof-logos-row > * { height: 64px; display: grid; place-items: center; border: 1px dashed var(--border-strong); border-radius: var(--r-md); filter: grayscale(1); opacity: 0.8; transition: filter .3s, opacity .3s; }
.proof-logos-row > *:hover { filter: none; opacity: 1; }
.proof-quote { display: none; margin-top: 40px; }
.proof-quote blockquote {
  margin: 0; padding: 32px 36px; border-radius: var(--r-xl);
  background: var(--ink); color: var(--on-ink);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em;
  border-left: 4px solid var(--brand);
}
.proof-quote figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--text-muted); }
.proof-quote figcaption strong { color: var(--text-main); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 28px 64px; align-items: start; }
@media (min-width: 900px) { .faq--grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); } .faq--grid h2 { position: sticky; top: 100px; } }
.faq-items { display: grid; gap: 10px; }
.qa { border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--brand-border); box-shadow: var(--shadow-md); }
.qa summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.0625rem; color: var(--text-main);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--brand-active); border-bottom: 2px solid var(--brand-active);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Related links ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 0.9375rem; color: var(--text-main);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.related a::after { content: "→"; color: var(--brand-active); }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Contact ---------- */
.email-card { display: grid; gap: 8px; padding: 34px 36px; border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); max-width: 640px; }
.email-card h3 { color: var(--on-ink-dim); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.email-lead { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; color: var(--brand); word-break: break-all; }
.email-lead:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Closing CTA ---------- */
.cta-final { padding: calc(clamp(80px, 11vw, 150px) + var(--fade)) 0 clamp(80px, 11vw, 150px); text-align: center; }
.cta-final::before {
  background:
    radial-gradient(90% 70% at 85% 25%, rgba(31,170,0,0.05), transparent 75%),
    radial-gradient(70% 60% at 5% 90%, rgba(244,162,37,0.04), transparent 75%),
    linear-gradient(180deg, rgba(19,42,34,0) 2px, rgba(19,42,34,0.55) calc(var(--fade) * 0.5), var(--ink) var(--fade), var(--ink) 100%);
}
.cta-final.ink-grid::after { inset: var(--fade) 0 0; }
.cta-final h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); letter-spacing: -0.035em; }
.cta-final .lede { margin: 20px auto 0; }
.cta-final .btns { justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--on-ink-dim); padding: 24px 0 40px; }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 12px 0 0; font-size: 0.9375rem; color: var(--on-ink-faint); max-width: 24em; }
.footer-col h4 { color: var(--on-ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 0.9375rem; color: var(--on-ink-dim); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.footer-bottom .copy { margin: 0; font-size: 0.875rem; color: var(--on-ink-faint); }

/* ---------- Motion ----------
   Hero load reveal is pure CSS (works with JS off). Both it and the
   scroll reveal are wrapped in prefers-reduced-motion: no-preference. */
@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise .8s var(--ease) both; }
  .rise > *:nth-child(1) { animation-delay: .05s; }
  .rise > *:nth-child(2) { animation-delay: .15s; }
  .rise > *:nth-child(3) { animation-delay: .25s; }
  .rise > *:nth-child(4) { animation-delay: .35s; }
  .rise > *:nth-child(5) { animation-delay: .45s; }
  .rise > *:nth-child(6) { animation-delay: .55s; }
  .rise > *:nth-child(7) { animation-delay: .65s; }
  .hero-media { animation: rise-media 1s var(--ease) .3s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes rise-media { from { opacity: 0; transform: translateY(32px) scale(.98); } to { opacity: 1; transform: none; } }

  /* Scroll reveal — two guards, both required:
       - this media query keeps it off for reduced motion;
       - the .js class is set by the inline script only once it has an
         IntersectionObserver to reveal with.
     Without the .js gate, a no-script visitor would see opacity 0 forever. */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --fade: 160px; --fade-hero: 160px; }
  body { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; }
  .btns { flex-direction: column; }
  .step { grid-template-columns: 36px 1fr; gap: 14px; }
  .step-num { width: 36px; height: 36px; font-size: 0.8125rem; }
  .steps::before, .steps::after { left: 17px; }
  .card { padding: 24px 22px; }
  .email-card { padding: 26px 22px; }
  .proof-quote blockquote { padding: 24px; }
  .questions li { padding: 18px 18px 18px 54px; }
  .questions li::before { left: 18px; top: 20px; }
}

/* ==========================================================
   ADDITIONS — video hero, Nick band, compare table, personas,
   works-with, demo form, sticky mobile CTA, blog/glossary/security
========================================================== */

/* hero video sits inside the browser frame like the screenshots */
.hero-video { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 6px); background: #fff; }
.hero-video img { border-radius: inherit; }
.hero .pin { max-width: calc(100% - 40px); white-space: normal; line-height: 1.3; }

/* card thumbnails */
.card-thumb { margin-top: 18px; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* Nick band */
/* Nick section reuses the standard .featrow / .featrow-media / .frame layout. */
.nick-asks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.nick-asks li {
  padding: 14px 18px; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 1.0625rem; color: var(--text-main); max-width: 34em;
}
.nick-asks li:nth-child(even) { margin-left: 24px; }
.nick-note { margin: 22px 0 0; font-size: 0.9375rem; color: var(--text-muted); }

/* comparison table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; font-size: 1rem; line-height: 1.5; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; background: var(--gray-50); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.compare tbody th { font-weight: 700; color: var(--text-main); width: 22%; }
.compare tbody td:nth-child(2) { color: var(--text-muted); }
.compare tbody td:nth-child(3) { color: var(--text-main); font-weight: 500; position: relative; padding-left: 40px; }
.compare tbody td:nth-child(3)::before { content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.compare thead th:nth-child(3) { color: var(--brand-active); }

/* personas */
.personas .card h3 { margin-top: 18px; }

/* works-with + security teaser */
.works-grid { display: grid; gap: 48px 64px; align-items: start; }
@media (min-width: 960px) { .works-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.works { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.works li { padding: 16px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; }
.works li strong { display: block; color: var(--text-main); font-size: 1rem; margin-bottom: 4px; }
.security-teaser { padding: 32px; border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); }
.security-teaser h2 { color: var(--on-ink); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.security-teaser .section-intro { color: var(--on-ink-dim); font-size: 1.0625rem; }
.security-teaser .learn { color: var(--brand); }

/* demo form */
.demo-layout { display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 960px) { .demo-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.demo-form { display: grid; gap: 16px; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.demo-form .row { display: grid; gap: 16px; }
@media (min-width: 560px) { .demo-form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-form label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-main); }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong);
  font: inherit; font-size: 1rem; color: var(--text-main); background: #fff;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.demo-form textarea { min-height: 110px; resize: vertical; }
.demo-form .btn { justify-content: center; }
.demo-form .fine { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin: 0 0 4px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; }
.form-msg.ok { background: var(--brand-soft); color: var(--brand-active); }
.form-msg.err { background: #fff; border: 1px solid #dc2626; color: #dc2626; }
#sent:target, #error:target, .form-msg.show { display: block; }
.demo-form.sent { display: none; }

/* sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    justify-content: center; align-items: center; padding: 15px 20px; border-radius: var(--r-md);
    background: var(--brand); color: var(--ink-text); font-weight: 700; font-size: 1.0625rem;
    box-shadow: 0 10px 30px -8px rgba(17,24,39,0.5);
  }
  footer { padding-bottom: 96px; }
}

/* article pages (blog, glossary, security) */
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 44px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.article p, .article li { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article a { color: var(--brand-active); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article .frame { margin: 28px 0; }
.article-meta { margin: 0 0 24px; font-size: 0.875rem; color: var(--text-muted); }
.article-list { display: grid; gap: 16px; }
@media (min-width: 720px) { .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-list .card h3 { margin-top: 0; font-size: 1.25rem; }
.article-list .card p { font-size: 0.9375rem; }
.term-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .term-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.term-list a { display: block; padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); font-weight: 700; color: var(--text-main); transition: border-color .2s, transform .2s var(--ease); }
.term-list a:hover { border-color: var(--brand); transform: translateY(-2px); }
.term-list a span { display: block; margin-top: 4px; font-weight: 400; font-size: 0.9375rem; color: var(--text-muted); }
.sec-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-grid .card h3 { margin-top: 14px; font-size: 1.125rem; }
.sec-grid .card p { font-size: 0.9375rem; }


/* ── Pricing plans ─────────────────────────────────────────── */
.plans .card { position: relative; }
.plan-name { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin: 0 0 6px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-main); line-height: 1.1; }
.plan-per { color: var(--text-muted); font-size: 1rem; }
.plan-annual { margin: 4px 0 12px; color: var(--text-muted); font-size: 0.9375rem; }
.plan-head { font-weight: 700; margin: 0 0 12px; color: var(--text-main); }
.plan-list { grid-template-columns: 1fr; margin: 0 0 14px; gap: 8px; }
.plans .checklist.plan-list li { padding: 4px 0 4px 30px; background: transparent; border: 0; box-shadow: none; border-radius: 0; font-size: 0.9375rem; font-weight: 500; }
.plans .checklist.plan-list li::before { left: 0; top: 7px; width: 18px; height: 18px; }
.plans .checklist.plan-list li::after { left: 5px; top: 11px; width: 7px; height: 4px; border-width: 0 0 2px 2px; }
.plan-fine { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 16px; }
.plan-cta { align-self: flex-start; }
.plan-featured { border-color: var(--brand-border); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: 16px; right: 16px; margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft, rgba(37,99,235,0.08)); border: 1px solid var(--brand-border); border-radius: 999px; padding: 4px 10px; }
.plan-note { margin-top: 24px; color: var(--text-muted); font-size: 0.9375rem; }
