/* =========================================================
   startsite.ch — Stylesheet
   Palette: "Alpine Momentum" — Indigo/Violet + Electric Lime
   ========================================================= */

/* ---------- Self-hosted variable fonts (no Google request) ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --bg: #FAFAF7;
  --bg-soft: #F1EEFB;
  --surface: #FFFFFF;
  --ink: #14131F;
  --muted: #5D5B70;
  --muted-soft: #6E6C86; /* darkened from #8886A0 for WCAG AA contrast (4.5:1+) on light backgrounds */
  --line: rgba(20, 19, 31, 0.10);
  --line-soft: rgba(20, 19, 31, 0.06);

  --primary: #5B3DF6;
  --primary-600: #4A2CE0;
  --primary-light: #8B7CFF;
  --primary-tint: #EDE9FF;

  --accent: #C6FF3D;
  --accent-ink: #1B2405;
  --accent-glow: rgba(198, 255, 61, 0.35);

  --dark: #0C0A16;
  --dark-soft: #16132B;
  --dark-line: rgba(255, 255, 255, 0.10);
  --white: #FFFFFF;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-full: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(20, 19, 31, 0.08);
  --shadow-strong: 0 24px 60px rgba(20, 19, 31, 0.16);
  --shadow-accent: 0 12px 30px rgba(198, 255, 61, 0.30);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Type */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 10px);
  overscroll-behavior-x: none;
}
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4vw + 1rem, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4.5rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 0.85rem;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--r-full);
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0); }
.btn:focus-visible, .nav-toggle:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
}

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-md { padding: 0.75rem 1.5rem; font-size: 0.92rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-600); box-shadow: var(--shadow-strong); }

.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-accent:hover { box-shadow: 0 18px 40px rgba(198, 255, 61, 0.45); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-tint); }
.btn-outline:hover { background: var(--primary-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Blur lives on a pseudo-element (not the header itself) so the header
   never becomes a containing block for fixed-position descendants
   (backdrop-filter/filter do) — otherwise the mobile nav overlay below
   would size itself against the 76px header box instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 19, 31, 0.06);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--accent);
}
.logo-dot { color: var(--primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; padding: 0.4rem; }
.icon-close-mobile { display: none; }
.nav-mobile-cta { display: none; }

/* Between the mobile-nav breakpoint and full desktop width, the 7 nav
   links + CTA button are tighter than the container — without this,
   the CTA button's right edge gets clipped by body's overflow-x: hidden. */
@media (min-width: 901px) and (max-width: 1240px) {
  .header-inner { gap: 0.85rem; }
  .main-nav ul { gap: 1.2rem; }
  .header-actions { gap: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(6.5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--bg);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--primary-light), var(--primary) 60%, transparent 100%);
  top: -180px; right: -120px;
  animation: float-slow 16s var(--ease) infinite alternate;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 40% 40%, var(--accent), transparent 75%);
  bottom: -140px; left: -100px;
  opacity: 0.4;
  animation: float-slow 20s var(--ease) infinite alternate-reverse;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 20%, transparent 75%);
}

@keyframes float-slow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 40px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-600);
  background: var(--primary-tint);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.4vw + 1rem, 4.6rem);
  color: var(--ink);
}
.accent-text {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.accent-text::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 0.08em;
  height: 0.28em;
  background: var(--accent);
  z-index: -1;
  border-radius: 3px;
}
.hero-title-note {
  display: inline-block;
  font-size: 0.4em;
  font-weight: 600;
  color: var(--muted);
  vertical-align: super;
  margin-left: 0.1em;
  text-decoration: none;
}
.hero-title-note:hover,
.hero-title-note:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero-cta {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-microcopy {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted-soft);
}

/* Hero visual: browser mockup card */
.hero-visual { position: relative; perspective: 1400px; }

/* Outer wrapper carries the idle floating bob (a CSS animation on `transform`);
   the inner .browser-card carries the cursor-driven 3D tilt (a JS-set inline
   `transform`) — split across two elements so the two transforms don't fight
   over the same property. */
.browser-card-wrap { animation: card-float 7s ease-in-out infinite; }

.browser-card {
  display: block;
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.browser-card.is-tilting { transition: transform 0.08s linear; }
.browser-card:hover { box-shadow: 0 30px 70px rgba(20, 19, 31, 0.22); }

/* Cursor-tracked glossy highlight, positioned via --mx/--my set from JS */
.browser-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.browser-card.is-tilting::after { opacity: 1; }

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(0.2deg); }
  50% { transform: translateY(-14px) rotate(-0.2deg); }
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.browser-bar span:not(.browser-bar-label) { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span:nth-child(1) { background: #FF6B6B; }
.browser-bar span:nth-child(2) { background: #FFD166; }
.browser-bar span:nth-child(3) { background: #6FCF97; }

.browser-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  color: var(--muted-soft);
}
.browser-address .icon { width: 0.9em; height: 0.9em; flex-shrink: 0; }

.browser-bar-label {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary-600);
  background: var(--primary-tint);
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-full);
}

/* Real customer screenshot inside the browser-chrome frame */
.demo-shot { position: relative; line-height: 0; }
.demo-shot img { display: block; width: 100%; height: auto; }

.demo-tag {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 0.54rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.22rem 0.5rem;
  border-radius: var(--r-full);
}

.visual-stack { position: relative; }
.browser-card-wrap { position: relative; z-index: 1; }

.visual-caption {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-soft);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scroll-cue 2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ---------- Trust ---------- */
.trust { padding: 3rem 0 5rem; }

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2.2rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--dark);
  border-radius: var(--r-lg);
  color: var(--white);
}
@media (min-width: 760px) {
  .trust-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.stat-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  margin-bottom: 0.3rem;
}

