/* SchulMessenger — Landingpage
   Soft-UI / Pastel-Sektionen / Vertrauensblau + Pfirsich-Akzent
   ----------------------------------------------------------- */

:root {
  /* Tokens (overridable by Tweaks panel) */
  --ink:        oklch(22% 0.025 248);
  --ink-soft:   oklch(40% 0.025 248);
  --ink-mute:   oklch(55% 0.02 248);

  --paper:      oklch(99% 0.005 95);
  --cream:      oklch(97% 0.012 88);

  --primary:    oklch(58% 0.15 248);
  --primary-2:  oklch(48% 0.16 252);
  --primary-50: oklch(97% 0.018 248);
  --primary-100:oklch(94% 0.035 248);
  --primary-200:oklch(88% 0.06 248);

  --peach:      oklch(82% 0.10 52);
  --peach-50:   oklch(97% 0.025 60);
  --peach-200:  oklch(89% 0.08 55);
  --peach-ink:  oklch(45% 0.12 45);

  --mint:       oklch(86% 0.07 168);
  --mint-50:    oklch(97% 0.022 168);
  --mint-200:   oklch(90% 0.06 168);
  --mint-ink:   oklch(40% 0.10 168);

  --lavender:   oklch(85% 0.06 295);
  --lavender-50:oklch(97% 0.020 295);
  --lavender-200:oklch(90% 0.05 295);
  --lav-ink:    oklch(42% 0.12 295);

  --line:       oklch(92% 0.012 248);
  --line-soft:  oklch(95% 0.010 248);

  --shadow-sm: 0 1px 2px rgba(31, 41, 80, .04), 0 2px 6px rgba(31, 41, 80, .04);
  --shadow:    0 4px 14px rgba(31, 41, 80, .06), 0 12px 30px rgba(31, 41, 80, .08);
  --shadow-lg: 0 12px 30px rgba(31, 41, 80, .08), 0 30px 80px rgba(31, 41, 80, .12);
  --shadow-blue: 0 16px 40px oklch(58% 0.15 248 / .18), 0 40px 80px oklch(58% 0.15 248 / .15);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; }

