/* ==========================================================================
   My Clinical Writer — design system
   "Clinical clarity, quietly intelligent"
   Shared by every page. Page-only CSS lives in assets/css/pages/<page>.css.
   Docs: _source/DESIGN-SYSTEM.md
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (PLAN.md) */
  --ink: #0d0f1a;
  --ink-2: #171a2b;
  --ink-3: #22263a;
  --canvas: #fbfbfd;
  --mist: #f2f3f9;
  --line: #e6e8f2;
  --line-strong: #d5d8e6;
  --indigo: #513bf4;          /* brand; 6.2:1 on canvas */
  --indigo-600: #4630e6;
  --indigo-700: #3d27d6;      /* body links; 8.3:1 on canvas */
  --indigo-50: #eeebff;
  --indigo-100: #e1dcff;
  --violet-glow: #8b7bff;
  --lilac: #b4abff;           /* accent text on ink: 9.3:1 */
  --mint: #19c39c;            /* decorative/success on ink only */
  --mint-700: #0b7a60;        /* mint text on light: 5.2:1 */
  --mint-50: #e3f8f1;
  --slate: #5b6172;           /* muted text; 6.0:1 on canvas, 5.6:1 on mist */
  --slate-ink: #9aa0b4;       /* muted text on ink; 7.3:1 */
  --danger: #b42318;
  --danger-50: #fdecea;
  --amber: #f5b638;
  --white: #fff;

  /* Semantic (overridden per section theme) */
  --bg: var(--canvas);
  --fg: var(--ink);
  --fg-2: #2b2f42;
  --muted: var(--slate);
  --border: var(--line);
  --surface: #fff;
  --surface-2: var(--mist);
  --accent: var(--indigo);
  --accent-text: var(--indigo-700);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.75rem, 1.55rem + 5.2vw, 5.75rem);
  --fs-h1: clamp(2.4rem, 1.55rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.5vw, 3.35rem);
  --fs-h3: clamp(1.3rem, 1.12rem + .75vw, 1.7rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.07rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-micro: .75rem;

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 760px;
  --section-y: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --header-h: 64px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(13, 15, 26, .06);
  --sh-sm: 0 1px 2px rgba(13, 15, 26, .05), 0 4px 12px -4px rgba(13, 15, 26, .08);
  --sh-md: 0 1px 2px rgba(13, 15, 26, .04), 0 12px 32px -12px rgba(13, 15, 26, .16);
  --sh-lg: 0 2px 6px rgba(13, 15, 26, .04), 0 32px 64px -24px rgba(29, 20, 110, .28);
  --glow: 0 0 0 1px rgba(81, 59, 244, .5), 0 10px 30px -10px rgba(81, 59, 244, .75), 0 0 60px -20px rgba(139, 123, 255, .8);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .16s; --dur-2: .28s; --dur-3: .6s; --dur-4: .9s;

  --focus: 0 0 0 2px var(--canvas), 0 0 0 4px var(--indigo);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4, h5, h6 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--fg); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--indigo-100); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible, .theme-ink :focus-visible { outline-color: var(--lilac); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
abbr[title] { text-decoration: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: .7rem 1rem; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Typography ---------- */
.h-display, .h1, .h2, .h3, .h4 { color: var(--fg); font-weight: 600; text-wrap: balance; }
.h-display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.04em; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.035em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.012em; }
/* Instrument Serif italic accent words: <h2 class="h2">Minutes, <em>not hours.</em></h2> */
.h-display em, .h1 em, .h2 em, .h3 em, .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.h-display em, .h1 em, .h2 em { color: var(--accent); padding-right: .04em; }
.section--ink .h-display em, .section--ink .h1 em, .section--ink .h2 em, .theme-ink .h2 em, .theme-ink .h1 em { color: var(--lilac); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.center { text-align: center; }
.center .lead, .lead.center { margin-inline: auto; }
.grad-text {
  background: linear-gradient(100deg, var(--indigo) 0%, var(--violet-glow) 60%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow micro-label with the logo's sound-wave motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 14px; height: 12px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 2px 5px,
    linear-gradient(currentColor, currentColor) 4px 50% / 2px 12px,
    linear-gradient(currentColor, currentColor) 8px 50% / 2px 8px,
    linear-gradient(currentColor, currentColor) 12px 50% / 2px 4px;
  background-repeat: no-repeat; border-radius: 1px;
}
.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--muted); }
.section--ink .eyebrow, .theme-ink .eyebrow, .cta-band .eyebrow { color: var(--lilac); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em;
  font-family: var(--font-mono); font-size: .75rem; line-height: 1; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { position: relative; isolation: isolate; padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--mist { --bg: var(--mist); --surface-2: #e9ebf4; }
.section--canvas { --bg: var(--canvas); }
.section--ink, .theme-ink, .cta-band {
  --bg: var(--ink); --fg: #f4f5fb; --fg-2: #d7daea; --muted: var(--slate-ink); --border: rgba(255, 255, 255, .1);
  --surface: rgba(255, 255, 255, .04); --surface-2: rgba(255, 255, 255, .07); --accent: var(--violet-glow); --accent-text: var(--lilac);
  color-scheme: dark; background: var(--bg); color: var(--fg);
}
.section--ink ::selection { background: rgba(139, 123, 255, .45); color: #fff; }
.section--bordered { border-top: 1px solid var(--border); }
.section--clip { overflow: hidden; }
/* Each .section paints its own background (and isolates), so the NEXT section covers anything that
   overhangs this one's bottom edge (e.g. a float-chip under a flush-bottom hero). Add .section--overhang
   to the overhanging section to lift it above its following sibling. */
.section--overhang { z-index: 1; }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--split > div:first-child { max-width: 40rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.section-head--split > .lead { max-width: 28rem; }

/* Editorial section index: <p class="section-index"><span>02</span> How it works</p> */
.section-index { display: flex; align-items: center; gap: .9rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.section-index span { color: var(--accent-text); }
.section-index::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.stack > * { margin: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, .75rem); }
.grid { display: grid; gap: var(--gap, clamp(1rem, .6rem + 1.4vw, 1.5rem)); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap, clamp(1rem, .6rem + 1.4vw, 1.5rem)); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
}

/* ---------- 5. Backgrounds (decorative layers; put inside a .section / position:relative parent) ---------- */
.bg-aurora, .bg-grid, .bg-noise { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-aurora { overflow: hidden; }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.bg-aurora::before { top: -38vmax; left: 50%; margin-left: -45vmax;
  background: radial-gradient(closest-side, rgba(81, 59, 244, .38), rgba(139, 123, 255, .18) 45%, transparent 72%);
  animation: aurora-a 22s var(--ease-in-out) infinite alternate; }
.bg-aurora::after { top: -30vmax; left: 50%; margin-left: -12vmax; width: 55vmax; height: 55vmax;
  background: radial-gradient(closest-side, rgba(139, 123, 255, .32), rgba(25, 195, 156, .08) 55%, transparent 72%);
  animation: aurora-b 26s var(--ease-in-out) infinite alternate; }
.bg-aurora--bottom::before { top: auto; bottom: -45vmax; }
.bg-aurora--bottom::after { top: auto; bottom: -38vmax; }
.section--ink .bg-aurora::before, .theme-ink .bg-aurora::before { opacity: .9; background: radial-gradient(closest-side, rgba(81, 59, 244, .55), rgba(81, 59, 244, .18) 50%, transparent 72%); }
.section--ink .bg-aurora::after, .theme-ink .bg-aurora::after { opacity: .7; }
@keyframes aurora-a { to { transform: translate3d(8vmax, 4vmax, 0) scale(1.08); } }
@keyframes aurora-b { to { transform: translate3d(-10vmax, 6vmax, 0) scale(.94); } }
.bg-grid {
  background-image: linear-gradient(to right, rgba(13, 15, 26, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(13, 15, 26, .055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-grid--center { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 70%); }
.section--ink .bg-grid, .theme-ink .bg-grid { background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.bg-noise { opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section--ink .bg-noise, .theme-ink .bg-noise { mix-blend-mode: screen; opacity: .06; }
/* Sound-wave motif stripe (decorative) */
.wave-motif { display: flex; align-items: center; gap: 5px; height: 40px; color: var(--accent); opacity: .9; }
.wave-motif i { width: 3px; border-radius: 3px; background: currentColor; height: var(--h, 40%); }

/* ---------- 6. Buttons & links ---------- */
.btn {
  --btn-h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--btn-h); padding: 0 1.15rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1; letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn .btn__arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { --btn-h: 44px; padding: 0 .95rem; font-size: var(--fs-xs); }
@media (pointer: fine) { .btn--sm { --btn-h: 38px; } }
.btn--lg { --btn-h: 52px; padding: 0 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff; background: linear-gradient(180deg, #6450ff 0%, var(--indigo) 55%, var(--indigo-600) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(29, 20, 110, .3), 0 8px 22px -8px rgba(81, 59, 244, .7);
}
.btn--primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(29, 20, 110, .3), 0 12px 32px -8px rgba(81, 59, 244, .85), 0 0 0 4px rgba(139, 123, 255, .18); }
.btn--primary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.btn--secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.btn--secondary:hover { color: var(--ink); border-color: #c3c7da; box-shadow: var(--sh-sm); }
.btn--ghost { color: var(--fg); background: transparent; }
.btn--ghost:hover { color: var(--fg); background: rgba(13, 15, 26, .05); }
/* ghost-on-ink: for dark sections / cards */
.btn--on-ink { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.btn--on-ink:hover { color: #fff; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); }
.section--ink .btn--secondary, .theme-ink .btn--secondary { color: var(--ink); }
.section--ink .btn--ghost, .theme-ink .btn--ghost { color: #fff; }
.section--ink .btn--ghost:hover, .theme-ink .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.section--ink .btn--primary:focus-visible, .theme-ink .btn--primary:focus-visible { outline-color: var(--lilac); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 500; font-size: var(--fs-sm);
  color: var(--accent-text); text-decoration: none; cursor: pointer;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--muted { color: var(--fg); }

/* ---------- 7. Badges, chips, rating ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .65rem; border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-weight: 500; line-height: 1; white-space: nowrap;
  color: var(--fg-2); background: var(--surface); border: 1px solid var(--border);
}
.badge svg { width: 14px; height: 14px; }
.badge--soft { color: var(--indigo-700); background: var(--indigo-50); border-color: transparent; }
.badge--mono { font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; font-size: .6875rem; }
/* Compliance badge: <span class="badge badge--secure"><svg><use href="#i-shield"/></svg><b>HIPAA</b> Compliant</span> */
.badge--secure { height: 32px; padding: 0 .75rem 0 .55rem; gap: .45rem; color: var(--fg-2); background: var(--surface); border-color: var(--border); box-shadow: var(--sh-xs); }
.badge--secure svg { color: var(--mint-700); width: 16px; height: 16px; }
.badge--secure b { font-family: var(--font-mono); font-weight: 600; letter-spacing: .04em; color: var(--fg); }
.section--ink .badge--secure svg, .theme-ink .badge--secure svg { color: var(--mint); }
.section--ink .badge--secure, .theme-ink .badge--secure { box-shadow: none; }
.badge--popular {
  height: 26px; padding: 0 .7rem; color: #fff; border: 0; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--indigo), #7a66ff); box-shadow: 0 6px 18px -6px rgba(81, 59, 244, .8);
}
.badge--save { color: var(--mint-700); background: var(--mint-50); border-color: transparent; font-weight: 600; }
.section--ink .badge--save { color: var(--mint); background: rgba(25, 195, 156, .12); }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.rating { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--amber); }
.rating__stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rating strong { color: var(--fg); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 30px; padding: 0 .7rem; border-radius: 8px;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .02em;
  color: var(--fg-2); background: var(--surface); border: 1px solid var(--border);
}
.chip svg { width: 13px; height: 13px; }
.chip--active { color: var(--indigo-700); background: var(--indigo-50); border-color: rgba(81, 59, 244, .25); }
.chip--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.section--ink .chip--active, .theme-ink .chip--active { color: #fff; background: rgba(139, 123, 255, .18); border-color: rgba(139, 123, 255, .4); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Interactive chip (filters): full 44px target */
.chip--button { min-height: 44px; padding: 0 .95rem; border-radius: 10px; cursor: pointer; transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1); }
.chip--button:hover { border-color: var(--line-strong); color: var(--fg); }
.chip--button[aria-pressed="true"] { color: var(--indigo-700); background: var(--indigo-50); border-color: rgba(81, 59, 244, .3); }

/* ---------- 8. Icons ---------- */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.icon use { pointer-events: none; }
.icon-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  color: var(--indigo); background: linear-gradient(180deg, #fff, var(--indigo-50)); border: 1px solid rgba(81, 59, 244, .16);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(81, 59, 244, .45);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--mint { color: var(--mint-700); background: linear-gradient(180deg, #fff, var(--mint-50)); border-color: rgba(25, 195, 156, .25); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(25, 195, 156, .45); }
.icon-tile--sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-tile--sm .icon { width: 18px; height: 18px; }
.section--ink .icon-tile, .theme-ink .icon-tile { color: var(--lilac); background: linear-gradient(180deg, rgba(139, 123, 255, .2), rgba(139, 123, 255, .06)); border-color: rgba(139, 123, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- 9. Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; transition: transform var(--dur-3) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__name { white-space: nowrap; }
.brand__name span { color: var(--muted); font-weight: 500; }

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 251, 253, 0); border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2), border-color var(--dur-2), backdrop-filter var(--dur-2);
}
html:not(.js) .site-header, .site-header.is-scrolled, .site-header:has(.mega.is-open), .site-header:has(.has-mega.is-open) {
  background: rgba(251, 251, 253, .86); border-bottom-color: rgba(13, 15, 26, .07);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
/* backdrop-filter would make the fixed mobile menu relative to the header — use a solid bar while it is open */
.site-header.is-menu-open { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--on-ink:not(.is-scrolled):not(.is-menu-open) { --fg: #fff; --muted: rgba(255,255,255,.7); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 1rem; height: 100%; }
.site-header .brand { margin-right: auto; }
.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: .3rem; height: 40px; padding: 0 .8rem; border-radius: 8px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--fg-2); text-decoration: none; transition: color var(--dur-1), background-color var(--dur-1);
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--ink); background: rgba(13, 15, 26, .05); text-decoration: none; }
.site-nav__link[aria-current="page"], .site-nav__link.is-current { color: var(--ink); }
.site-nav__link[aria-current="page"]::after, .site-nav__link.is-current::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--indigo); margin-left: .15rem; }
.site-nav__link .icon { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease-out); color: var(--muted); }
.site-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.site-header__actions .btn--ghost { display: none; }
.site-header__actions .btn--primary { display: none; }
@media (min-width: 560px) { .site-header__actions .btn--primary { display: inline-flex; } }
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .site-header__actions .btn--ghost { display: inline-flex; }
  .menu-toggle { display: none !important; }
  .site-header .brand { margin-right: 1rem; }
  .site-nav { margin-right: auto; }
}
.cmdk-trigger {
  display: none; align-items: center; gap: .5rem; height: 38px; padding: 0 .5rem 0 .7rem; border-radius: 9px;
  color: var(--muted); font-size: var(--fs-xs); background: rgba(13, 15, 26, .035); border: 1px solid var(--border); transition: border-color var(--dur-1), color var(--dur-1);
}
.cmdk-trigger:hover { color: var(--fg); border-color: var(--line-strong); }
.cmdk-trigger .icon { width: 15px; height: 15px; }
.cmdk-trigger .kbd { height: 20px; font-size: .6875rem; border-bottom-width: 1px; }
html.js .cmdk-trigger { display: inline-flex; }
@media (max-width: 1239px) { html.js .cmdk-trigger { width: 44px; height: 44px; justify-content: center; padding: 0; } .cmdk-trigger__label, .cmdk-trigger .kbd { display: none; } }
@media (min-width: 1240px) { .cmdk-trigger { width: 13.5rem; } .cmdk-trigger__label { margin-right: auto; } }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--fg); margin-right: -.5rem;
}
.menu-toggle:hover { background: rgba(13, 15, 26, .05); }
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out); }
.menu-toggle__bars::before { top: 1px; }
.menu-toggle__bars::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

/* Mega menu (Product) */
.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 4px); left: 50%; width: min(940px, calc(100vw - 2 * var(--gutter)));
  padding: .6rem; border-radius: 18px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(13, 15, 26, .05), 0 24px 60px -18px rgba(13, 15, 26, .28);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px) scale(.985); transform-origin: 50% 0;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
html:not(.js) .has-mega:hover .mega, html:not(.js) .has-mega:focus-within .mega, .has-mega.is-open .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s;
}
.mega__grid { display: grid; grid-template-columns: 1.05fr 1.35fr .95fr; gap: .4rem; }
.mega__col { padding: .9rem; }
.mega__label { margin: 0 0 .6rem .55rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list--two { grid-template-columns: 1fr 1fr; }
.mega__link { display: flex; align-items: flex-start; gap: .75rem; min-height: 44px; padding: .55rem; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color var(--dur-1); }
.mega__link:hover, .mega__link:focus-visible { background: var(--mist); text-decoration: none; }
.mega__link b { display: block; font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.mega__link small { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.4; color: var(--slate); }
.mega__link--compact { align-items: center; gap: .6rem; padding: .45rem .55rem; }
.mega__link--compact .icon { width: 17px; height: 17px; color: var(--indigo); }
.mega__link--compact b { font-weight: 450; }
.mega__promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; min-height: 100%; padding: 1.1rem;
  border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; isolation: isolate;
}
.mega__promo::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(81, 59, 244, .8), transparent); filter: blur(10px); z-index: -1; }
.mega__promo:hover { text-decoration: none; }
.mega__promo .eyebrow { color: var(--lilac); margin: 0; }
.mega__promo b { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.mega__promo span:last-child { color: var(--lilac); font-size: var(--fs-xs); }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; padding: .75rem 1.1rem; border-radius: 12px; background: var(--mist); font-size: var(--fs-xs); color: var(--slate); }
.mega__foot a { font-weight: 500; }

/* Mobile menu (full screen) */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); background: var(--canvas);
  display: flex; flex-direction: column;
}
html.js .mobile-menu:not(.is-open) { display: none; }
html:not(.js) .mobile-menu { display: none; }
.mobile-menu.is-open { animation: menu-in var(--dur-3) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.mobile-menu__link[aria-current="page"] { color: var(--indigo); }
.mobile-menu__link .icon { width: 20px; height: 20px; color: var(--slate); transition: transform var(--dur-2); }
.mobile-menu__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px .5rem; }
.mobile-menu__sub a { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: var(--fs-sm); color: var(--fg-2); text-decoration: none; }
.mobile-menu__sub .icon { width: 17px; height: 17px; color: var(--indigo); }
.mobile-menu__actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
.mobile-menu__meta { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--slate); text-align: center; }
html.menu-locked, html.menu-locked body { overflow: hidden; }