.trust-logos { margin-top: 3rem; text-align: center; }
.trust-logos-label { font-size: 0.85rem; color: var(--muted-soft); margin-bottom: 1.5rem; }

/* Industry badges: one endless marquee row on every screen size.
   Plain overflow-x: auto is the baseline (works with no JS, or when
   prefers-reduced-motion skips the marquee setup entirely — still
   scrollable, just without the auto-drift). Once script.js actually
   wires up the drag+drift behaviour it adds .is-marquee, which swaps
   to the transform-driven track (see setupMarquee in script.js for why
   native scrollLeft isn't used for the motion itself). */
.logo-row {
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.logo-row::-webkit-scrollbar { display: none; }
.logo-row.is-marquee {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.logo-row.is-marquee:active { cursor: grabbing; }
.logo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}
.logo-placeholder {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted-soft);
  background: var(--bg-soft);
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
}

/* ---------- Section head (shared) ---------- */
.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.section-head .eyebrow {
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0.9rem;
  color: var(--primary-600);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.section-head.light .eyebrow { background: none; color: var(--accent); }
.section-head.light h2, .section-head.light .section-lead { color: var(--white); }
.section-lead { margin-top: 1rem; font-size: 1.05rem; color: var(--muted); }

/* ---------- Portfolio ---------- */
.portfolio { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-soft); }

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (min-width: 760px) {
  .portfolio-card { flex-direction: row; align-items: center; gap: 2.75rem; }
  .portfolio-browser { flex: 1.15; }
  .portfolio-case { flex: 1; }
}

.portfolio-browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.portfolio-card:hover .portfolio-browser { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.portfolio-browser img { display: block; width: 100%; height: auto; }

.portfolio-case { padding: 0 0.2rem; }
.mockup-label-inline {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  margin-bottom: 0.7rem;
}
.portfolio-case h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.portfolio-case p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.portfolio-case .btn { margin-top: 1.2rem; }

/* ---------- Problem / Nutzen ---------- */
.problem { padding: clamp(4rem, 8vw, 7rem) 0; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 760px) {
  .problem-grid { grid-template-columns: 1fr auto 1fr; gap: 0; }
}

.problem-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
/* The positive card visually "wins": stronger surface, colored border and
   permanent elevation, so it reads as the outcome you'd choose — not just
   the second half of a neutral comparison. */
.problem-card-positive {
  background: linear-gradient(160deg, var(--primary-tint), var(--surface) 65%);
  border-color: var(--primary);
  box-shadow: var(--shadow-strong);
  position: relative;
  z-index: 1;
}
/* Note: deliberately no transform:scale() on .problem-card-positive —
   .reveal.is-visible (2 classes) would win the cascade over a single-class
   transform rule and silently cancel it once the scroll-reveal animation
   finishes. Prominence comes from border/shadow/background instead. */

.problem-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  margin-bottom: 1.4rem;
}
.problem-tag-negative { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.problem-tag-positive { background: var(--primary); color: #fff; }

/* Connector bridges the two cards on desktop — "this becomes that" */
.problem-connector { display: none; }
@media (min-width: 760px) {
  .problem-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: var(--shadow-strong);
    z-index: 2;
  }
  .problem-connector .icon { width: 1.3em; height: 1.3em; }
}

.problem-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.problem-icon-badge .icon { width: 0.85em; height: 0.85em; }
.problem-icon-negative { background: var(--line-soft); color: var(--muted-soft); }
.problem-icon-positive { background: var(--accent); }

.cross-list { display: flex; flex-direction: column; gap: 1rem; }
.cross-list li,
.problem-card .check-list li {
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.problem-card-positive .check-list li { color: var(--ink); font-weight: 500; }
/* Beats the global .check-list .icon lime-on-icon rule so the checkmark
   reads dark against its own lime badge instead of lime-on-lime. */
.problem-card-positive .check-list .icon { color: var(--accent-ink); }

/* ---------- Process ---------- */
.process { padding: clamp(4rem, 8vw, 7rem) 0; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .steps's grid. Only the mobile media
   query further down turns it into an animated marquee track. */
.steps-track { display: contents; }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); border-color: var(--primary-tint); }
.step-number {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-full);
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* connecting line on wide screens */
@media (min-width: 1080px) {
  .steps { position: relative; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem; right: -0.9rem;
    width: 0.9rem; height: 1.5px;
    background: var(--line);
  }
}

.timeline-intro {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.timeline-intro h3 { margin-bottom: 0.5rem; }
.timeline-intro p { color: var(--muted); font-size: 0.92rem; }

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 1.5rem;
  margin-top: 2rem;
}
.timeline-item {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.timeline-day {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
}
.timeline-item-launch .timeline-day { color: var(--accent-ink); background: var(--accent); }
.timeline-label { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Why: Agentur / Baukasten / startsite.ch comparison ---------- */
.why { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-soft); }

/* Mobile-first: one flat grid, auto-flowing in row order (dimension, 3 values) x 5,
   so the same markup reads as a stacked list on narrow screens and becomes a real
   4-column comparison table from 760px up — no duplicated content either way. */
.compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}
.compare-highlight { display: none; }
.compare-head, .compare-head-spacer { display: none; }

.compare-dimension {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 1.6rem;
  padding-bottom: 0.4rem;
}
.compare-dimension:first-of-type { margin-top: 0; }

.compare-cell {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.compare-cell-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted-soft);
  margin-bottom: 0.15rem;
}
.compare-cell-us {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  border-bottom: none;
  margin: 0.3rem 0 0.5rem;
  box-shadow: var(--shadow-strong);
}
.compare-cell-us .compare-cell-tag { color: var(--accent); }
.compare-cell-value { display: inline-flex; align-items: center; gap: 0.5rem; }
.compare-cell-check {
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  padding: 0.2em;
  flex-shrink: 0;
}

