/* SchoolHub Landing Page — Bilingual (DE/EN) — Standalone */

:root {
  --brand-primary: #6d28d9;
  --brand-secondary: #8b5cf6;
  --brand-accent: #ec4899;
  --brand-gradient: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #ec4899 100%);
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --text-strong: #18181b;
  --text: #3f3f46;
  --text-soft: #71717a;
  --border: #e4e4e7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-pop: 0 10px 30px rgba(109, 40, 217, 0.15);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-soft: #18181b;
    --bg-card: #18181b;
    --text-strong: #f4f4f5;
    --text: #d4d4d8;
    --text-soft: #a1a1aa;
    --border: #27272a;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 10px 30px rgba(109, 40, 217, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(9, 9, 11, 0.85);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-strong);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--brand-primary);
  opacity: 1;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--brand-primary);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--brand-secondary);
  opacity: 1;
}

.lang-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--text);
  min-height: 44px;
  min-width: 64px;
}

.lang-toggle:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .main-nav {
    gap: 0.75rem;
  }
  .main-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0 -10%;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(109, 40, 217, 0.12), transparent 70%),
    radial-gradient(50% 40% at 80% 70%, rgba(236, 72, 153, 0.12), transparent 70%);
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(109, 40, 217, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: var(--brand-gradient);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.cta-large {
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text-strong) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1.5px solid var(--border);
  min-height: 48px;
}

.cta-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  opacity: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero floating cards */
.hero-art {
  position: relative;
  height: 420px;
}

.floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.95rem;
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 8%;
  left: 4%;
  animation-delay: 0s;
}
.card-2 {
  top: 26%;
  right: 6%;
  animation-delay: 1.5s;
}
.card-3 {
  bottom: 32%;
  left: 16%;
  animation-delay: 3s;
}
.card-4 {
  bottom: 8%;
  right: 4%;
  animation-delay: 4.5s;
}

.card-emoji {
  font-size: 1.5rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 3rem;
  }
  .hero-art {
    height: 280px;
  }
  .floating-card {
    font-size: 0.85rem;
    padding: 0.625rem 0.875rem;
  }
}

/* ─── SECTION COMMONS ────────────────────────────────────────── */
section {
  padding: 5rem 1.5rem;
}

section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 720px;
}

.section-lead {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ─── FEATURES ───────────────────────────────────────────────── */
.features {
  max-width: var(--max);
  margin: 0 auto;
}

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

.feature {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--brand-primary);
}

.feature-icon {
  font-size: 2.25rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text-strong);
}

