/* SpielFunk Landing – Farben aus dem Logo */
:root {
  --sf-blue: #1a7fd4;
  --sf-blue-dark: #0d5a9e;
  --sf-green: #6bc628;
  --sf-green-dark: #4a9a18;
  --sf-navy: #0f1a2e;
  --sf-navy-soft: #1a2744;
  --sf-white: #ffffff;
  --sf-gray-50: #f4f7fb;
  --sf-gray-100: #e8eef6;
  --sf-gray-600: #5a6b82;
  --sf-shadow: 0 20px 50px rgba(15, 26, 46, 0.12);
  --sf-radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--sf-navy);
  background: var(--sf-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--sf-blue);
  color: var(--sf-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sf-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 26, 46, 0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.header-brand:hover {
  text-decoration: none;
}

.header-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.header-brand-text .word-spiel {
  color: var(--sf-navy);
}

.header-brand-text .word-funk {
  color: var(--sf-blue);
}

.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.header-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sf-navy-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--sf-blue);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sf-green), var(--sf-green-dark));
  color: var(--sf-white);
  box-shadow: 0 8px 24px rgba(107, 198, 40, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(107, 198, 40, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--sf-blue);
  border: 2px solid var(--sf-blue);
}

.btn-outline:hover {
  background: var(--sf-blue);
  color: var(--sf-white);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--sf-gray-50) 0%, #dce9f8 45%, #e8f4e0 100%);
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.hero-shape--blue {
  width: 420px;
  height: 420px;
  background: var(--sf-blue);
  top: -80px;
  right: -100px;
}

.hero-shape--green {
  width: 320px;
  height: 320px;
  background: var(--sf-green);
  bottom: 10%;
  left: -80px;
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 127, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 127, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.9s ease forwards;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(26, 127, 212, 0.12);
  color: var(--sf-blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero h1 .word-spiel {
  color: var(--sf-navy);
}

.hero h1 .word-funk {
  color: var(--sf-blue);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--sf-gray-600);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.15s forwards;
  opacity: 0;
}

.hero-logo-card {
  background: transparent;
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: none;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.hero-logo-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-logo-card img {
  width: min(100%, 380px);
  background: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Sections ---- */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--sf-gray-50);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.section-header p {
  color: var(--sf-gray-600);
  font-size: 1.05rem;
}

.container--narrow {
  max-width: 760px;
}

/* ---- Warum SpielFunk (Vergleich) ---- */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.ps-card {
  border-radius: var(--sf-radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--sf-gray-100);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}

.ps-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ps-card--problem {
  background: linear-gradient(160deg, #fff5f5 0%, var(--sf-white) 100%);
  border-color: rgba(220, 53, 69, 0.15);
}

.ps-card--solution {
  background: linear-gradient(160deg, #f0faf0 0%, var(--sf-white) 100%);
  border-color: rgba(107, 198, 40, 0.25);
}

.ps-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.65rem;
}

.ps-card--problem .ps-label {
  color: #c0392b;
}

.ps-card--solution .ps-label {
  color: var(--sf-green-dark);
}

.ps-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 1.1rem;
}

.ps-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.ps-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  color: var(--sf-gray-600);
  line-height: 1.55;
}

.ps-card--problem .ps-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #c0392b;
  font-weight: 700;
  font-size: 0.85rem;
}

.ps-card--solution .ps-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--sf-green-dark);
  font-weight: 700;
}

.ps-card--solution .ps-list strong {
  color: var(--sf-navy);
}

.ps-cta {
  margin-top: 1.5rem;
}