.compare-footnote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.compare-footnote .icon { color: var(--primary); width: 1.2em; height: 1.2em; flex-shrink: 0; }

@media (min-width: 760px) {
  .compare {
    grid-template-columns: minmax(96px, 0.85fr) repeat(3, 1fr);
    /* Explicit row count so `grid-row: 1 / -1` on .compare-highlight resolves
       against real lines — negative line indices only count explicit tracks,
       and with no grid-template-rows at all "-1" would just mean "1". */
    grid-template-rows: repeat(6, auto);
    column-gap: 1.25rem;
  }
  .compare-highlight {
    display: block;
    /* position:absolute takes this out of grid auto-placement — otherwise, as a
       normal (in-flow) grid item spanning column 4 / all rows, it would reserve
       those cells and push every auto-placed sibling that follows it in the DOM
       one slot to the right/down. */
    position: absolute;
    grid-column: 4;
    grid-row: 1 / -1;
    inset: 0; /* stretch to fill the grid area — abspos grid items don't do this by default */
    background: linear-gradient(160deg, var(--dark), var(--dark-soft));
    border: 1.5px solid var(--accent);
    box-shadow: var(--shadow-strong);
    border-radius: var(--r-md);
    margin: -0.6rem -0.7rem;
  }

  .compare-head, .compare-head-spacer {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted);
  }
  .compare-head-spacer { border-bottom-color: transparent; }
  .compare-head-us { color: #fff; border-bottom-color: var(--accent); position: relative; z-index: 1; }
  .compare-badge {
    position: absolute;
    top: -1.5rem;
    right: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.6rem;
    border-radius: var(--r-full);
    white-space: nowrap;
    box-shadow: var(--shadow-accent);
  }

  .compare-dimension {
    margin-top: 0;
    padding: 0.9rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
  }
  .compare-cell {
    flex-direction: row;
    align-items: center;
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .compare-cell-tag { display: none; }
  .compare-cell-us {
    background: none;
    border-radius: 0;
    padding: 0.9rem 0.6rem;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .compare > :nth-last-child(-n+4) { border-bottom: none; }
}

/* ---------- Pricing ---------- */
.pricing { padding: clamp(4rem, 8vw, 7rem) 0; }

.check-list { display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; }
.check-list .icon { color: var(--accent); width: 1.1em; height: 1.1em; }

.pricing-creation { margin-bottom: 4rem; }

/* Erstellung sits on a dark "stage" so it reads as the primary decision;
   the plan-cards keep their normal light surface and float on top of it —
   Betrieb below stays plain/light to read as the smaller follow-on choice. */
.pricing-stage {
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.pricing-stage .ongoing-head h3 { color: var(--white); }
.pricing-stage .ongoing-head p { color: rgba(255, 255, 255, 0.72); }
.pricing-stage .plan-card { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }

.ongoing-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-tint);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.1rem;
}
.ongoing-eyebrow-dark { color: var(--accent-ink); background: var(--accent); }

.ongoing-head strong.highlight-accent { color: var(--accent); font-weight: 700; }

/* Giant ghost numeral watermark: the "this is step N" signal now lives
   as a large background numeral instead of a small inline badge — reads
   at a glance without competing with the label text for attention. */
.stage-numeral {
  position: absolute;
  top: -2rem;
  right: 1rem;
  font-family: var(--font-head);
  font-size: clamp(9rem, 22vw, 15rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Real content needs its own stacking order above the watermark — by
   default a position:absolute z-index:0 sibling paints AFTER static
   in-flow content, not behind it (same fix pattern as .hero-bg/.hero-inner). */
.pricing-stage > .ongoing-head,
.pricing-stage > .billing-toggle,
.pricing-stage > .plans {
  position: relative;
  z-index: 1;
}

/* Two-step price overview: the single number a non-technical visitor
   needs from each half of the section, before the detailed packages. */
/* Deliberately vivid (not the neutral dark used by .pricing-stage right
   below it) so the two bold moments don't blur into one another — this is
   the single most important number on the page, it gets the brand's most
   energetic treatment. */
.price-journey {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(91, 61, 246, 0.35);
  margin-bottom: 3rem;
  overflow: hidden;
}
.price-journey::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
@media (min-width: 700px) {
  .price-journey { grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
}
.price-journey-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.step-numeral {
  position: absolute;
  z-index: -1;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.price-journey-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.price-journey-value {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
}
.price-journey-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.price-journey-connector {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.price-journey-connector .icon { transform: rotate(90deg); }
@media (min-width: 700px) {
  .price-journey-connector { margin: 0; }
  .price-journey-connector .icon { transform: none; }
}

.ongoing-head { max-width: 40rem; margin-bottom: 2rem; }
.ongoing-head h3 { margin-bottom: 0.6rem; }
.ongoing-head p { color: var(--muted); }
.ongoing-head strong { color: var(--ink); }
.pricing-stage .ongoing-head strong:not(.highlight-accent) { color: #fff; }

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .plans's grid. Only the mobile media
   query further down turns it into an animated marquee track. */
.plans-track { display: contents; }

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.plan-card h4 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.plan-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.plan-price span:first-child { font-size: 1rem; font-weight: 600; color: var(--muted); margin-right: 0.2rem; }
.plan-price span:last-child { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* Monthly/yearly toggle: two markup variants per price, one hidden.
   Explicit classes here (rather than :first-child) so this survives
   regardless of the legacy rules above, which still serve the plain
   Start/Grow/Individuell prices that only ever show one value. */
.price-tier { display: none; align-items: baseline; gap: 0.2rem; }
.price-tier:not([hidden]) { display: inline-flex; }
.price-currency, .price-suffix { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-amount { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
/* No dark-stage override for price text: it always sits inside a light
   .plan-card floating on the dark stage, never directly on the dark
   background — the default ink/muted colors already have contrast there. */

.billing-toggle {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 0.3rem;
  padding: 0.3rem;
  margin: 0 auto 2.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-full);
}
.billing-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.billing-toggle-btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.billing-save {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.plan-card .check-list { color: var(--muted); flex-grow: 1; }
.plan-card .check-list .icon { color: var(--primary); }
.plan-card .btn { margin-top: auto; }
.plan-fit { font-size: 0.78rem; color: var(--muted-soft); text-align: center; }

.plan-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(160deg, var(--primary-tint), var(--surface) 55%);
}
.plan-tag {
  position: absolute;
  top: -12px; right: 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-accent);
}

/* ---------- References (testimonials only) ---------- */
.references { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-soft); }

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.usecase-icon { color: var(--accent); width: 1.8em; height: 1.8em; }
.usecase-text { color: var(--ink); font-size: 0.98rem; line-height: 1.65; }
.usecase-label { font-weight: 600; font-size: 0.88rem; color: var(--primary-600); }

/* ---------- Risikoreduktion / Assurance ---------- */
.assurance { padding: clamp(4rem, 8vw, 7rem) 0; }

.trust-badge-row { margin-bottom: 2.75rem; }
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .trust-badge-row's flex/wrap. Only the
   mobile media query further down turns it into an animated marquee
   track (see .logo-row in the hero for how that split works). */
.trust-badge-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.trust-badge .icon { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }

.assurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .assurance-grid { grid-template-columns: repeat(3, 1fr); } }
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .assurance-grid's grid. Only the mobile
   media query further down turns it into an animated marquee track
   (see .logo-row in the hero for how that split works). */
.assurance-track { display: contents; }

.assurance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.assurance-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.assurance-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.assurance-card h3 { margin-bottom: 0.5rem; }
.assurance-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 8vw, 7rem) 0; }

.accordion { max-width: 46rem; display: flex; flex-direction: column; gap: 0.9rem; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}
.accordion-trigger .icon { color: var(--primary); transition: transform 0.35s var(--ease); }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  max-height: 48rem;
}
.accordion-panel p {
  padding: 0 1.6rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.blob-3 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 40% 40%, var(--primary-light), transparent 70%);
  top: -160px; right: -160px;
  filter: blur(80px);
  opacity: 0.5;
  position: absolute;
  border-radius: 50%;
  animation: float-slow 18s var(--ease) infinite alternate;
}
.contact-inner { position: relative; z-index: 1; }

.contact-grid { max-width: 40rem; }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.optional-tag { font-weight: 400; color: rgba(255,255,255,0.45); text-transform: none; }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  color: var(--white);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.25);
}
.form-row select option { color: var(--ink); }
.form-row textarea { resize: vertical; }
.form-row-consent { margin-top: 0.15rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
}
.consent-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.contact-form.is-submitting { opacity: 0.72; pointer-events: none; }