.feature p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* ─── BENEFITS ───────────────────────────────────────────────── */
.benefits {
  background: var(--bg-soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.benefit {
  text-align: center;
}

.benefit-emoji {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.benefit h3 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.benefit p {
  color: var(--text-soft);
  font-size: 1rem;
}

/* ─── AUDIENCE ───────────────────────────────────────────────── */
.audience {
  max-width: var(--max);
  margin: 0 auto;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.persona {
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}

.persona:hover {
  border-color: var(--brand-accent);
  transform: translateY(-4px);
}

.persona-avatar {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.persona h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.persona p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* ─── PRICING ────────────────────────────────────────────────── */
.pricing {
  background: var(--bg-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-pop);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
}

.plan-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-head h3 {
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
  line-height: 1;
}

.plan-unit {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0.5rem 0 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.plan-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.plan-features li::before {
  content: "✓";
  color: var(--brand-primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.plan-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  color: var(--text-strong) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border);
  min-height: 48px;
}

.plan-cta-primary {
  background: var(--brand-gradient);
  color: white !important;
  border: none;
  box-shadow: var(--shadow-pop);
}

.plan-cta:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  opacity: 1;
}

.plan-cta-primary:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: white !important;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 2.5rem auto 0;
  max-width: 720px;
}

/* ─── CTA BAR ────────────────────────────────────────────────── */
.cta-bar {
  background: var(--brand-gradient);
  color: white;
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.cta-bar h2 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.cta-bar p {
  font-size: 1.0625rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.cta-bar .cta-primary {
  background: white;
  color: var(--brand-primary) !important;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 1.125rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-bar .cta-primary:hover {
  background: var(--bg-soft);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #0a0a0a;
  color: #d4d4d8;
  padding: 4rem 1.5rem 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #71717a;
  font-style: italic;
  margin: 0;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  color: #a1a1aa;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.footer-col a:hover {
  color: white;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #71717a;
  border-top: 1px solid #27272a;
  padding-top: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-bottom span:not(:last-child) {
  margin-right: 1rem;
}

@media (max-width: 720px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════
 * Hosting selection + request modal
 * ═══════════════════════════════════════════════════════════════════ */
.hosting {
  padding: 5rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.hosting .section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.hosting .section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hosting .section-head p {
  color: var(--text-soft);
  font-size: 1.05rem;
}
.hosting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .hosting-grid {
    grid-template-columns: 1fr;
  }
}
.hosting-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hosting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}
.hosting-card.featured {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.hosting-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--brand-secondary), var(--brand-accent));
  color: white;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.hosting-icon {
  font-size: 2.4rem;
}
.hosting-card h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-strong);
}
.hosting-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hosting-bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.hosting-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
  font-weight: 700;
}
.hosting-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.hosting-cta.primary {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
  color: white;
}
.hosting-cta.secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border);
}
.hosting-cta:hover { opacity: 0.9; }
.hosting-cta:active { transform: translateY(1px); }

/* Modal */
.hosting-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.hosting-modal-backdrop[hidden] { display: none; }
.hosting-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.hosting-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.hosting-modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-strong);
}
.hosting-modal-close {
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
}
.hosting-modal-close:hover { color: var(--text-strong); }
.hosting-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hosting-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .hosting-form-row { grid-template-columns: 1fr; }
}
.hosting-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
}
.hosting-form input,
.hosting-form select,
.hosting-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--text-strong);
  font-family: inherit;
}
.hosting-form input:focus,
.hosting-form select:focus,
.hosting-form textarea:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}
.hosting-form textarea { resize: vertical; }
.hosting-captcha input { max-width: 8rem; }
.hosting-form-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #be123c;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
}
.hosting-form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #047857;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
}
.hosting-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
@media (prefers-color-scheme: dark) {
  .hosting-form-error { color: #fda4af; }
  .hosting-form-success { color: #6ee7b7; }
}


/* ═══════════════════════════════════════════════════════════════════
 * SchoolHub multi-page additions
 * ═══════════════════════════════════════════════════════════════════ */

/* Header brand wordmark */
.brand-mark {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.main-nav a.is-active {
  color: var(--brand-primary);
  position: relative;
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Mobile burger menu */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 2px;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-burger { display: inline-flex; order: 3; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    display: block !important;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .nav-cta { margin-top: 0.5rem; justify-content: center; }
  .site-header { position: sticky; }
  .site-header .lang-toggle { order: 2; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; flex: 1 1 280px; font-size: 0.9rem; color: var(--text); }
.cookie-banner__text a { margin-left: 0.35rem; }
.cookie-banner__close {
  background: var(--brand-primary);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 40px;
}
.cookie-banner__close:hover { background: var(--brand-secondary); }

/* Status dots */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a1a1aa;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
}
.status-dot--ok {
  background: #10b981;
  animation: status-pulse-ok 2s infinite;
}
.status-dot--down {
  background: #ef4444;
  animation: status-pulse-down 1.2s infinite;
}
.status-dot--pending { background: #f59e0b; }
@keyframes status-pulse-ok {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes status-pulse-down {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.footer-status {
  max-width: var(--max);
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a1a1aa;
}

/* Sub-page hero */
.page-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.75rem;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.page-hero p { font-size: 1.1rem; color: var(--text-soft); margin: 0; }

/* Trust signal row */
.trust-bar { background: var(--bg-soft); padding: 2.5rem 1.5rem; }
.trust-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-bar__item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.trust-bar__num {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.trust-bar__label { font-size: 0.95rem; color: var(--text); font-weight: 600; }

/* Module cards (features.html) */
.module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}
.module:nth-child(even) { background: var(--bg-soft); }
.module:nth-child(even) .module__art { order: -1; }
.module__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.module__icon {
  font-size: 2.25rem;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: white;
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
}
.module h2 { font-size: 1.5rem; margin: 0; text-align: left; }
.module ul { list-style: none; padding: 0; margin: 0; }
.module ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text);
}
.module ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 700;
}
.screenshot-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(109, 40, 217, 0.04),
      rgba(109, 40, 217, 0.04) 12px,
      rgba(236, 72, 153, 0.04) 12px,
      rgba(236, 72, 153, 0.04) 24px
    );
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 1rem;
}
@media (max-width: 720px) {
  .module {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }
  .module:nth-child(even) .module__art { order: 0; }
}

/* Pricing comparison table */
.pricing-compare {
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 1rem;
}
.pricing-compare table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 640px;
}
.pricing-compare th,
.pricing-compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: top;
}
.pricing-compare thead th {
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 700;
}
.pricing-compare th.featured {
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.08), transparent);
  color: var(--brand-primary);
}
.pricing-compare tbody tr:last-child td { border-bottom: 0; }
.pricing-compare .price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-strong);
  display: block;
}
.pricing-compare .price-unit {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}
.pricing-compare td.check { color: #10b981; font-weight: 700; }
.pricing-compare td.cross { color: #a1a1aa; }
.pricing-compare .row-label { font-weight: 600; color: var(--text-strong); }

/* FAQ accordion */
.faq-category { max-width: 820px; margin: 0 auto 2.5rem; }
.faq-category h2 {
  text-align: left;
  font-size: 1.375rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-secondary);
}
details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  overflow: hidden;
}
details.faq-item[open] {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-card);
}
details.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-primary);
  line-height: 1;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-body { padding: 0 1.25rem 1.25rem; color: var(--text); }

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.contact-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-card h3 { font-size: 1.25rem; margin: 0; }
.contact-card .contact-card__sla {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.contact-card .contact-card__email { font-weight: 600; }
.contact-card form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-card label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  gap: 0.25rem;
}
.contact-card input,
.contact-card textarea {
  font: inherit;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-strong);
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}
.contact-card textarea { resize: vertical; min-height: 90px; }
.contact-card button[type="submit"] {
  align-self: flex-start;
  padding: 0.625rem 1.25rem;
  background: var(--brand-gradient);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-height: 44px;
}
.contact-form-error,
.contact-form-success {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
.contact-form-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #be123c;
}
.contact-form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #047857;
}
@media (prefers-color-scheme: dark) {
  .contact-form-error { color: #fda4af; }
  .contact-form-success { color: #6ee7b7; }
}

/* Status page */
.status-list {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.status-row:last-child { border-bottom: 0; }
.status-row__name { font-weight: 600; color: var(--text-strong); }
.status-row__state { font-size: 0.9rem; color: var(--text-soft); }
.incident-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 820px;
  margin: 0 auto;
}
.incident-table th,
.incident-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}
.incident-table th {
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 700;
}
.incident-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.incident-badge--resolved { background: rgba(16, 185, 129, 0.15); color: #047857; }
.incident-badge--planned  { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
@media (prefers-color-scheme: dark) {
  .incident-badge--resolved { color: #6ee7b7; }
  .incident-badge--planned { color: #93c5fd; }
}

/* Crypto table (security.html) */
.crypto-table {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.crypto-table th,
.crypto-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  text-align: left;
}
.crypto-table th {
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 700;
}
.crypto-table td:nth-child(2) {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto 2rem;
}
.badge-pill {
  background: rgba(109, 40, 217, 0.1);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, 0.2);
}

.security-section { max-width: 820px; margin: 0 auto 3rem; }
.security-section h2 { text-align: left; font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.legal-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1.5rem;
}
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; text-align: left; }
.legal-page h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; }
.legal-page a { text-decoration: underline; }
.legal-meta {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
}

/* Blog */
.blog-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.blog-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.15s, border-color 0.15s;
}
.blog-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.blog-card h2 { font-size: 1.375rem; margin: 0 0 0.35rem; text-align: left; }
.blog-card h2 a { color: var(--text-strong); text-decoration: none; }
.blog-card h2 a:hover { color: var(--brand-primary); }
.blog-card__meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.blog-card p { margin: 0; color: var(--text-soft); }

.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.blog-post h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.5rem; }
.blog-post__meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.blog-post h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; text-align: left; }
.blog-post p { font-size: 1.0625rem; line-height: 1.7; }

/* 404 */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 60vh;
}
.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin: 0;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.error-page h2 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.error-page p { color: var(--text-soft); max-width: 480px; margin: 0 auto 2rem; }

/* Generic page-section utility */
.page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.page-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Small-screen tightening */
@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .page-hero { padding: 2.5rem 1rem 2rem; }
  .pricing-compare { padding: 0; }
  .pricing-compare th,
  .pricing-compare td { padding: 0.625rem 0.75rem; font-size: 0.85rem; }
}

