/* Design tokens — single source of truth is DESIGN.md (v2 direction: tracked
   grotesk headings, no italic serif; depth from hairlines, never shadow).
   Brand triad: deep ink, warm cream, one muted teal accent (max ~5% of a view).
   Self-hosted fonts (no Google CDN — GDPR). Custom properties inherit through
   shadow boundaries, so Web Components reference them directly. */

/* --- Fonts (self-hosted woff2 in /fonts) -------------------------------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
/* Fraunces is retired from chrome; kept for one editorial gesture (pull-quotes,
   the founder/manifesto drop-cap). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* ===== Brand triad ===== */
  --ink: #0E0E10;
  --cream: #F2EEE8;
  --teal: #2F7F7C;

  /* ===== Neutral ramp on ink (depth via hairlines, not shadow) ===== */
  --bg-0: #0E0E10;   /* page */
  --bg-1: #151517;   /* section flip / wells */
  --bg-2: #1B1B1E;   /* card / panel rest */
  --bg-3: #232327;   /* card hover / elevated */
  --bg-4: #2A2A2F;   /* popover, menu panel */
  --bg-5: #34343A;   /* topmost */
  /* legacy aliases (used across pages) */
  --ink-raised: var(--bg-1);
  --ink-card: var(--bg-2);

  /* ===== Warm light world ===== */
  --cream-deep: #E7E1D7;
  --ivory: #FBF8F2;
  --cream-bg-1: #E8E3DB;
  --cream-bg-2: #FFFFFF;

  /* ===== Text ramp ===== */
  --fg-1: #F3EFE9;   /* primary */
  --fg-2: #C7C4BE;   /* secondary — subheads, body on dark */
  --fg-3: #928F89;   /* tertiary workhorse — nav, labels, captions */
  --fg-4: #6B6964;   /* quaternary — decorative / large text only (passes 3:1) */
  /* legacy aliases */
  --on-ink: var(--fg-1);
  --on-ink-muted: var(--fg-3);
  --on-cream: #0E0E10;
  --on-cream-muted: #6C6963;

  /* ===== Accent (teal, hard-capped ~5%) ===== */
  --teal-bright: #3A9C98;
  --accent: var(--teal);
  --accent-hover: #3A9C98;
  --accent-weak: rgba(47, 127, 124, 0.15);
  --accent-text: #54B7B1;       /* teal as text on ink — lifted for contrast */
  --accent-on-cream: #246F6C;   /* teal as text on cream — deepened for contrast */
  --teal-on-dark: var(--accent-text);

  /* ===== Hairlines + surfaces (the depth mechanism) =====
     The raw dark-world values. Components use the CONTEXTUAL aliases
     (--line, --line-2, --surf-hover, --surface) which body sets and
     .section--cream flips; see app.css. */
  --hair-micro: rgba(243, 239, 233, 0.045);
  --hair: rgba(243, 239, 233, 0.09);
  --hair-strong: rgba(243, 239, 233, 0.15);
  --surface-hover: rgba(243, 239, 233, 0.05);
  --surface-active: rgba(243, 239, 233, 0.08);
  --scrim: rgba(14, 14, 16, 0.55);
  --cream-line: rgba(14, 14, 16, 0.10);
  --cream-line-strong: rgba(14, 14, 16, 0.16);
  --cream-surface-hover: rgba(14, 14, 16, 0.04);
  /* legacy aliases */
  --border-dark: var(--hair);
  --border-light: var(--cream-line-strong);

  /* ===== Status (inside pills only, never chrome) ===== */
  --status-ok: #2E9E5B;
  --status-attention: #C98A1E;
  --status-error: #D6453C;

  /* ===== Typography ===== */
  --font-sans: "Inter", "Inter Variable", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif; /* editorial only */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Display — tracked grotesk (sans), heavy + tight (no serif, no italic) */
  --display-xl: 600 clamp(2.55rem, 5.6vw, 4.4rem)/1.03 var(--font-sans);
  --display-lg: 600 clamp(2.05rem, 4.2vw, 3.3rem)/1.06 var(--font-sans);
  --display-md: 600 clamp(1.6rem, 3vw, 2.35rem)/1.1 var(--font-sans);

  --text-eyebrow: 0.75rem;   /* 12px, tracked uppercase */
  --text-xs: 0.8125rem;      /* 13px */
  --text-sm: 0.875rem;       /* 14px */
  --text-base: 1rem;         /* 16px */
  --text-md: 1.125rem;       /* 18px body-lg */
  --text-lg: 1.25rem;        /* 20px headline-sm */
  --text-xl: 1.55rem;        /* 25px headline-md */
  --text-2xl: 2rem;          /* 32px */
  --tracking-eyebrow: 0.12em;
  --tracking-tight: -0.02em;

  /* ===== Radius (tightened, Linear/Vercel ladder) ===== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --r-1: 4px; --r-2: 6px; --r-3: 8px; --r-4: 12px; --r-5: 18px; --r-pill: 9999px;

  /* ===== Spacing ===== */
  --section-y: clamp(96px, 12vw, 150px);
  --subrow-y: clamp(48px, 6vw, 88px);
  --section-y-mobile: 80px;
  --block: 32px;
  --gutter: 24px;
  --inset-card: 28px;
  --btn-x: 18px;
  --btn-y: 10px;
  --maxw: 1200px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* ===== Motion ===== */
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-default: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-enter: cubic-bezier(0.165, 0.84, 0.44, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;
  --focus-ring: 0 0 0 2px rgba(47, 127, 124, 0.5), 0 0 0 4px rgba(47, 127, 124, 0.2);
}

@media (max-width: 760px) {
  :root { --section-y: var(--section-y-mobile); }
}

/* Base layer. Single source of truth: DESIGN.md. Flat, editorial, calm.
   Chrome and page components live in site.css. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Contextual palette — these flip in .section--cream so every component
     that uses them re-themes automatically. */
  --fg: var(--fg-1);
  --fg-soft: var(--fg-2);
  --muted: var(--fg-3);
  --line: var(--hair);
  --line-2: var(--hair-strong);
  --surface: var(--bg-2);
  --surface-2: var(--bg-3);
  --surf-hover: var(--surface-hover);
  --accent-fg: var(--accent-text);
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.ilink { color: var(--teal-on-dark); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-on-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1400px; }
.narrow { width: 100%; max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* Type — tracked grotesk, no serif/italic in headings */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; margin: 0; letter-spacing: var(--tracking-tight); line-height: 1.12; }
.display-xl { font: var(--display-xl); letter-spacing: -0.022em; }
.display-lg { font: var(--display-lg); letter-spacing: -0.02em; }
.display-md { font: var(--display-md); letter-spacing: -0.015em; }
.em { color: var(--accent-fg); font-style: normal; }
.eyebrow { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--muted); margin: 0 0 var(--gutter); }
.kicker { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--accent-fg); margin: 0 0 12px; }
.lead { font-size: var(--text-md); color: var(--fg-soft); margin: 0; max-width: 60ch; line-height: 1.6; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: var(--text-sm); }

/* Eyebrow as a pill (badge) — used in new section patterns */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-weight: 600; font-size: var(--text-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-fg); background: var(--accent-weak); padding: 5px 12px; border-radius: var(--radius-pill); margin: 0; }
.pill svg { width: 13px; height: 13px; }
.measure { max-width: 62ch; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink-card); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 80; }
.skip-link:focus { left: 16px; }

/* Buttons — one shape, fill-not-geometry. Flat: no shadow. */
.btn {
  --btn-py: 10px; --btn-px: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: -0.01em; line-height: 1;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-2); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-default), border-color var(--dur-1) var(--ease-default), color var(--dur-1) var(--ease-default);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn__ic { display: inline-flex; width: 1.05em; height: 1.05em; transition: transform var(--dur-1) var(--ease-default); }