.form-status { font-size: 0.9rem; text-align: center; font-weight: 600; min-height: 1.2em; color: var(--accent); }

.contact-alt { margin-top: 0.4rem; padding-top: 1.4rem; border-top: 1px solid var(--dark-line); text-align: center; }
.contact-alt-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.9rem; }
.contact-alt-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.contact-alt-buttons .btn-ghost { border-color: rgba(255,255,255,0.2); color: #fff; }
.contact-alt-buttons .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.footer-logo { color: var(--white); }
.footer-logo .logo-dot { color: var(--primary-light); }
.footer-tagline { font-size: 0.9rem; max-width: 28rem; }
.footer-phone { font-size: 0.85rem; margin-top: -0.6rem; }
.footer-phone a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-phone a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social .icon { width: 1.1em; height: 1.1em; }

.footer-links { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.8rem; }

/* ---------- Legal pages ---------- */
.legal-main { padding: clamp(7rem, 10vw, 9rem) 0 5rem; }
.legal-main .container { max-width: 46rem; }
.legal-main h1 { font-size: clamp(2rem, 3vw + 1rem, 2.6rem); margin-bottom: 1.5rem; }
.legal-main h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.legal-main p, .legal-main li { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8rem; }
.legal-main ul { list-style: disc; padding-left: 1.3rem; }
.legal-main code {
  font-size: 0.88em;
  background: var(--primary-tint);
  color: var(--primary-600);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.legal-note {
  background: var(--primary-tint);
  color: var(--primary-600);
  padding: 1rem 1.3rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; font-weight: 600; color: var(--primary); }
.back-link .icon { transform: rotate(180deg); width: 1em; height: 1em; }

/* ---------- 404 page ---------- */
.not-found { padding: clamp(7rem, 14vw, 11rem) 0 6rem; }
.not-found-inner { max-width: 34rem; text-align: center; margin: 0 auto; }
.not-found-code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--primary-tint);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.not-found-text { color: var(--muted); font-size: 1rem; margin-bottom: 2.2rem; }
.not-found-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Mobile Nav ---------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--bg);
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    z-index: 90;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .main-nav a { font-size: 1.3rem; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open ~ .header-actions .icon-open,
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close-mobile { display: block; }
}
@media (min-width: 901px) {
  .header-actions .btn-sm { display: inline-flex; }
  .nav-mobile-cta { display: none !important; }
}

