/* ============================================================
   omniOne: Landing page styles
   Rooted in frontend/DESIGN.md: warm-paper glass surfaces,
   Libre Baskerville editorial headlines + Space Grotesk UI,
   sky→orange brand gradient reserved for brand accents only.
   ============================================================ */

: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;

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

  /* Page */
  --page-bg: #f6f4ef;
  --page-wash-top: rgba(248, 250, 252, 0.92);
  --page-wash-bottom: rgba(241, 245, 249, 0.92);
  --orb-sky: rgba(14, 165, 233, 0.16);
  --orb-orange: rgba(249, 115, 22, 0.18);
  --grid-line: rgba(148, 163, 184, 0.11);

  /* Glass surfaces */
  --glass-panel: rgba(255, 255, 255, 0.94);
  --glass-card: rgba(255, 255, 255, 0.74);
  --glass-inset: rgba(248, 250, 252, 0.68);
  --glass-border: rgba(148, 163, 184, 0.28);
  --hairline: rgba(15, 23, 42, 0.06);

  /* Shadows: three depths */
  --shadow-xs: 0 8px 18px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 14px 28px rgba(15, 23, 42, 0.08);
  --shadow-panel: 0 28px 70px rgba(15, 23, 42, 0.13);
  --shadow-glow: 0 18px 60px rgba(79, 203, 255, 0.22);

  --max-width: 1200px;

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

:root[data-theme="dark"] {
  --c-900: #f6f8fc;
  --c-800: #e2e8f0;
  --c-700: #cbd5e1;
  --c-600: #aab6c6;
  --c-500: #8b97a8;
  --c-400: #6b7889;
  --c-300: #3a475c;
  --c-200: #25324a;
  --c-100: #1a2640;
  --c-50:  #131e36;

  --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);

  --page-bg: #0a0f1d;
  --page-wash-top: rgba(15, 23, 42, 0.55);
  --page-wash-bottom: rgba(2, 6, 23, 0.75);
  --orb-sky: rgba(56, 189, 248, 0.16);
  --orb-orange: rgba(249, 115, 22, 0.14);
  --grid-line: rgba(148, 163, 184, 0.07);

  --glass-panel: rgba(17, 26, 46, 0.88);
  --glass-card: rgba(20, 30, 52, 0.66);
  --glass-inset: rgba(28, 40, 66, 0.55);
  --glass-border: rgba(148, 163, 184, 0.16);
  --hairline: rgba(148, 163, 184, 0.12);

  --shadow-xs: 0 8px 18px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 14px 28px rgba(0, 0, 0, 0.30);
  --shadow-panel: 0 28px 70px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 18px 60px rgba(56, 189, 248, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-900);
  background:
    radial-gradient(circle at 12% 6%, var(--orb-sky), transparent 34rem),
    radial-gradient(circle at 90% 12%, var(--orb-orange), transparent 32rem),
    linear-gradient(180deg, var(--page-wash-top) 0%, var(--page-wash-bottom) 100%),
    var(--page-bg);
  transition: background-color 300ms ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}
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  ---------- */
.serif {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 999px;
  color: var(--sky-dark);
  background: var(--sky-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--c-900);
  border-color: var(--c-900);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--c-800);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}
:root[data-theme="dark"] .btn-primary {
  color: #0a0f1d;
  background: #f6f8fc;
  border-color: #f6f8fc;
}
:root[data-theme="dark"] .btn-primary:hover { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.btn-ghost {
  color: var(--c-700);
  background: var(--glass-card);
  border-color: var(--glass-border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--c-900);
  border-color: var(--c-400);
  box-shadow: var(--shadow-xs);
}
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.85rem; border-radius: 10px; }

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