.btn__ic svg { width: 100%; height: 100%; }
.btn:hover .btn__ic { transform: translateX(3px); }
/* PRIMARY — the only saturated element */
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--primary:active { background: #2A726F; }
/* SECONDARY — hairline border, same shape/size */
.btn--secondary { background: transparent; color: var(--fg-soft); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--surf-hover); color: var(--fg); border-color: var(--fg-4); }
/* GHOST — text only */
.btn--ghost { background: transparent; color: var(--muted); --btn-px: 10px; }
.btn--ghost:hover { color: var(--fg); background: var(--surf-hover); }
/* PILL OUTLINE — legacy variant kept, restyled */
.btn--pill-outline { background: transparent; color: var(--fg-soft); border-color: var(--line-2); border-radius: var(--r-pill); }
.btn--pill-outline:hover { background: var(--surf-hover); color: var(--fg); border-color: var(--fg-4); }
/* sizes — height via padding so radius stays constant */
.btn--sm { --btn-py: 7px; --btn-px: 14px; font-size: var(--text-xs); }
.btn--lg { --btn-py: 13px; --btn-px: 24px; font-size: var(--text-base); }
/* On cream sections the primary inverts to ink fill (Vercel page-invert) */
.section--cream .btn--primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--cream .btn--primary:hover { background: #26262B; border-color: #26262B; }

/* Inline arrow link — the editorial alternative to a button */
.link-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-fg); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-1) var(--ease-default); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Sections + contextual palette */
.section { padding-block: var(--section-y); }
.section--mid { padding-block: calc(var(--section-y) * 0.8); }
.section--raised { background: var(--ink-raised); border-block: 1px solid var(--border-dark); }
.section--cream { background: var(--cream); color: var(--on-cream); --fg: var(--on-cream); --fg-soft: #44423E; --muted: var(--on-cream-muted); --line: var(--cream-line); --line-2: var(--cream-line-strong); --surface: var(--cream-bg-2); --surface-2: var(--ivory); --surf-hover: var(--cream-surface-hover); --accent-fg: var(--accent-on-cream); }
.section--band { border-block: 1px solid var(--border-dark); padding-block: calc(var(--section-y) * 0.66); }
.section--band .display-md { max-width: 24ch; margin-inline: auto; }
.section--legal { padding-block: calc(var(--section-y) * 0.7); }
.section__head { max-width: 62ch; margin-bottom: calc(var(--block) * 1.4); }
.section__head .display-lg { margin-bottom: var(--gutter); }

/* Marquee */
.marquee { border-block: 1px solid var(--border-dark); background: var(--ink-raised); overflow: hidden; padding-block: 18px; }
.marquee__viewport { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; color: var(--fg-2); }
.marquee__dot { color: var(--accent-text); padding-inline: 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Forms (shared) */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gutter); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg); }
.field input, .field textarea, .field select { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--border-light); padding: 10px 2px; border-radius: 0; }
.section--cream .field input, .section--cream .field textarea, .section--cream .field select { border-bottom-color: var(--border-light); }
body:not(.has-cream) .field input { border-bottom-color: var(--border-dark); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--muted); margin-top: 8px; }

/* Ticks */
.ticks { list-style: none; margin: var(--gutter) 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.ticks li svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 2px; }
.ticks--big li { color: var(--fg); font-size: var(--text-md); }

/* Prose */
.prose { max-width: 68ch; }
.prose p { color: var(--muted); margin: 0 0 1.1em; line-height: 1.7; }
.prose h2 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.015em; margin: 1.7em 0 0.5em; color: var(--fg); }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; margin: 1.4em 0 0.4em; color: var(--fg); }
.prose blockquote { margin: 1.5em 0; padding-left: var(--block); border-left: 2px solid var(--accent); font-family: var(--font-serif); font-style: normal; font-size: var(--text-lg); line-height: 1.45; color: var(--fg); }
.prose a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.prose .note { display: block; margin-top: 1.4em; }

/* --- Layout primitives (asymmetric splits, full-bleed, rails) --- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--even { grid-template-columns: 1fr 1fr; }
.split--flip > :first-child { order: 2; }
.bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.stack-sm { display: grid; gap: 14px; }
.stack-md { display: grid; gap: var(--gutter); }
.sticky-col { position: sticky; top: 96px; align-self: start; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--block); }
  .split--flip > :first-child { order: 0; }
  .sticky-col { position: static; }
}

/* --- Reveal on view (gated by .anim set in <head>) --- */
.anim .reveal:not(.reveal-words) { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 70ms); will-change: opacity, transform; }
.anim .reveal:not(.reveal-words).is-in { opacity: 1; transform: none; }
.anim .reveal-words .w-rev { display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(8px); }
.anim .reveal-words.is-in .w-rev { animation: wordIn var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--d, 0ms) + var(--i, 0) * 56ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* Shimmer sweep — one pass, then ENDS readable. The base colour is explicit
   (never `currentColor` while text-fill is transparent, which would leave the
   text invisible). With a repeating gradient whose ends are the base colour,
   no part of the text is ever uncovered → readable in any colour scheme. */
.anim [data-shimmer] { --shimmer-base: var(--fg-1); }
.anim [data-shimmer].is-in {
  background-image: linear-gradient(100deg, var(--shimmer-base) 0%, var(--shimmer-base) 40%, #ffffff 50%, var(--shimmer-base) 60%, var(--shimmer-base) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 1.6s var(--ease-out) 0.25s 1 forwards;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-words .w-rev { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track { animation: none !important; }
}

/* Chrome (mega-menu header, footer) + all page components. Loads after app.css. */

/* ============================== HEADER ============================== */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg-0) 86%, transparent); backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--hair); transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg-0) 95%, transparent); border-bottom-color: var(--hair-strong); }
.site-header__inner { display: flex; align-items: center; gap: var(--block); height: 64px; }
.brand { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--accent-text); transition: opacity var(--dur-1) var(--ease-out); }
.brand:hover { opacity: 0.82; }
.brand__mark { height: 19px; width: auto; display: block; }
.brand__r { font-size: 0.6rem; line-height: 1; margin-top: 1px; font-family: var(--font-sans); }
.footer__mark { height: 19px; width: auto; }

.mainnav { margin-inline: auto; align-self: stretch; }
.mainnav__list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.mainnav__item { position: static; display: flex; align-items: center; }
.mainnav__link { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; color: var(--fg-2); font-family: var(--font-sans); font-weight: 500; font-size: var(--text-sm); padding: 9px 12px; border-radius: var(--radius-sm); transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.mainnav__link:hover, .mainnav__item.is-active .mainnav__link { color: var(--fg-1); background: var(--surface-hover); }
.mainnav__caret { display: inline-flex; width: 12px; height: 12px; transition: transform var(--dur-1) var(--ease-out); opacity: 0.6; }
.mainnav__caret svg { width: 100%; height: 100%; }
.mainnav__item--mega:hover .mainnav__caret, .mainnav__item--mega:focus-within .mainnav__caret { transform: rotate(180deg); }

/* Mega-menu panel — full-width, flat (hairline depth, no shadow) */
.megamenu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-1); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-2) var(--ease-enter), transform var(--dur-2) var(--ease-enter), visibility 0s linear var(--dur-2); pointer-events: none; z-index: 50; }
/* The hover bridge — covers the dead zone between trigger and panel so the
   panel never closes while the cursor travels the gap. */