/* ---------- Sticky Mobile CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20, 19, 31, 0.08);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-main { flex: 1; }
.mobile-cta-phone {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
}
.mobile-cta-phone .icon { width: 1.2em; height: 1.2em; }

@media (max-width: 900px) {
  .mobile-cta-bar { display: flex; }
  body:has(#mobile-cta-bar) .site-footer { padding-bottom: 5.5rem; }
}

/* ---------- Pricing wizard ---------- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
}
.wizard-step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.wizard-step-indicator:disabled {
  cursor: not-allowed;
  border-color: color-mix(in srgb, var(--ink) 28%, #fff);
  background: color-mix(in srgb, var(--ink) 4%, #fff);
  color: color-mix(in srgb, var(--ink) 55%, #fff);
  opacity: 1;
}
.wizard-step-indicator:not(:disabled):hover {
  border-color: var(--primary);
  color: var(--primary);
}
.wizard-step-indicator.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}
.wizard-step-indicator.is-active:hover {
  color: #fff;
}
.wizard-step-indicator.is-done:not(:disabled) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary-600, var(--primary));
}
.wizard-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 12%, #fff);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}
.wizard-step-indicator:disabled .wizard-step-num {
  background: color-mix(in srgb, var(--ink) 18%, #fff);
  color: color-mix(in srgb, var(--ink) 70%, #fff);
}
.wizard-step-indicator.is-active .wizard-step-num {
  background: #fff;
  color: var(--primary);
}
.wizard-step-indicator.is-done:not(:disabled) .wizard-step-num {
  background: var(--primary);
  color: #fff;
}
.wizard-step-line {
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 22%, #fff);
  flex-shrink: 0;
}
.wizard-step-indicator.is-done + .wizard-step-line,
.wizard-step-indicator.is-active + .wizard-step-line {
  background: color-mix(in srgb, var(--primary) 55%, #fff);
}
.wizard-summary {
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.wizard-panel[hidden] { display: none !important; }
.plan-card.is-selected {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.wizard-back-wrap { margin-top: 1.25rem; }
.wizard-choice-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}
.wizard-choice-card strong { color: var(--accent, #c6ff3d); }

/* ---------- Extras (marketing / startup) ---------- */
.extras { padding: var(--section-y, 5rem) 0; background: var(--paper, #f7f5f1); }

.media-services { padding: clamp(4rem, 8vw, 7rem) 0; }
.media-services-cta { text-align: center; margin-top: 2.25rem; }
.extras-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 860px) {
  .extras-grid { grid-template-columns: repeat(3, 1fr); }
}
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .extras-grid's grid. Only the mobile
   media query further down turns it into an animated marquee track
   (see .logo-row in the hero for how that split works). */
.extras-track { display: contents; }
.extras-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
}
.extras-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.extras-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.extras-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.module-hero {
  display: block;
  margin-bottom: 1.75rem;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  background: linear-gradient(145deg, var(--dark), var(--dark-soft));
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-strong);
}
.module-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.module-hero-copy h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 0.7rem;
  color: #fff;
}
.module-hero-copy > p { margin: 0 0 1.15rem; color: rgba(255,255,255,0.78); max-width: 38rem; }
.module-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}
.module-price-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(100%, 11.5rem);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(198, 255, 61, 0.28);
}
.module-price-chip strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}
.module-price-chip span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.35;
}
.module-hero-copy .btn { width: auto; }

