/* ==========================================================================
   Paperlesstech — brand site design system  ("Ink & Marigold")
   Self-contained. No build step. Served from the platform host by brandRouter.
   Palette: chalkboard-teal + marigold on cool ink/paper neutrals.
   Type: Bricolage Grotesque (display) · Manrope (body) · JetBrains Mono (labels)
   Themes: light default; dark via prefers-color-scheme AND [data-theme] toggle.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Brand — constant across themes (with a brighter teal for dark grounds) */
  --brand: #0e9f92;
  --brand-deep: #0b7d73;
  --brand-bright: #22c3b3;
  --brand-tint: #e3f5f2;
  --accent: #f6a821;      /* marigold — the single bold pop */
  --accent-deep: #d98a08;

  /* Gradients — the "dynamic" spectrum. Teal → cyan → azure → marigold.
     Reused across buttons, headings, borders, glows. Theme-tuned below. */
  --grad-brand: linear-gradient(120deg, #0e9f92 0%, #12b3b0 42%, #2f7cff 100%);
  --grad-warm: linear-gradient(115deg, #0e9f92 0%, #22c3b3 45%, #f6a821 115%);
  --grad-vivid: linear-gradient(120deg, #22c3b3, #2f7cff 55%, #7a5cff 100%);
  --grad-soft: linear-gradient(160deg, rgba(14,159,146,0.10), rgba(47,124,255,0.06));
  --grad-text: linear-gradient(100deg, #0e9f92, #2f7cff 55%, #f6a821);
  --grad-line: linear-gradient(90deg, var(--brand), transparent);

  /* The permanent "ink" band (hero + dark sections) — never flips */
  --ink-bg: #0b1524;
  --ink-bg-2: #0f1d31;
  --ink-surface: rgba(255, 255, 255, 0.045);
  --ink-border: rgba(255, 255, 255, 0.10);
  --ink-text: #eef3fb;
  --ink-muted: #97a7be;

  /* Light theme (default) */
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #14202f;
  --heading: #0b1524;
  --muted: #566579;
  --border: #e4e9f1;
  --border-strong: #d2dae6;
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, 0.06), 0 1px 3px rgba(11, 21, 36, 0.05);
  --shadow-md: 0 10px 24px -12px rgba(11, 21, 36, 0.18), 0 4px 10px -6px rgba(11, 21, 36, 0.10);
  --shadow-lg: 0 30px 60px -24px rgba(11, 21, 36, 0.28), 0 12px 28px -14px rgba(11, 21, 36, 0.16);
  --glow: 0 0 0 1px rgba(14, 159, 146, 0.14), 0 20px 60px -20px rgba(14, 159, 146, 0.35);

  /* Type */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #1cb8a9;
    --brand-tint: rgba(34, 195, 179, 0.12);
    --paper: #080e18;
    --surface: #0e1727;
    --surface-2: #13203a;
    --text: #dce5f2;
    --heading: #f2f6fc;
    --muted: #92a2ba;
    --border: #1c2942;
    --border-strong: #263652;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 34px 70px -26px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px rgba(34, 195, 179, 0.20), 0 22px 60px -18px rgba(34, 195, 179, 0.28);
  }
}
/* Explicit toggle wins in BOTH directions over the media query */
:root[data-theme="dark"] {
  --brand: #1cb8a9;
  --brand-tint: rgba(34, 195, 179, 0.12);
  --paper: #080e18;
  --surface: #0e1727;
  --surface-2: #13203a;
  --text: #dce5f2;
  --heading: #f2f6fc;
  --muted: #92a2ba;
  --border: #1c2942;
  --border-strong: #263652;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 34px 70px -26px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(34, 195, 179, 0.20), 0 22px 60px -18px rgba(34, 195, 179, 0.28);
}
:root[data-theme="light"] {
  --brand: #0e9f92;
  --brand-tint: #e3f5f2;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #14202f;
  --heading: #0b1524;
  --muted: #566579;
  --border: #e4e9f1;
  --border-strong: #d2dae6;
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, 0.06), 0 1px 3px rgba(11, 21, 36, 0.05);
  --shadow-md: 0 10px 24px -12px rgba(11, 21, 36, 0.18), 0 4px 10px -6px rgba(11, 21, 36, 0.10);
  --shadow-lg: 0 30px 60px -24px rgba(11, 21, 36, 0.28), 0 12px 28px -14px rgba(11, 21, 36, 0.16);
  --glow: 0 0 0 1px rgba(14, 159, 146, 0.14), 0 20px 60px -20px rgba(14, 159, 146, 0.35);
}