.megamenu::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.mainnav__item--mega:hover .megamenu, .mainnav__item--mega:focus-within .megamenu, .megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 50ms, 50ms, 0s; }
.megamenu__inner { display: flex; gap: 40px; padding-block: var(--block); align-items: stretch; }
.mm__col { flex: 1; min-width: 0; }
.mm__coltitle { font-family: var(--font-sans); font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 12px; padding-inline: 12px; }
.mm__leaves { display: grid; gap: 1px; }
.mm__leaf { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border-radius: var(--radius-sm); transition: background var(--dur-1) var(--ease-out); }
.mm__leaf:hover { background: var(--surface-hover); }
.mm__ic { display: inline-flex; width: 20px; height: 20px; color: var(--accent-text); flex: none; margin-top: 2px; }
.mm__ic svg { width: 100%; height: 100%; }
.mm__txt { display: flex; flex-direction: column; gap: 2px; }
.mm__label { color: var(--fg-1); font-size: var(--text-sm); font-weight: 500; }
.mm__desc { color: var(--fg-3); font-size: var(--text-xs); line-height: 1.4; }
/* Feature rail — imagery + headline, or a founder portrait */
.mm__feature { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: var(--gutter); background: var(--bg-2); border: 1px solid var(--hair); border-radius: var(--radius-md); transition: border-color var(--dur-1) var(--ease-out); }
.mm__feature:hover { border-color: var(--line-strong); }
.mm__fimg { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hair); }
.mm__feature--portrait .mm__fimg { aspect-ratio: 4 / 5; }
.mm__fimg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter var(--dur-2) var(--ease-out); }
.mm__feature:hover .mm__fimg img { filter: grayscale(0); }
.mm__feyebrow { font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.mm__ftitle { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; color: var(--fg-1); }
.mm__ftext { color: var(--fg-3); font-size: var(--text-sm); line-height: 1.5; }
.mm__frole { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-3); margin-top: -4px; }
.mm__farrow { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); margin-top: auto; }
.mm__farrow svg { width: 16px; height: 16px; }

.site-header__cta { display: flex; align-items: center; gap: 16px; }
.hd-link { color: var(--fg-3); font-size: var(--text-sm); font-weight: 500; }
.hd-link:hover { color: var(--fg-1); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: 1px solid var(--hair-strong); border-radius: var(--radius-sm); margin-left: auto; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; height: 1.5px; width: 18px; margin-inline: auto; background: var(--fg-1); transition: transform var(--dur-1) var(--ease-out); }

/* Mobile nav drawer */
.mobilenav { display: none; border-top: 1px solid var(--border-dark); background: var(--ink); max-height: calc(100vh - 72px); overflow-y: auto; }
.mobilenav__inner { padding: var(--gutter); display: grid; gap: 4px; }
.mnav__top { display: block; padding: 14px 6px; font-size: var(--text-md); border-bottom: 1px solid var(--border-dark); }
.mnav__group { border-bottom: 1px solid var(--border-dark); }
.mnav__group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; font-size: var(--text-md); cursor: pointer; list-style: none; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__caret { width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease-out); }
.mnav__group[open] .mnav__caret { transform: rotate(180deg); }
.mnav__links { display: grid; gap: 2px; padding: 0 6px 12px; }
.mnav__links a { padding: 9px 12px; color: var(--on-ink-muted); border-radius: var(--radius-sm); }
.mnav__links a:hover { background: var(--ink-card); color: var(--on-ink); }
.mobilenav__cta { display: grid; gap: 10px; margin-top: var(--gutter); }

/* ============================== HERO ============================== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; padding-block: var(--section-y); }
.hero--photo { min-height: min(82vh, 760px); }
.hero--plain { padding-block: calc(var(--section-y) * 1.05) var(--section-y); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 28%; }
.js .hero__bg { opacity: 0; transition: opacity 0.35s var(--ease-out); }
.js .hero__bg.is-loaded { opacity: 1; }
/* Hero title entrance — blur + slide only (opacity stays 1, so it never gates LCP) */
.hero-title { font: var(--display-xl); letter-spacing: -0.022em; }
.anim .hero-title { animation: heroTitleIn 0.8s var(--ease-out) both; }
@keyframes heroTitleIn { from { transform: translateY(10px); filter: blur(6px); } to { transform: none; filter: blur(0); } }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 42%, transparent 68%), linear-gradient(0deg, var(--ink) 0%, transparent 44%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 640px; }
.hero h1 { margin: var(--gutter) 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--block); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--gutter); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-current] { color: var(--fg); }
.crumbs__sep { opacity: 0.5; }

/* ============================== CARDS ============================== */
.cards { display: grid; gap: var(--gutter); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--inset-card); display: flex; flex-direction: column; gap: 12px; }
.card__ic { display: inline-flex; width: 30px; height: 30px; color: var(--teal); }
.card__ic svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.card--link { transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.card--link:hover { border-color: var(--teal); }
.card--link:hover h3 { color: var(--teal); }
.card__more { display: inline-flex; width: 18px; height: 18px; color: var(--teal-on-dark); margin-top: auto; }
.card__more svg { width: 100%; height: 100%; }
.section--cream .card__more { color: var(--teal); }

.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--dur-1) var(--ease-out); }
.lcard:hover { border-color: var(--teal); }
.lcard__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-card); }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.lcard:hover .lcard__media img { transform: scale(1.04); }
.lcard__body { padding: var(--gutter); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lcard__eyebrow { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-on-dark); margin: 0; }
.section--cream .lcard__eyebrow { color: var(--teal); }
.lcard h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.lcard p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.lcard__more { display: inline-flex; width: 18px; height: 18px; color: var(--teal-on-dark); margin-top: auto; }
.lcard__more svg { width: 100%; height: 100%; }
.section--cream .lcard__more { color: var(--teal); }

/* ============================== ROWS / SPLITS ============================== */
.mrow, .prow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section-y); align-items: center; margin-bottom: var(--section-y); }
.mrow:last-child, .prow:last-child { margin-bottom: 0; }
.mrow--rev .mrow__copy, .prow--rev .prow__copy { order: 2; }
.mrow__copy h3, .prow__copy h3 { margin-bottom: 12px; }
.mrow__copy .lead, .prow__copy .lead { margin-bottom: var(--gutter); }
.mrow__media, .prow__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.mrow__media img, .prow__media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section-y); align-items: center; }
.split-feature__copy h2 { margin-bottom: var(--gutter); }
.split-feature__copy .lead { margin-bottom: var(--gutter); }
.mframe { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.mframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mframe--wide { aspect-ratio: 16 / 11; }
.mframe--portrait { aspect-ratio: 4 / 5; }
.mframe figcaption { padding: 10px var(--gutter); font-size: var(--text-sm); color: var(--muted); }

/* ============================== STATS / QUOTE / SAM ============================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.stat { border-left: 1px solid var(--teal); padding-left: var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.stat__v { font-size: clamp(2rem, 4vw, 3rem); color: var(--fg); line-height: 1; }
.stat__l { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; max-width: 34ch; }

.quote { margin: 0; max-width: 60ch; }
.quote__t { font-family: var(--font-serif); font-style: normal; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.34; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.quote--big .quote__t { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.quote__c { margin-top: var(--gutter); color: var(--muted); font-size: var(--text-sm); display: flex; flex-direction: column; gap: 2px; }
.quote__town { color: var(--teal-on-dark); }
.section--cream .quote__town { color: var(--teal); }

.sam { background: var(--ink-card); border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: var(--inset-card); }
.section--raised .sam { background: var(--ink); }
.sam__badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--teal-on-dark); font-weight: 500; margin-bottom: var(--gutter); }
.sam__badge svg { width: 18px; height: 18px; }
.sam__q { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; color: var(--on-ink); margin: 0 0 12px; }
.sam__a { color: var(--on-ink-muted); font-size: var(--text-sm); margin: 0; }

.trustrow { display: flex; flex-wrap: wrap; gap: var(--block); margin-top: var(--block); }
.trustrow__i { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-sm); }
.trustrow__i svg { width: 18px; height: 18px; color: var(--teal-on-dark); }

/* ============================== CTA CLOSE ============================== */
.cta-close { padding-block: var(--section-y); text-align: center; border-top: 1px solid var(--border-dark); }
.cta-close__slogan { font: var(--display-lg); letter-spacing: -0.015em; max-width: 20ch; margin: 0 auto var(--gutter); color: var(--on-ink); }
.cta-close .lead { margin: 0 auto var(--block); }
.cta-close__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: var(--block); }
.cta-close .trustrow { justify-content: center; }