/* ---------- 11. Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; max-width: 52rem; }
.page-hero--center .page-hero__inner { align-items: center; text-align: center; margin-inline: auto; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero .eyebrow { margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1rem; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }

/* ---------- 12. Cards ---------- */
.card {
  position: relative; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
}
.section--ink .card, .theme-ink .card { box-shadow: none; }
.card.theme-ink, .bento__card.theme-ink, .testi.theme-ink { background: var(--ink-2); border-color: rgba(255, 255, 255, .08); }
.card--hover { transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card--flat { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.card__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; margin: 1rem 0 .4rem; }
.card__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { text-decoration: none; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.75rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d27d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.checklist--mint li::before { background-color: var(--mint-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.section--ink .checklist li::before, .theme-ink .checklist li::before { background-color: rgba(139, 123, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4abff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- 13. Bento + spotlight ---------- */
.bento { display: grid; gap: clamp(.75rem, .5rem + .8vw, 1.1rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-2 { grid-column: span 2; } .bento .span-3 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 4; } .bento .span-6 { grid-column: span 6; }
  .bento .row-2 { grid-row: span 2; }
}
@media (min-width: 720px) and (max-width: 1023px) { .bento .span-6, .bento .span-4 { grid-column: span 2; } }
.bento__card {
  position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; isolation: isolate;
  padding: clamp(1.25rem, 1rem + .8vw, 1.6rem); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
}
.bento__visual { position: relative; margin: calc(-1 * clamp(1.25rem, 1rem + .8vw, 1.6rem)); margin-bottom: 1.25rem; min-height: 180px; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 0%, var(--indigo-50) 0%, transparent 60%), var(--surface-2); display: grid; place-items: center; padding: 1.5rem; }
.bento__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; margin-bottom: .4rem; }
.bento__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.bento__foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section--ink .bento__card, .theme-ink .bento__card { box-shadow: none; }
.section--ink .bento__visual, .theme-ink .bento__visual { background: radial-gradient(120% 90% at 50% 0%, rgba(81, 59, 244, .25) 0%, transparent 60%), rgba(255, 255, 255, .02); }

/* Spotlight: add data-spotlight on a grid; each child with .spot-card gets a cursor-following border + surface glow */
.spot-card { --mx: -500px; --my: -500px; }
.spot-card::before, .spot-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-3); }
.spot-card::before { /* surface glow */
  z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(81, 59, 244, .07), transparent 45%);
}
.spot-card::after { /* border glow */
  z-index: 2; padding: 1px; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(81, 59, 244, .75), rgba(139, 123, 255, .35) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-spotlight].is-spot-active .spot-card::before, [data-spotlight].is-spot-active .spot-card::after { opacity: 1; }
.section--ink .spot-card::before, .theme-ink .spot-card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 123, 255, .12), transparent 45%); }
.section--ink .spot-card::after, .theme-ink .spot-card::after { background: radial-gradient(300px circle at var(--mx) var(--my), rgba(180, 171, 255, .9), rgba(139, 123, 255, .3) 30%, transparent 60%); }