::selection { background: oklch(58% 0.15 248 / .25); color: var(--ink); }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.018em; }
h4 { font-size: 18px; line-height: 1.3; }
p  { text-wrap: pretty; margin: 0; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow.peach { color: var(--peach-ink); background: var(--peach-50); border-color: var(--peach-200); }
.eyebrow.mint  { color: var(--mint-ink);  background: var(--mint-50);  border-color: var(--mint-200); }
.eyebrow.lav   { color: var(--lav-ink);   background: var(--lavender-50); border-color: var(--lavender-200); }

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

.section-pad     { padding: clamp(96px, 11vw, 160px) 0; }
.section-pad-sm  { padding: clamp(72px, 8vw, 110px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 720px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 20px rgba(20, 28, 60, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(20, 28, 60, 0.24); }

.btn-blue {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  box-shadow: 0 8px 24px oklch(58% 0.15 248 / .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 12px 30px oklch(58% 0.15 248 / .42), inset 0 1px 0 rgba(255,255,255,.25); }

.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: white; box-shadow: var(--shadow-sm); }

/* ── Reveal animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }

/* ── Card primitive ────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-soft {
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}

/* ── Decorative blobs (parallax) ───────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ── Pastel section backgrounds ───────────────────── */
.bg-cream    { background: var(--cream); }
.bg-blue50   { background: var(--primary-50); }
.bg-peach50  { background: var(--peach-50); }
.bg-mint50   { background: var(--mint-50); }
.bg-lav50    { background: var(--lavender-50); }
.bg-ink      { background: oklch(18% 0.025 248); color: oklch(95% 0.01 248); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: oklch(98% 0.005 248); }
.bg-ink p    { color: oklch(78% 0.012 248); }

/* Smooth section transitions: soft curve dividers */
.curve-top, .curve-bot {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.curve-top { top: -1px; transform: scaleY(-1); }
.curve-bot { bottom: -1px; }

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  margin-right: 6px;
}
.nav-logo .logo-img {
  width: 30px; height: 30px;
  display: block;
  border-radius: 7px;
}
.nav-logo .mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 4px 12px oklch(58% 0.15 248 / .35);
}
.nav-logo b { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.nav a.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a.nav-link:hover { background: var(--primary-50); color: var(--primary); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav {
    left: 10px;
    right: 10px;
    transform: none;
    padding: 6px 8px 6px 14px;
    justify-content: space-between;
  }
  .nav-logo { border-right: none; margin-right: 0; padding-right: 0; }
  .nav-logo .logo-img { width: 26px; height: 26px; }
  .nav-logo b { font-size: 15px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    width: 16px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { padding: 12px 16px; text-align: center; }
  .nav-menu .btn { margin-top: 6px; padding: 12px 16px; text-align: center; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background: linear-gradient(180deg, oklch(98% 0.015 248) 0%, var(--paper) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: start;
}
.hero-left {
  display: flex; flex-direction: column; gap: 28px;
  min-height: 640px;
}
.hero-left .hero-stores-wrap { margin-top: auto; }
.hero-left .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* App Store / Play Store badge group in hero */
.hero-stores {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  flex-wrap: wrap;
}
.hero-stores-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-badge {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.app-badge img { display: block; }
.app-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.app-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hero-left h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.hero-left h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, oklch(60% 0.18 220) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-mute);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--primary); }

.hero-right {
  position: relative;
  height: 640px;
  align-self: start;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { height: 580px; }
}

/* Floating chat bubbles in hero */
.float-bubble {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.float-bubble .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-ink);
  box-shadow: 0 0 0 4px var(--mint-50);
}
.float-bubble .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}

/* ── Phone mockup ──────────────────────────────────── */
.phone {
  --w: 320px;
  width: var(--w);
  aspect-ratio: 320 / 660;
  background: oklch(20% 0.02 248);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 0 0 1px oklch(28% 0.02 248),
    0 30px 80px rgba(20, 28, 60, .25),
    0 60px 120px rgba(20, 28, 60, .18);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--primary-50);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone .notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 26px;
  background: oklch(15% 0.02 248);
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 16px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: white;
}
.phone-header .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.phone-header .ttl { font-weight: 600; font-size: 14px; }
.phone-header .sub { font-size: 11px; color: var(--ink-mute); }
.phone-header .icon-btn {
  margin-left: auto; color: var(--ink-mute);
}

.phone-chat {
  flex: 1;
  background: var(--primary-50);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  position: relative;
}
.bubble.them { background: white; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me   { background: var(--primary); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble .name { font-size: 11px; font-weight: 700; color: var(--primary-2); margin-bottom: 2px; display: block; }
.bubble .meta { font-size: 10px; color: rgba(255,255,255,.7); margin-top: 2px; text-align: right; }
.bubble.them .meta { color: var(--ink-mute); }

.phone-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 18px;
  background: white;
  border-top: 1px solid var(--line-soft);
}
.phone-input .field {
  flex: 1;
  background: var(--primary-50);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-mute);
}
.phone-input .send {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}

/* ── Why Grid ──────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card .num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  opacity: .55;
  letter-spacing: .04em;
}
.why-card h3 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -.018em;
}
.why-card p { font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
.why-card .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.why-card.blue   { background: var(--primary-50);  border-color: var(--primary-100); }
.why-card.blue .ic{ background: var(--primary-100); color: var(--primary-2); }
.why-card.peach  { background: var(--peach-50);    border-color: var(--peach-200); }
.why-card.peach .ic{background: var(--peach-200);  color: var(--peach-ink); }
.why-card.mint   { background: var(--mint-50);     border-color: var(--mint-200); }
.why-card.mint .ic{ background: var(--mint-200);   color: var(--mint-ink); }
.why-card.lav    { background: var(--lavender-50); border-color: var(--lavender-200); }
.why-card.lav .ic{  background: var(--lavender-200); color: var(--lav-ink); }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* ── How It Works (sticky) ─────────────────────────── */
.hiw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
}
.hiw-sticky {
  position: sticky;
  top: 110px;
  height: 580px;
  display: grid;
  place-items: center;
}
.hiw-steps { display: flex; flex-direction: column; gap: 100px; padding: 60px 0; }
.hiw-step {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  position: relative;
  transition: border-color .4s, opacity .4s;
  opacity: .45;
}
.hiw-step.active { opacity: 1; border-left-color: var(--primary); }
.hiw-step .num {
  position: absolute;
  left: -19px; top: -2px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-mute);
  transition: all .3s;
}
.hiw-step.active .num { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.05); }
.hiw-step h3 { margin-bottom: 12px; }
.hiw-step p { font-size: 15.5px; }