/* ============================== TIMELINE ============================== */
.timeline { list-style: none; margin: var(--gutter) 0 0; padding: 0; display: grid; gap: 0; }
.timeline__i { display: grid; grid-template-columns: 88px 1fr; gap: var(--gutter); padding: 16px 0; border-top: 1px solid var(--line); }
.timeline__t { color: var(--teal-on-dark); font-size: var(--text-sm); }
.section--cream .timeline__t { color: var(--teal); }
.timeline__x { color: var(--muted); }

/* ============================== TABS / CALLOUT / TABLE ============================== */
.tabs__bar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--block); }
.tabs__tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 14px; cursor: pointer; font: inherit; font-size: var(--text-sm); margin-bottom: -1px; }
.tabs__tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--teal); }
.callout { max-width: 64ch; margin-inline: auto; text-align: center; }
.callout__t { font: var(--display-md); color: var(--on-ink); margin: 0 0 12px; }
.callout__s { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.dtable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.dtable th, .dtable td { text-align: left; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.dtable th { color: var(--muted); font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.dtable tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); }
.tag--ok { background: color-mix(in srgb, var(--teal) 22%, transparent); color: var(--teal-on-dark); }
.tag--soft { background: var(--ink-card); color: var(--on-ink-muted); }

/* ============================== PRICING ============================== */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); align-items: start; }
.price { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--inset-card); display: flex; flex-direction: column; gap: 14px; position: relative; background: var(--surface); }
.price--pop { border-color: var(--teal); }
.price__badge { position: absolute; top: -11px; left: var(--inset-card); background: var(--teal); color: var(--on-ink); font-size: var(--text-xs); padding: 4px 12px; border-radius: var(--radius-pill); }
.price__name { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.015em; }
.price__pos { color: var(--muted); font-size: var(--text-sm); min-height: 3em; }
.price__price { display: flex; flex-direction: column; gap: 2px; padding-block: 8px; border-block: 1px solid var(--line); }
.price__val { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--fg); }
.price__per { color: var(--muted); font-size: var(--text-sm); }
.price__annual { color: var(--teal-on-dark); font-size: var(--text-xs); margin-top: 2px; }
.section--cream .price__annual { color: var(--teal); }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.price__list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: var(--text-sm); }
.price__list svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 2px; }
.price .btn { justify-content: center; }
.price__trust { text-align: center; color: var(--muted); font-size: var(--text-sm); margin-top: var(--block); }
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.addon { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gutter); padding: var(--gutter); border: 1px solid var(--line); border-radius: var(--radius-md); }
.addon p { margin: 4px 0 0; color: var(--muted); font-size: var(--text-sm); }
.addon__p { color: var(--fg); white-space: nowrap; }

/* ============================== FAQ ============================== */
.faq { margin-bottom: var(--block); }
.faq__group { font-family: var(--font-sans); font-weight: 500; font-size: var(--text-sm); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding: 16px 0; cursor: pointer; list-style: none; font-size: var(--text-md); color: var(--fg); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__caret { width: 16px; height: 16px; flex: none; transition: transform var(--dur-1) var(--ease-out); color: var(--muted); }
.faq__item[open] .faq__caret { transform: rotate(180deg); }
.faq__item p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ============================== EDITIONS / ARTICLE ============================== */
.ed-cover { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--block); align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ed-cover__media { margin: 0; aspect-ratio: 4 / 3; }
.ed-cover__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-cover__copy { padding: var(--block); display: flex; flex-direction: column; gap: 12px; }
.article__head { padding-block: var(--section-y) var(--block); }
.article__headinner { max-width: 820px; margin-inline: auto; }
.article__kicker { font-family: var(--font-sans); font-weight: 500; color: var(--fg-soft); font-size: var(--text-lg); letter-spacing: -0.01em; margin: 4px 0 var(--gutter); }
.article__cover { margin: 0 0 var(--block); aspect-ratio: 21 / 9; overflow: hidden; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { max-width: 720px; margin-inline: auto; font-size: var(--text-md); }
.article__body p { color: var(--on-ink-muted); }
.article__back { max-width: 720px; margin: var(--block) auto 0; }

/* ============================== COMPANY ============================== */
.manifesto { max-width: 40ch; }
.manifesto p { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--fg); margin: 0 0 0.7em; }
.manifesto p + p { color: var(--muted); font-family: var(--font-sans); font-size: var(--text-md); line-height: 1.6; }
.compass { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; font-family: var(--font-sans); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.02em; color: var(--fg); margin: 0 0 var(--block); }
.compass__dot { color: var(--teal); }
.founder__copy { max-width: 70ch; }
.founder__copy p { font-size: var(--text-md); }
.jobs { display: grid; gap: 10px; }
.job { display: flex; align-items: center; gap: var(--gutter); padding: var(--gutter); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color var(--dur-1) var(--ease-out); }
.job:hover { border-color: var(--teal); }
.job p { margin: 2px 0 0; color: var(--muted); font-size: var(--text-sm); }
.job__type { margin-left: auto; color: var(--muted); font-size: var(--text-sm); }
.job__more { display: inline-flex; width: 18px; height: 18px; color: var(--teal-on-dark); }
.job__more svg { width: 100%; height: 100%; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: var(--inset-card); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color var(--dur-1) var(--ease-out); }
.contact-card:hover { border-color: var(--teal); }
.contact-card__ic { display: inline-flex; width: 26px; height: 26px; color: var(--teal-on-dark); margin-bottom: 6px; }
.contact-card__ic svg { width: 100%; height: 100%; }
.contact-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* sitemap + changelog */
.smgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--block); margin-top: var(--block); }
.smcol h3 { font-family: var(--font-sans); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.smcol a { display: block; padding: 6px 0; color: var(--on-ink-muted); font-size: var(--text-sm); }
.smcol a:hover { color: var(--on-ink); }
.smcol--wide { grid-column: 1 / -1; }
.smcol__wrap { columns: 3; column-gap: var(--block); }
.cllist { display: grid; gap: var(--block); max-width: 820px; }
.cl { display: grid; grid-template-columns: 100px 1fr; gap: var(--block); padding-top: var(--block); border-top: 1px solid var(--line); }
.cl__date { color: var(--teal-on-dark); }
.cl__body h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; margin-bottom: 8px; }

/* ============================== ONBOARDING ============================== */
.ob-hero { padding-block: calc(var(--section-y) * 0.8) var(--block); }
.ob { display: grid; gap: var(--block); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ob__step { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--inset-card); margin: 0; }
.ob__step legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: var(--text-xl); padding: 0 8px; }
.ob__num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--teal-on-dark); }
.ob__hint { color: var(--muted); font-size: var(--text-sm); margin: 0 0 var(--gutter); }
.ob__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.ob__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.opts { display: grid; gap: 8px; }
.opts--grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opts--cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.opt { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.opt:hover { border-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); }
.opt input { accent-color: var(--accent); margin-top: 2px; flex: none; }
.opt__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt__t { color: var(--fg); font-weight: 500; font-size: var(--text-sm); }
.opt__d { color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gutter); }
.chip { background: var(--ink-card); border: 1px solid var(--line); color: var(--on-ink-muted); padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; font: inherit; font-size: var(--text-sm); }
.chip:hover { border-color: var(--teal); color: var(--on-ink); }
.ob__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ob__actions[hidden] { display: none; }