/* ---- Base -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.ink { background: var(--ink-bg); color: var(--ink-text); }
.ink h1, .ink h2, .ink h3, .ink h4 { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.ink .eyebrow { color: var(--brand-bright); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }
.ink .section-head p { color: var(--ink-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  /* Primary = the dynamic brand gradient, gently animated on hover */
  background: var(--grad-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.6s var(--ease), border-color 0.2s, color 0.2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); background-position: 100% 50%; }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--grad-warm); color: #3a2600; }
.btn--ghost {
  background: transparent;
  --btn-fg: var(--heading);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.ink .btn--ghost { --btn-fg: #fff; border-color: var(--ink-border); }
.ink .btn--ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); background: rgba(255,255,255,0.03); }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 700; color: var(--brand);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.8em; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px; }
.brandmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; color: var(--heading); }
.brandmark__logo { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--heading); background: var(--surface-2); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__actions .btn--desktop { display: none; }
  .nav__burger { display: inline-grid; margin-left: auto; }
  .nav__actions { margin-left: 0; }
}

/* Mobile menu (toggled by brand.js) */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 18px var(--gutter) 26px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 13px 6px; font-weight: 600; font-size: 1.1rem;
  border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 18px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 140px) clamp(60px, 8vw, 110px); }
.hero__aurora { position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none; z-index: 0; filter: blur(60px); opacity: 0.9; }
.hero__aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero__aurora .a1 { width: 520px; height: 520px; left: 4%; top: -6%; background: radial-gradient(circle, rgba(14,159,146,0.9), transparent 65%); animation: drift1 16s var(--ease) infinite alternate; }
.hero__aurora .a2 { width: 460px; height: 460px; right: 6%; top: 4%; background: radial-gradient(circle, rgba(34,120,255,0.55), transparent 65%); animation: drift2 19s var(--ease) infinite alternate; }
.hero__aurora .a3 { width: 380px; height: 380px; left: 42%; top: 24%; background: radial-gradient(circle, rgba(246,168,33,0.5), transparent 65%); animation: drift3 22s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-50px, 30px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(30px, -40px) scale(1.16); } }
.hero__grid-overlay { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(var(--ink-border) 1px, transparent 1px), linear-gradient(90deg, var(--ink-border) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%); }

.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 860px; margin-inline: auto; }
.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--ink-muted); font-size: clamp(1.08rem, 1.8vw, 1.32rem); margin: 26px auto 0; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.hero__trust { margin-top: 34px; color: var(--ink-muted); font-size: 0.9rem; display: inline-flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.hero__trust b { color: #fff; font-weight: 700; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 7px 15px 7px 9px; border-radius: var(--radius-pill);
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  color: var(--ink-text); font-size: 0.85rem; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px rgba(34,195,179,0.2); animation: pulse 2.4s ease-in-out infinite; }
.pill .tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 8px; border-radius: 20px; background: rgba(34,195,179,0.16); color: var(--brand-bright); letter-spacing: 0.04em; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,195,179,0); } }

/* Hero product mock (pure CSS/SVG dashboard) */
.hero__mock { position: relative; z-index: 2; margin: clamp(46px, 6vw, 76px) auto 0; max-width: 940px;
  border-radius: var(--radius-lg); border: 1px solid var(--ink-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  box-shadow: 0 50px 90px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden; }
.hero__mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--ink-border); }
.hero__mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.hero__mock-bar .u { margin-left: 14px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-muted); }
.hero__mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--ink-border); padding: 18px 14px; display: flex; flex-direction: column; gap: 7px; }
.mock-side .s { height: 34px; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink-muted); font-size: 0.82rem; font-weight: 600; }
.mock-side .s.active { background: rgba(34,195,179,0.14); color: var(--brand-bright); }
.mock-side .s span { width: 15px; height: 15px; border-radius: 5px; background: currentColor; opacity: 0.55; flex: none; }
.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-kpi { background: rgba(255,255,255,0.04); border: 1px solid var(--ink-border); border-radius: 12px; padding: 14px; }
.mock-kpi .l { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; }
.mock-kpi .v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; margin-top: 4px; }
.mock-kpi .v small { color: var(--brand-bright); font-size: 0.8rem; font-weight: 700; margin-left: 6px; }
.mock-chart { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--ink-border); border-radius: 12px; padding: 16px; display: flex; align-items: flex-end; gap: 10px; min-height: 130px; }
.mock-chart .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-bright), rgba(14,159,146,0.25)); transform-origin: bottom; animation: growbar 1s var(--ease) both; }
@keyframes growbar { from { transform: scaleY(0.05); opacity: 0.3; } }
@media (max-width: 620px) { .hero__mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

/* ---- Logos / trust strip ---------------------------------------------- */
.trust-strip { border-block: 1px solid var(--border); background: var(--surface); }
.trust-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding-block: 26px; }
.trust-strip__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.trust-strip__item { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--muted); font-size: 1rem; opacity: 0.9; }
.trust-strip__item svg { width: 20px; height: 20px; color: var(--brand); }

