/* ==========================================================================
   EmRuth Innovations — design system (v2)
   Deep navy bands + electric blue from the EmRuth "E" mark, warm off-white
   and white sections, a black footer. Calm grotesk type (Geist), squared
   buttons, serif italic only for the 3× / 5× / 10× multipliers.
   ========================================================================== */

:root {
  /* Navy scale: deep, saturated bands */
  --ink: #0a1647;
  --ink-2: #0f1d57;
  --ink-3: #162768;
  --ink-4: #20347c;
  --navy: #1b2d7a;
  --black: #06070c;

  /* Electric blue */
  --blue: #2f5bff;
  --blue-2: #4a70ff;
  --blue-3: #3d6dff;
  --blue-deep: #1f45e0;
  --ice: #a8c0ff;
  --ice-2: #d6e1ff;
  --blue-soft: rgba(47, 91, 255, 0.1);
  --blue-tint: #eef2ff;

  /* Warm neutrals */
  --paper: #f4f1ec;
  --paper-2: #ebe6df;
  --paper-3: #ddd6cc;
  --white: #ffffff;

  /* Text */
  --text: #0b1030;
  --muted: #565c72;
  --muted-d: #b6bfdf;
  --faint-d: #8592c2;

  /* Lines */
  --line: rgba(11, 16, 48, 0.1);
  --line-2: rgba(11, 16, 48, 0.18);
  --line-d: rgba(182, 196, 255, 0.14);
  --line-d2: rgba(182, 196, 255, 0.26);

  --green: #22c26e;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --radius-xl: 20px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-1: 0 1px 2px rgba(11, 16, 48, 0.06), 0 8px 24px rgba(11, 16, 48, 0.06);
  --shadow-2: 0 30px 80px -24px rgba(4, 8, 30, 0.6);
  --shadow-card: 0 1px 0 rgba(11, 16, 48, 0.04), 0 24px 60px -28px rgba(11, 16, 48, 0.3);
  --shadow-blue: 0 10px 28px -10px rgba(47, 91, 255, 0.75);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
.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; }