/* Wizard layout + stepper + Sam chat */
.ob-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--block); align-items: start; }
.ob-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0 0 var(--block); padding: 0 0 var(--gutter); border-bottom: 1px solid var(--line); }
.ob-steps:empty { display: none; }
.ob-steps__i { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: var(--text-sm); }
.ob-steps__i.is-reached { cursor: pointer; }
.ob-steps__i.is-done { color: var(--accent-fg); }
.ob-steps__i.is-active { color: var(--fg); }
.ob-steps__n { font-family: var(--font-mono); font-size: var(--text-xs); color: inherit; }
.ob__navbtns { display: flex; gap: 12px; margin-top: var(--block); }
.ob__navbtns[hidden] { display: none; }

.ob-sam { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; padding: var(--gutter); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); max-height: calc(100vh - 108px); }
.ob-sam__head .sam__badge { margin: 0; }
.ob-sam__intro { color: var(--fg-3); font-size: var(--text-sm); margin: 0; line-height: 1.5; }
.ob-sam__log { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; min-height: 0; }
.ob-sam__log:empty { display: none; }
.sam-msg { font-size: var(--text-sm); line-height: 1.5; padding: 10px 14px; border-radius: var(--radius-md); max-width: 92%; }
.sam-msg--sam { background: var(--bg-3); color: var(--fg-1); align-self: flex-start; border-bottom-left-radius: 4px; }
.sam-msg--user { background: var(--accent-weak); color: var(--fg-1); align-self: flex-end; border-bottom-right-radius: 4px; }
.sam-msg.is-typing { color: var(--fg-3); }
.ob-sam__suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-sam__suggest:empty { display: none; }
.ob-sam__form { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.ob-sam__form input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 10px 16px; color: var(--fg); font: inherit; font-size: var(--text-sm); }
.ob-sam__form input:focus { outline: none; border-color: var(--accent); }
.ob-sam__form .btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; flex: none; }
.ob-sam__form .btn svg { width: 18px; height: 18px; }
@media (max-width: 980px) {
  .ob-layout { grid-template-columns: 1fr; }
  .ob-sam { position: static; max-height: none; }
}

.ob-result { padding-block: var(--section-y); }
.ob-result .lead { margin-bottom: var(--block); }
.rgrid { display: grid; grid-template-columns: 320px 1fr; gap: var(--block); margin: var(--block) 0; align-items: start; }
.rtier { border: 1px solid var(--teal); border-radius: var(--radius-lg); padding: var(--inset-card); display: flex; flex-direction: column; gap: 8px; }
.rtier__k { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-on-dark); margin: 0; }
.rtier__name { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.02em; }
.rtier__price { font-size: var(--text-xl); }
.rtier__price span { color: var(--muted); font-size: var(--text-sm); }
.rtier__pos { color: var(--muted); font-size: var(--text-sm); }
.rcards { display: grid; gap: 10px; margin-top: 12px; }
.rcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--gutter) var(--inset-card); }
.rcard__rank { position: absolute; top: var(--gutter); right: var(--gutter); color: var(--teal-on-dark); }
.rcard h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; margin-bottom: 6px; }
.rcard p { margin: 0; color: var(--muted); font-size: var(--text-sm); max-width: 60ch; }
.rcard .lcard__more { display: inline-flex; width: 18px; height: 18px; color: var(--teal-on-dark); margin-top: 10px; }
.rcard .lcard__more svg { width: 100%; height: 100%; }
.rlevers { margin-top: var(--block); }
.rlevers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 12px; }
.rlever { border-left: 1px solid var(--teal); padding-left: var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.rlever__v { font-size: var(--text-2xl); color: var(--fg); }
.rlever__l { font-weight: 500; }
.rlever__m { color: var(--muted); font-size: var(--text-sm); }
.rinteg { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--block); padding: var(--gutter); border: 1px solid var(--line); border-radius: var(--radius-md); }
.rinteg svg { width: 22px; height: 22px; color: var(--teal-on-dark); flex: none; }
.rinteg p { margin: 0; color: var(--muted); }
.ob-result__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--block); }
.calc { display: grid; gap: var(--gutter); max-width: 520px; }
.calc__out { margin-top: 8px; }
.calc__line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.calc__line b { color: var(--teal-on-dark); }

/* Regler-Rechner (CSection.calc) — flach, variant-adaptiv über --accent/--fg/--muted */
.fcalc { display: grid; gap: var(--gutter); max-width: 560px; margin: var(--gutter) 0; }
.fcalc__sliders { display: grid; gap: 20px; }
.fcalc__row { display: grid; gap: 8px; }
.fcalc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.fcalc__head label { color: var(--fg); font-size: var(--text-sm); }
.fcalc__val { color: var(--accent); font-weight: 600; white-space: nowrap; }
.fcalc__range { width: 100%; accent-color: var(--accent); padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.fcalc__result { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 4px; padding-top: var(--gutter); border-top: 1px solid var(--line); }
.fcalc__result-label { color: var(--muted); font-size: var(--text-sm); }
.fcalc__result-val { color: var(--accent); font-size: var(--text-xl); }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--bg-0); border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 100px) var(--block); }
.site-footer__cta { display: flex; justify-content: space-between; align-items: center; gap: var(--block); flex-wrap: wrap; padding-bottom: var(--block); margin-bottom: var(--block); border-bottom: 1px solid var(--line); }
.site-footer__ctahead { font: var(--display-md); letter-spacing: -0.02em; color: var(--fg-1); margin: 6px 0 8px; max-width: 16ch; }
.site-footer__ctasub { color: var(--fg-3); font-size: var(--text-sm); max-width: 46ch; margin: 0; }
.site-footer__ctaacts { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 3.5fr; gap: var(--block); }
.site-footer__brand .brand--footer { color: var(--accent-text); }
.site-footer__tag { color: var(--fg-3); font-size: var(--text-sm); max-width: 32ch; margin: var(--gutter) 0; line-height: 1.5; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a { display: inline-flex; width: 20px; height: 20px; color: var(--fg-3); }
.site-footer__social a:hover { color: var(--accent-text); }
.site-footer__social svg { width: 100%; height: 100%; }
.site-footer__trust { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-3); font-size: var(--text-xs); margin: 18px 0 0; }
.site-footer__trust svg { width: 15px; height: 15px; color: var(--accent-text); flex: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--block) var(--gutter); }
.ftcol h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.02em; color: var(--fg-3); margin: 0 0 12px; }
.ftcol a { display: block; padding: 5px 0; color: var(--fg-2); font-size: var(--text-sm); }
.ftcol a:hover { color: var(--fg-1); }
.site-footer__meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--block); margin-top: var(--block); color: var(--fg-3); font-size: var(--text-xs); }
.site-footer__meta p { margin: 0; }
.site-footer__metalinks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer__metalinks a { color: var(--fg-3); }
.site-footer__metalinks a:hover { color: var(--fg-1); }
.site-footer__legal { padding-top: 16px; }
.site-footer__legal p { color: var(--fg-3); font-size: 0.6875rem; line-height: 1.6; margin: 0; max-width: none; }