/* ----------  Header  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 0;
  padding-top: 12px;
}
.header-inner {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 11px 11px 11px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--glass-panel) 90%, transparent);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
}
.brand-mark img { 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 {
  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 { background: var(--glass-inset); color: var(--c-900); }
.header-actions { display: flex; align-items: center; gap: 9px; }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.theme-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.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(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.lang-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.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(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.nav-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.nav-toggle svg { 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 .eyebrow { margin-bottom: 20px; }
.s-head h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  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  ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero-mock { container: ck / inline-size; min-width: 0; }
.preview-frame { container: ck / inline-size; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-900);
  text-wrap: balance;
}
.hero-nowrap {
  white-space: nowrap;
}
.hero-copy h1 em {
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.14em 0.06em 0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lede {
  margin: 26px 0 0;
  max-width: 540px;
  color: var(--c-600);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--c-500);
  font-size: 0.9rem;
}
.hero-note svg { width: 15px; height: 15px; color: var(--green-text); flex: none; }
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-card);
  color: var(--c-700);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}
.proof-row span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

/* ----------  Problem  ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.pain-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--c-300); }
.pain-ic {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--orange-text);
  background: var(--orange-bg);
}
.pain-ic svg { width: 21px; height: 21px; }
.pain-card strong { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--c-900); }
.pain-desc { color: var(--c-600); font-size: 0.92rem; line-height: 1.5; text-wrap: pretty; }

/* 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;
}
.hero-mock + .mock-note { text-align: left; margin-left: 2px; }

/* ----------  Features  ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--c-300); }
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #fff;
  background: var(--c-900);
}
:root[data-theme="dark"] .feature-icon { color: #0a0f1d; background: #f6f8fc; }
.feature-icon svg { width: 23px; height: 23px; }
.feature-card.accent .feature-icon { background: var(--brand-gradient); color: #062033; }
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.feature-card p { margin: 0; color: var(--c-600); line-height: 1.62; }
.feature-tag {
  display: inline-flex;
  white-space: nowrap;
  margin-top: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--glass-inset);
  border: 1px solid var(--glass-border);
  color: var(--c-500);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------  Idea / brand moment  ---------- */
.idea-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 8px;
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  background: var(--glass-panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.idea-card::before {
  content: "";
  position: absolute;
  top: -45%; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0.13;
  filter: blur(64px);
  pointer-events: none;
}
.idea-card > * { position: relative; z-index: 1; }
.idea-card .eyebrow { margin-bottom: 20px; }
.idea-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-900);
}
.idea-name {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(16px, 4vw, 52px);
  margin: clamp(30px, 4.5vw, 48px) 0;
}
.idea-part { display: flex; flex-direction: column; gap: 11px; }
.idea-part:first-child { align-items: flex-end; text-align: right; }
.idea-part:last-child { align-items: flex-start; text-align: left; }
.idea-term {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.idea-term em {
  font-style: italic;
  padding-right: 0.12em;
}
.idea-pron {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sky-dark);
  opacity: 0.85;
}
.idea-part:last-child .idea-pron { color: var(--orange-text); }
.idea-def {
  max-width: 18ch;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-500);
  line-height: 1.4;
}
.idea-plus {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--c-300);
}
.idea-body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--c-600);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.idea-coach {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  color: var(--c-700);
  font-size: 0.9rem;
  font-weight: 500;
}
.idea-coach-ic {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #062033;
}
.idea-coach-ic svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .idea-card { padding: 38px 22px; border-radius: 26px; }
  .idea-name { gap: 12px; }
  .idea-def { font-size: 0.72rem; }
  .idea-coach { font-size: 0.84rem; }
}

/* ----------  Workflow  ---------- */
.workflow-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 0;
  counter-reset: step;
}
.workflow-list li {
  position: relative;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.workflow-list li .step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: #062033;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glow);
  font-variant-numeric: tabular-nums;
}
/* connecting line between steps */
.workflow-list li:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--glass-border) 0%, var(--c-300) 100%);
  z-index: 0;
}
.workflow-list .wf-text { display: flex; flex-direction: column; gap: 7px; }
.workflow-list li strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--c-900);
}
.workflow-list li .step-meta { color: var(--c-500); font-size: 0.85rem; line-height: 1.45; text-wrap: pretty; }

