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

/* ---------- 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;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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;
}

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 {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 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;
  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);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.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: 76px;
}

.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; }

/* ---------- 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-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 {
  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);
  will-change: transform;
}
.browser-card.is-tilting { transition: transform 0.08s linear; }

/* 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);
}

/* Auto-cycling "which industry?" demo stage — instead of one fictional
   client, the same mini-site morphs every few seconds through a handful of
   generic categories (theme colour + headline + icon swap via JS, see
   script.js). One DOM tree, re-themed via the data-theme attribute below,
   so the crossfade only has to touch text content, not layout. */
.demo-stage {
  --demo-a: var(--primary);
  --demo-b: var(--primary-light);
  position: relative;
  padding: 1.5rem 1.3rem 1.2rem;
}
.demo-stage[data-theme="terracotta"] { --demo-a: #C97B3D; --demo-b: #E8985A; }
.demo-stage[data-theme="slate"] { --demo-a: #3A3A4D; --demo-b: #6B6B87; }

.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(--muted-soft);
  background: var(--bg-soft);
  padding: 0.22rem 0.5rem;
  border-radius: var(--r-full);
}

.demo-content { display: flex; flex-direction: column; gap: 1.1rem; transition: opacity 0.25s ease; }
.demo-content.is-swapping { opacity: 0; }

.demo-nav { display: flex; align-items: center; gap: 0.55rem; }
.demo-logo-mini { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--demo-b), var(--demo-a)); flex-shrink: 0; transition: background 0.35s ease; }
.demo-navlinks { display: flex; gap: 0.45rem; margin-left: 0.3rem; }
.demo-navlinks span { width: 20px; height: 6px; border-radius: var(--r-full); background: var(--line); }
.demo-pill { margin-left: auto; width: 52px; height: 16px; border-radius: var(--r-full); background: var(--demo-a); transition: background 0.35s ease; }

.demo-hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.9rem; align-items: center; }
.demo-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.demo-kicker { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--demo-a); transition: color 0.35s ease; }
.demo-heading { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.demo-btn { margin-top: 0.3rem; display: inline-flex; padding: 0.45rem 0.85rem; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 0.6rem; font-weight: 700; white-space: nowrap; }

.demo-photo {
  height: 96px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--demo-b), var(--demo-a));
  box-shadow: 0 10px 24px rgba(12, 10, 22, 0.18);
  transition: background 0.35s ease;
}
.demo-photo .icon { width: 2rem; height: 2rem; color: #fff; opacity: 0.9; }

.demo-dots { display: flex; gap: 0.4rem; justify-content: center; padding-top: 1rem; margin-top: 0.2rem; border-top: 1px solid var(--line); }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.35s ease, transform 0.35s ease; }
.demo-dot.is-active { background: var(--demo-a); transform: scale(1.3); }

/* Soft rotating glow behind the card — depth without another mockup. */
.visual-stack { position: relative; }
.visual-orbit {
  position: absolute;
  inset: -14% -10%;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-light), var(--accent), var(--primary), var(--primary-light));
  filter: blur(60px);
  opacity: 0.28;
  animation: orbit-spin 16s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

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

/* Rotating seal badge — spins independently of the card tilt, so it lives
   outside .browser-card rather than inside its 3D transform context. */
.hero-badge {
  position: absolute;
  top: -9%;
  left: -8%;
  width: 100px;
  height: 100px;
  z-index: 2;
  pointer-events: none;
}
.hero-badge-ring {
  width: 100%;
  height: 100%;
  color: var(--primary);
  animation: badge-spin 22s linear infinite;
}
.hero-badge-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  background: var(--accent);
  width: 30px; height: 30px;
  margin: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.hero-badge-core .icon { width: 1rem; height: 1rem; }
@keyframes badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.chip-1 { top: -18px; right: -10px; animation: chip-bob 5s ease-in-out infinite; }
.chip-2 { bottom: -16px; left: -18px; animation: chip-bob 6s ease-in-out infinite reverse; }
@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 560px) {
  .hero-badge { width: 78px; height: 78px; top: -6%; left: -5%; }
  .demo-hero-split { grid-template-columns: 1fr; }
  .demo-photo { height: 64px; }
  .visual-orbit { opacity: 0.18; }
}

.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; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.logo-placeholder {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted-soft);
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease);
}
.logo-placeholder:hover { opacity: 1; }

/* ---------- Section head (shared) ---------- */
.section-head { max-width: 42rem; margin-bottom: 3.5rem; }
.section-head.light .eyebrow { background: rgba(255,255,255,0.12); 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-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 860px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

/* Per-card accent theme — --demo-a/--demo-b feed every colored element below */
.theme-salon  { --demo-a: #F0A0BE; --demo-b: #C2477A; }
.theme-physio { --demo-a: #7FE0C9; --demo-b: #1F8F79; }
.theme-tech   { --demo-a: #8FD3F4; --demo-b: #3D6FE0; }

.portfolio-body { padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }

.portfolio-nav { display: flex; align-items: center; gap: 0.5rem; }
.portfolio-logo { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--demo-a), var(--demo-b)); flex-shrink: 0; }
.portfolio-brand { font-family: var(--font-head); font-weight: 700; font-size: 0.68rem; color: var(--ink); white-space: nowrap; }
.portfolio-pill {
  margin-left: auto;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-full);
  background: var(--demo-b);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.portfolio-hero { display: flex; flex-direction: column; gap: 0.35rem; }
.portfolio-kicker { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--demo-b); }
.portfolio-heading { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; line-height: 1.22; color: var(--ink); }

.portfolio-photo {
  height: 84px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--demo-a), var(--demo-b));
  box-shadow: 0 8px 20px rgba(20, 19, 31, 0.12);
}
.portfolio-photo .icon { width: 1.7rem; height: 1.7rem; color: #fff; opacity: 0.92; }

.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 p strong { color: var(--ink); }

/* ---------- 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); }
}

.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-fit { color: rgba(255, 255, 255, 0.55); }
.pricing-stage .pricing-footnote { color: rgba(255, 255, 255, 0.5); }
.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,
.pricing-stage > .pricing-footnote {
  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); } }

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

.pricing-footnote { margin-top: 1.8rem; font-size: 0.85rem; color: var(--muted-soft); text-align: center; }

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

/* Small browser-chrome dots, shared with .portfolio-browser */
.mockup-bar { display: flex; gap: 5px; padding: 0.7rem 0.9rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mockup-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }

.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; }

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

.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.4s var(--ease);
}
.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-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-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: 76px 0 0 0;
    background: var(--bg);
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    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; }
  .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; }
}

/* ---------- 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; }
  .site-footer { padding-bottom: 5.5rem; }
}