/* ---------- 14. Dialogs (feature details etc.) ---------- */
.dialog {
  width: min(880px, calc(100vw - 2rem)); max-width: none; max-height: min(88vh, 900px); padding: 0; margin: auto;
  border: 1px solid var(--line); border-radius: 22px; background: var(--canvas); color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(13, 15, 26, .5), 0 0 0 1px rgba(255, 255, 255, .5) inset; overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; animation: dialog-in var(--dur-3) var(--ease-out); }
.dialog.is-closing { animation: dialog-out .2s ease-in forwards; }
.dialog::backdrop { background: rgba(13, 15, 26, .52); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in var(--dur-2) ease-out; }
.dialog.is-closing::backdrop { animation: fade-out .2s ease-in forwards; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.dialog__head { position: relative; display: flex; align-items: flex-start; gap: 1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); padding-right: 4.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(90% 140% at 0% 0%, var(--indigo-50), transparent 60%), #fff; }
.dialog__title { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); letter-spacing: -.03em; line-height: 1.15; }
.dialog__sub { margin-top: .45rem; color: var(--slate); font-size: var(--fs-sm); line-height: 1.55; max-width: 38rem; }
.dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid var(--line); background: #fff; }
.dialog__foot p { font-size: var(--fs-sm); color: var(--slate); }
.dialog__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--slate); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); transition: color var(--dur-1), background-color var(--dur-1);
}
.dialog__close:hover { color: var(--ink); background: #fff; }
@media (max-width: 599px) {
  .dialog { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dialog[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
}
/* No-JS: dialogs render inline so all content stays visible */
html:not(.js) dialog.dialog { display: block; position: static; width: auto; max-height: none; margin: 1.5rem 0; box-shadow: var(--sh-sm); }
html:not(.js) .dialog__close { display: none; }

.feature-detail { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .feature-detail { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.feature-detail__h { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .9rem; font-weight: 500; }
.example { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.example__block { padding: 1.1rem 1.25rem; }
.example__block + .example__block { border-top: 1px dashed var(--line); }
.example__block p { font-size: var(--fs-sm); line-height: 1.6; color: var(--fg-2); }
.example__outcome { background: linear-gradient(180deg, var(--mint-50), #fff); }
.example__outcome .feature-detail__h { color: var(--mint-700); }

/* Process flow: <ol class="flow"><li>…</li></ol> */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; gap: 0; }
.flow li { position: relative; counter-increment: flow; padding: 0 0 1rem 2.6rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-2); min-height: 2.2rem; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--indigo-700); background: var(--indigo-50); border: 1px solid rgba(81, 59, 244, .2);
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(.875rem - .5px); top: 1.75rem; bottom: .1rem; width: 1px; background: linear-gradient(var(--indigo-100), var(--line)); }
.flow li:last-child { padding-bottom: 0; }

/* ---------- 15. Glass UI mockups ---------- */
.mock {
  position: relative; border-radius: 18px; overflow: hidden; isolation: isolate; text-align: left;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(13, 15, 26, .06), 0 2px 4px rgba(13, 15, 26, .04), 0 30px 80px -30px rgba(40, 28, 150, .35);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  font-size: var(--fs-xs);
}
.mock--ink { background: rgba(23, 26, 43, .78); border-color: rgba(255, 255, 255, .1); color: #e8eaf5; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 80px -30px rgba(81, 59, 244, .6); }
.mock__chrome { display: flex; align-items: center; gap: .75rem; height: 42px; padding: 0 .9rem; border-bottom: 1px solid rgba(13, 15, 26, .06); background: rgba(255, 255, 255, .6); }
.mock--ink .mock__chrome { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .07); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e5ee; }
.mock--ink .mock__dots i { background: rgba(255, 255, 255, .14); }
.mock__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .6875rem; color: var(--slate); text-align: center; }
.mock--ink .mock__title { color: var(--slate-ink); }
/* Required on every mockup that shows clinical content */
.sample-tag {
  display: inline-flex; align-items: center; gap: .35rem; height: 22px; padding: 0 .5rem; border-radius: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: #6a4b00; background: #fff4d6; border: 1px solid #f3dea3;
}
.mock--ink .sample-tag { color: #ffe3a3; background: rgba(245, 182, 56, .12); border-color: rgba(245, 182, 56, .3); }
.mock__body { display: grid; grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 720px) { .mock__body--side { grid-template-columns: 168px 1fr; } }
.mock__side { display: none; padding: .75rem .5rem; border-right: 1px solid rgba(13, 15, 26, .06); background: rgba(242, 243, 249, .55); }
@media (min-width: 720px) { .mock__body--side .mock__side { display: block; } }
.mock--ink .mock__side { background: rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .07); }
.mock__nav-label { padding: .5rem .6rem .35rem; font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7183; }
.mock__nav-item { display: flex; align-items: center; gap: .5rem; height: 30px; padding: 0 .6rem; border-radius: 7px; font-size: .75rem; color: #4a5064; }
.mock__nav-item .icon { width: 14px; height: 14px; }
.mock__nav-item.is-active { color: var(--indigo-700); background: #fff; box-shadow: var(--sh-xs); font-weight: 500; }
.mock--ink .mock__nav-item { color: #aeb3c8; }
.mock--ink .mock__nav-item.is-active { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.mock__main { padding: clamp(.8rem, .6rem + .8vw, 1.1rem); display: grid; gap: .75rem; min-width: 0; }
.mock-panel { border-radius: 12px; background: #fff; border: 1px solid rgba(13, 15, 26, .07); box-shadow: 0 1px 2px rgba(13, 15, 26, .04); padding: .85rem .95rem; min-width: 0; }
.mock--ink .mock-panel { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.mock-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: #646a7c; }
.mock--ink .mock-panel__head { color: var(--slate-ink); }
.mock-panel__head b { font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.mock--ink .mock-panel__head b { color: #fff; }
.skeleton { display: grid; gap: 6px; }
.skeleton i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #dfe2ec, #eceef4); width: var(--w, 100%); }
.mock--ink .skeleton i { background: rgba(255, 255, 255, .08); }

/* Recording pill + timer */
.rec { display: inline-flex; align-items: center; gap: .45rem; height: 26px; padding: 0 .6rem; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: .6875rem; color: #b42318; background: #fdecea; font-variant-numeric: tabular-nums; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rec-pulse 1.4s ease-in-out infinite; }
.rec.is-idle { color: var(--slate); background: var(--mist); }
.rec.is-idle::before { animation: none; }
.mock--ink .rec { color: #ff9b91; background: rgba(255, 99, 88, .12); }
@keyframes rec-pulse { 50% { opacity: .3; } }

/* Waveform: <div class="wave" data-bars="48"></div> — JS fills bars. */
.wave { display: flex; align-items: center; justify-content: space-between; gap: clamp(1px, .25vw, 2px); height: 56px; overflow: hidden; color: var(--indigo); }
.wave i { flex: 0 1 3px; min-width: 1.5px; height: 100%; border-radius: 3px; background: currentColor; transform: scaleY(var(--s, .2)); transform-origin: 50% 50%; opacity: calc(.45 + var(--s, .2) * .55); transition: transform .12s linear; }
/* No-JS / not-yet-filled fallback: a static, low-contrast bar pattern (not a flat stripe) */
.wave:empty { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40' fill='%23513bf4' fill-opacity='.35'%3E%3Crect x='1' y='15' width='3' height='10' rx='1.5'/%3E%3Crect x='7' y='9' width='3' height='22' rx='1.5'/%3E%3Crect x='13' y='4' width='3' height='32' rx='1.5'/%3E%3Crect x='19' y='11' width='3' height='18' rx='1.5'/%3E%3Crect x='25' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='31' y='7' width='3' height='26' rx='1.5'/%3E%3Crect x='37' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='43' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='49' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='55' y='17' width='3' height='6' rx='1.5'/%3E%3Crect x='61' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='67' y='13' width='3' height='14' rx='1.5'/%3E%3Crect x='73' y='5' width='3' height='30' rx='1.5'/%3E%3Crect x='79' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='85' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='91' y='16' width='3' height='8' rx='1.5'/%3E%3C/svg%3E") left center / auto 70% repeat-x; }
.wave--ink:empty, .mock--ink .wave:empty { filter: brightness(1.8); }
.wave--ink { color: var(--violet-glow); }
.wave--sm { height: 28px; }

/* Transcript */
.transcript { display: grid; gap: .55rem; font-size: .8125rem; line-height: 1.55; }
.tline { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; align-items: baseline; }
.tline__who { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo-700); padding-top: 1px; }
.tline__who--client { color: #8a5a00; }
.tline__text { color: var(--fg-2); }
.tline__time { font-family: var(--font-mono); font-size: .625rem; color: #6b7183; }
.mock--ink .tline__who { color: var(--lilac); }
.mock--ink .tline__who--client { color: #ffd98a; }
.mock--ink .tline__text { color: #d7daea; }
.mock--ink .tline__time { color: var(--slate-ink); }
.hl { background: linear-gradient(transparent 55%, rgba(139, 123, 255, .28) 55%); border-radius: 2px; }

/* Structured note (SOAP/DAP/BIRP) */
.note { display: grid; gap: .6rem; font-size: .8125rem; line-height: 1.55; }
.note__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.note__title { font-weight: 600; font-size: .875rem; letter-spacing: -.01em; color: var(--ink); }
.note__sec { display: grid; grid-template-columns: 1.75rem 1fr; gap: .7rem; align-items: start; }
.note__key { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--indigo-700); background: var(--indigo-50); }
.note__label { display: block; font-weight: 600; font-size: .75rem; color: var(--ink); margin-bottom: 1px; }
.note__text { color: var(--fg-2); }
.mock--ink .note__head { border-color: rgba(255, 255, 255, .08); }
.mock--ink .note__title, .mock--ink .note__label { color: #fff; }
.mock--ink .note__text { color: #c9ccda; }
.mock--ink .note__key { color: var(--lilac); background: rgba(139, 123, 255, .16); }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.18em; background: var(--indigo); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* File drop */
.drop { display: grid; place-items: center; gap: .4rem; padding: 1.1rem; border-radius: 12px; text-align: center; border: 1.5px dashed #c6c3f5; background: repeating-linear-gradient(-45deg, rgba(81, 59, 244, .025) 0 8px, transparent 8px 16px), #faf9ff; color: var(--slate); font-size: .75rem; }
.drop .icon { width: 22px; height: 22px; color: var(--indigo); }
.drop b { color: var(--ink); font-weight: 500; font-size: .8125rem; }
.file-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: .75rem; }
.file-row__type { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 5px; font-family: var(--font-mono); font-size: .5625rem; font-weight: 600; color: #fff; background: var(--indigo); flex: none; }
.file-row__type--pdf { background: #c83c34; } /* 5.06:1 with white */ .file-row__type--doc { background: #2f6fe0; } .file-row__type--img { background: var(--mint-700); }
.file-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.file-row__meta { font-family: var(--font-mono); font-size: .625rem; color: #6b7183; }
.progress { height: 4px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--violet-glow)); }

/* Search palette mock (static, inside mockups) */
.palette-mock { border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-md); overflow: hidden; }
.palette-mock__input { display: flex; align-items: center; gap: .55rem; height: 42px; padding: 0 .8rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .8125rem; }
.palette-mock__input .icon { width: 15px; height: 15px; color: var(--slate); }
.palette-mock__item { display: flex; align-items: center; gap: .6rem; height: 34px; padding: 0 .8rem; font-size: .75rem; color: var(--fg-2); }
.palette-mock__item.is-active { background: var(--indigo-50); color: var(--indigo-700); }
.palette-mock__item .icon { width: 14px; height: 14px; }
.palette-mock__item .kbd { margin-left: auto; }

/* Floating chips around a mockup */
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, 1); box-shadow: 0 0 0 1px rgba(13, 15, 26, .06), 0 14px 30px -12px rgba(40, 28, 150, .35); font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.float-chip .icon { width: 14px; height: 14px; color: var(--indigo); }
.float-chip--mint .icon { color: var(--mint-700); }
@media (prefers-reduced-motion: no-preference) { .float-chip { animation: float 7s var(--ease-in-out) infinite alternate; } .float-chip:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; } }
@keyframes float { to { transform: translateY(-8px); } }

/* ---------- 16. Hero pipeline ---------- */
.pipeline { width: 100%; }
.pipeline__body { display: grid; gap: .75rem; padding: clamp(.75rem, .6rem + .6vw, 1rem); }
@media (min-width: 900px) { .pipeline__body { grid-template-columns: 1fr 1.08fr; } .pipeline__body > .pipeline__rec { grid-column: 1 / -1; } }
.pipeline__rec { display: flex; align-items: center; gap: .9rem; }
.pipeline__rec .wave { flex: 1; min-width: 0; }
.pipeline__transcript { min-height: 13.5rem; }
.pipeline__note { min-height: 13.5rem; }
.pipeline__status { display: flex; align-items: center; gap: .35rem; padding: .6rem clamp(.75rem, .6rem + .6vw, 1rem); border-top: 1px solid rgba(13, 15, 26, .06); flex-wrap: wrap; }
.mock--ink .pipeline__status { border-color: rgba(255, 255, 255, .07); }
.pipe-stage { display: inline-flex; align-items: center; gap: .4rem; height: 26px; padding: 0 .55rem; border-radius: 7px; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: #646a7c; transition: color var(--dur-2), background-color var(--dur-2); }
.pipe-stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.pipe-stage.is-active { color: var(--indigo-700); background: var(--indigo-50); }
.pipe-stage.is-active::before { opacity: 1; animation: rec-pulse 1.2s infinite; }
.pipe-stage.is-done { color: var(--mint-700); }
.pipe-stage.is-done::before { opacity: 1; }
.mock--ink .pipe-stage.is-active { color: #fff; background: rgba(139, 123, 255, .2); }
.mock--ink .pipe-stage.is-done { color: var(--mint); }
.pipe-sep { width: 14px; height: 1px; background: var(--line-strong); }
@media (max-width: 519px) { .pipe-sep { display: none; } .pipe-stage { padding: 0 .4rem; letter-spacing: .03em; } }
.pipeline__toggle { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 32px; border-radius: 8px; color: var(--slate); }
.pipeline__toggle:hover { background: rgba(13, 15, 26, .05); color: var(--ink); }
.pipeline__toggle .icon { width: 14px; height: 14px; }
.pipeline [data-pipe-word] { opacity: 1; transition: opacity .25s ease, filter .25s ease; }
.pipeline [data-pipe-word].is-pending { opacity: 0; filter: blur(4px); }
.pipeline .note__sec { transition: opacity .35s ease, transform .35s var(--ease-out); }
.pipeline .note__sec.is-pending { opacity: .0; transform: translateY(6px); }
.pipeline.is-resetting .pipeline__transcript, .pipeline.is-resetting .pipeline__note { opacity: 0; transition: opacity .4s ease; }

/* ---------- 17. Template switcher ---------- */
.tswitch { display: grid; gap: 1rem; min-width: 0; }
.tswitch > .segmented { justify-self: start; }
.tswitch__stage { display: grid; }
.tswitch__stage > [role="tabpanel"] { grid-area: 1 / 1; }
html.js .tswitch__stage > [role="tabpanel"] { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s; }
html.js .tswitch__stage > [role="tabpanel"]:not(.is-active) { opacity: 0; visibility: hidden; transform: translateY(8px); }
html.js .tswitch__stage > [role="tabpanel"].is-active { transition-delay: 0s; }
html.js .tswitch__stage > .is-active .note__sec { animation: sec-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes sec-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
html:not(.js) .tswitch__stage { gap: 1rem; }
html:not(.js) .tswitch__stage > [role="tabpanel"] { grid-area: auto; }

/* ---------- 18. Tabs & segmented control ---------- */
.segmented {
  --thumb-x: 0px; --thumb-w: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px;
  background: rgba(13, 15, 26, .05); border: 1px solid rgba(13, 15, 26, .05); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--thumb-w); transform: translateX(var(--thumb-x)); border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(13, 15, 26, .1), 0 4px 10px -4px rgba(13, 15, 26, .15); transition: transform .4s var(--ease-out), width .4s var(--ease-out); pointer-events: none; }
.segmented:not(.is-ready) .segmented__thumb { display: none; }
.segmented__btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border-radius: 9px; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 500; color: var(--slate); transition: color var(--dur-2);
}
.segmented__btn .icon { width: 16px; height: 16px; }
.segmented__btn:hover { color: var(--ink); }
.segmented__btn[aria-selected="true"], .segmented__btn[aria-pressed="true"] { color: var(--ink); }
.segmented:not(.is-ready) .segmented__btn[aria-selected="true"], .segmented:not(.is-ready) .segmented__btn[aria-pressed="true"] { background: #fff; box-shadow: var(--sh-xs); }
@media (max-width: 519px) {
  .segmented:not(.segmented--inline) { display: flex; width: 100%; }
  .segmented:not(.segmented--inline) .segmented__btn { flex: 1 1 0; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; padding: .45rem .6rem; min-height: 44px; }
}
.segmented--mono .segmented__btn { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; }
.section--ink .segmented, .theme-ink .segmented { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); }
.section--ink .segmented__thumb, .theme-ink .segmented__thumb { background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.section--ink .segmented__btn, .theme-ink .segmented__btn { color: var(--slate-ink); }
.section--ink .segmented:not(.is-ready) .segmented__btn[aria-selected="true"], .section--ink .segmented:not(.is-ready) .segmented__btn[aria-pressed="true"], .theme-ink .segmented:not(.is-ready) .segmented__btn[aria-selected="true"] { background: rgba(255, 255, 255, .14); box-shadow: none; }
.section--ink .segmented__btn[aria-selected="true"], .section--ink .segmented__btn[aria-pressed="true"], .section--ink .segmented__btn:hover { color: #fff; }

.tablist { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.75rem; --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
.tablist::-webkit-scrollbar { display: none; }
/* JS toggles these when the list scrolls horizontally, so a cut-off tab visibly fades out */
.tablist.is-more-right { --fade-r: 2.5rem; }
.tablist.is-more-left { --fade-l: 2.5rem; }
.tab { position: relative; min-height: 48px; padding: 0 1rem; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); white-space: nowrap; transition: color var(--dur-2); }
.tab::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
html.js [role="tabpanel"].tabpanel-anim.is-active { animation: sec-in .45s var(--ease-out); }

/* ---------- 19. Step sequence ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(var(--steps, 4), 1fr); } }
.step { position: relative; counter-increment: step; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step__num { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.step__num::before { content: "0" counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; letter-spacing: 0; }
.step__num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.step__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; margin-bottom: .45rem; }
.step__text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* Pinned step sequence (≥1024px + motion OK; otherwise stacked) */
.pin-steps { --steps: 4; position: relative; }
.pin-steps__sticky { display: grid; gap: 2rem; }
.pin-steps__grid { display: grid; gap: 1.25rem; }
.pin-step { display: grid; gap: 1rem; }
.pin-step__body { position: relative; padding: 1.4rem 1.4rem 1.4rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pin-step__num { display: block; margin-bottom: .6rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.pin-step__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.025em; margin-bottom: .5rem; }
.pin-step__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; max-width: 30rem; }
.pin-step__visual { border-radius: var(--r-xl); }
.pin-steps__progress { display: none; }
/* Not pinned on a wide screen (reduced motion / no JS): each step as a text + visual row */
@media (min-width: 1024px) {
  .pin-steps:not(.is-pinned) .pin-steps__grid { gap: 1.5rem; }
  .pin-steps:not(.is-pinned) .pin-step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
}
@media (min-width: 1024px) {
  .pin-steps.is-pinned { height: calc(var(--steps) * 62vh + 100vh); }
  .pin-steps.is-pinned .pin-steps__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); align-content: center; }
  .pin-steps.is-pinned .pin-steps__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-auto-rows: auto; column-gap: clamp(2rem, 1rem + 4vw, 5rem); row-gap: .25rem; align-items: center; }
  .pin-steps.is-pinned .pin-step { display: contents; }
  .pin-steps.is-pinned .pin-step__body { grid-column: 1; background: transparent; border-color: transparent; padding: 1rem 1.25rem 1rem 1.75rem; border-radius: 0; opacity: .5; transition: opacity var(--dur-3) var(--ease-out); cursor: default; }
  .pin-steps.is-pinned .pin-step__body::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); }
  .pin-steps.is-pinned .pin-step__body::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--fill, 0) * 100%); background: linear-gradient(var(--indigo), var(--violet-glow)); }
  .pin-steps.is-pinned .pin-step.is-active .pin-step__body { opacity: 1; }
  .pin-steps.is-pinned .pin-step__text { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--dur-3) var(--ease-out), opacity var(--dur-3); }
  .pin-steps.is-pinned .pin-step.is-active .pin-step__text { max-height: 12rem; opacity: 1; }
  .pin-steps.is-pinned .pin-step__title { margin-bottom: 0; transition: margin var(--dur-3); }
  .pin-steps.is-pinned .pin-step.is-active .pin-step__title { margin-bottom: .5rem; }
  .pin-steps.is-pinned .pin-step__visual { grid-column: 2; grid-row: 1 / span var(--steps); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
  .pin-steps.is-pinned .pin-step.is-active .pin-step__visual { opacity: 1; transform: none; pointer-events: auto; }
  .pin-steps.is-pinned .pin-steps__progress { display: flex; gap: .4rem; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--muted); align-items: center; }
}

/* Step visual stage (container for the per-step mock) */
.stage { position: relative; display: grid; place-items: center; min-height: 340px; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 80% at 70% 10%, rgba(139, 123, 255, .28), transparent 60%), radial-gradient(60% 60% at 10% 100%, rgba(81, 59, 244, .18), transparent 60%), var(--mist); border: 1px solid var(--border); }
.stage > * { width: 100%; max-width: 480px; }
.section--ink .stage, .theme-ink .stage { background: radial-gradient(80% 80% at 70% 10%, rgba(139, 123, 255, .3), transparent 60%), radial-gradient(60% 60% at 10% 100%, rgba(81, 59, 244, .25), transparent 60%), var(--ink-2); }

/* ---------- 20. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.stat { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--bg); }
.stat__num { display: block; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .5em; font-weight: 500; letter-spacing: -.02em; color: var(--accent); margin-left: .05em; }
.stat__label { display: block; margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.stat__label b { display: block; color: var(--fg-2); font-weight: 500; }

/* ---------- 21. Marquee ---------- */
.marquee { --marquee-dur: 45s; --gap: .75rem; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--gap); padding-block: .25rem; }
.marquee.is-running .marquee__track { animation: marquee var(--marquee-dur) linear infinite; }
.marquee.is-running:hover .marquee__track, .marquee.is-running:focus-within .marquee__track { animation-play-state: paused; }
.marquee--reverse.is-running .marquee__track { animation-direction: reverse; }
html:not(.js) .marquee__track, .marquee:not(.is-running) .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.marquee__item { display: inline-flex; align-items: center; gap: .55rem; height: 44px; padding: 0 1rem; border-radius: 12px; white-space: nowrap; font-size: var(--fs-sm); font-weight: 500; color: var(--fg-2); background: var(--surface); border: 1px solid var(--border); }
.marquee__item .icon { width: 17px; height: 17px; color: var(--accent); }
.marquee__item--mono { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; }

/* ---------- 22. Pricing ---------- */
.billing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; }
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(var(--plans, 3), 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 28px; }
.plan__name { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; min-height: 3.1em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .35rem; line-height: 1; }
.price__cur { align-self: flex-start; margin-top: .35em; font-size: 1.35rem; font-weight: 500; color: var(--fg); }
.price__num { font-size: clamp(3rem, 2.4rem + 2vw, 3.9rem); font-weight: 600; letter-spacing: -.05em; color: var(--fg); font-variant-numeric: tabular-nums; }
.price__per { font-size: var(--fs-sm); color: var(--muted); }
.price__was { width: 100%; margin-top: .45rem; font-size: var(--fs-xs); color: var(--muted); }
.price__was s { text-decoration-thickness: 1px; }
.plan .btn { width: 100%; }
.plan .checklist { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.plan--featured { background: linear-gradient(180deg, #fff, #fbfaff); border-color: rgba(81, 59, 244, .35); box-shadow: 0 0 0 1px rgba(81, 59, 244, .25), 0 30px 60px -30px rgba(81, 59, 244, .55), 0 0 90px -40px rgba(139, 123, 255, .9); }
.plan--featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--indigo), rgba(139, 123, 255, .2) 40%, transparent 60%, rgba(81, 59, 244, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plan--ink { --fg: #fff; --fg-2: #d7daea; --muted: var(--slate-ink); --border: rgba(255, 255, 255, .12); background: var(--ink); color: #fff; border-color: var(--ink); }
/* Slot-machine price roll (built by JS) */
.roll { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.roll__d { display: inline-block; height: 1em; overflow: hidden; }
.roll__strip { display: flex; flex-direction: column; transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.roll__strip > span { height: 1em; display: block; }
[data-billing-only] { transition: opacity var(--dur-2); }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 2px; }
/* JS adds is-more-right while more columns are hidden to the right: fade the edge so the table reads as scrollable */
.table-wrap.is-more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), rgba(0, 0, 0, .15)); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), rgba(0, 0, 0, .15)); }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: 1rem 1.25rem; font-weight: 600; }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { position: sticky; top: 0; font-weight: 600; background: var(--surface); vertical-align: bottom; }
.compare thead th small { display: block; margin-top: .2rem; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.compare tbody th { text-align: left; font-weight: 450; color: var(--fg-2); }
.compare th:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 11rem; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover > * { background: var(--mist); }
.compare .group th { padding-top: 1.4rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.compare .is-featured { background: rgba(81, 59, 244, .04); }
.compare thead .is-featured { color: var(--indigo-700); box-shadow: inset 0 2px 0 var(--indigo); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.compare .yes { color: var(--indigo-700); background: var(--indigo-50); }
.compare .no { color: #9aa0b4; }
.compare .yes svg, .compare .no svg { width: 13px; height: 13px; }

/* ---------- 23. Testimonials ---------- */
.testi { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs); }
.testi__quote { font-size: var(--fs-sm); line-height: 1.65; color: var(--fg-2); }
.testi__quote::before { content: "\201C"; display: block; height: .55em; margin-bottom: .35rem; font-family: var(--font-serif); font-size: 3.25rem; line-height: 1; color: var(--accent); }
.testi--feature { gap: 2rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.testi--feature .testi__quote { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.32; letter-spacing: -.01em; color: var(--fg); }
.testi--feature .testi__quote::before { font-size: 5rem; height: .45em; }
.person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.person__name { display: block; font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; color: var(--fg); }
.person__role { display: block; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--mist); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); }
.avatar--lg { width: 56px; height: 56px; }
.avatar--initials { display: grid; place-items: center; font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet-glow)); }
.avatar--initials.avatar--alt { background: linear-gradient(135deg, #0b7a60, var(--mint)); }
.testi-wall { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.testi-col { display: grid; gap: 1rem; align-content: start; }
.testi-col__track { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .testi-wall { grid-template-columns: repeat(2, 1fr); }
  .testi-wall.is-animated { height: var(--wall-h, 720px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
  .testi-wall.is-animated .testi-col__track { animation: wall-scroll var(--dur, 50s) linear infinite; }
  .testi-wall.is-animated .testi-col:nth-child(2) .testi-col__track { animation-direction: reverse; }
  .testi-wall.is-animated:hover .testi-col__track, .testi-wall.is-animated:focus-within .testi-col__track { animation-play-state: paused; }
}
@media (min-width: 1100px) { .testi-wall { grid-template-columns: repeat(3, 1fr); } }
/* 768–1099px: two columns. main.js moves column 3's cards into columns 1–2 (and back ≥1100px), so nothing is hidden. */
.testi-wall.is-animated .testi-col.is-empty { display: none; }
@keyframes wall-scroll { to { transform: translateY(calc(-50% - .5rem)); } }
.testi-wall:not(.is-animated) .is-clone { display: none; }
@media (max-width: 767px) { .testi-wall .is-clone { display: none; } }

/* ---------- 24. Video facade + modal ---------- */
.video-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; box-shadow: var(--sh-md); }
.video-card:hover { text-decoration: none; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: radial-gradient(80% 90% at 70% 20%, rgba(139, 123, 255, .6), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink)); }
.video-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity var(--dur-3); }
.video-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 15, 26, 0) 40%, rgba(13, 15, 26, .75)); }
.video-card:hover .video-card__thumb img { transform: scale(1.035); }
.video-card__play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; color: var(--indigo); background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), 0 0 0 8px rgba(255, 255, 255, .18); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.video-card__play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.video-card:hover .video-card__play, .video-card:focus-visible .video-card__play { transform: scale(1.08); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), 0 0 0 12px rgba(255, 255, 255, .2); }
.video-card__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; }
.video-card__title { font-weight: 500; font-size: var(--fs-sm); line-height: 1.35; text-wrap: balance; }
.video-card__dur { flex: none; height: 22px; padding: 0 .45rem; border-radius: 6px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .6875rem; background: rgba(13, 15, 26, .6); }
.video-card--sm .video-card__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item { display: grid; gap: .85rem; }
.video-item__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.video-item__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.dialog--video { width: min(1100px, calc(100vw - 2rem)); background: #000; border-color: rgba(255, 255, 255, .1); border-radius: 18px; }
.dialog--video .dialog__close { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .15); top: .6rem; right: .6rem; }
.dialog--video .video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.dialog--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 599px) { .dialog--video { width: 100vw; margin: auto; border-radius: 0; } }

/* ---------- 25. Accordion ---------- */
.accordion { display: grid; gap: .6rem; }
.acc { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.acc[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.acc__sum { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .9rem 1.25rem; cursor: pointer; font-weight: 500; font-size: 1rem; letter-spacing: -.01em; color: var(--fg); border-radius: inherit; }
.acc__sum::-webkit-details-marker { display: none; }
.acc__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); transition: background-color var(--dur-2); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; border-radius: 2px; background: var(--fg); transition: transform var(--dur-3) var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon { background: var(--indigo-50); }
.acc[open] .acc__icon::after { transform: rotate(0); }
.acc__body { padding: 0 1.25rem 1.2rem; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; max-width: 46rem; }
.acc__body > * + * { margin-top: .75rem; }
.section--ink .acc[open] .acc__icon { background: rgba(139, 123, 255, .2); }

/* ---------- 26. Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tl-item { position: relative; padding: 0 0 2.25rem 2.25rem; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -10px; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-item__dot { position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item.is-now .tl-item__dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(81, 59, 244, .15); }
.tl-item__year { display: block; margin-bottom: .35rem; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; color: var(--accent-text); }
.tl-item__title { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; margin-bottom: .3rem; }
.tl-item__text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
@media (min-width: 900px) {
  .timeline--h { grid-template-columns: repeat(var(--items, 4), 1fr); gap: 1.5rem; }
  .timeline--h .tl-item { padding: 2.25rem 0 0; }
  .timeline--h .tl-item::before { left: 11px; right: -1.5rem; top: 5px; bottom: auto; width: auto; height: 1px; }
  .timeline--h .tl-item:last-child::before { display: block; right: 0; background: linear-gradient(90deg, var(--border), transparent); }
}

/* ---------- 27. People ---------- */
.person-card { display: flex; flex-direction: column; gap: 1rem; }
.person-card__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); border: 1px solid var(--border); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .9s var(--ease-out), filter var(--dur-3); }
.person-card:hover .person-card__photo img { transform: scale(1.03); filter: saturate(1); }
.person-card__name { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.015em; }
.person-card__role { font-size: var(--fs-sm); color: var(--muted); margin-top: .15rem; }
.person-card__bio { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.65; }
.person-card__links { display: flex; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--fg-2); background: var(--surface); border: 1px solid var(--border); transition: color var(--dur-1), border-color var(--dur-1); text-decoration: none; }
.icon-btn:hover { color: var(--indigo-700); border-color: rgba(81, 59, 244, .35); }
.icon-btn .icon { width: 18px; height: 18px; }
.founder-card { display: grid; gap: 1.5rem; padding: clamp(1rem, .75rem + 1vw, 1.5rem); border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); }
@media (min-width: 720px) { .founder-card { grid-template-columns: minmax(180px, 280px) 1fr; align-items: start; } }
.founder-card .person-card__photo { max-width: 360px; }
.founder-card__body { display: flex; flex-direction: column; gap: .9rem; padding: .5rem .25rem; }
.founder-card__quote { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--fg); }