/* ---- FAQ ---- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--sf-white);
  border: 1px solid var(--sf-gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(26, 127, 212, 0.3);
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.06);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  padding-right: 2.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--sf-blue);
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--sf-blue);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--sf-gray-600);
  line-height: 1.65;
}

.faq-answer a {
  color: var(--sf-blue);
  font-weight: 600;
}

.faq-answer a:hover {
  color: var(--sf-blue-dark);
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  padding: 1.75rem;
  border: 1px solid var(--sf-gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sf-shadow);
  border-color: rgba(26, 127, 212, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.feature-icon--blue {
  background: rgba(26, 127, 212, 0.15);
}

.feature-icon--green {
  background: rgba(107, 198, 40, 0.18);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--sf-gray-600);
}

/* ---- Pillars ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--sf-radius);
  background: linear-gradient(180deg, var(--sf-white), var(--sf-gray-50));
  border: 1px solid var(--sf-gray-100);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pillar.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pillar-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar:nth-child(1) .pillar-num { color: var(--sf-blue); }
.pillar:nth-child(2) .pillar-num { color: var(--sf-green); }
.pillar:nth-child(3) .pillar-num { color: var(--sf-navy); }

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--sf-gray-600);
}

/* ---- CTA ---- */
.cta-band {
  margin: 0 1.5rem 5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--sf-navy) 0%, var(--sf-blue-dark) 55%, var(--sf-blue) 100%);
  color: var(--sf-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--sf-green);
  border-radius: 50%;
  top: -60px;
  right: -40px;
  opacity: 0.25;
  filter: blur(40px);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-band .btn-primary {
  position: relative;
}

.cta-contact {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.92;
  position: relative;
}

.cta-contact a {
  color: var(--sf-white);
  font-weight: 600;
}

.cta-contact a:hover {
  color: var(--sf-green);
}

/* ---- Footer ---- */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--sf-gray-600);
  border-top: 1px solid var(--sf-gray-100);
}

.site-footer strong {
  color: var(--sf-navy);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-legal a {
  color: var(--sf-blue);
}

.footer-provider {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.email-obf {
  white-space: nowrap;
}

/* ---- Rechtliche Seiten ---- */
.legal-page {
  padding: 6.5rem 1.5rem 4rem;
  background: var(--sf-gray-50);
  min-height: 60vh;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.legal-lead {
  color: var(--sf-gray-600);
  margin-bottom: 2rem;
}

.legal-block {
  background: var(--sf-white);
  border: 1px solid var(--sf-gray-100);
  border-radius: var(--sf-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.legal-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--sf-blue-dark);
}

.legal-block h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.legal-list {
  margin: 0.5rem 0 0 1.25rem;
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-back {
  margin-top: 2rem;
  font-weight: 600;
}

.legal-muster {
  background: var(--sf-gray-50);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- AV-Vertrag (druckbar) ---- */
.av-vertrag-page .av-contract-toolbar {
  margin-bottom: 1.5rem;
}

.av-vertrag-page .av-contract-toolbar h1 {
  margin-bottom: 0.5rem;
}

.av-contract-toolbar-actions {
  margin: 1.25rem 0 0.75rem;
}

.av-contract-toolbar-hint {
  color: var(--sf-gray-600);
  font-size: 0.95rem;
  max-width: 42rem;
}

.av-contract-form-wrap {
  margin-top: 1.25rem;
}

.av-contract-form-wrap h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.av-contract-form-intro {
  color: var(--sf-gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.av-contract-restored-hint {
  background: rgba(26, 127, 212, 0.08);
  border: 1px solid rgba(26, 127, 212, 0.25);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--sf-gray-600);
  margin-bottom: 1rem;
}

.av-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--sf-blue);
  text-decoration: underline;
  cursor: pointer;
}

.av-link-btn:hover {
  color: var(--sf-blue-dark);
}

.av-contract-form .av-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.av-form-span-2 {
  grid-column: 1 / -1;
}

.av-contract-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.av-contract-form .input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sf-gray-100);
  border-radius: 10px;
  font: inherit;
  color: var(--sf-navy);
}

.av-contract-document {
  max-width: 48rem;
  line-height: 1.65;
}

.av-contract-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--sf-navy);
}