.plugin-board {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .plugin-board { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .plugin-board { grid-template-columns: repeat(3, 1fr); }
}
/* On desktop the track is just a transparent grouping wrapper — its
   children lay out directly in .plugin-board's grid. Only the mobile
   media query further down turns it into an animated marquee track
   (see .logo-row in the hero for how that split works). */
.plugin-board-track { display: contents; }
.plugin-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.15rem 1.2rem;
}
.plugin-badge {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.plugin-badge-free { background: var(--accent); color: var(--accent-ink); }
.plugin-badge-use { background: var(--primary-tint); color: var(--primary-600); }
.plugin-badge-ask { background: var(--bg-soft); color: var(--muted); }
.plugin-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.plugin-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.plugin-card .extras-icon { margin-bottom: 0.65rem; }
.plugin-demo-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-600) 35%, transparent);
}
.plugin-demo-link:hover { color: var(--heading); border-bottom-color: var(--heading); }
.plugin-demos-cta { margin: 0 0 1.5rem; text-align: center; }

/* ---- Plugin demo pages (PHP) ---- */
.demo-nav { display: flex; gap: 1rem; align-items: center; font-size: 0.92rem; font-weight: 600; }
.demo-nav a { color: var(--muted); text-decoration: none; }
.demo-nav a:hover { color: var(--heading); }
.demo-main { padding: 2rem 0 4rem; }
.demo-hero { margin: 0 0 2rem; max-width: 40rem; }
.demo-hero-compact { margin-bottom: 1.25rem; }
.demo-hero h1 { margin: 0.35rem 0 0.75rem; }
.demo-external { margin: 0.9rem 0 0; }
.demo-external .btn { gap: 0.4rem; }
.demo-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
}
.demo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.2rem 1.25rem;
}
.demo-card h2 { font-size: 1.15rem; margin: 0 0 0.45rem; }
.demo-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.demo-card-meta { margin-top: 0.65rem !important; font-size: 0.8rem !important; letter-spacing: 0.01em; }
.demo-card .btn { margin-top: auto; align-self: flex-start; padding-top: 1rem; }
.demo-frame-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  min-height: var(--demo-frame-height, 720px);
}
.demo-frame {
  display: block;
  width: 100%;
  height: var(--demo-frame-height, 720px);
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.demo-frame-wrap.is-ready .demo-frame {
  opacity: 1;
}
.demo-frame-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(241,238,251,0.92));
  font-size: 0.95rem;
  font-weight: 600;
}
.demo-frame-wrap.is-ready .demo-frame-status {
  display: none;
}
.demo-frame-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2.5px solid var(--primary-tint);
  border-top-color: var(--primary);
  animation: demo-spin 0.7s linear infinite;
}
.demo-frame-wrap.is-slow .demo-frame-status-text {
  color: var(--ink);
}
@keyframes demo-spin {
  to { transform: rotate(360deg); }
}
.demo-info-panel {
  max-width: 40rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
}
.demo-info-panel p { color: var(--muted); line-height: 1.55; }
.demo-info-panel code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-soft);
}
.demo-hint { margin-top: 1rem; font-size: 0.88rem; }

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}
.demo-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.demo-tab-label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}
.demo-tab-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-soft);
}
.demo-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.demo-tab.is-active {
  background: var(--surface);
  border-color: var(--primary-tint);
  color: var(--primary-600);
  box-shadow: var(--shadow-soft);
}
.demo-tab.is-active .demo-tab-hint {
  color: var(--primary);
}
@media (max-width: 520px) {
  .demo-tabs { grid-template-columns: 1fr; }
}
.demo-tabs:has(.demo-tab:only-child) {
  grid-template-columns: 1fr;
}

