/* ============================================================
   omniOne: Landing page styles
   The public site speaks the application's visual language
   (frontend/DESIGN.md, "Tiefe"): a flat tinted canvas, solid cards
   on one soft shadow, tone fills inside a card, no line around a
   surface, pill controls, the action colour on the main button.
   The sky-to-orange signature stays a brand accent in type.
   ============================================================ */

:root {
  /* Neutral slate scale */
  --c-900: #0f172a;
  --c-800: #1e293b;
  --c-700: #334155;
  --c-600: #475569;
  --c-500: #64748b;
  --c-400: #94a3b8;
  --c-300: #cbd5e1;
  --c-200: #e2e8f0;
  --c-100: #f1f5f9;
  --c-50:  #f8fafc;

  /* Status / accent */
  --sky: #0ea5e9;
  --sky-dark: #0c4a6e;
  --sky-bg: rgba(14, 165, 233, 0.10);
  --green: #22c55e;
  --green-text: #15803d;
  --green-bg: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-text: #b45309;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --orange: #f97316;
  --orange-text: #9a3412;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --violet: #7c3aed;

  /* Who has to act: the four tones of the coach dashboard */
  --tone-red: #b91c1c;
  --tone-red-bg: rgba(220, 38, 38, 0.08);
  --tone-amber: #b45309;
  --tone-amber-bg: rgba(245, 158, 11, 0.12);
  --tone-blue: #0369a1;
  --tone-blue-bg: rgba(14, 165, 233, 0.11);
  --tone-grey: #475569;
  --tone-grey-bg: rgba(100, 116, 139, 0.1);

  /* The four fills of every screen, as in the application */
  --page-bg: #edf0f5;
  --surface: #ffffff;
  --tone-fill: #f2f4f8;
  --raised: #ffffff;
  /* A full frame draws no line; the transparent edge keeps forced-colours modes readable. */
  --frame: transparent;
  /* Dividing rules between rows only */
  --rule: rgba(15, 23, 42, 0.07);
  --quiet: rgba(15, 23, 42, 0.055);
  --quiet-hover: rgba(15, 23, 42, 0.09);
  --field: rgba(15, 23, 42, 0.045);

  /* The main action */
  --action: #0369a1;
  --action-hover: #075985;
  --on-action: #ffffff;

  /* Brand signature gradient: accents in type only, never on buttons or cards */
  --brand-gradient: linear-gradient(135deg, #4fcbff 0%, #ff9a3a 100%);

  /* One soft shadow for a card, one for what floats above the page */
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-raised: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-chip: 0 1px 2px rgba(15, 23, 42, 0.1);

  --radius-card: 22px;
  --radius-tile: 14px;
  --max-width: 1200px;

  --font-display: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;

  font-family: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;
  color: var(--c-900);
  background: var(--page-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  --c-900: #f8fafc;
  --c-800: #e2e8f0;
  --c-700: #e2e8f0;
  --c-600: #d7e0ea;
  --c-500: #b6c2d1;
  --c-400: #94a3b8;
  --c-300: #3a4350;
  --c-200: #262d39;
  --c-100: #1e242e;
  --c-50:  #171c24;

  --sky: #38bdf8;
  --sky-dark: #7dd3fc;
  --sky-bg: rgba(56, 189, 248, 0.14);
  --green-text: #4ade80;
  --green-bg: rgba(34, 197, 94, 0.15);
  --amber-text: #fbbf24;
  --amber-bg: rgba(245, 158, 11, 0.14);
  --orange-text: #fdba74;
  --orange-bg: rgba(249, 115, 22, 0.16);

  --tone-red: #f87171;
  --tone-red-bg: rgba(248, 113, 113, 0.12);
  --tone-amber: #fbbf24;
  --tone-amber-bg: rgba(251, 191, 36, 0.11);
  --tone-blue: #7dd3fc;
  --tone-blue-bg: rgba(56, 189, 248, 0.11);
  --tone-grey: #b6c2d1;
  --tone-grey-bg: rgba(148, 163, 184, 0.1);

  --page-bg: #0a0d12;
  --surface: #151a22;
  --tone-fill: #1e242e;
  --raised: #1a2029;
  --rule: rgba(255, 255, 255, 0.07);
  --quiet: rgba(255, 255, 255, 0.07);
  --quiet-hover: rgba(255, 255, 255, 0.12);
  --field: rgba(255, 255, 255, 0.06);

  --action: #38bdf8;
  --action-hover: #7dd3fc;
  --on-action: #06202e;

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 44px rgba(0, 0, 0, 0.6);
  --shadow-chip: 0 1px 2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The canvas is one flat tint. It is never white, because white is the card. */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-900);
  background: var(--page-bg);
  transition: background-color 300ms ease;
}
.t-red { --tone: var(--tone-red); --tone-bg: var(--tone-red-bg); }
.t-amber { --tone: var(--tone-amber); --tone-bg: var(--tone-amber-bg); }
.t-blue { --tone: var(--tone-blue); --tone-bg: var(--tone-blue-bg); }
.t-grey { --tone: var(--tone-grey); --tone-bg: var(--tone-grey-bg); }
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { display: block; }
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shared layout shells */
.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Selection */
::selection { background: rgba(14, 165, 233, 0.2); }

/* ----------  Typography primitives  ---------- */
/* Display type: the application's family, heavy and tight. */
/* Symbol sheets take no room. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--frame);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.btn-primary { color: var(--on-action); background: var(--action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-ghost { color: var(--c-900); background: var(--quiet); }
.btn-ghost:hover { background: var(--quiet-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }

/* Header CTA: full text on desktop, compact icon-circle on phones */
.header-cta-short { display: none; }

/* ----------  Header  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 0;
  padding-top: 12px;
}
/* The bar is the canvas itself: an opaque band once the page scrolls, without a line beneath it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -14px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 68%, transparent 100%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}
.nav-settings { display: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
}
.brand-mark img:where(:not(.app *)) { width: 36px; height: 36px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-copy span { font-size: 0.68rem; color: var(--c-500); letter-spacing: 0.02em; white-space: nowrap; }
.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav > a,
.nav-settings > a,
.nav-menu > summary {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--c-600);
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav > a:hover,
.nav-settings > a:hover,
.site-nav > a[aria-current="page"],
.nav-menu > summary:hover,
.nav-menu[open] > summary { background: var(--quiet); color: var(--c-900); }
.header-actions { display: flex; align-items: center; gap: 9px; }

/* Features menu: a native disclosure, so it opens without JavaScript. */
/* The panel centres under the whole header bar, so the ten items fit at every desktop width. */
.nav-menu { position: static; }
.nav-menu > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary svg { width: 15px; height: 15px; transition: transform 150ms ease; }
.nav-menu[open] > summary svg { transform: rotate(180deg); }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 70;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--frame);
  border-radius: var(--radius-card);
  background: var(--raised);
  box-shadow: var(--shadow-raised);
  transform: translateX(-50%);
}
.nav-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 150ms ease;
}
.nav-item:hover,
.nav-item[aria-current="page"] { background: var(--tone-fill); }
/* A module's mark is the application's page icon: a tinted circle, one colour for all. */
.nav-item-icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sky-bg);
  color: var(--action);
}
.nav-item-icon svg { width: 18px; height: 18px; }
.nav-item b { color: var(--c-900); font-size: 0.92rem; font-weight: 600; }
.nav-item small { color: var(--c-500); font-size: 0.78rem; line-height: 1.35; }
.nav-menu-all {
  grid-column: 1 / -1;
  padding: 10px 12px 4px;
  color: var(--sky-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-menu-all:hover { color: var(--action); }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--frame);
  background: var(--quiet);
  color: var(--c-700);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.theme-toggle:hover { color: var(--c-900); background: var(--quiet-hover); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--frame);
  background: var(--quiet);
  color: var(--c-700);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 150ms ease, background 150ms ease;
}
.lang-toggle:hover { color: var(--c-900); background: var(--quiet-hover); }
.lang-toggle svg { width: 16px; height: 16px; opacity: 0.85; }
.lang-toggle #langCode { font-variant-numeric: tabular-nums; }