/* Workflow → vertical timeline on tablet/phone */
@media (max-width: 900px) {
  .workflow-list {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 440px;
    margin-inline: auto;
  }
  .workflow-list li {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0 0 28px;
  }
  .workflow-list li:last-child { padding-bottom: 0; }
  /* Neutralise the desktop horizontal connector that still targets the last
     step (it matches :not(:first-child) but not the vertical :not(:last-child)). */
  .workflow-list li:last-child::before { display: none; }
  .workflow-list li .step-num { margin-bottom: 0; flex: none; }
  /* vertical connector */
  .workflow-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--c-300) 0%, var(--glass-border) 100%);
  }
  .workflow-list .wf-text { padding-top: 9px; }
}

/* ----------  Preview  ---------- */
.preview-frame {
  margin-top: 44px;
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  background: var(--glass-card);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.preview-frame .cockpit { box-shadow: none; }

/* ----------  Final CTA  ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  background: var(--glass-panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 520px; height: 520px;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0.14;
  filter: blur(60px);
  pointer-events: none;
}
.cta-card .eyebrow { margin-bottom: 22px; }
.cta-card h2 {
  position: relative;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.cta-card p {
  position: relative;
  max-width: 560px;
  margin: 20px auto 32px;
  color: var(--c-600);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ----------  Footer  ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 0 48px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand .brand-copy strong { color: var(--c-900); }
.footer-meta { color: var(--c-500); font-size: 0.86rem; max-width: 360px; line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--c-500); font-size: 0.9rem; }
.footer-links a { transition: color 150ms ease; }
.footer-links a:hover { color: var(--c-900); }

/* ----------  Legal pages  ---------- */
.legal-main { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--c-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease, gap 150ms ease;
}
.back-link:hover { color: var(--c-900); gap: 11px; }
.back-link svg { width: 16px; height: 16px; }
.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass-panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  background: var(--sky-bg);
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.legal-card h1 {
  margin: 0;
  min-width: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.legal-lead { margin: 14px 0 0; color: var(--c-600); font-size: 1.05rem; line-height: 1.6; }
.legal-notice {
  margin: 26px 0 8px;
  padding: 15px 17px;
  display: flex;
  gap: 11px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 16px;
  background: var(--amber-bg);
  color: var(--c-800);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}
.legal-notice svg { width: 20px; height: 20px; color: var(--amber-text); flex: none; margin-top: 1px; }
.legal-sections { display: grid; gap: 28px; margin-top: 34px; }
.legal-sections section { display: grid; gap: 8px; }
.legal-sections h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}
.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(--brand-gradient);
}
.legal-sections .body strong { color: var(--c-900); font-weight: 600; }
.legal-sections .body a {
  color: var(--sky-dark);
  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(--sky); }
.legal-sections .note {
  margin: 4px 0 0;
  padding: 11px 13px;
  border-left: 2px solid var(--glass-border);
  background: var(--glass-inset);
  border-radius: 0 10px 10px 0;
  color: var(--c-500);
  font-size: 0.86rem;
  line-height: 1.55;
}
.legal-updated { margin-top: 30px; color: var(--c-500); font-size: 0.86rem; }