/* ----- Layout ----- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }

.theme-dark {
  --bg: var(--ink);
  --fg: #fff; --fg-muted: var(--muted-d); --fg-faint: var(--faint-d);
  --border: var(--line-d); --border-2: var(--line-d2);
  --surface: rgba(255, 255, 255, 0.045); --surface-2: rgba(255, 255, 255, 0.08);
  --accent-text: var(--ice);
  background: var(--bg); color: var(--fg);
}
.theme-light {
  --bg: var(--paper);
  --fg: var(--text); --fg-muted: var(--muted); --fg-faint: #858a9b;
  --border: var(--line); --border-2: var(--line-2);
  --surface: var(--white); --surface-2: var(--paper-2);
  --accent-text: var(--blue);
  background: var(--bg); color: var(--fg);
}
.theme-white {
  --bg: var(--white);
  --fg: var(--text); --fg-muted: var(--muted); --fg-faint: #858a9b;
  --border: var(--line); --border-2: var(--line-2);
  --surface: var(--paper); --surface-2: var(--paper-2);
  --accent-text: var(--blue);
  background: var(--bg); color: var(--fg);
}
.theme-blue {
  --bg: var(--blue);
  --fg: #fff; --fg-muted: rgba(255, 255, 255, 0.82); --fg-faint: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.24); --border-2: rgba(255, 255, 255, 0.4);
  --accent-text: #fff;
  background: var(--bg); color: var(--fg);
}

.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { max-width: none; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ----- Typography ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text);
}
.display {
  font-weight: 600;
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.045em;
}
.h2 {
  font-weight: 600;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  line-height: 1.08; letter-spacing: -0.038em; text-wrap: balance;
}
.h3 { font-weight: 600; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -0.022em; }
.h4 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--fg-muted); max-width: 52ch; letter-spacing: -0.008em; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent-text); }
.serif-i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--accent-text);
}
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.text-balance { text-wrap: balance; }

/* ----- Buttons ----- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px 0 22px; border-radius: var(--radius-s); border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background-color 0.25s, color 0.25s, box-shadow 0.3s, border-color 0.25s;
}
.btn-ico { position: relative; display: grid; place-items: center; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn-ico svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease-out); }
.btn-ico svg + svg { position: absolute; inset: 0; transform: translateX(-130%); }
.btn:hover .btn-ico svg:first-child { transform: translateX(130%); }
.btn:hover .btn-ico svg + svg { transform: translateX(0); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); box-shadow: var(--shadow-blue); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-2); padding: 0 22px; }
.btn-ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ice-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.btn-sm { --h: 40px; font-size: 0.92rem; padding: 0 14px 0 16px; }
.btn-lg { --h: 54px; font-size: 1rem; padding: 0 22px 0 26px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text, var(--blue)); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.ico-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--blue); }
.ico-tile svg { width: 20px; height: 20px; }

/* ----- Header ----- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform 0.5s var(--ease-out); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px -24px rgba(11, 16, 48, 0.35);
  opacity: 0; transition: opacity 0.3s;
}
.site-header.is-scrolled::before, .site-header.mega-open::before, .menu-open .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden::before { box-shadow: none; }
.header-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; transition: color 0.3s; }
.site-header.is-scrolled .header-bar, .site-header.mega-open .header-bar, .menu-open .site-header .header-bar { color: var(--text); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: inherit; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-mark path { transition: fill 0.3s; }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-weight: 700; font-size: 1.06rem; letter-spacing: 0.06em; }
.logo-word small { font-family: var(--font-sans); font-weight: 500; font-size: 0.55rem; letter-spacing: 0.34em; margin-top: 4px; opacity: 0.7; }
.site-header.is-scrolled .logo-mark path:first-child, .site-header.mega-open .logo-mark path:first-child, .menu-open .site-header .logo-mark path:first-child { fill: #1b2d7a; }
.site-header.is-scrolled .logo-mark path:last-child, .site-header.mega-open .logo-mark path:last-child, .menu-open .site-header .logo-mark path:last-child { fill: #3d6dff; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-s);
  font-size: 0.9375rem; font-weight: 500; color: inherit; opacity: 0.86; transition: opacity 0.2s, background-color 0.2s;
}
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav > a[aria-current="page"], .nav-trigger.is-current { opacity: 1; text-decoration: underline; text-decoration-color: var(--blue-3); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-phone { font-size: 0.9rem; font-weight: 500; padding: 8px 10px; opacity: 0.8; transition: opacity 0.2s; }
.header-phone:hover { opacity: 1; }

/* Services mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: #fff; color: var(--text); border-top: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(11, 16, 48, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s, transform 0.35s var(--ease-out), visibility 0.22s;
}
.site-header.mega-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; padding-block: 26px 30px; }
.mega-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 12px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.mega-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: var(--radius); transition: background-color 0.2s; }
.mega-card:hover, .mega-card:focus-visible { background: var(--paper); }
.mega-card b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.mega-card b svg { width: 13px; height: 13px; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.mega-card:hover b svg { opacity: 1; transform: none; }
.mega-card small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.45; margin-top: 2px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; align-self: center; padding: 12px; font-weight: 600; font-size: 0.92rem; color: var(--blue); }
.mega-all svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.mega-all:hover svg { transform: translateX(3px); }
.mega-side { display: grid; gap: 8px; align-content: start; }
.mega-feature { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--paper); transition: background-color 0.2s; }
.mega-feature:hover { background: var(--paper-2); }
.mega-feature b { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: -0.01em; }
.mega-feature b svg { width: 13px; height: 13px; color: var(--blue); }
.mega-feature small { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.mega-feature .x { font-family: var(--font-serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--blue); letter-spacing: -0.01em; margin-bottom: 4px; }
.mega-feature.dark { background: var(--ink); color: #fff; }
.mega-feature.dark:hover { background: var(--ink-2); }
.mega-feature.dark small { color: var(--muted-d); }
.mega-feature.dark .x { color: var(--ice); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid color-mix(in srgb, currentColor 28%, transparent); position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: #fff; color: var(--text); overflow-y: auto;
  padding: calc(var(--header-h) + 8px) var(--gutter) 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; transform: translateY(12px); transition: transform 0.5s var(--ease-out); }
.menu-open .mobile-menu nav { transform: none; }
.mobile-menu nav > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.mobile-menu nav > a svg { width: 16px; height: 16px; color: var(--muted); }
.mobile-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.mobile-sub a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.98rem; font-weight: 500; color: var(--muted); }
.mobile-sub .ico-tile { width: 30px; height: 30px; border-radius: 8px; }
.mobile-sub .ico-tile svg { width: 16px; height: 16px; }
.mobile-menu-foot { display: grid; gap: 14px; }
.mobile-menu-foot p { color: var(--muted); font-size: 0.95rem; }
body.menu-open { overflow: hidden; }

@media (max-width: 1020px) {
  .nav, .header-phone, .mega { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 520px) {
  .header-cta .btn { display: none; }
}

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(80% 70% at 85% 0%, rgba(47, 91, 255, 0.34), transparent 62%), radial-gradient(60% 60% at 0% 100%, rgba(61, 109, 255, 0.14), transparent 60%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(182, 196, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(182, 196, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 72%);
}
.glow {
  position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -26vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.42) 0%, rgba(27, 45, 122, 0.25) 38%, transparent 66%);
  filter: blur(20px); animation: float 22s var(--ease-io) infinite alternate;
}
.glow.two { width: 40vmax; height: 40vmax; left: -16vmax; right: auto; top: auto; bottom: -22vmax; background: radial-gradient(circle, rgba(61, 109, 255, 0.2), transparent 65%); animation-duration: 26s; }
.grain { display: none; }
@keyframes float { to { transform: translate(-5vmax, 4vmax) scale(1.06); } }

.hero-inner { position: relative; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; margin-bottom: 26px;
  border: 1px solid var(--line-d2); border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem; color: var(--muted-d);
}
.hero-kicker strong { color: #fff; font-weight: 600; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { margin-bottom: 22px; }
.hero-title .line, .display .line { display: block; overflow: hidden; padding: 0.04em 0 0.12em; margin: -0.04em 0 -0.12em; }
.line-inner { display: inline-block; }
.js .line-inner { transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded .line-inner { transform: none; }

.mult { display: inline-flex; vertical-align: baseline; height: 1.04em; font-size: 1.14em; overflow: hidden; padding-right: 0.1em; transition: width 0.8s var(--ease-out); }
.mult-track { display: flex; flex-direction: column; align-items: flex-start; transition: transform 0.9s var(--ease-out); }
.mult-track span { display: block; height: 1.04em; line-height: 1.04; white-space: nowrap; }
.mult.serif-i { color: var(--ice); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero .display { font-size: clamp(2.9rem, 5.6vw, 5.1rem); }
.hero .lead { max-width: 46ch; margin-bottom: 30px; color: #c6cff0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 0.9rem; color: var(--fg-muted); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* Email quick-book (hero + final CTA) */
.email-cta { display: flex; gap: 6px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 24px 60px -24px rgba(2, 6, 30, 0.6); transition: box-shadow 0.25s; }
.email-cta input { flex: 1; min-width: 0; height: 50px; border: 0; outline: none; padding: 0 14px; font-size: 1rem; color: var(--text); background: transparent; }
.email-cta input::placeholder { color: #8a90a6; }
.email-cta .btn { flex: none; }
.email-cta:focus-within { box-shadow: 0 0 0 3px rgba(168, 192, 255, 0.55), 0 24px 60px -24px rgba(2, 6, 30, 0.6); }
.email-cta.has-error { box-shadow: 0 0 0 3px #ffb020, 0 24px 60px -24px rgba(2, 6, 30, 0.6); }
.hero-form { max-width: 540px; }
.form-msg { margin-top: 10px; font-size: 0.86rem; color: #ffd27a; }
@media (max-width: 560px) {
  .email-cta { flex-direction: column; }
  .email-cta input { flex: none; height: 48px; }
  .email-cta .btn { width: 100%; }
}

.js .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-loaded .fade-up { opacity: 1; transform: none; }

/* Hero product window */
.hero-visual { position: relative; padding: 30px 0 46px 30px; }
.app-window { position: relative; border-radius: 14px; background: #fff; color: var(--text); overflow: hidden; box-shadow: 0 60px 120px -40px rgba(2, 6, 30, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.app-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2ded7; }
.app-bar span { margin-left: 10px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.app-side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfaf8; }
.app-side span { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.app-side span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--paper-3); }
.app-side span.on { background: var(--blue-tint); color: var(--blue); font-weight: 600; }
.app-side span.on::before { background: var(--blue); }
.app-main { padding: 18px 20px 20px; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-top .label { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.chip-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.chip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid line { stroke: rgba(11, 16, 48, 0.08); stroke-dasharray: 2 4; }
.chart-svg .curve { fill: none; stroke: url(#curveGrad); stroke-width: 3; stroke-linecap: round; }
.js .chart-svg .curve { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2.2s var(--ease-out) 0.6s; }
.is-loaded .chart-svg .curve { stroke-dashoffset: 0; }
.chart-svg .area { opacity: 0; transition: opacity 1.4s ease 1.4s; }
.is-loaded .chart-svg .area { opacity: 1; }
.chart-svg .pt circle { fill: #fff; stroke: #c3ccef; stroke-width: 2; transition: fill 0.4s, stroke 0.4s, r 0.4s var(--ease-out); }
.chart-svg .pt text { font-family: var(--font-mono); font-size: 12px; fill: #8a90a6; transition: fill 0.4s; }
.chart-svg .pt.is-active circle { fill: var(--blue); stroke: #fff; r: 7; }
.chart-svg .pt.is-active text { fill: var(--text); font-weight: 600; }
.chart-svg .pt .halo { fill: var(--blue); opacity: 0; transition: opacity 0.4s; }
.chart-svg .pt.is-active .halo { opacity: 0.22; animation: halo 2s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.4; } 100% { transform: scale(2.2); opacity: 0; } }
.chart-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; color: #9298ad; margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

.levers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lever { padding: 10px; border-radius: 8px; background: var(--paper); }
.lever span { display: block; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lever b { display: block; font-size: 1.05rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lever-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.lever-note b { color: var(--blue); font-weight: 600; }

.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 10px; background: #fff; color: var(--text); box-shadow: 0 22px 44px -18px rgba(2, 6, 30, 0.65); line-height: 1.3; }
.float-card b { display: block; font-weight: 600; font-size: 0.86rem; letter-spacing: -0.01em; }
.float-card small { display: block; color: var(--muted); font-size: 0.76rem; }
.fc-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fc-ico svg { width: 16px; height: 16px; }
.fc-ico.ok { background: #e2f6eb; color: #148a4b; }
.fc-ico.cal { background: var(--blue-tint); color: var(--blue); }
.fc-1 { left: 0; bottom: 8px; }
.fc-2 { right: -12px; top: 0; }
.js .float-card { opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 1s); }
.is-loaded .float-card { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .display { font-size: clamp(2.7rem, 9vw, 5.1rem); }
  .hero-visual { max-width: 640px; }
}
@media (max-width: 640px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .hero-visual { padding: 26px 0 44px; }
  .fc-1 { bottom: -10px; left: 12px; }
  .fc-2 { right: 0; }
}
@media (max-width: 480px) {
  .levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- Services ticker ----- */
.ticker { background: #fff; color: var(--muted); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.ticker-label { flex: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.ticker-track i { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-size: 1.15rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker-label { display: none; } .ticker-inner { height: 64px; } }

/* ----- Scrub statement ----- */
.statement { font-weight: 500; font-size: clamp(1.7rem, 3.3vw, 2.8rem); line-height: 1.2; letter-spacing: -0.032em; max-width: 30ch; margin: 20px auto 0; text-align: center; text-wrap: balance; }
.statement .w { opacity: 0.16; transition: opacity 0.35s ease; }
.statement .w.on { opacity: 1; }
.statement .accent { color: var(--blue); }
.statement-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); }
.stat { display: grid; gap: 6px; align-content: start; padding: 28px 24px 0; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 3rem); letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--fg-muted); font-size: 0.95rem; max-width: 22ch; }
@media (max-width: 760px) {
  .statement-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 6px; }
}

/* ----- Product grid (what we do) ----- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px;
  border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.pcard:hover { border-color: var(--border-2); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.pcard .ico-tile { margin-bottom: 10px; }
.pcard-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.pcard h3 { display: flex; align-items: center; gap: 8px; }
.pcard h3 svg { width: 16px; height: 16px; flex: none; color: var(--accent-text); transition: transform 0.35s var(--ease-out); }
.pcard:hover h3 svg { transform: translateX(4px); }
.pcard p { color: var(--fg-muted); font-size: 0.98rem; line-height: 1.55; }
.pcard-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.pcard-list li { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--text); }
.pcard.is-accent { background: var(--ink); color: #fff; border-color: var(--ink); --fg-muted: var(--muted-d); --fg-faint: var(--faint-d); --accent-text: var(--ice); }
.pcard.is-accent:hover { border-color: var(--ink-4); }
.pcard .x-row { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--ice); letter-spacing: -0.02em; margin-bottom: 8px; }
.pcard-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--accent-text); }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

/* Wide banner card */
.banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 16px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.banner-copy { padding: clamp(28px, 4vw, 52px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.banner-copy .h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.banner-copy p { color: var(--fg-muted); max-width: 48ch; }
.banner-copy .cta-row { margin-top: 6px; }
.banner-ill { position: relative; min-height: 320px; margin: 10px; border-radius: calc(var(--radius-l) - 4px); background: var(--blue-tint); overflow: hidden; }
@media (max-width: 860px) { .banner { grid-template-columns: minmax(0, 1fr); } .banner-ill { min-height: 260px; } }

/* Alternating feature rows */
.frows { display: grid; gap: clamp(64px, 8vw, 120px); }
.frow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.frow.flip .frow-copy { order: 2; }
.frow-copy { display: grid; gap: 16px; justify-items: start; }
.frow-copy p { color: var(--fg-muted); max-width: 46ch; }
.frow-copy .check-list { margin: 4px 0 6px; }
.frow-title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.frow-visual { position: relative; height: clamp(320px, 34vw, 440px); border-radius: var(--radius-xl); background: var(--paper); overflow: hidden; }
.frow-visual .ill-doc { top: calc(50% - 125px); }
.frow-visual .ill-checks { right: 36px; bottom: 36px; }
.frow-visual .ill-web { inset: 44px 44px 0; }
.frow-visual .ill-web .pg { padding: 22px; gap: 12px; }
.frow-visual .ill-web .h { height: 18px; }
.frow-visual .ill-web .cta { height: 22px; }
.frow-visual .ill-web .cols { gap: 10px; margin-top: 10px; }
.frow-visual .ill-web .cols .blk { height: clamp(80px, 9vw, 130px); }
.frow-visual .ill-ads { inset: 40px; }
.frow-visual .ill-ads .bars { height: clamp(150px, 17vw, 240px); }
@media (max-width: 900px) {
  .frow { grid-template-columns: minmax(0, 1fr); }
  .frow.flip .frow-copy { order: 0; }
}

/* Illustrations (CSS only) */
.ill-doc { position: absolute; left: 50%; top: 26px; width: 210px; height: 250px; margin-left: -150px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); padding: 20px; transform: rotate(-4deg); }
.ill-doc .t { font-weight: 700; font-size: 0.8rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.ill-doc .s { font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted); margin-bottom: 14px; }
.ill-doc .ln { height: 6px; border-radius: 3px; background: var(--paper-3); margin-bottom: 8px; }
.ill-doc .ln.s1 { width: 80%; } .ill-doc .ln.s2 { width: 62%; } .ill-doc .ln.s3 { width: 90%; }
.stamp {
  position: absolute; right: -36px; top: 92px; width: 108px; height: 108px; border-radius: 50%;
  border: 3px solid var(--blue); color: var(--blue); display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; line-height: 1; transform: rotate(14deg);
  background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--blue);
}
.stamp small { display: block; font-size: 0.5rem; letter-spacing: 0.2em; font-weight: 600; margin-top: 4px; }
.js .reveal .stamp, .js .stamp.reveal-self { opacity: 0; transform: rotate(14deg) scale(2.2); transition: opacity 0.25s ease 0.7s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.7s; }
.js .is-in .stamp { opacity: 1; transform: rotate(14deg) scale(1); }
.ill-checks { position: absolute; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.ill-checks li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; background: #fff; padding: 7px 12px 7px 8px; border-radius: 999px; box-shadow: var(--shadow-1); }
.ill-checks li i { width: 18px; height: 18px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.ill-checks li i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.js .reveal .ill-checks li { opacity: 0; transform: translateX(14px); transition: all 0.6s var(--ease-out); }
.js .is-in .ill-checks li { opacity: 1; transform: none; }
.js .is-in .ill-checks li:nth-child(1) { transition-delay: 0.9s; }
.js .is-in .ill-checks li:nth-child(2) { transition-delay: 1.05s; }
.js .is-in .ill-checks li:nth-child(3) { transition-delay: 1.2s; }

.ill-brand { position: absolute; inset: 22px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.ill-brand > div { border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.ill-brand .b1 { background: var(--ink); }
.ill-brand .b1 img { width: 54px; }
.ill-brand .b2 { background: #fff; font-family: var(--font-serif); font-style: italic; font-size: 2.8rem; color: var(--ink); line-height: 1; }
.ill-brand .b3 { background: #fff; display: flex; gap: 6px; padding: 14px; }
.ill-brand .b3 i { flex: 1; height: 100%; border-radius: 8px; }
.ill-brand .b4 { background: var(--blue); color: #fff; font-weight: 750; font-size: 0.82rem; letter-spacing: 0.2em; }

.ill-web { position: absolute; inset: 22px 22px 0; background: #fff; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-1); overflow: hidden; }
.ill-web .bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ill-web .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); }
.ill-web .bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted); background: var(--paper); padding: 3px 10px; border-radius: 6px; }
.ill-web .pg { padding: 16px; display: grid; gap: 9px; }
.ill-web .blk { border-radius: 6px; background: var(--paper-2); transform-origin: left; }
.ill-web .h { height: 14px; width: 70%; background: var(--ink); }
.ill-web .p1 { height: 7px; width: 55%; }
.ill-web .cta { height: 18px; width: 34%; background: var(--blue); border-radius: 999px; }
.ill-web .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 6px; }
.ill-web .cols .blk { height: 54px; }
.js .reveal .ill-web .blk { transform: scaleX(0); transition: transform 0.8s var(--ease-out); }
.js .is-in .ill-web .blk { transform: none; }
.js .is-in .ill-web .blk:nth-child(2) { transition-delay: 0.15s; }
.js .is-in .ill-web .blk:nth-child(3) { transition-delay: 0.3s; }
.js .is-in .ill-web .cols .blk:nth-child(1) { transition-delay: 0.45s; }
.js .is-in .ill-web .cols .blk:nth-child(2) { transition-delay: 0.55s; }
.js .is-in .ill-web .cols .blk:nth-child(3) { transition-delay: 0.65s; }

.ill-ads { position: absolute; inset: 22px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.ill-ads > * { min-width: 0; }
.ill-ads .panel { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.ill-ads .plats { display: flex; gap: 5px; margin-bottom: auto; }
.ill-ads .plats span { font-size: 0.66rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); transition: all 0.4s; }
.ill-ads .plats span.on { background: var(--ink); color: #fff; }
.ill-ads .bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; margin-top: 12px; }
.ill-ads .bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--navy), var(--blue-3)); height: var(--h); transform-origin: bottom; }
.js .reveal .ill-ads .bars i { transform: scaleY(0.05); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 200ms); }
.js .is-in .ill-ads .bars i { transform: none; }
.ill-ads .kpi { display: grid; gap: 10px; }
.ill-ads .kpi .panel { gap: 2px; justify-content: center; }
.ill-ads .kpi small { font-size: 0.68rem; color: var(--muted); }
.ill-ads .kpi b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 6px; }
.ill-ads .kpi b em { font-style: normal; font-size: 0.66rem; font-weight: 600; color: #148a4c; background: rgba(47, 209, 124, 0.16); padding: 2px 6px; border-radius: 999px; }
.ill-ads .spark { width: 100%; height: 34px; }
.ill-ads .spark path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }

.ill-scale { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 34px); padding: 30px 30px 0; }
.ill-scale .col { display: flex; flex-direction: column; align-items: center; gap: 12px; width: clamp(64px, 9vw, 110px); }
.ill-scale .col b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); color: var(--ice); line-height: 1; }
.ill-scale .col i { width: 100%; border-radius: 14px 14px 0 0; background: linear-gradient(to top, rgba(61, 109, 255, 0.15), rgba(61, 109, 255, 0.85)); height: var(--h); transform-origin: bottom; border: 1px solid rgba(168, 192, 255, 0.35); border-bottom: 0; }
.ill-scale .col.base i { background: rgba(168, 192, 255, 0.12); }
.ill-scale .col.base b { color: var(--muted-d); }
.js .reveal .ill-scale .col i { transform: scaleY(0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 140ms + 200ms); }
.js .is-in .ill-scale .col i { transform: none; }

/* ----- Programs ----- */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.program {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.program:hover { transform: translateY(-4px); border-color: var(--border-2); }
.program.featured {
  background: #fff; color: var(--text); border-color: #fff; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  --fg: var(--text); --fg-muted: var(--muted); --fg-faint: #858a9b; --border: var(--line); --border-2: var(--line-2); --accent-text: var(--blue); --surface-2: var(--paper);
}
.program-badge { position: absolute; top: 18px; right: 18px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; background: var(--blue); color: #fff; }
.program-x { font-family: var(--font-serif); font-style: italic; font-size: clamp(4rem, 6vw, 5.5rem); line-height: 0.8; color: var(--accent-text); letter-spacing: -0.03em; }
.program h3 { margin-top: 2px; }
.program .fit { color: var(--fg-muted); font-size: 0.98rem; margin-top: 4px; }
.program-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.program-meta span { font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--fg-muted); }
.check-list { display: grid; gap: 11px; font-size: 0.96rem; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(168, 192, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23a8c0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.theme-light .check-list li::before, .theme-white .check-list li::before, .program.featured .check-list li::before { background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f5bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.program .btn { margin-top: auto; }
.program-foot { padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--fg-muted); font-size: 0.9rem; }
.fine-print { margin-top: 28px; font-size: 0.85rem; color: var(--fg-faint); max-width: 80ch; }
@media (max-width: 960px) { .programs { grid-template-columns: minmax(0, 1fr); } }

/* ----- Calculator ----- */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.calc > * { min-width: 0; }
.calc-controls { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-content: start; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; }
.field-label output, .field-label .val { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); font-weight: 500; }
.money-input { display: flex; align-items: center; height: 64px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--paper); padding: 0 18px; transition: border-color 0.2s, box-shadow 0.2s; }
.money-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.money-input span { font-size: 1.6rem; font-weight: 600; color: var(--fg-muted); margin-right: 4px; }
.money-input input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.money-input em { font-style: normal; color: var(--fg-muted); font-size: 0.95rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin-top: 18px; background: linear-gradient(to right, var(--blue) var(--p, 30%), var(--paper-3) var(--p, 30%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 4px 12px rgba(47, 91, 255, 0.35); cursor: grab; transition: transform 0.2s; }
.range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--border); position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { position: relative; z-index: 1; display: grid; place-items: center; height: 48px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--fg-muted); transition: color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.segmented.big label { height: 64px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 2rem; }
.segmented input:checked + label { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -6px rgba(6, 10, 28, 0.5); }
.segmented.big input:checked + label { background: var(--blue); color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.calc-result { position: relative; overflow: hidden; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-l); background: var(--ink); color: var(--paper); display: flex; flex-direction: column; gap: 22px; isolation: isolate; }
.calc-result::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 91, 255, 0.45), transparent 65%); z-index: -1; }
.calc-result .eyebrow { color: var(--muted-d); }
.calc-big { font-weight: 700; font-stretch: 78%; font-size: clamp(3.2rem, 6.4vw, 5.6rem); letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.calc-big small { font-size: 0.3em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted-d); font-stretch: 100%; margin-left: 6px; }
.calc-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calc-sub div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-d); background: rgba(17, 26, 64, 0.6); }
.calc-sub span { display: block; font-size: 0.8rem; color: var(--muted-d); }
.calc-sub span i { font-style: normal; }
.calc-sub b { font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-chart { width: 100%; height: 130px; }
.calc-chart path.c { fill: none; stroke: var(--blue-3); stroke-width: 3; stroke-linecap: round; transition: d 0.7s var(--ease-out); }
.calc-chart path.a { fill: url(#calcArea); transition: d 0.7s var(--ease-out); }
.calc-levers h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.calc-levers h4 em { font-style: normal; color: var(--ice); }
.calc-levers .levers { margin-top: 0; }
.calc-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.calc-cta p { font-size: 0.78rem; color: var(--faint-d); max-width: 34ch; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ----- Process ----- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 24px; }
.steps { position: relative; display: grid; gap: 0; }
.steps::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: var(--border-2); }
.steps-progress { position: absolute; left: 27px; top: 8px; width: 1px; height: var(--prog, 0%); max-height: calc(100% - 16px); background: linear-gradient(to bottom, var(--blue-3), var(--ice)); box-shadow: 0 0 12px var(--blue-3); transition: height 0.15s linear; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding-bottom: clamp(40px, 5vw, 64px); }
.step:last-child { padding-bottom: 0; }
.step-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--border-2); font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); transition: all 0.5s var(--ease-out); }
.step.is-active .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(47, 91, 255, 0.18); }
.step h3 { margin: 12px 0 10px; }
.step p { color: var(--fg-muted); max-width: 46ch; }
.step .when { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process-sticky { position: static; } }