.av-contract-subtitle {
  color: var(--sf-gray-600);
  margin-bottom: 1rem;
}

.av-contract-parties {
  margin: 1.25rem 0;
}

.av-contract-parties h3,
.av-contract-section h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--sf-blue-dark);
}

.av-contract-section {
  margin-top: 1.1rem;
}

.av-contract-section p {
  margin: 0;
}

.av-contract-note {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: var(--sf-gray-50);
  border-radius: 8px;
  font-size: 0.95rem;
}

.av-contract-signatures {
  max-width: 48rem;
  margin-top: 0;
}

.av-signature-row {
  margin-top: 2rem;
}

.av-signature-row:first-child {
  margin-top: 0;
}

.av-signature-value {
  border-bottom: 1px solid var(--sf-gray-300);
  min-height: 2rem;
  padding: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
}

.av-signature-static {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
}

.av-signature-label {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--sf-gray-600);
}

.av-fill.is-empty {
  color: var(--sf-gray-400);
  font-style: italic;
}

.av-fill-row[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .av-contract-form .av-form-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .cookie-banner,
  .no-print {
    display: none !important;
  }

  html,
  body {
    overflow: visible !important;
    height: auto !important;
    background: #fff;
    color: #000;
  }

  .legal-page,
  .av-vertrag-page,
  .av-vertrag-page .container,
  .av-contract-document,
  .av-contract-signatures {
    overflow: visible !important;
    height: auto !important;
    float: none !important;
    position: static !important;
  }

  .legal-page,
  .av-vertrag-page {
    padding: 0;
    background: #fff;
    min-height: auto;
  }

  .av-vertrag-page .container {
    max-width: none;
    padding: 0;
  }

  .av-contract-document,
  .av-contract-signatures {
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin-bottom: 0;
  }

  .av-contract-section,
  .av-contract-parties {
    break-inside: auto;
    page-break-inside: auto;
  }

  .av-contract-signatures {
    margin-top: 2rem;
    break-inside: auto;
    page-break-inside: auto;
  }

  .av-signature-row {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-top: 2.2rem;
    position: static !important;
  }

  .av-signature-label {
    color: #000;
    position: static !important;
  }

  .av-signature-value {
    border-bottom-color: #000;
  }

  .av-fill.is-empty {
    color: #000;
    font-style: normal;
    min-height: 1.25rem;
  }

  .av-fill.is-empty::after {
    content: none;
  }

  a[href]::after {
    content: none !important;
  }
}

/* ---- Cookie-Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--sf-navy);
  color: var(--sf-white);
  box-shadow: 0 -8px 32px rgba(15, 26, 46, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--sf-green);
  font-weight: 600;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

/* ---- Kontaktformular ---- */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.contact-form .input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sf-gray-100);
  border-radius: 10px;
  font: inherit;
  color: var(--sf-navy);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 400;
}

.contact-form .checkbox-row input {
  margin-top: 0.2rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-msg--ok {
  background: rgba(107, 198, 40, 0.15);
  color: var(--sf-green-dark);
}

.form-msg--err {
  background: rgba(220, 53, 69, 0.1);
  color: #a52834;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.demo-table th,
.demo-table td {
  border: 1px solid var(--sf-gray-100);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.demo-table th {
  background: var(--sf-gray-50);
}

/* ---- Mobile ---- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sf-navy);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-card {
    padding: 1.5rem 2rem;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .problem-solution {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--sf-white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 26, 46, 0.1);
    gap: 1rem;
  }

  .header-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ---- App-Screenshots ---- */
.app-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 960px;
}

.app-screen {
  text-align: center;
}

.app-screen img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--sf-gray-100);
  box-shadow: 0 12px 32px rgba(15, 26, 46, 0.12);
  background: var(--sf-white);
}

.app-screen figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--sf-gray-600);
}

@media (max-width: 640px) {
  .app-screens {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