/* ----------  Contact page  ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-600);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  background: var(--glass-inset);
  color: var(--c-900);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-400); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-bg);
  background: var(--glass-card);
}
.field textarea { 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: 13px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--green-text); background: var(--green-bg); border: 1px solid rgba(34,197,94,0.3); }
.form-status.err { color: var(--orange-text); background: var(--orange-bg); border: 1px solid rgba(249,115,22,0.32); }
.privacy-hint { margin: 0; color: var(--c-500); font-size: 0.82rem; line-height: 1.55; }
.privacy-hint a { color: var(--sky-dark); text-decoration: underline; text-underline-offset: 2px; }

.contact-aside {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-inset);
}
.contact-aside .item { display: grid; gap: 5px; }
.contact-aside .item h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}
.contact-aside .item p { margin: 0; color: var(--c-700); font-size: 0.96rem; line-height: 1.5; }
.contact-aside .item a { color: var(--c-900); font-weight: 600; }
.contact-aside .item a:hover { color: var(--sky-dark); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
}
@media (max-width: 560px) {
  .contact-form .btn { width: 100%; justify-self: stretch; }
  .contact-aside { padding: 22px; }
}

/* ----------  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-inner .eyebrow { margin-bottom: 22px; }
.nf-code {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(5.5rem, 17vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  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: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  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; }

/* ----------  Scroll reveal  ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------  Responsive  ---------- */
@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 52px); }
  .hero-copy h1 { max-width: 20ch; }
  .hero-mock { max-width: 760px; }
}
@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);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--glass-panel) 96%, transparent);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    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 {
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 1rem;
    text-align: left;
  }
  .hero-copy h1 { max-width: 16ch; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { top: 0; margin-top: 0; padding-top: 8px; }
  .header-inner { padding: 9px 9px 9px 12px; }
  .site-header .brand-copy span { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* Hero mock is redundant on phones; the dedicated Vorschau section already
     shows the cockpit. Hiding it removes a large duplicate block and tightens the hero. */
  .hero-mock,
  .hero-mock + .mock-note { display: none; }
  .hero { padding-bottom: 0; }
}

/* ---- 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: 8px 8px 8px 12px; }
  /* Compact icon-only CTA in the header on phones */
  .header-cta {
    min-height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 999px;
    flex: none;
  }
  .header-cta-label { display: none; }
  .header-cta-icon { display: block; width: 18px; height: 18px; }
  .brand-mark img { 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-links { gap: 6px 18px; flex-wrap: wrap; }
  .footer-links a { padding: 6px 0; }
  /* keep module mini-mocks from overflowing their card */
  .module-mock { min-width: 0; overflow: hidden; }

  /* Hero */
  .hero { padding: clamp(28px, 9vw, 48px) 0 8px; gap: 30px; }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 9.2vw, 3rem);
    max-width: none;
    line-height: 1.06;
    hyphens: none;
  }
  .hero-copy .lede { font-size: 1.05rem; margin-top: 20px; }
  .hero-actions { gap: 11px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .proof-row { gap: 8px; margin-top: 28px; padding-top: 22px; }

  /* Section rhythm */
  .section { padding: clamp(44px, 13vw, 72px) 0; }
  .s-head h2 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .pain-grid, .feature-grid, .module-grid { margin-top: 32px; gap: 12px; }
  .feature-card, .module-card { padding: 24px 22px; border-radius: 20px; }
  .module-card.wide { padding: 24px 22px; }
  .workflow-list { margin-top: 32px; gap: 10px; }

  /* Preview frame */
  .preview-frame { margin-top: 32px; padding: 10px; border-radius: 24px; }

  /* Pricing */
  .pricing-grid { margin-top: 40px; gap: 14px; }
  .price-card { padding: 28px 24px; }

  /* Final CTA */
  .cta-card { padding: 40px 22px; border-radius: 26px; }
  .cta-card h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .cta-card p { font-size: 1rem; }
  .cta-actions .btn { width: 100%; }

  /* Cockpit slightly denser */
  .cockpit { font-size: 12px; }

  /* Legal pages */
  .legal-card { padding: 26px 20px; border-radius: 22px; }
  .legal-card h1 { font-size: clamp(1.45rem, 7.4vw, 2.05rem); }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: clamp(2rem, 9.6vw, 2.5rem); }
  .brand-copy strong { font-size: 0.95rem; }
  .brand-copy span { display: none; }
  .lang-toggle span { font-size: 0.78rem; }
  .feature-card, .module-card, .module-card.wide, .price-card { padding: 22px 18px; }
  .cta-card { padding: 34px 18px; }
  .price-card.solo .price-amount b { font-size: 2.4rem; }
  .s-head h2 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
}