/* Hamburger / nav toggle: hidden on desktop, shown <=1040px */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--frame);
  background: var(--quiet);
  color: var(--c-700);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.nav-toggle:hover { color: var(--c-900); background: var(--quiet-hover); }
.nav-toggle svg:where(:not(.app *)) { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ----------  Section heading  ---------- */
.section { padding: clamp(56px, 9vw, 116px) 0; scroll-margin-top: 96px; }
#top { scroll-margin-top: 96px; }
.s-head { max-width: 720px; }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head h2 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--c-900);
}
.s-head p {
  margin: 18px 0 0;
  color: var(--c-600);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.s-head.center p { margin-inline: auto; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 30px 0 0;
  color: var(--c-500);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-proof span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--c-400);
}



/* Mock disclaimer caption */
.mock-note {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--c-500);
  font-size: 0.8rem;
  line-height: 1.5;
}



/* ----------  Footer  ---------- */
.site-footer { margin-top: 24px; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding: 44px 0 48px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand .brand-copy strong { color: var(--c-900); }
.footer-tagline { margin: 16px 0 0; color: var(--c-600); font-size: 0.9rem; max-width: 320px; line-height: 1.55; }
.footer-meta { margin: 14px 0 0; color: var(--c-500); font-size: 0.86rem; max-width: 360px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
/* The modules read in two columns. */
.footer-col-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.footer-col-two .footer-head { grid-column: 1 / -1; }
.footer-col { display: grid; align-content: start; gap: 9px; color: var(--c-500); font-size: 0.9rem; }
.footer-head { margin: 0 0 3px; color: var(--c-900); font-size: 0.92rem; font-weight: 600; }
.footer-col a { justify-self: start; transition: color 150ms ease; }
.footer-col a:hover { color: var(--c-900); }

/* ----------  Legal pages  ---------- */
.legal-main { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--frame);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.legal-card h1 {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.legal-lead { margin: 14px 0 0; color: var(--c-600); font-size: 1.05rem; line-height: 1.6; }
.legal-sections { display: grid; gap: 28px; margin-top: 34px; }
.legal-sections section { display: grid; gap: 8px; }
.legal-sections h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--c-900);
}
.legal-sections .body { margin: 0; color: var(--c-800); font-size: 1rem; line-height: 1.7; }
.legal-sections .body ul {
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.legal-sections .body ul li {
  position: relative;
  padding-left: 20px;
}
.legal-sections .body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--c-400);
}
.legal-sections .body strong { color: var(--c-900); font-weight: 600; }
.legal-sections .body a {
  color: var(--action);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.legal-sections .body a:hover { color: var(--action-hover); }
.legal-sections .note {
  margin: 4px 0 0;
  padding: 12px 14px;
  background: var(--tone-fill);
  border-radius: var(--radius-tile);
  color: var(--c-600);
  font-size: 0.86rem;
  line-height: 1.55;
}
.legal-updated { margin-top: 30px; color: var(--c-500); font-size: 0.86rem; }

/* Every legal page has the same card. Long documents carry their contents beside a text column of
   about 75 characters; short ones and the imprint run across the card. */
.legal-doc { max-width: 1000px; }
.legal-doc h1 { text-wrap: balance; }
.legal-doc .legal-updated { margin: 12px 0 0; }
.legal-doc .legal-sections { gap: 0; margin-top: 40px; }
.legal-doc .legal-sections section {
  gap: 10px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.legal-doc .legal-sections section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc .legal-sections section.sub { margin-top: 26px; padding-top: 0; border-top: 0; }
.legal-doc .legal-sections h2 { font-size: 1.32rem; line-height: 1.3; }
.legal-doc .legal-sections section.sub h2 { font-size: 1.08rem; line-height: 1.35; }
.legal-doc.has-toc .legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 600px);
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
.legal-doc.has-toc .legal-sections { margin-top: 0; }
.legal-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.45;
}
.legal-toc-title { margin: 0 0 10px; color: var(--c-900); font-size: 0.9rem; font-weight: 600; }
.legal-toc ol,
.legal-toc-fold ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.legal-toc a,
.legal-toc-fold a { color: var(--c-600); font-weight: 500; transition: color 150ms ease; }
.legal-toc a:hover,
.legal-toc-fold a:hover { color: var(--c-900); }
.legal-toc li.sub,
.legal-toc-fold li.sub { padding-left: 14px; font-size: 0.82rem; }
.legal-toc-fold { display: none; }
@media (max-width: 900px) {
  .legal-doc { max-width: 720px; }
  .legal-doc.has-toc .legal-layout { display: block; margin-top: 24px; }
  .legal-toc { display: none; }
  .legal-toc-fold {
    display: block;
    margin-bottom: 28px;
    padding: 14px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-tile);
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .legal-toc-fold > summary {
    display: flex;
    justify-content: space-between;
    color: var(--c-900);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .legal-toc-fold > summary::-webkit-details-marker { display: none; }
  .legal-toc-fold > summary::after { content: "+"; color: var(--c-500); }
  .legal-toc-fold[open] > summary::after { content: "−"; }
  .legal-toc-fold[open] > summary { margin-bottom: 12px; }
  .legal-doc .legal-sections h2 { font-size: 1.2rem; }
  .legal-doc .legal-sections section.sub h2 { font-size: 1.05rem; }
}
@media print {
  .legal-toc,
  .legal-toc-fold { display: none; }
  .legal-doc.has-toc .legal-layout { display: block; }
}

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label:where(:not(.app *)) {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-800);
}
.field input:where(:not(.app *)),
.field textarea:where(:not(.app *)) {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--frame);
  border-radius: 12px;
  background: var(--field);
  color: var(--c-900);
  font-size: 1rem;
  font-family: inherit;
  transition: box-shadow 150ms ease;
}
.field input:where(:not(.app *))::placeholder,
.field textarea:where(:not(.app *))::placeholder { color: var(--c-400); }
.field input:where(:not(.app *)):focus,
.field textarea:where(:not(.app *)):focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--action);
}
.field textarea:where(:not(.app *)) { min-height: 150px; resize: vertical; line-height: 1.5; }
.contact-form .btn { justify-self: end; min-width: 200px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: var(--radius-tile);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--green-text); background: var(--green-bg); }
.form-status.err { color: var(--orange-text); background: var(--orange-bg); }
.privacy-hint { margin: 0; color: var(--c-500); font-size: 0.82rem; line-height: 1.55; }
.privacy-hint a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; }