@media (max-width: 920px) {
  .hiw { grid-template-columns: 1fr; gap: 40px; }
  .hiw-sticky { position: relative; top: 0; height: 480px; }
}

/* ── Scenario sections ─────────────────────────────── */
.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.scene.reverse { direction: rtl; }
.scene.reverse > * { direction: ltr; }
.scene-art { position: relative; min-height: 540px; display: grid; place-items: center; }
.scene-text { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.scene-text h2 { margin-top: 8px; }

.scene-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.scene-bullet {
  display: flex; gap: 14px; align-items: flex-start;
}
.scene-bullet .b-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--primary-100);
  color: var(--primary-2);
}
.scene-bullet .b-tx { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.scene-bullet .b-tx b { color: var(--ink); font-weight: 600; }

@media (max-width: 980px) {
  .scene { grid-template-columns: 1fr; gap: 40px; }
  .scene.reverse { direction: ltr; }
}

/* ── Map for Klassenfahrt ──────────────────────────── */
.map {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 380 / 540;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 20%, oklch(94% 0.04 168) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, oklch(94% 0.04 248) 0%, transparent 50%),
    var(--mint-50);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--mint-200);
}
.map::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, oklch(86% 0.04 168 / .25) 1px, transparent 1px),
    linear-gradient(90deg, oklch(86% 0.04 168 / .25) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map .road {
  position: absolute;
  background: oklch(78% 0.03 168 / .5);
  border-radius: 999px;
}
.map .pin {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
}
.map .pin .marker {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 0 4px white, 0 6px 16px rgba(0,0,0,.15);
  position: relative;
}
.map .pin .label {
  background: white;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.map .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .25;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Push Notification scene ───────────────────────── */
.notif-stack { position: relative; width: 360px; }
.notif {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
  position: relative;
}
.notif .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.notif .b { flex: 1; min-width: 0; }
.notif .ttl { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.notif .ttl .when { font-weight: 500; font-size: 11px; color: var(--ink-mute); }
.notif .msg { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

.snowsky {
  position: relative;
  width: 100%; max-width: 460px;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, oklch(85% 0.04 248) 0%, oklch(94% 0.025 248) 70%, oklch(96% 0.018 248) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.snow {
  position: absolute;
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-20px); opacity: 0; }
  10%  { opacity: .85; }
  100% { transform: translateY(100%); opacity: .9; }
}

/* ── Poll ──────────────────────────────────────────── */
.poll-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.poll-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.poll-card .head .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--lavender-200); color: var(--lav-ink); display: grid; place-items: center; }
.poll-card .head .tx { font-size: 12px; font-weight: 600; color: var(--lav-ink); text-transform: uppercase; letter-spacing: .04em; }
.poll-card h3 { margin: 8px 0 22px; font-size: 22px; }
.poll-opt {
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  overflow: hidden;
}
.poll-opt .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--primary-100);
  z-index: 0;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.poll-opt.lead .fill { background: var(--primary-200); }