/* ----- Compare table ----- */
.compare { border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); align-items: center; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > * { padding: 18px 22px; }
.compare-row.head > * { font-weight: 600; font-size: 0.95rem; padding-block: 22px; }
.compare-row .feat { font-weight: 500; }
.compare-row .c { display: flex; justify-content: center; align-items: center; text-align: center; font-size: 0.85rem; color: var(--fg-muted); }
.compare-row .c.us { background: var(--blue-soft); color: var(--fg); font-weight: 600; }
.compare-row.head .c.us { background: var(--blue); color: #fff; }
.ico-yes, .ico-no, .ico-mid { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.ico-yes { background: var(--blue); }
.ico-yes::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ico-no { background: var(--paper-2); }
.ico-no::after { content: ""; width: 10px; height: 2px; background: #a2a6b4; border-radius: 2px; }
.ico-mid { border: 2px dashed #b9bdc9; }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1.3fr repeat(3, 0.8fr); }
  .compare-row > * { padding: 14px 10px; font-size: 0.85rem; }
  .compare-row.head > * { font-size: 0.78rem; }
}

/* ----- Testimonials ----- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.testimonial { padding: 30px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 24px; }
.testimonial blockquote { font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.015em; }
.testimonial .result { font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--blue); }
.testimonial figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.testimonial figcaption b { display: block; }
.testimonial figcaption span { color: var(--fg-muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }

/* ----- FAQ ----- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover .pm { border-color: var(--fg); }
.faq .answer { overflow: hidden; }
.faq .answer > div { padding: 0 60px 28px 0; color: var(--fg-muted); max-width: 64ch; }
.faq .answer p + p { margin-top: 12px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } }

/* ----- Final CTA ----- */
.final-cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(72px, 9vw, 128px); }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 130% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 60%), radial-gradient(55% 100% at 0% 100%, rgba(10, 22, 71, 0.38), transparent 70%); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.final-title { font-size: clamp(2.4rem, 4.8vw, 4.1rem); margin: 14px 0 16px; }
.final-cta .lead { color: rgba(255, 255, 255, 0.86); }
.final-action { display: grid; gap: 18px; }
.final-cta .assurances { margin-top: 0; color: rgba(255, 255, 255, 0.86); }
.final-cta .assurances svg { color: #fff; }
.final-cta .form-msg { margin-top: -6px; color: #fff3c4; }
.final-call { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }
.final-call a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .final-grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Footer ----- */
.site-footer { background: var(--black); color: #e9ecf5; padding-top: clamp(64px, 8vw, 104px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; color: #9aa1b8; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7f879f; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(233, 236, 245, 0.84); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .hours { color: #9aa1b8; font-size: 0.88rem; line-height: 1.5; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials svg { width: 17px; height: 17px; }
.footer-word { display: flex; align-items: flex-end; justify-content: center; font-weight: 700; letter-spacing: -0.045em; line-height: 0.78; font-size: clamp(4.2rem, 19vw, 19rem); color: transparent; user-select: none; margin-bottom: -0.1em; white-space: nowrap; }
.footer-word span { background: linear-gradient(180deg, rgba(61, 109, 255, 0.62), rgba(61, 109, 255, 0.08) 80%, transparent); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #7d849c; font-size: 0.85rem; position: relative; z-index: 1; background: var(--black); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* ----- Sticky mobile CTA ----- */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: none; transform: translateY(140%); transition: transform 0.6s var(--ease-out); }
.mobile-cta .btn { width: 100%; justify-content: space-between; box-shadow: 0 18px 40px -12px rgba(6, 10, 28, 0.7); }
.mobile-cta.is-visible { transform: none; }
@media (max-width: 760px) { .mobile-cta { display: block; } }

/* ----- Reveal ----- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(64px, 8vw, 110px); }
.page-hero .display { font-size: clamp(3rem, 10vw, 8.5rem); margin: 22px 0 30px; }
.page-hero .lead { max-width: 52ch; }

.jump-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(244, 242, 236, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top 0.5s var(--ease-out); }
.site-header.is-hidden ~ main .jump-nav { top: 0; }
.jump-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.jump-nav .container::-webkit-scrollbar { display: none; }
.jump-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--muted); border: 1px solid transparent; transition: all 0.25s; }
.jump-nav a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-faint); }
.jump-nav a:hover { color: var(--text); border-color: var(--line-2); }
.jump-nav a.is-active { background: var(--ink); color: #fff; }
.jump-nav a.is-active span { color: var(--ice); }

.stage-section { border-top: 1px solid var(--border); }
.stage-section:first-of-type { border-top: 0; }
.stage-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.stage-intro { position: sticky; top: calc(var(--header-h) + 90px); display: grid; gap: 20px; }
.stage-intro .big-num { font-family: var(--font-serif); font-style: italic; font-size: clamp(4rem, 8vw, 7rem); line-height: 0.8; color: var(--accent-text); }
.stage-intro .lead { max-width: 38ch; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service {
  position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  display: grid; gap: 8px; align-content: start; transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.service:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.service h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; padding-right: 28px; }
.service p { font-size: 0.92rem; color: var(--fg-muted); line-height: 1.5; }
.service .ico { position: absolute; top: 20px; right: 18px; width: 22px; height: 22px; color: var(--accent-text); opacity: 0.85; }
.service.signature { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink-4); --fg-muted: var(--muted-d); }
.service.signature h3 { font-size: 1.3rem; }
.service-note { margin-top: 18px; font-size: 0.85rem; color: var(--fg-faint); display: flex; gap: 10px; align-items: flex-start; }
.service-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.tag-legacy { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 960px) { .stage-layout { grid-template-columns: 1fr; } .stage-intro { position: static; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } .service.signature { grid-column: auto; } }

/* Lever explainer */
.lever-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(8px, 1.5vw, 18px); }
.lever-eq .term { display: grid; justify-items: center; gap: 10px; padding: clamp(18px, 2.5vw, 28px) clamp(16px, 2.5vw, 30px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); min-width: 150px; }
.lever-eq .term b { font-weight: 700; font-stretch: 80%; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lever-eq .term span { font-size: 0.9rem; color: var(--fg-muted); }
.lever-eq .op { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: var(--fg-faint); }
.lever-eq .term.total { background: var(--blue); border-color: var(--blue); color: #fff; }
.lever-eq .term.total span { color: rgba(255, 255, 255, 0.8); }
.lever-eq .term.total b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%; }
.lever-tabs { display: flex; justify-content: center; margin-bottom: 36px; }
.lever-tabs .segmented { width: min(420px, 100%); }

/* Program detail table */
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.tier-table th, .tier-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.tier-table thead th { font-weight: 600; background: var(--surface-2); }
.tier-table thead th .x { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.8rem; color: var(--accent-text); display: block; line-height: 1; }
.tier-table td:not(:first-child), .tier-table th:not(:first-child) { text-align: center; width: 18%; }
.tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table .group td { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); background: color-mix(in srgb, var(--surface-2) 50%, transparent); padding-block: 10px; }
.tier-table .ico-yes, .tier-table .ico-no { margin: 0 auto; width: 22px; height: 22px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-l); }
.table-scroll .tier-table { min-width: 640px; }

/* ==========================================================================
   Booking page
   ========================================================================== */
.book-page { background: var(--ink); color: var(--paper); min-height: 100svh; }
.book-header { position: relative; z-index: 5; }
.book-header .header-bar { justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--muted-d); font-weight: 500; }
.back-link:hover { color: #fff; }
.back-link svg { width: 15px; height: 15px; transform: rotate(180deg); }
.book-main { position: relative; isolation: isolate; padding: 20px 0 80px; }
.book-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "intro card" "more card"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 28px; align-items: start; }
.book-intro { grid-area: intro; display: grid; gap: 28px; padding-top: 24px; }
.book-card { grid-area: card; }
.book-more { grid-area: more; display: grid; gap: 28px; position: sticky; top: 24px; }
.book-intro h1 { font-weight: 700; font-stretch: 80%; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 0.92; letter-spacing: -0.045em; }
.book-intro h1 .serif-i { color: var(--ice); }
.call-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.call-meta > span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-d2); color: var(--paper); background: rgba(17, 26, 64, 0.5); }
.call-meta svg { width: 15px; height: 15px; color: var(--ice); }
.expect { display: grid; gap: 18px; }
.expect h2 { font-size: 0.78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-d); }
.expect li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.expect li .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-d2); font-family: var(--font-mono); font-size: 0.8rem; color: var(--ice); }
.expect li b { display: block; font-weight: 600; margin-bottom: 2px; }
.expect li p { color: var(--muted-d); font-size: 0.94rem; }
.host { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-d); background: rgba(17, 26, 64, 0.45); }
.host .avatar { width: 48px; height: 48px; background: var(--blue); }
.host b { display: block; font-weight: 600; }
.host span { color: var(--muted-d); font-size: 0.9rem; }