/* ----------  404  ---------- */
.nf-main { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.nf-inner { max-width: 580px; }
.nf-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 17vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-inner h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-900);
}
.nf-inner p { margin: 16px auto 30px; max-width: 440px; color: var(--c-600); font-size: 1.05rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ----------  Responsive  ---------- */
@media (max-width: 1040px) {
  .header-inner { display: flex; align-items: center; gap: 12px; }
  .header-actions { margin-left: auto; justify-self: auto; }
  .nav-toggle { display: grid; }
  /* Nav becomes a drop-down panel anchored under the hamburger (left) */
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--frame);
    border-radius: var(--radius-card);
    background: var(--raised);
    box-shadow: var(--shadow-raised);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    z-index: 60;
    transform-origin: top left;
  }
  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav > a,
  .nav-settings > a,
  .nav-menu > summary {
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 1rem;
    text-align: left;
  }
  .nav-menu > summary { justify-content: space-between; }
  /* The features menu opens inline inside the mobile panel. */
  .nav-menu-panel {
    position: static;
    width: auto;
    grid-template-columns: minmax(0, 1fr);
    margin: 2px 0 6px;
    padding: 0 0 0 10px;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
  }
}
@media (max-width: 720px) {
  .site-header { top: 0; margin-top: 0; padding-top: 8px; }
  .header-inner { padding: 4px 0; }
  .site-header .brand-copy span { display: none; }
  /* Phone header: logo left, CTA and menu right; language and theme live in the menu. */
  .brand { order: 1; }
  .header-actions { order: 2; }
  .nav-toggle { order: 3; }
  .header-setting { display: none; }
  .site-nav { left: 0; right: 0; width: auto; max-width: none; justify-self: stretch; transform-origin: top center; }
  .nav-settings {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 8px 4px;
    border-top: 1px solid var(--rule);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col-two { grid-column: 1 / -1; }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  :root { --max-width: 1200px; }
  .shell { width: calc(100% - 32px); }

  /* Header: free up space; hero & final CTA carry conversion */
  .site-header { top: 0; margin-top: 0; padding-top: 8px; }
  .header-inner { gap: 10px; padding: 4px 0; }
  /* Short CTA label in the header on phones */
  .header-cta { min-height: 40px; padding: 0 15px; border-radius: 999px; flex: none; }
  .header-cta-label { display: none; }
  .header-cta-short { display: inline; }
  .brand-mark img:where(:not(.app *)) { width: 32px; height: 32px; }
  .brand-copy strong { font-size: 1rem; }
  .lang-toggle { height: 40px; padding: 0 12px; }
  .theme-toggle { width: 40px; height: 40px; }
  /* comfortable tap targets for footer nav */
  .footer-col a { padding: 6px 0; }

  .hero-actions { gap: 11px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { margin-top: 24px; font-size: 0.84rem; }

  /* Section rhythm */
  .section { padding: clamp(44px, 13vw, 72px) 0; }
  .s-head h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* Legal pages */
  .legal-card { padding: 26px 20px; border-radius: 18px; }
  .legal-card h1 { font-size: clamp(1.45rem, 7.4vw, 2.05rem); }
  .contact-form .btn { width: 100%; justify-self: stretch; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .brand-copy strong { font-size: 0.95rem; }
  .brand-copy span { display: none; }
  .lang-toggle span { font-size: 0.78rem; }
  .s-head h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
}
html.instant-scroll { scroll-behavior: auto; }
.contact-form-spaced { margin-top: 34px; }