.poll-opt .row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
}
.poll-opt .row .pct { color: var(--primary-2); font-variant-numeric: tabular-nums; }
.poll-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12.5px; color: var(--ink-mute); }
.poll-meta .avs { display: flex; }
.poll-meta .avs .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  display: grid; place-items: center;
  font-weight: 700;
  color: white;
  font-size: 10px;
  margin-left: -8px;
}
.poll-meta .avs .av:first-child { margin-left: 0; }

/* ── Integration diagram ─────────────────────────── */
.inteq {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.inteq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
}
.inteq-col-left, .inteq-col-right {
  display: flex; flex-direction: column; gap: 16px;
}
.inteq-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.inteq-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inteq-tile .logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  flex-shrink: 0;
}
.inteq-tile.iserv .logo { background: oklch(94% 0.06 25); color: oklch(45% 0.14 25); }
.inteq-tile.moodle .logo { background: oklch(94% 0.06 35); color: oklch(50% 0.16 35); }
.inteq-tile.ldap .logo { background: var(--mint-200); color: var(--mint-ink); }
.inteq-tile.web .logo { background: var(--lavender-200); color: var(--lav-ink); }
.inteq-tile.ios .logo { background: var(--primary-100); color: var(--primary-2); }
.inteq-tile.android .logo { background: oklch(92% 0.06 145); color: oklch(40% 0.13 145); }
.inteq-tile .tx b { display: block; font-size: 14px; }
.inteq-tile .tx span { font-size: 12px; color: var(--ink-mute); }

.inteq-hub {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px;
}
.inteq-hub .core {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  color: white;
  font-family: var(--display);
  box-shadow: var(--shadow-blue);
  position: relative;
  text-align: center;
  padding: 16px;
}
.inteq-hub .core-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  line-height: 1.15;
}
.inteq-hub .core-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}
.inteq-hub .core-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: .85;
  font-family: var(--body);
  letter-spacing: .01em;
}
.inteq-hub .core-status {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--body);
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.15);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.inteq-hub .core-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(80% 0.18 155);
  box-shadow: 0 0 0 3px oklch(80% 0.18 155 / .35);
}
.inteq-hub .core::before, .inteq-hub .core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--primary-200);
  opacity: .6;
}
.inteq-hub .core::after { inset: -22px; opacity: .35; }