/* ---- Cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.feat-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.card:hover .feat-icon { transform: scale(1.06) rotate(-3deg); }
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon--accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-deep); }
:root[data-theme="dark"] .feat-icon--accent { color: var(--accent); }

/* Module chip grid */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 940px) { .mod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
.mod {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 18px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.mod:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.mod svg { width: 26px; height: 26px; color: var(--brand); }
.mod b { font-weight: 700; color: var(--heading); font-size: 1rem; letter-spacing: -0.01em; }
.mod span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media { position: relative; }
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.checklist b { color: var(--heading); }
.checklist span { color: var(--muted); font-size: 0.95rem; }

/* Glass panel used inside split media */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-md);
}
.panel--ink { background: linear-gradient(160deg, var(--ink-bg-2), var(--ink-bg)); border-color: var(--ink-border); color: var(--ink-text); }
.panel--ink * { color: var(--ink-text); }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 32px); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ink .stat .num { color: #fff; }
.stat .num .u { color: var(--brand); }
.ink .stat .num .u { color: var(--brand-bright); }
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.ink .stat .lbl { color: var(--ink-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 20px; }
.step__n { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--brand); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); }
.step__line { position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--border); }
.step__line::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price--featured { border-color: var(--brand); box-shadow: var(--glow); }
.price--featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); font-family: var(--font-mono);
}
.price__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--heading); }
.price__desc { color: var(--muted); font-size: 0.92rem; margin-top: 6px; min-height: 40px; }
.price__amt { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price__amt .cur { font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.price__amt .val { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--heading); letter-spacing: -0.03em; }
.price__amt .per { color: var(--muted); font-size: 0.95rem; }
.price__feats { display: grid; gap: 12px; margin: 22px 0 26px; }
.price__feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.price__feats svg { width: 19px; height: 19px; flex: none; color: var(--brand); margin-top: 3px; }
.price .btn { margin-top: auto; }

/* Testimonials */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote__stars { display: flex; gap: 3px; color: var(--accent); }
.quote__stars svg { width: 18px; height: 18px; }
.quote p { font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; }
.quote__by b { display: block; color: var(--heading); font-size: 0.98rem; }
.quote__by span { color: var(--muted); font-size: 0.86rem; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 24px 44px 24px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; color: var(--heading); position: relative; }
.faq__q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease); }
.faq__item.is-open .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a p { color: var(--muted); padding-bottom: 24px; padding-right: 30px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; border-radius: clamp(20px, 4vw, 34px);
  padding: clamp(48px, 7vw, 84px) var(--gutter); background: linear-gradient(150deg, var(--ink-bg-2), var(--ink-bg)); }
.cta-band .hero__aurora { height: 100%; filter: blur(70px); opacity: 0.7; }
.cta-band h2, .cta-band p { position: relative; z-index: 2; color: #fff; }
.cta-band p { color: var(--ink-muted); max-width: 560px; margin: 18px auto 0; }
.cta-band .hero__cta { position: relative; z-index: 2; }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--ink-bg); color: var(--ink-muted); padding-block: clamp(56px, 7vw, 84px) 34px; }
.footer a { color: var(--ink-muted); transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brandmark { color: #fff; }
.footer__blurb { margin-top: 16px; max-width: 300px; font-size: 0.95rem; line-height: 1.6; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 0.96rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-border); font-size: 0.88rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ink-border); display: grid; place-items: center; }
.footer__social a:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.footer__social svg { width: 18px; height: 18px; }

/* ---- Forms (contact) --------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--heading); }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 11px; padding: 13px 15px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field--row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 11px; font-weight: 600; font-size: 0.95rem; }
.form-status.is-ok { display: block; background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand); }
:root[data-theme="dark"] .form-status.is-ok { color: var(--brand-bright); }

/* Contact info cards */
.contact-info { display: grid; gap: 16px; }
.contact-info__item { display: flex; gap: 15px; align-items: flex-start; }
.contact-info__item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-info__item .ic svg { width: 21px; height: 21px; }
.contact-info__item b { display: block; color: var(--heading); font-size: 1rem; }
.contact-info__item a, .contact-info__item span { color: var(--muted); font-size: 0.96rem; }