/* ============================== SECTION PATTERNS (v2) ============================== */
/* Feature list — replaces the icon-box grid. Hairline-separated, icon inline. */
.feats { display: grid; gap: 0 var(--block); grid-template-columns: repeat(3, 1fr); }
.feats--2 { grid-template-columns: repeat(2, 1fr); }
.feats--4 { grid-template-columns: repeat(4, 1fr); }
.feat { display: flex; flex-direction: column; gap: 8px; padding: var(--gutter) 0; border-top: 1px solid var(--line); }
a.feat { text-decoration: none; transition: border-color var(--dur-1) var(--ease-out); }
a.feat:hover { border-top-color: var(--accent); }
.feat__h { display: flex; align-items: center; gap: 10px; }
.feat__ic { display: inline-flex; width: 19px; height: 19px; color: var(--accent-fg); flex: none; }
.feat__ic svg { width: 100%; height: 100%; }
.feat__h h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-md); letter-spacing: -0.01em; color: var(--fg); }
a.feat:hover .feat__h h3 { color: var(--accent-fg); }
.feat p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.feat__more { display: inline-flex; width: 16px; height: 16px; color: var(--accent-fg); margin-top: 2px; }
.feat__more svg { width: 100%; height: 100%; }

/* Numbered step rail — ghosted oversized numerals */
.numrail { display: grid; gap: 0; }
.numrail__i { display: grid; grid-template-columns: minmax(64px, 0.4fr) 1fr; gap: var(--block); align-items: start; padding: var(--block) 0; border-top: 1px solid var(--line); }
.numrail__n { font-family: var(--font-sans); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--fg-4); }
.numrail__b h3 { font-size: var(--text-xl); letter-spacing: -0.015em; margin-bottom: 8px; }
.numrail__b p { color: var(--muted); margin: 0; max-width: 62ch; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(148px, auto); gap: 14px; }
.bento__cell { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--inset-card); background: var(--surface); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bento__cell--anchor { grid-column: span 2; grid-row: span 2; }
.bento__cell--wide { grid-column: span 2; }
.bento__cell h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.bento__cell p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.bento__ic { width: 22px; height: 22px; color: var(--accent-fg); }
.bento__ic svg { width: 100%; height: 100%; }
.bento__fig { margin: 0; flex: 1; min-height: 110px; border-radius: var(--radius-sm); overflow: hidden; }
.bento__fig img { width: 100%; height: 100%; object-fit: cover; }
.bento__big { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 4vw, 3rem); color: var(--fg); line-height: 1; letter-spacing: -0.02em; }
.bento__big.is-accent { color: var(--accent-fg); }

/* Big stat band */
.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statband__i { padding: var(--block) var(--gutter) var(--block) 0; border-right: 1px solid var(--line); }
.statband__i:last-child { border-right: 0; }
.statband__v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: var(--fg); letter-spacing: -0.02em; }
.statband__v.is-accent { color: var(--accent-fg); }
.statband__l { color: var(--muted); font-size: var(--text-sm); margin-top: 10px; max-width: 30ch; }

/* Pull-quote interrupt */
.pullquote { max-width: 26ch; margin: 0 auto; text-align: center; }
.pullquote__t { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.pullquote__c { margin-top: var(--gutter); color: var(--muted); font-size: var(--text-sm); }
.pullquote__c b { color: var(--fg); font-weight: 600; }

/* Showcase — alternating asymmetric feature splits with a big figure */
.showcase { display: grid; gap: var(--section-y); }
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.show--flip .show__media { order: -1; }
.show__copy h3 { font: var(--display-md); letter-spacing: -0.018em; margin-bottom: 16px; }
.show__copy .lead { margin-bottom: var(--gutter); }
.show__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.show__media img { width: 100%; height: 100%; object-fit: cover; }

/* Inline CTA band (mid-page) */
.ctaband { display: flex; justify-content: space-between; align-items: center; gap: var(--block); flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ctaband__t { font: var(--display-md); letter-spacing: -0.02em; max-width: 20ch; margin: 0; }
.ctaband__acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================== PRICING TOGGLE + COMPARISON ============================== */
.pricing { position: relative; }
.pricing__bill { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: var(--block); font-size: var(--text-sm); color: var(--muted); }
.billing__switch { display: inline-flex; cursor: pointer; }
.billing__track { position: relative; display: block; width: 46px; height: 26px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line-2); transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.billing__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg-2); transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.billing__cb:checked ~ .pricing__bill .billing__track { background: var(--accent-weak); border-color: var(--accent); }
.billing__cb:checked ~ .pricing__bill .billing__track::after { transform: translateX(20px); background: var(--accent-text); }
.billing__cb:focus-visible ~ .pricing__bill .billing__track { box-shadow: var(--focus-ring); }
.billing__save { display: inline-block; margin-left: 6px; color: var(--accent-fg); font-weight: 600; font-size: var(--text-xs); }
.bill-m, .billing__cb:checked ~ .pricing__bill .bill-y { color: var(--fg); font-weight: 600; }
.bill-y, .billing__cb:checked ~ .pricing__bill .bill-m { color: var(--muted); font-weight: 400; }
.price__m { display: flex; flex-direction: column; gap: 2px; }
.price__plus { color: var(--fg); font-size: var(--text-md); }
.price__example { color: var(--muted); font-size: var(--text-xs); margin-top: 6px; }
.price__val--txt { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--fg); }

.price-enterprise { display: flex; justify-content: space-between; align-items: center; gap: var(--block); flex-wrap: wrap; margin-top: var(--gutter); padding: var(--inset-card); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.price-enterprise__c h3 { font-size: var(--text-xl); letter-spacing: -0.015em; margin-bottom: 6px; }
.price-enterprise__c p { margin: 0; color: var(--muted); font-size: var(--text-sm); max-width: 54ch; }
.price-enterprise__feat { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.price-enterprise__feat span { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-soft); font-size: var(--text-sm); }
.price-enterprise__feat svg { width: 15px; height: 15px; color: var(--accent-fg); }

.dtable--cmp th:not(:first-child), .dtable--cmp td:not(:first-child) { text-align: center; }
.dtable--cmp td.cmp-y svg { width: 17px; height: 17px; color: var(--accent-fg); vertical-align: middle; }
.dtable--cmp td.cmp-n { color: var(--fg-4); }
.dtable--cmp th.is-pop { color: var(--accent-fg); }

/* ============================== HELP CENTER ============================== */
.help-search { display: flex; align-items: center; gap: 12px; max-width: 540px; margin-top: var(--gutter); padding: 4px 6px 4px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--surface); }
.help-search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.help-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font: inherit; font-size: var(--text-md); padding: 10px 0; }
.help-search input:focus { outline: none; }
.help-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.help-cat { display: flex; gap: 16px; align-items: flex-start; padding: var(--inset-card); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color var(--dur-1) var(--ease-out); }
.help-cat:hover { border-color: var(--accent); }
.help-cat__ic { display: inline-flex; width: 26px; height: 26px; color: var(--accent-fg); flex: none; margin-top: 2px; }
.help-cat__ic svg { width: 100%; height: 100%; }
.help-cat h3 { font-size: var(--text-lg); letter-spacing: -0.01em; margin-bottom: 4px; }
.help-cat p { margin: 0 0 10px; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.help-cat__links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.help-cat__links a { color: var(--accent-fg); font-size: var(--text-sm); }
.help-cat__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq__item[hidden] { display: none; }
.faq__empty { color: var(--muted); padding: 16px 0; }

/* ============================== TESTIMONIAL CAROUSEL ============================== */
.tcar { position: relative; }
.tcar__head { display: flex; justify-content: space-between; align-items: center; gap: var(--gutter); margin-bottom: var(--gutter); }
.tcar__hint { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: var(--text-sm); }
.tcar__hint svg { width: 16px; height: 16px; }
.tcar__nav { display: flex; gap: 8px; }
.tcar__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg-soft); cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.tcar__btn:hover { border-color: var(--accent); color: var(--fg); background: var(--surf-hover); }
.tcar__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.tcar__btn svg { width: 18px; height: 18px; }
.tcar__btn--prev svg { transform: rotate(180deg); }
.tcar__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tcar__viewport::-webkit-scrollbar { display: none; }
.tcar__viewport:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-lg); }
.tcar__track { display: flex; gap: var(--gutter); width: max-content; padding: 2px; }
.tcard { scroll-snap-align: start; flex: 0 0 auto; width: clamp(280px, 80vw, 380px); display: flex; flex-direction: column; gap: var(--gutter); padding: var(--inset-card); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: border-color var(--dur-1) var(--ease-out); }
.tcard:hover { border-color: var(--accent); }
.tcard__mark { display: inline-flex; width: 26px; height: 26px; color: var(--accent-fg); opacity: 0.85; }
.tcard__mark svg { width: 100%; height: 100%; }
.tcard__q { font-family: var(--font-sans); font-size: var(--text-lg); line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); margin: 0; flex: 1; }
.tcard__by { display: flex; align-items: center; gap: 12px; }
.tcard__av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; filter: grayscale(0.35); }
.tcard__meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tcard__name { font-weight: 600; font-size: var(--text-sm); color: var(--fg); }
.tcard__salon { font-size: var(--text-xs); color: var(--muted); }
.tcard__arrow { display: inline-flex; width: 18px; height: 18px; color: var(--accent-fg); margin-left: auto; transition: transform var(--dur-1) var(--ease-out); }
.tcard__arrow svg { width: 100%; height: 100%; }
.tcard:hover .tcard__arrow { transform: translateX(3px); }