.native-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
}
.native-lead { margin: 0 0 1.1rem; color: var(--muted); line-height: 1.55; }
.native-muted { color: var(--muted); font-size: 0.92rem; }
.native-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.native-flash.is-ok { background: color-mix(in srgb, var(--accent) 22%, #fff); color: var(--heading); }
.native-flash.is-err { background: #fde8e8; color: #8a1f1f; }
.native-form { display: grid; gap: 0.9rem; }
.native-grid-2 {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .native-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.native-field { display: grid; gap: 0.35rem; font-size: 0.92rem; }
.native-field span { font-weight: 600; color: var(--heading); }
.native-field input,
.native-field select,
.native-field textarea,
.native-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.native-field textarea { resize: vertical; min-height: 6rem; }
.native-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}
.native-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 1rem;
  margin: 0;
}
.native-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.native-slot-list {
  display: grid;
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
}
.native-slot {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-soft, #f6f5f2);
  font-size: 0.9rem;
}
.native-table-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.native-menu-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .native-menu-grid { grid-template-columns: repeat(2, 1fr); }
}
.native-menu-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.native-menu-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.native-menu-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.native-actions { margin: 1rem 0 0; }
.native-chat-stage {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 180px;
  background: var(--bg-soft, #f6f5f2);
}

.extras-more {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .extras-more { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Side page intro ---------- */
.page-intro {
  padding: calc(var(--header-h, 4.5rem) + 2.5rem) 0 1rem;
}
.page-intro h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

/* =========================================================
   Mobile polish — phones & small tablets
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --section-y: 3.25rem;
    --header-h: 64px;
  }

  html { overflow-x: clip; }

  .reveal,
  .no-js .reveal {
    opacity: 1;
    transform: none;
  }

  a, button, .nav-toggle, .accordion-trigger, .plan-select, .wizard-step-indicator {
    touch-action: manipulation;
  }

  input, select, textarea { font-size: 16px; }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Type & sections */
  h2 { font-size: clamp(1.65rem, 6.5vw, 2.15rem); }
  .section-head { margin-bottom: 1.75rem; }
  .section-lead { font-size: 1.02rem; }
  .btn { white-space: normal; }

  .hero,
  .trust,
  .pricing,
  .process,
  .portfolio,
  .assurance,
  .extras,
  .contact,
  .problem,
  .why,
  .references,
  .faq {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
  }
  .process,
  .portfolio,
  .assurance,
  .extras,
  .why,
  .faq {
    padding-bottom: calc(var(--section-y) + 5.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* Header / nav */
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .header-inner {
    height: var(--header-h);
    min-height: var(--header-h);
    gap: 0.75rem;
  }
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  .main-nav {
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--bg);
    z-index: 110;
  }
  .main-nav ul { gap: 0.2rem; width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    font-size: 1.22rem;
    padding: 0.9rem 0.35rem;
    min-height: 48px;
  }
  .main-nav a::after { display: none; }
  .nav-mobile-cta {
    display: inline-flex !important;
    width: 100%;
    margin-top: 1.1rem;
    min-height: 52px;
  }
  body.nav-open { overflow: hidden; overscroll-behavior: none; }
  body.nav-open .mobile-cta-bar { transform: translateY(100%); pointer-events: none; }

  /* Hero — first screen is the conversion; the real-project screenshot
     reappears in the Portfolio section below, so it's skipped here. */
  .hero {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.15rem);
    padding-bottom: 1.75rem;
  }
  .hero-inner { gap: 1.5rem; }
  .hero-visual { display: none; }
  .eyebrow {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 0.42rem 0.8rem;
    text-wrap: balance;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
    line-height: 1.1;
    text-wrap: balance;
  }
  .accent-text { white-space: normal; }
  .hero-sub {
    margin-top: 0.85rem;
    font-size: 1rem;
  }
  .hero-cta {
    margin-top: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .hero-cta .btn {
    width: 100%;
    text-align: center;
    min-height: 52px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .hero-microcopy {
    text-align: center;
    text-wrap: balance;
  }
  .scroll-cue,
  .demo-tag { display: none; }
  .blob-1, .blob-2, .blob-3,
  .browser-card-wrap { animation: none; }
  .browser-card { will-change: auto; border-radius: 14px; }
  .visual-caption { margin-top: 0.9rem; }

  /* Trust */
  .trust { padding-top: 1.5rem; }
  .trust-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.35rem 0.9rem;
  }
  .stat { padding: 0.15rem; }
  .stat-number { font-size: 1.12rem; }
  .stat-label { font-size: 0.76rem; }
  .logo-track { gap: 0.5rem; }
  .logo-placeholder { font-size: 0.78rem; padding: 0.4rem 0.65rem; }

  /* Pricing wizard */
  .price-journey {
    gap: 0.85rem;
    padding: 1.25rem 1rem 1.35rem;
    margin-bottom: 1.35rem;
  }
  .price-journey .step-numeral,
  .stage-numeral { display: none; }
  .price-journey-value { font-size: 1.4rem; }
  .price-journey-label { font-size: 0.72rem; letter-spacing: 0.02em; }
  .price-journey-connector {
    width: 40px;
    height: 40px;
  }
  .wizard-progress {
    gap: 0.3rem;
    margin-bottom: 1.1rem;
  }
  .wizard-step-indicator {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.55rem 0.4rem;
    min-height: 56px;
    font-size: 0.75rem;
  }
  .wizard-step-label { display: block; font-size: 0.72rem; line-height: 1.15; font-weight: 700; }
  .wizard-step-line { width: 0.55rem; height: 2px; }
  .wizard-summary {
    font-size: 0.88rem;
    text-align: left;
    padding: 0.75rem 0.9rem;
    background: var(--primary-tint);
    border-radius: 12px;
    color: var(--ink);
  }
  .pricing-stage {
    padding: 1.2rem 0.95rem 1.35rem;
    border-radius: 18px;
  }
  .ongoing-head { margin-bottom: 1.15rem; }
  .ongoing-head h3 { font-size: 1.22rem; }
  .ongoing-head p { font-size: 0.92rem; }
  /* Plan cards: same endless-marquee pattern as the industry badges
     (see .logo-row for how the fallback/is-marquee split works). */
  .plans {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    gap: 0;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .plans.is-marquee:active { cursor: grabbing; }
  .plans-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: max-content;
    will-change: transform;
  }
  .plan-card {
    width: min(82vw, 320px);
    flex-shrink: 0;
    padding: 1.35rem 1rem 1.15rem;
  }
  .plan-featured { overflow: visible; }
  .plan-tag { top: 0.85rem; right: 0.85rem; }
  .plan-card .btn,
  .plan-select {
    width: 100%;
    min-height: 48px;
  }
  .plan-card:hover,
  .step:hover,
  .portfolio-card:hover,
  .assurance-card:hover,
  .btn:hover { transform: none; }
  .billing-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .billing-toggle-btn {
    min-height: 44px;
    justify-content: center;
  }
  .billing-save { display: block; font-size: 0.7rem; margin-top: 0.15rem; }
  .pricing-creation { margin-bottom: 2rem; }

  /* Process / portfolio / assurance / extras */
  /* Steps: same endless-marquee pattern as the industry badges and
     plan cards (see .logo-row for how the fallback/is-marquee split
     works). */
  .steps {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .steps.is-marquee:active { cursor: grabbing; }
  .steps-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: max-content;
    will-change: transform;
  }
  .step { width: min(82vw, 320px); flex-shrink: 0; padding: 1.25rem 1.1rem; }
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.25rem;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 5.2rem 1fr;
    gap: 0.7rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-soft);
    flex: none;
  }
  .timeline-item:last-child { border-bottom: 0; }
  .timeline-label { font-size: 0.9rem; }
  .portfolio-card { gap: 1.15rem; }
  /* Trust badges: same endless-marquee pattern as the industry badges,
     plan cards and steps (see .logo-row for the fallback/is-marquee
     split). */
  .trust-badge-row {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-bottom: 2rem;
  }
  .trust-badge-row::-webkit-scrollbar { display: none; }
  .trust-badge-row.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .trust-badge-row.is-marquee:active { cursor: grabbing; }
  .trust-badge-track { flex-wrap: nowrap; width: max-content; will-change: transform; }
  .trust-badge { flex-shrink: 0; white-space: nowrap; }
  /* Assurance cards: same endless-marquee pattern as the industry
     badges, plan cards and steps (see .logo-row for the fallback/
     is-marquee split). */
  .assurance-grid {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .assurance-grid::-webkit-scrollbar { display: none; }
  .assurance-grid.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .assurance-grid.is-marquee:active { cursor: grabbing; }
  .assurance-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: max-content;
    will-change: transform;
  }
  .assurance-card { width: min(82vw, 320px); flex-shrink: 0; padding: 1.15rem 1.05rem; }
  /* Extras cards (Module bonus + Fotografie) and plugin cards (Module):
     same endless-marquee pattern as the other card grids (see
     .logo-row for the fallback/is-marquee split). */
  .extras-grid {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .extras-grid::-webkit-scrollbar { display: none; }
  .extras-grid.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .extras-grid.is-marquee:active { cursor: grabbing; }
  .extras-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: max-content;
    will-change: transform;
  }
  .extras-card { width: min(82vw, 320px); flex-shrink: 0; padding: 1.15rem 1.05rem; }
  .plugin-board {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-bottom: 1.75rem;
  }
  .plugin-board::-webkit-scrollbar { display: none; }
  .plugin-board.is-marquee {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }
  .plugin-board.is-marquee:active { cursor: grabbing; }
  .plugin-board-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.7rem;
    width: max-content;
    will-change: transform;
  }
  .plugin-card { width: min(82vw, 320px); flex-shrink: 0; padding: 1.1rem 1rem; }
  .module-hero { padding: 1.2rem 1.05rem 1.3rem; }
  .module-price-chip { min-width: 100%; }
  .module-hero-copy .btn { width: 100%; }

  /* Compare / FAQ */
  .compare-dimension { margin-top: 1.35rem; }
  .compare-cell { padding: 0.7rem 0; font-size: 0.95rem; }
  .compare-cell-us { padding: 0.85rem 1rem; }
  .accordion-trigger {
    min-height: 52px;
    align-items: flex-start;
    padding: 1.05rem 1.15rem;
    font-size: 0.95rem;
    text-wrap: balance;
  }
  .accordion-trigger .icon { margin-top: 0.15rem; }
  .accordion-panel p { padding: 0 1.15rem 1.2rem; }

  /* Contact */
  .contact {
    padding-bottom: calc(var(--section-y) + 5.25rem + env(safe-area-inset-bottom, 0px));
  }
  .contact-inner { padding-bottom: 0.5rem; }
  .contact-form .btn-full { min-height: 52px; }
  .form-row input,
  .form-row textarea,
  .form-row select {
    min-height: 48px;
    font-size: 16px;
  }
  .form-row textarea { min-height: 110px; }
  .contact-alt-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .contact-alt-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Sticky CTA */
  .mobile-cta-bar {
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cta-main {
    min-height: 48px;
    font-size: 0.92rem;
  }
  .mobile-cta-phone {
    width: 48px;
    height: 48px;
  }
  body:has(#mobile-cta-bar) .site-footer {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.15rem;
  }

  /* Side + legal */
  .page-intro { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem); }
  .legal-main,
  .not-found {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2.25rem);
  }
  .legal-main a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .compare { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.82rem; }
  .trust-stats { gap: 0.5rem; }
  .stat-number { font-size: 1.02rem; }
  .price-journey-value { font-size: 1.28rem; }
  .wizard-step-num { width: 1.25rem; height: 1.25rem; }
  .plan-price { font-size: 1.45rem; }
  .eyebrow { font-size: 0.74rem; }
  .logo { font-size: 1.05rem; }
  .wizard-step-label { font-size: 0.64rem; }
}

@media (max-width: 900px) and (max-height: 500px) {
  .hero { padding-bottom: 1.25rem; }
  .main-nav { padding-top: 0.5rem; }
}

/* ---------- Analytics consent ---------- */
.consent-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-strong);
  font-size: 0.9rem;
}
.consent-bar p { margin: 0; flex: 1 1 16rem; line-height: 1.45; }
.consent-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent-bar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-bar .btn { white-space: nowrap; }
.consent-bar .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
body.consent-open .mobile-cta-bar { transform: translateY(100%); pointer-events: none; }

@media (max-width: 900px) {
  .consent-bar {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: var(--r-md) var(--r-md) 0 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}