/* ---------- 28. Legal documents ---------- */
.legal { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; } }
.toc { font-size: var(--fs-sm); }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; overscroll-behavior: contain; padding-right: .5rem; } }
@media (max-width: 1023px) { .toc { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--mist); } }
.toc__title { margin-bottom: .75rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .4rem .85rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.4; transition: color var(--dur-1), border-color var(--dur-1); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--indigo-700); border-left-color: var(--indigo); font-weight: 500; }
.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.75; color: var(--fg-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2em; font-size: 1.125rem; letter-spacing: -.01em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--indigo); }
.prose strong { color: var(--ink); }
.prose a { word-break: break-word; }
.prose blockquote { padding: .9rem 1.2rem; border-left: 3px solid var(--indigo); background: var(--indigo-50); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 29. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.label { font-size: var(--fs-sm); font-weight: 500; color: var(--fg); }
.label .req { color: var(--danger); margin-left: .15rem; }
.label .opt { color: var(--muted); font-weight: 400; margin-left: .3rem; font-size: var(--fs-xs); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 1rem; line-height: 1.4; box-shadow: inset 0 1px 2px rgba(13, 15, 26, .04); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6b7183; }
.input:hover, .textarea:hover, .select:hover { border-color: #b9bdd0; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(81, 59, 244, .15); }
.field.is-invalid .input, .field.is-invalid .textarea, .input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.field.is-valid .input { border-color: #9fd9c8; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--fs-sm); color: var(--fg-2); cursor: pointer; min-height: 44px; padding-top: .6rem; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--indigo); margin-top: 1px; }
.notice { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.5; color: #6a4b00; background: #fff8e6; border: 1px solid #f3dea3; }
.notice .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice--info { color: var(--indigo-700); background: var(--indigo-50); border-color: var(--indigo-100); }
.form__success { display: grid; justify-items: start; gap: .8rem; padding: 1.75rem; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--mint-50), #fff); border: 1px solid #bfe9dc; }
.form__success:focus { outline: none; }
.form__success .icon-tile { margin-bottom: .25rem; }

/* ---------- 30. Toast ---------- */
.toast-region { position: fixed; z-index: 1100; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(420px, calc(100vw - 2rem)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: 14px; background: var(--ink); color: #fff; font-size: var(--fs-sm); box-shadow: 0 20px 50px -15px rgba(13, 15, 26, .6); pointer-events: auto; animation: toast-in .5s var(--ease-out); }
.toast .icon { width: 18px; height: 18px; color: var(--mint); flex: none; }
.toast--error .icon { color: #ff9b91; }
.toast.is-leaving { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 31. ⌘K command palette ---------- */
.cmdk { width: min(620px, calc(100vw - 2rem)); max-height: min(560px, 80vh); margin: 12vh auto auto; padding: 0; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 40px 100px -20px rgba(13, 15, 26, .45); overflow: hidden; color: var(--ink); }
.cmdk[open] { display: flex; flex-direction: column; animation: dialog-in .35s var(--ease-out); }
.cmdk::backdrop { background: rgba(13, 15, 26, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cmdk__search { display: flex; align-items: center; gap: .7rem; padding: 0 1.1rem; border-bottom: 1px solid var(--line); }
.cmdk__search .icon { width: 18px; height: 18px; color: var(--slate); }
.cmdk__input { flex: 1; min-width: 0; height: 58px; border: 0; background: transparent; font-size: 1.0625rem; outline: none; }
.cmdk__input::placeholder { color: #6b7183; }
.cmdk__list { overflow-y: auto; padding: .5rem; overscroll-behavior: contain; }
.cmdk__group { padding: .7rem .7rem .35rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.cmdk__item { display: flex; align-items: center; gap: .75rem; min-height: 46px; padding: 0 .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); cursor: pointer; }
.cmdk__item:hover { text-decoration: none; }
.cmdk__item .icon { width: 17px; height: 17px; color: var(--slate); }
.cmdk__item small { margin-left: auto; font-size: var(--fs-xs); color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmdk__item[aria-selected="true"] { background: var(--indigo-50); color: var(--indigo-700); }
.cmdk__item[aria-selected="true"] .icon { color: var(--indigo); }
.cmdk__empty { padding: 2rem 1rem; text-align: center; color: var(--slate); font-size: var(--fs-sm); }
.cmdk__foot { display: flex; gap: 1rem; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--slate); background: var(--mist); }
.cmdk__foot span { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 599px) { .cmdk { margin-top: 1rem; } .cmdk__foot { display: none; } }

/* ---------- 32. CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 3vw, 4rem) clamp(5.5rem, 3.5rem + 5vw, 8.5rem); border-radius: clamp(20px, 1rem + 1.5vw, 32px); background: var(--ink); color: #fff; text-align: center; }
.cta-band .h2 { color: #fff; }
.cta-band .h2 em { color: var(--lilac); }
.cta-band .lead { color: var(--slate-ink); margin-inline: auto; margin-top: 1rem; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2rem; }
.cta-band__wave { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(4.5rem, 3rem + 4vw, 7.5rem); z-index: -1; pointer-events: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; padding-inline: 3%; opacity: .4; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.cta-band__wave i { flex: 0 0 3px; border-radius: 4px 4px 0 0; background: linear-gradient(var(--violet-glow), var(--indigo)); height: var(--h, 40%); }

/* ---------- 33. Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--slate-ink); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-size: var(--fs-sm);
  --fg: #fff; --fg-2: #d7daea; --muted: var(--slate-ink); --border: rgba(255, 255, 255, .1); --surface: rgba(255, 255, 255, .04); }
.site-footer :focus-visible { outline-color: var(--lilac); }
.site-footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; } }
.site-footer .brand { color: #fff; }
.site-footer .brand__name span { color: var(--slate-ink); }
.site-footer__tagline { margin-top: 1rem; max-width: 20rem; font-size: 1.15rem; line-height: 1.4; color: #e6e8f2; letter-spacing: -.01em; }
.site-footer__tagline em { font-family: var(--font-serif); font-size: 1.1em; color: var(--lilac); }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.site-footer__h { margin-bottom: .9rem; font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #8a90a3; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer__list a { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; color: #c9ccda; text-decoration: none; transition: color var(--dur-1); }
@media (pointer: coarse) { .site-footer__list a { min-height: 44px; } }
.site-footer__list a:hover { color: #fff; }
.site-footer__list .icon { width: 15px; height: 15px; color: #8a90a3; }
.site-footer address { font-style: normal; line-height: 1.6; color: #c9ccda; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); color: #8a90a3; }
.site-footer__bottom a { color: #c9ccda; }
.site-footer__giant { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(3px, .6vw, 9px); height: clamp(60px, 10vw, 140px); margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); opacity: .5; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); }
.site-footer__giant i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--indigo), rgba(81, 59, 244, .1)); height: var(--h, 50%); }

/* Opaque surface on ink so decorative grids/auroras don't show through card text */
:where(.section--ink) :where(.card, .bento__card, .testi):not(.theme-ink) { background: linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .025)), #10121e; }

/* ---------- 34. Reveal system (initial states only when JS runs) ---------- */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--delay, 0s); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(.96); }
html.js [data-reveal="left"] { transform: translate3d(-24px, 0, 0); }
html.js [data-reveal="right"] { transform: translate3d(24px, 0, 0); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal-stagger] > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
/* Split headline: words rise from a mask */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.split-i { display: inline-block; }
html.js [data-split].is-split .split-i { transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--delay, 0s)); }
html.js [data-split].is-split.is-in .split-i { transform: none; }

/* ---------- 35. Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0 !important; }
.hide-sm { display: none; } @media (min-width: 720px) { .hide-sm { display: revert; } }
@media (min-width: 720px) { .only-sm { display: none !important; } }
.relative { position: relative; }
.no-wrap { white-space: nowrap; }
.visually-muted { opacity: .6; }

/* ---------- 36. Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 37. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-reveal-stagger] > *, html.js [data-split].is-split .split-i { opacity: 1 !important; transform: none !important; }
  .bg-aurora::before, .bg-aurora::after, .marquee__track, .testi-col__track, .float-chip { animation: none !important; }
  .caret::after { animation: none; }
}

/* ---------- 38. Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .cmdk, .toast-region, .bg-aurora, .bg-grid, .bg-noise { display: none !important; }
  body { background: #fff; }
  html.js [data-reveal], html.js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}