/* Page hero (secondary pages) */
.pagehero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 108px) clamp(40px, 5vw, 64px); text-align: center; }
.pagehero__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.pagehero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.pagehero p { color: var(--ink-muted); font-size: 1.15rem; margin-top: 20px; }

/* ---- Scroll reveal ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__aurora span, .pill .dot, .mock-chart .bar { animation: none !important; }
  .btn:hover, .card:hover, .mod:hover, .price:hover { transform: none; }
}

/* Divider label */
.section-kicker { text-align: center; margin-bottom: 48px; }
.section-kicker h2 { margin-top: 14px; }
.section-kicker p { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 1.1rem; }
.ink .section-kicker p { color: var(--ink-muted); }

/* ==========================================================================
   Dynamic gradients — brighter on dark grounds; animated where it earns it.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --grad-brand: linear-gradient(120deg, #16b3a4 0%, #22c3c0 42%, #4d8bff 100%);
    --grad-warm: linear-gradient(115deg, #22c3b3 0%, #3fd6c6 45%, #ffbb3d 115%);
    --grad-vivid: linear-gradient(120deg, #2fe0cf, #4d8bff 55%, #9a7dff 100%);
    --grad-text: linear-gradient(100deg, #2fe0cf, #6aa2ff 55%, #ffc043);
    --grad-soft: linear-gradient(160deg, rgba(34,195,179,0.14), rgba(77,139,255,0.08));
  }
}
:root[data-theme="dark"] {
  --grad-brand: linear-gradient(120deg, #16b3a4 0%, #22c3c0 42%, #4d8bff 100%);
  --grad-warm: linear-gradient(115deg, #22c3b3 0%, #3fd6c6 45%, #ffbb3d 115%);
  --grad-vivid: linear-gradient(120deg, #2fe0cf, #4d8bff 55%, #9a7dff 100%);
  --grad-text: linear-gradient(100deg, #2fe0cf, #6aa2ff 55%, #ffc043);
  --grad-soft: linear-gradient(160deg, rgba(34,195,179,0.14), rgba(77,139,255,0.08));
}
:root[data-theme="light"] {
  --grad-brand: linear-gradient(120deg, #0e9f92 0%, #12b3b0 42%, #2f7cff 100%);
  --grad-warm: linear-gradient(115deg, #0e9f92 0%, #22c3b3 45%, #f6a821 115%);
  --grad-vivid: linear-gradient(120deg, #22c3b3, #2f7cff 55%, #7a5cff 100%);
  --grad-text: linear-gradient(100deg, #0e9f92, #2f7cff 55%, #f6a821);
  --grad-soft: linear-gradient(160deg, rgba(14,159,146,0.10), rgba(47,124,255,0.06));
}

/* Gradient text — flowing when it's a hero word */
.grad {
  background: var(--grad-text);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradflow 8s ease-in-out infinite;
}
@keyframes gradflow { 50% { background-position: 100% 50%; } }
.grad--static { animation: none; }

/* Section headings can opt into the spectrum */
.grad-head { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Feature icons ride the gradient */
.feat-icon { background: var(--grad-soft); color: var(--brand); position: relative; overflow: hidden; }
.feat-icon::after {
  content: ""; position: absolute; inset: 0; background: var(--grad-brand); opacity: 0;
  transition: opacity 0.3s var(--ease); border-radius: inherit;
}
.card:hover .feat-icon { color: #fff; }
.card:hover .feat-icon::after { opacity: 1; }
.feat-icon svg { position: relative; z-index: 1; }

/* Gradient top-accent that grows on hover */
.card::before, .mod::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-brand); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card { overflow: hidden; }
.mod { overflow: hidden; }
.card:hover::before, .mod:hover::before { transform: scaleX(1); }

/* Gradient hairline divider */
.grad-rule { height: 1px; border: 0; background: var(--grad-brand); opacity: 0.5; margin: 0; }

/* Eyebrow line picks up the gradient */
.eyebrow::before { background: var(--grad-line); opacity: 1; }

/* Featured price card — animated gradient ring */
.price--featured { border-color: transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  var(--grad-brand) border-box; border: 1.5px solid transparent; }

/* Section kicker heading can flow too when marked */
.grad-head--flow { background-size: 220% auto; animation: gradflow 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .grad, .grad-head--flow { animation: none; }
}