.inteq-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}
.inteq-svg path {
  fill: none;
  stroke: var(--primary-200);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

@media (max-width: 920px) {
  .inteq-grid { grid-template-columns: 1fr; gap: 24px; }
  .inteq-svg { display: none; }
}

/* ── Features (pinned horizontal scroll) ──────────── */
@media (max-width: 720px) {
  .feat-pin-section { height: auto; }
  .feat-pin-sticky { position: static; height: auto; overflow: visible; }
  .feat-rail-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .feat-rail { transform: none !important; padding: 0 24px 12px; }
}
.feat-pin-section {
  position: relative;
  /* Section height = pinned viewport (100vh) + extra scroll for horizontal travel.
     Tune the multiplier to control horizontal scroll speed. */
  height: 280vh;
  padding: 0;
}
.feat-pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}
.feat-rail-wrap { position: relative; padding: 0; }
.feat-rail-viewport {
  width: 100%;
  overflow: hidden;
}
.feat-rail {
  display: flex;
  gap: 22px;
  will-change: transform;
  transition: transform .08s linear;
  padding: 8px 28px 40px;
}
.feat-card {
  flex: 0 0 320px;
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: white;
}
.feat-card .ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-100);
  color: var(--primary-2);
  margin-bottom: 22px;
}
.feat-card.peach .ic { background: var(--peach-200); color: var(--peach-ink); }
.feat-card.mint  .ic { background: var(--mint-200);  color: var(--mint-ink); }
.feat-card.lav   .ic { background: var(--lavender-200); color: var(--lav-ink); }
.feat-card h3 { font-size: 22px; margin-bottom: 10px; }
.feat-card .demo {
  margin-top: 22px;
  flex: 1;
  border-radius: 14px;
  background: var(--primary-50);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.feat-card.peach .demo { background: var(--peach-50); }
.feat-card.mint  .demo { background: var(--mint-50); }
.feat-card.lav   .demo { background: var(--lavender-50); }

.feat-controls {
  display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 0 28px;
}
.feat-controls .pgs { flex: 1; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.feat-controls .pgs .pg { height: 100%; background: var(--primary); width: 6%; transition: width .08s linear; }
.feat-hint { display: flex; align-items: center; gap: 6px; }

/* ── Voice waveform demo ─────────────────────────── */
.wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.wave .bar {
  width: 3px;
  background: var(--peach-ink);
  border-radius: 999px;
  animation: w 1.2s ease-in-out infinite;
  opacity: .9;
}
@keyframes w {
  0%, 100% { height: 8px; }
  50% { height: 100%; }
}

/* ── Security section ────────────────────────────── */
.sec-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sec-tile {
  background: oklch(22% 0.025 248);
  border: 1px solid oklch(28% 0.025 248);
  border-radius: 18px;
  padding: 22px;
}
.sec-tile .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: oklch(28% 0.04 248);
  color: oklch(85% 0.08 248);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.sec-tile h4 { color: white; font-size: 16px; margin-bottom: 6px; }
.sec-tile p { font-size: 13.5px; color: oklch(72% 0.012 248); }

.shield-art {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 460px;
}
.shield-art .ring {
  position: absolute;
  border: 1px solid oklch(40% 0.05 248);
  border-radius: 50%;
}
.shield-art .ring.r1 { width: 460px; height: 460px; opacity: .25; }
.shield-art .ring.r2 { width: 340px; height: 340px; opacity: .35; }
.shield-art .ring.r3 { width: 220px; height: 220px; opacity: .5; }
.shield-art .core {
  width: 140px; height: 140px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 30px 80px oklch(58% 0.15 248 / .45);
  position: relative;
  z-index: 2;
}
.shield-art .pill {
  position: absolute;
  background: oklch(24% 0.025 248);
  border: 1px solid oklch(32% 0.025 248);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: oklch(85% 0.012 248);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.shield-art .pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

@media (max-width: 920px) {
  .sec-band { grid-template-columns: 1fr; gap: 40px; }
  .shield-art { height: 380px; }
  .shield-art .ring.r1 { width: 360px; height: 360px; }
  .shield-art .ring.r2 { width: 260px; height: 260px; }
  .shield-art .ring.r3 { width: 170px; height: 170px; }
}

/* ── Pricing ─────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.price-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.price-card.featured {
  background: linear-gradient(180deg, var(--primary-50), white);
  border: 1.5px solid var(--primary-200);
  box-shadow: var(--shadow-blue);
}
.price-card .tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mute);
}
.price-card.featured .tag { color: var(--primary); }
.price-card h3 { font-size: 26px; }
.price-card .price {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.price-card ul li svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.price-card > .btn { margin-top: auto !important; }

@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

/* ── Contact / Form ──────────────────────────────── */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 1080px;
  margin: 0 auto;
}
.contact-side {
  background: linear-gradient(160deg, var(--primary-2) 0%, var(--primary) 100%);
  color: white;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.contact-side h3 { color: white; font-size: 28px; }
.contact-side p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 30ch; }
.contact-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-side ul li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255,255,255,.95); }
.contact-side ul li .ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; }

.contact-form { padding: 44px; }
.contact-form h3 { font-size: 22px; margin-bottom: 6px; }
.contact-form p { font-size: 14.5px; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--primary-50);
  outline: none;
  transition: border-color .2s, background .2s;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px var(--primary-100);
}

@media (max-width: 820px) {
  .contact-card { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: oklch(15% 0.015 248);
  color: oklch(85% 0.012 248);
  padding: 80px 0 40px;
}
.footer h4 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 16px; font-family: var(--body); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid oklch(28% 0.02 248);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { text-decoration: none; color: oklch(72% 0.012 248); }
.footer ul a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: oklch(60% 0.012 248);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Misc ────────────────────────────────────────── */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--primary-2);
}

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 8px; }
.stat .num { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat .lbl { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