/* ============================== CUSTOMER STORY ============================== */
.story-hero { min-height: min(66vh, 600px); }
.story-owner { display: grid; grid-template-columns: 260px 1fr; gap: var(--block); align-items: center; }
.story-owner__portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.story-owner__portrait img { width: 100%; height: 100%; object-fit: cover; }
.story-owner__by { display: flex; flex-direction: column; gap: 2px; margin-top: var(--gutter); }
.story-owner__name { font-weight: 600; color: var(--fg); }
.story-owner__role { color: var(--muted); font-size: var(--text-sm); }
.kgallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gutter); }
.kg__i { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.kg__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.kg__i:hover img { transform: scale(1.04); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .mainnav, .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open + .mobilenav, .mobilenav.is-open { display: block; }
  .cards--3, .contact-grid, .smgrid, .ob__grid3, .rlevers__grid, .addons { grid-template-columns: 1fr; }
  .mrow, .prow, .split-feature, .rgrid, .ed-cover, .cl, .ob__grid2 { grid-template-columns: 1fr; gap: var(--block); }
  .mrow--rev .mrow__copy, .prow--rev .prow__copy { order: 0; }
  .stats { grid-template-columns: 1fr; }
  .smcol__wrap { columns: 2; }
  .timeline__i { grid-template-columns: 70px 1fr; }
}
@media (max-width: 560px) {
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .smcol__wrap { columns: 1; }
}

/* --- Section patterns (v2) responsive --- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--anchor { grid-column: span 2; grid-row: span 1; }
  .feats--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .show { grid-template-columns: 1fr; gap: var(--block); }
  .show--flip .show__media { order: 0; }
  .showcase { gap: var(--block); }
}
@media (max-width: 760px) {
  .feats, .feats--2, .feats--4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--anchor, .bento__cell--wide { grid-column: span 1; }
  .numrail__i { grid-template-columns: 1fr; gap: 6px; padding: var(--gutter) 0; }
  .statband__i { border-right: 0; border-bottom: 1px solid var(--line); }
  .statband__i:last-child { border-bottom: 0; }
  .site-footer__cta, .ctaband { flex-direction: column; align-items: flex-start; }
  .help-cats { grid-template-columns: 1fr; }
  .price-enterprise { flex-direction: column; align-items: flex-start; }
  .story-owner { grid-template-columns: 1fr; }
}

/* --- Investor Relations: Gate, Deck, Charts, Beteiligungsrechner ------------ */
.gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--section-y-mobile); align-items: center; }
.gate__form { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--inset-card); }
.gate__form .btn { width: 100%; justify-content: center; }
.gate__err { color: var(--status-attention); font-size: var(--text-sm); margin: -8px 0 var(--gutter); }

.segs { display: inline-flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 var(--block); }
.segs__opt input { position: absolute; opacity: 0; pointer-events: none; }
.segs__opt span { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-size: var(--text-sm); cursor: pointer; transition: color var(--dur-1) var(--ease-default), border-color var(--dur-1) var(--ease-default); }
.segs__opt input:checked + span { color: var(--fg); border-color: var(--teal-on-dark); box-shadow: inset 0 0 0 1px var(--teal-on-dark); }
.segs__opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.deck-meta { color: var(--muted); font-size: var(--text-sm); margin: var(--gutter) 0 var(--block); }
.deck-meta b { color: var(--fg); font-weight: 500; }
.deck-foot { max-width: 76ch; margin-top: var(--block); }

.chartgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--block); margin-bottom: var(--section-y-mobile); }
.chart { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--inset-card); margin: 0; }
.chart figcaption h3 { font-size: var(--text-lg); margin: 0 0 4px; }
.chart figcaption p { color: var(--muted); font-size: var(--text-sm); margin: 0 0 var(--gutter); max-width: 56ch; }
.chart__frame { position: relative; }
.chart__svg { display: block; width: 100%; height: 180px; }
.chart__line { fill: none; stroke: var(--teal-on-dark); stroke-width: 2; vector-effect: non-scaling-stroke; }
.section--cream .chart__line { stroke: var(--teal); }
.chart__bar { fill: var(--teal-on-dark); opacity: 0.92; }
.section--cream .chart__bar { fill: var(--teal); }
.chart__bar.is-neg { fill: var(--fg-4); }
.chart__base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__mark { stroke: var(--fg-4); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart__axis { position: absolute; top: -2px; right: 0; color: var(--muted); font-size: var(--text-xs); }
.chart__x { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--text-xs); margin-top: 8px; }
.chart__x--bars { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.chart__marklabel { color: var(--fg-4); }

.dtable td.mono, .dtable .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dtable--plan td, .dtable--plan th { white-space: nowrap; }

.usegrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--block); margin: var(--block) 0; }
.uselist h3 { font-size: var(--text-lg); margin-bottom: var(--gutter); display: flex; justify-content: space-between; gap: var(--gutter); }
.uselist h3 .mono { color: var(--muted); font-weight: 400; }
.uselist ul { list-style: none; margin: 0; padding: 0; }
.uselist li { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--gutter); padding: 10px 0 14px; border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.uselist li b { color: var(--fg); font-weight: 500; }
.uselist__bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.uselist__bar::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--teal-on-dark); }
.section--cream .uselist__bar::after { background: var(--teal); }