.book-card { position: relative; border-radius: var(--radius-xl); background: var(--paper); color: var(--text); padding: clamp(22px, 3vw, 36px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7); --fg: var(--text); --fg-muted: var(--muted); --border: var(--line); --border-2: var(--line-2); }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stepper li .d { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.75rem; border: 1px solid var(--line-2); transition: all 0.4s var(--ease-out); }
.stepper li.is-current { color: var(--text); }
.stepper li.is-current .d { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done .d { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .sep { flex: 1; height: 1px; background: var(--line-2); min-width: 16px; }
@media (max-width: 520px) { .stepper li .t { display: none; } }

.book-step { display: none; }
.book-step.is-active { display: block; animation: stepIn 0.6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.book-step h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
.book-step > p.sub { color: var(--muted); margin-bottom: 28px; }
.q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.q legend, .q > label.ql { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 12px; padding: 0; }
.q legend small, .q > label.ql small { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip label { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 0.93rem; font-weight: 500; transition: all 0.25s var(--ease-out); user-select: none; }
.chip label::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #b9bdc9; transition: all 0.25s; flex: none; }
.chip input[type="radio"] + label::before { border-radius: 50%; }
.chip label:hover { border-color: var(--text); }
.chip input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + label::before { border-color: var(--blue-2); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip input[type="radio"]:checked + label::before { background: var(--blue); box-shadow: inset 0 0 0 3px var(--ink); }
.chip input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inputs .full { grid-column: span 2; }
.input { display: grid; gap: 6px; }
.input label { font-size: 0.85rem; font-weight: 600; }
.input input, .input textarea { height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-size: 1rem; }
.input textarea { height: 92px; padding: 14px 16px; resize: vertical; }
.input input:focus, .input textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.input.has-error input { border-color: #d9363e; box-shadow: 0 0 0 4px rgba(217, 54, 62, 0.12); }
.q.has-error legend { color: #c42d35; }
.err { display: none; font-size: 0.82rem; color: #c42d35; margin-top: 8px; }
.has-error .err { display: block; }
@media (max-width: 560px) { .inputs { grid-template-columns: 1fr; } .inputs .full { grid-column: auto; } }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.book-actions .skip { font-size: 0.9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.book-actions .skip:hover { color: var(--text); }
.privacy-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.privacy-note a { text-decoration: underline; }

.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-head button { font-size: 0.9rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.cal-head button:hover { color: var(--text); }
.cal-head button svg { width: 14px; height: 14px; transform: rotate(180deg); }
.cal-frame { position: relative; min-height: 700px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cal-frame iframe { width: 100%; height: 100%; min-height: 700px; border: 0; display: block; }
.cal-frame .calendly-inline-widget { min-width: 280px; height: 100%; }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-size: 0.92rem; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--paper-3); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
.prefill-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.prefill-note svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* Preview scheduler (local only, when no booking link is set) */
.preview-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff4d6; color: #6b4e00; font-size: 0.86rem; margin-bottom: 16px; border: 1px solid #f2dc9a; }
.preview-banner code { font-family: var(--font-mono); font-size: 0.8rem; background: rgba(0, 0, 0, 0.06); padding: 1px 5px; border-radius: 4px; }
.mock-sched { padding: 20px; display: grid; gap: 20px; }
.mock-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.mock-days button { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; gap: 2px; text-align: center; transition: all 0.2s; }
.mock-days button small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-days button b { font-size: 1.2rem; }
.mock-days button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock-days button[aria-pressed="true"] small { color: var(--ice); }
.mock-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.mock-slots button { height: 48px; border-radius: 10px; border: 1px solid var(--blue); color: var(--blue); font-weight: 600; transition: all 0.2s; }
.mock-slots button:hover, .mock-slots button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mock-confirm { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.mock-confirm p { font-weight: 600; }
.not-connected { padding: 40px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* Thanks page */
.thanks-hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.check-burst { width: 92px; height: 92px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 30px; box-shadow: 0 0 0 12px rgba(47, 91, 255, 0.16), 0 0 0 26px rgba(47, 91, 255, 0.07); animation: pop 0.8s cubic-bezier(0.3, 1.6, 0.5, 1); }
.check-burst svg { width: 40px; height: 40px; color: #fff; }
.check-burst path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s var(--ease-out) 0.4s forwards; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.next-steps { display: grid; gap: 12px; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: var(--radius); background: rgba(17, 26, 64, 0.55); border: 1px solid var(--line-d); }
.next-steps li .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 0.85rem; }
.next-steps li b { display: block; font-weight: 600; margin-bottom: 4px; }
.next-steps li p { color: var(--muted-d); font-size: 0.95rem; }
.booked-when { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-d2); background: rgba(17, 26, 64, 0.5); font-weight: 600; }
.booked-when svg { width: 16px; height: 16px; color: var(--ice); }
@media (max-width: 900px) {
  .book-layout, .thanks-grid { grid-template-columns: minmax(0, 1fr); }
  .book-layout { grid-template-areas: "intro" "card" "more"; grid-template-rows: auto; row-gap: 32px; }
  .book-intro { padding-top: 0; gap: 20px; }
  .book-more { position: static; }
}

/* Legal / prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--fg-muted); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 12px; }
.prose a { color: var(--blue); text-decoration: underline; }

/* ==========================================================================
   v2 refinements for shared components and inner pages
   ========================================================================== */
.ill-scale.light .col b { color: var(--blue); }
.ill-scale.light .col i { background: linear-gradient(to top, rgba(47, 91, 255, 0.18), var(--blue)); border-color: rgba(47, 91, 255, 0.35); }
.ill-scale.light .col.base i { background: rgba(47, 91, 255, 0.12); border-color: transparent; }
.ill-scale.light .col.base b { color: var(--muted); }

.money-input { border-radius: var(--radius); }
.money-input input { font-weight: 600; }
.segmented { border-radius: var(--radius); }
.segmented label { border-radius: 7px; }
.calc-result { border-radius: var(--radius-l); }
.calc-big { font-weight: 600; letter-spacing: -0.05em; }
.calc-sub div { border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); }
.calc-levers .lever { background: rgba(255, 255, 255, 0.06); }
.calc-levers .lever span { color: var(--muted-d); }
.calc-levers .lever b { color: #fff; }

.step-dot { background: var(--bg, var(--ink)); }
.theme-white .step-dot, .theme-light .step-dot { color: var(--muted); }

.faq summary { font-weight: 600; letter-spacing: -0.018em; }

.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .display { font-size: clamp(2.8rem, 6.4vw, 5.5rem); margin: 18px 0 24px; }
.jump-nav { background: rgba(255, 255, 255, 0.92); }
.jump-nav a { border-radius: var(--radius-s); }
.service { border-radius: var(--radius); }
.service h3 { font-weight: 600; }
.lever-eq .term b { font-weight: 600; }

.book-intro h1 { font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.045em; }
.call-meta > span { background: rgba(255, 255, 255, 0.06); }
.expect h2 { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.06em; }
.expect li .n { border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.host { background: rgba(255, 255, 255, 0.05); }
.book-card { border-radius: var(--radius-xl); }
.book-step h2 { font-weight: 600; }
.chip label { border-radius: 8px; }
.input input, .input textarea { border-radius: 8px; }
.next-steps li { background: rgba(255, 255, 255, 0.05); }
.next-steps li .n { border-radius: 8px; }
.booked-when { background: rgba(255, 255, 255, 0.06); }
.prose h2 { font-weight: 600; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .fade-up, .js .line-inner { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .statement .w { opacity: 1; }
}

.calc-chart path.c { vector-effect: non-scaling-stroke; }