.iv { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--section-y-mobile); align-items: start; }
.iv__presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 var(--block); }
.iv__preset { font: inherit; font-size: var(--text-sm); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 10px 18px; cursor: pointer; transition: color var(--dur-1) var(--ease-default), border-color var(--dur-1) var(--ease-default); }
.iv__preset.is-active { color: var(--fg); border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.iv input[type="range"] { width: 100%; accent-color: var(--teal); padding: 8px 0; border: 0; }
.iv__amount { font-size: clamp(2rem, 4vw, 3rem); color: var(--accent-fg); margin-bottom: var(--gutter); font-variant-numeric: tabular-nums; }
.iv__row { display: flex; justify-content: space-between; gap: var(--gutter); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
.iv__row b { color: var(--fg); font-size: var(--text-md); font-weight: 500; }
.iv__row--big b { color: var(--accent-fg); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.iv__cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: var(--block); }
.iv__case { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--gutter); display: grid; gap: 6px; }
.iv__caselabel { color: var(--muted); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.iv__case b { color: var(--fg); font-weight: 500; }

@media (max-width: 860px) {
  .gate, .iv, .usegrid, .chartgrid { grid-template-columns: 1fr; }
  .iv__cases { grid-template-columns: 1fr; }
}

/* --- Sam-Presence: smaragdgrüne Wellenform (Säule iPad am Platz) ------------ */
.sampresence { background: var(--ink-card); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4rem) var(--inset-card); margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--gutter); }
.sampresence__eq { display: flex; align-items: center; gap: 6px; height: 120px; }
.sampresence__eq span { display: block; width: 6px; height: 56px; border-radius: var(--radius-pill); background: var(--teal-on-dark); transform: scaleY(var(--h, 1)); transform-origin: center; }
.anim .sampresence__eq span { animation: samEq 1.5s var(--ease-in-out) infinite; animation-delay: var(--d, 0ms); }
.sampresence__cap { color: var(--on-ink-muted); font-size: var(--text-sm); letter-spacing: 0.06em; }
@keyframes samEq { 0%, 100% { transform: scaleY(calc(var(--h, 1) * 0.35)); } 50% { transform: scaleY(var(--h, 1)); } }
@media (prefers-reduced-motion: reduce) { .anim .sampresence__eq span { animation: none; } }
.sam-points { margin-top: var(--section-y-mobile); }

/* Vollbild-Hero mit Copy rechts (Motiv links im Foto, z. B. Tablet am Platz) */
/* Foto tritt zurück: sanft unscharf und abgedunkelt, damit die Überschrift trägt.
   scale(1.06) verhindert weiche Blur-Kanten am Rand. Text bleibt erkennbar. */
.hero--right .hero__bg img { filter: blur(2px) brightness(0.78); transform: scale(1.06); }
.hero--right .hero__copy { margin-left: auto; text-align: right; max-width: 480px; }
.hero--right .hero__actions { justify-content: flex-end; }
.hero--right .crumbs { justify-content: flex-end; }
.hero--right .hero__scrim { background: linear-gradient(270deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 78%, transparent) 38%, transparent 60%), linear-gradient(0deg, var(--ink) 0%, transparent 44%); }
@media (max-width: 720px) {
  .hero--right .hero__copy { margin-left: 0; text-align: left; max-width: none; }
  .hero--right .hero__actions, .hero--right .crumbs { justify-content: flex-start; }
  .hero--right .hero__scrim { background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 42%, transparent 68%), linear-gradient(0deg, var(--ink) 0%, transparent 44%); }
}

/* --- Investor Relations: Portal-Layout (editorial; Fraunces-Ausnahme) ------- */
.ir-stage { background: var(--bg-0); }
.ir-hero { position: relative; overflow: hidden; padding-block: calc(var(--section-y) * 0.85) 150px; }
.ir-hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ir-hero__in { position: relative; z-index: 2; }
.ir-hero .eyebrow { color: var(--fg-3); }
.ir-hero .lead { color: var(--fg-2); max-width: 46ch; }
.ir-hero__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--on-ink); margin: var(--gutter) 0; max-width: 20ch; }
.ir-hero__title em { font-style: italic; color: var(--teal-on-dark); }

.ir-portal-wrap { position: relative; z-index: 3; margin-top: -104px; }
.ir-portal { display: grid; grid-template-columns: 224px 1fr; background: var(--cream); border: 1px solid var(--cream-line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.ir-rail { position: sticky; top: 84px; align-self: start; padding: var(--block) 18px; border-right: 1px solid var(--cream-line); }
.ir-rail__g { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-cream-muted); margin: var(--block) 0 8px; }
.ir-rail__g:first-child { margin-top: 0; }
.ir-rail__i { display: block; color: var(--on-cream-muted); font-size: var(--text-sm); text-decoration: none; padding: 7px 12px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; }
.ir-rail__i:hover { color: var(--on-cream); background: var(--cream-bg-2); }
.ir-rail__i.is-active { color: var(--on-cream); font-weight: 500; background: var(--cream-bg-2); box-shadow: inset 0 0 0 1px var(--cream-line); }

.ir-main { padding: var(--section-y-mobile) var(--block); min-width: 0; }
.ir-main .eyebrow { color: var(--accent-on-cream); }
.ir-main .lead { color: var(--on-cream-muted); margin-top: var(--gutter); max-width: 58ch; }
.ir-main .feats { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--block); }
.ir-block { scroll-margin-top: 80px; }
.ir-block + .ir-block, .ir-quote + .ir-block, .ir-block + .ir-quote { border-top: 1px solid var(--cream-line); margin-top: var(--section-y-mobile); padding-top: var(--section-y-mobile); }
.ir-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -0.005em; color: var(--on-cream); margin-top: 6px; }
.ir-h2 em { font-style: italic; color: var(--accent-on-cream); }

.ir-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--cream-line); border-radius: var(--radius-md); background: var(--cream-bg-2); margin-top: var(--block); overflow: hidden; }
.ir-fact { padding: var(--gutter) var(--block); border-left: 1px solid var(--cream-line); display: flex; flex-direction: column; gap: 7px; }
.ir-fact:first-child { border-left: none; }
.ir-fact__l { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-cream-muted); }
.ir-fact__v { font-size: var(--text-md); color: var(--on-cream); }

.ir-quote { padding-block: var(--section-y-mobile); }

.ir-deck { position: relative; overflow: hidden; background: var(--ink-raised); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: var(--section-y-mobile); display: grid; grid-template-columns: 1.25fr 0.9fr; gap: var(--block); align-items: start; }
.ir-deck__dots { position: absolute; right: -4%; top: 0; width: 46%; height: 100%; pointer-events: none; opacity: 0.6; }
.ir-deck__copy, .ir-deck__form { position: relative; z-index: 1; }
.ir-deck .eyebrow { color: var(--fg-3); }
.ir-deck__h { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; color: var(--on-ink); margin: 10px 0 0; }
.ir-deck__h em { font-style: italic; color: var(--teal-on-dark); }
.ir-deck__p { color: var(--fg-2); margin-top: var(--gutter); }
.ir-deck__list { list-style: none; margin: var(--block) 0 0; padding: 0; display: grid; gap: 11px; }
.ir-deck__list li { display: flex; gap: 10px; color: var(--fg-2); font-size: var(--text-sm); line-height: 1.5; }
.ir-deck__list li svg { flex: none; width: 18px; height: 18px; color: var(--teal-on-dark); margin-top: 1px; }
.ir-deck__form { background: var(--ink-card); border: 1px solid var(--hair); border-radius: var(--radius-md); padding: var(--inset-card); }
.ir-deck__form .field label { color: var(--fg-2); }
.ir-deck__form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.ir-deck__note { color: var(--fg-3); font-size: var(--text-xs); line-height: 1.5; margin-top: var(--gutter); }

@media (max-width: 860px) {
  .ir-portal { grid-template-columns: 1fr; }
  .ir-rail { display: none; }
  .ir-hero { padding-bottom: 120px; }
  .ir-portal-wrap { margin-top: -88px; }
  .ir-deck { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ir-main .feats { grid-template-columns: 1fr; }
  .ir-facts { grid-template-columns: 1fr 1fr; }
}
