/* ═══════════════════════════════════════════════════════════
   SOCIETYOS MARKETING WEBSITE — DESIGN SYSTEM & STYLES
   Mobile-first | Flat design | Apple/Google standard
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colors */
  --accent:         #3b82f6;
  --accent-dark:    #1d4ed8;
  --accent-xdark:   #1e3a8a;
  --navy:           #1e3a5f;

  --bg:             #ffffff;
  --bg-alt:         #f8faff;
  --bg-dark:        #0f172a;

  --text-primary:   #0a0a0a;
  --text-secondary: #4b5563;
  --text-tertiary:  #9ca3af;
  --text-inverse:   #ffffff;

  --border:         #e5e7eb;
  --border-strong:  #d1d5db;

  --success:        #1D9E75;
  --success-bg:     rgba(29, 158, 117, 0.08);
  --danger:         #E24B4A;
  --danger-bg:      rgba(226, 75, 74, 0.08);
  --warning:        #BA7517;
  --warning-bg:     rgba(186, 117, 23, 0.08);

  /* Typography */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   12px;
  --space-lg:   16px;
  --space-xl:   20px;
  --space-2xl:  24px;
  --space-3xl:  32px;
  --space-4xl:  48px;
  --space-5xl:  64px;
  --space-6xl:  80px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Container */
  --container:  1200px;
  --container-pad: 1rem;

  /* Transitions */
  --ease:       0.15s ease-out;
  --ease-slow:  0.3s ease-out;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Skip Link (Accessibility) ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Typography Helpers ─────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  transition: transform var(--ease), filter var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: 1.5px solid transparent;
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover { background: rgba(59,130,246,0.06); transform: translateY(-2px); }
.btn--outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.btn--sm  { font-size: 12px; padding: 8px 16px; }
.btn--lg  { font-size: 14px; padding: 14px 28px; }
.btn--full { width: 100%; }

/* ─── Section Shared ─────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: var(--space-4xl);
}
.section-h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-body {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Reveal Animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Logo */
.nav__logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Desktop Nav Links */
.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.nav__link:hover { color: var(--text-primary); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease-out;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { max-height: 360px; }
.mobile-menu ul {
  padding: 16px var(--container-pad) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--ease), color var(--ease);
}
.mobile-menu__link:hover { background: var(--bg-alt); color: var(--text-primary); }
.mobile-menu .btn { margin-top: 8px; }

/* Desktop: show links, hide hamburger */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  :root { --container-pad: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: var(--bg);
  padding: var(--space-5xl) 0 var(--space-6xl);
  overflow: hidden;
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

/* Copy */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.hero__headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3xl);
  max-width: 520px;
}

.hero__cta {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  min-height: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xl);
  font-size: 12px;
  color: var(--text-tertiary);
}
.hero__trust strong { color: var(--text-secondary); font-weight: 600; }
.trust-sep { color: var(--border-strong); }

/* Metric Card */
.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
}

.metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.dot-row { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #fc6058; }
.dot--yellow { background: #fdc334; }
.dot--green  { background: #5dc942; }
.metric-card__dot-row { display: flex; gap: 6px; }

.metric-card__label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Metric Block */
.metric-block { margin-bottom: var(--space-xl); }
.metric-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.metric-block__name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.metric-block__delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.metric-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}
.metric-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 2s ease-out;
}

.metric-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* Checklist */
.metric-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-xl);
  font-size: 12px;
  color: var(--text-secondary);
}
.metric-checklist li { display: flex; align-items: center; gap: 8px; }
.checkmark { color: var(--success); font-weight: 600; flex-shrink: 0; }

/* Module Tags */
.metric-modules { display: flex; flex-wrap: wrap; gap: 6px; }
.module-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

/* Hero Desktop */
@media (min-width: 1024px) {
  .hero__container {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5xl);
  }
  .hero__copy { flex: 0 0 55%; }
  .hero__visual { flex: 0 0 42%; }
  .hero__headline { font-size: 38px; }
  .hero__cta { width: auto; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — COST OF CHAOS
   ═══════════════════════════════════════════════════════════ */
.chaos {
  background: var(--bg-alt);
  padding: var(--space-6xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chaos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.chaos-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.chaos-card__num {
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.chaos-card__unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 2px;
}
.chaos-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chaos-card__desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Liability Callout */
.liability {
  display: flex;
  gap: var(--space-lg);
  background: var(--danger-bg);
  border: 1px solid rgba(226,75,74,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-3xl);
  align-items: flex-start;
}
.liability__icon {
  font-size: 20px;
  color: var(--danger);
  flex-shrink: 0;
  margin-top: 2px;
}
.liability__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.liability__body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chaos__coda {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--text-tertiary);
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .chaos__grid { grid-template-columns: repeat(3, 1fr); }
  .section-h2 { font-size: 26px; }
}
@media (min-width: 1024px) {
  .section-h2 { font-size: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — WORKFLOW
   ═══════════════════════════════════════════════════════════ */
.workflow {
  background: var(--bg);
  padding: var(--space-6xl) 0;
}

/* Timeline — vertical on mobile, horizontal on desktop */
.workflow__timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.stage {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.stage__box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: background var(--ease), transform var(--ease);
  border: 1.5px solid transparent;
}
.stage:hover .stage__box,
.stage:focus-visible .stage__box,
.stage.active .stage__box {
  background: var(--accent-dark);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }

.stage__icon { font-size: 18px; flex-shrink: 0; }
.stage__name { font-size: 12px; font-weight: 600; line-height: 1.3; }

.stage__detail {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stage__connector {
  text-align: center;
  font-size: 18px;
  color: var(--border-strong);
  padding: 6px 0;
  transform: rotate(90deg);
  line-height: 1;
}

/* Hint */
.workflow__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

/* Tags */
.workflow__also {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.workflow__also-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.workflow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.workflow__tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* Desktop horizontal timeline */
@media (min-width: 900px) {
  .workflow__timeline {
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-lg);
  }
  .stage {
    flex: 1;
    min-width: 130px;
  }
  .stage__box {
    flex-direction: column;
    text-align: center;
    padding: 18px 12px;
    min-height: 90px;
    justify-content: center;
  }
  .stage__detail {
    border-radius: var(--radius-lg);
    margin-top: 8px;
    position: absolute;
    width: 200px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .stage__connector {
    transform: rotate(0deg);
    padding: 0 4px;
    display: flex;
    align-items: flex-start;
    padding-top: 34px;
    font-size: 22px;
  }
  .workflow__also {
    flex-direction: row;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — SOCIAL PROOF
   ═══════════════════════════════════════════════════════════ */
.proof {
  background: var(--bg-alt);
  padding: var(--space-6xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--ease-slow), transform var(--ease-slow);
}
.testimonial:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--avatar-bg, var(--accent));
}
.testimonial__name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.testimonial__role { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

.testimonial__quote { margin-bottom: var(--space-lg); }
.testimonial__before,
.testimonial__after {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.testimonial__before { background: var(--danger-bg); }
.testimonial__after  { background: var(--success-bg); }

.tag-before, .tag-after {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
}
.tag-before { background: rgba(226,75,74,0.15); color: var(--danger); }
.tag-after  { background: rgba(29,158,117,0.15); color: var(--success); }

.testimonial__metric {
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}
.testimonial__metric strong { color: var(--text-primary); }
.was { color: var(--text-tertiary); }

@media (min-width: 768px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .proof__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — THE OUTCOME
   ═══════════════════════════════════════════════════════════ */
.outcome {
  background: var(--bg);
  padding: var(--space-6xl) 0;
}

.outcome__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.outcome-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.outcome-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-xl) var(--space-2xl);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.outcome-card__icon { font-size: 20px; }
.outcome-card__title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.outcome-card__body {
  display: flex;
  flex-direction: column;
}

.before-block, .after-block {
  padding: var(--space-xl) var(--space-2xl);
  flex: 1;
}
.before-block { background: rgba(226,75,74,0.04); }
.after-block  { background: rgba(29,158,117,0.04); }

.side-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.side-label--before { background: rgba(226,75,74,0.15); color: var(--danger); }
.side-label--after  { background: rgba(29,158,117,0.15); color: var(--success); }

.before-block ul, .after-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.before-block li, .after-block li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.before-block li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--danger);
}
.after-block li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 11px;
}

.outcome-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--border-strong);
  padding: 0 8px;
}

@media (min-width: 640px) {
  .outcome-card__body { flex-direction: row; }
  .outcome-arrow { display: flex; }
  .before-block, .after-block { padding: var(--space-xl); }
}
@media (min-width: 1024px) {
  .outcome__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — DEMO BOOKING
   ═══════════════════════════════════════════════════════════ */
.demo {
  background: var(--bg-dark);
  padding: var(--space-6xl) 0;
  color: var(--text-inverse);
}

.demo__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.demo__headline {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}
.demo__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-3xl);
}

.demo__next {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.demo__next-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.demo__next ul { display: flex; flex-direction: column; gap: 10px; }
.demo__next li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.demo__next li span {
  color: var(--success);
  font-weight: 600;
  flex-shrink: 0;
}

/* Form Container */
.demo__form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  color: var(--text-primary);
}

/* Form Fields */
.field { margin-bottom: var(--space-2xl); }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field__label abbr { color: var(--danger); text-decoration: none; }
.field__hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 5px;
}
.field__error {
  display: block;
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
  min-height: 16px;
}

.field__phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--ease);
}
.field__phone:focus-within { border-color: var(--accent); outline: 2px solid rgba(59,130,246,0.2); }
.field__phone.error { border-color: var(--danger); }
.field__phone.valid { border-color: var(--success); }

.field__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.field__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}
.field__input::placeholder { color: var(--text-tertiary); }

.field__valid-icon {
  display: flex;
  align-items: center;
  padding-right: 10px;
  font-size: 14px;
  color: var(--success);
}

/* Autocomplete */
.field__autocomplete { position: relative; }
.field__autocomplete .field__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--ease);
}
.field__autocomplete .field__input:focus { border-color: var(--accent); outline: 2px solid rgba(59,130,246,0.2); }
.field__autocomplete .field__input.error { border-color: var(--danger); }

.field__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.field__dropdown li {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--ease);
  border-radius: var(--radius-sm);
}
.field__dropdown li:hover, .field__dropdown li[aria-selected="true"] {
  background: var(--bg-alt);
  color: var(--accent);
}
.field__dropdown li .society-city {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Submit Button */
.demo__form .btn--primary {
  min-height: 48px;
}

/* Success Screen */
.demo__success {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
}
.success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.success-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-xl); }
.success-url {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: var(--space-xl);
  font-family: monospace;
}
.success-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: var(--space-xl); flex-wrap: wrap; }
.success-note { font-size: 12px; color: var(--text-tertiary); max-width: 360px; margin: 0 auto; line-height: 1.6; }

/* Desktop: split layout */
@media (min-width: 1024px) {
  .demo__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-5xl);
  }
  .demo__copy { flex: 1; padding-top: var(--space-sm); }
  .demo__form-wrap { flex: 0 0 420px; }
  .demo__headline { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-6xl) 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
}
.footer__brand .logo-text { color: #fff; }

.footer__brand-copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.footer__links a:hover { color: #fff; }

.footer__contact-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.footer__contact a:hover { color: #fff; }
.footer__contact span { font-size: 13px; color: rgba(255,255,255,0.4); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  transition: color var(--ease);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

.footer__compliance {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  padding: var(--space-lg) 0 var(--space-3xl);
  text-align: center;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (Mobile)
   ═══════════════════════════════════════════════════════════ */
.fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.fab:hover { transform: translateY(-2px); }

@media (min-width: 1024px) { .fab { display: none !important; } }

/* ═══════════════════════════════════════════════════════════
   SHAKE ANIMATION (form error)
   ═══════════════════════════════════════════════════════════ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }
  .section-h2 { font-size: 28px; }
  body { font-size: 14px; }
}
@media (min-width: 1024px) {
  .section-h2 { font-size: 32px; }
  .hero__headline { font-size: 40px; }
  .hero__cta { padding: 16px 32px; }
}

/* ═══════════════════════════════════════════════════════════
   SHARED — added sections (eyebrow, dark heads, ctas, narrow)
   ═══════════════════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.section-eyebrow--light { color: #7dd3fc; }
.section-head--light .section-h2,
.section-h2--light { color: #fff; }
.section-body--light { color: rgba(255,255,255,0.72); }
.section-cta { text-align: center; margin-top: var(--space-4xl); }
.container--narrow { max-width: 820px; }

/* ─── Committee Handover ─────────────────────────────────── */
.handover { background: var(--bg-alt); padding: var(--space-6xl) 0; }
.handover__flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
}
.handover-year {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--ease), box-shadow var(--ease);
}
.handover-year:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.handover-year--now { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.10); }
.handover-year__badge {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}
.handover-year--now .handover-year__badge { background: var(--accent); }
.handover-year__label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.handover-year__body ul { list-style: none; margin: 0; padding: 0; }
.handover-year__body li { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.handover-year__body li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.handover__arrow { text-align: center; color: var(--text-tertiary); font-size: 20px; transform: rotate(90deg); }
.handover__promise {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-4xl);
}
.handover__promise-icon { font-size: 24px; flex-shrink: 0; }
.handover__promise p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.handover__promise strong { color: var(--text-primary); }
@media (min-width: 900px) {
  .handover__flow { flex-direction: row; align-items: stretch; }
  .handover__arrow { transform: none; align-self: center; }
}

/* ─── Feature Showcase (modules & essential workflows) ─────────────────────────── */
.platform { background: var(--bg); padding: var(--space-6xl) 0; }
.platform__subhead {
  max-width: 800px;
  margin: 0 auto var(--space-4xl) auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.platform__highlight {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-4xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.platform__highlight-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.platform__highlight-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 500;
}
.platform__highlight-text strong {
  color: var(--text-primary);
  font-weight: 700;
}
.feature-tiles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-4xl);
}
@media (min-width: 640px) {
  .feature-tiles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-tiles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
  }
}
.feature-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}
.feature-tile__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.feature-tile__icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(30, 58, 95, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.feature-tile__meta {
  flex: 1;
  min-width: 0;
}
.feature-tile__number {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.feature-tile__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}
.feature-tile__problem {
  background: var(--danger-bg);
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.feature-tile__problem strong {
  color: var(--danger);
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}
.feature-tile__solution {
  background: var(--success-bg);
  border-left: 3px solid var(--success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  flex-grow: 1;
  margin-bottom: var(--space-md);
}
.feature-tile__solution strong {
  color: var(--success);
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}
.feature-tile__note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-tertiary);
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  margin-top: auto;
}
.feature-tile__note strong {
  color: var(--text-secondary);
}
.feature-tiles__cta {
  background: linear-gradient(135deg, var(--navy), #0f172a);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  margin-top: var(--space-3xl);
}
.feature-tiles__cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.feature-tiles__cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}
.feature-tiles__cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ─── AI Assistant (dark) ────────────────────────────────── */
.ai { background: var(--bg-dark); padding: var(--space-6xl) 0; }
.ai__chat {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 920px;
  margin: 0 auto;
}
.ai__row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.ai__q {
  font-size: 15px; font-weight: 600; color: #fff;
  padding-bottom: var(--space-md); margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai__q::before { content: "“"; color: #7dd3fc; }
.ai__q::after  { content: "”"; color: #7dd3fc; }
.ai__a { font-size: 13.5px; color: rgba(255,255,255,0.78); line-height: 1.65; display: flex; gap: 8px; }
.ai__a-icon { color: #7dd3fc; flex-shrink: 0; }
.ai__coda { text-align: center; color: #fff; font-size: 16px; font-weight: 600; margin-top: var(--space-4xl); }
@media (min-width: 768px) { .ai__chat { grid-template-columns: 1fr 1fr; } }

/* ─── Security ───────────────────────────────────────────── */
.security { background: var(--bg-alt); padding: var(--space-6xl) 0; }
.security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}
.security-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--ease), box-shadow var(--ease);
}
.security-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.security-card__icon { font-size: 26px; display: block; margin-bottom: var(--space-md); }
.security-card__title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.security-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { background: var(--bg); padding: var(--space-6xl) 0; }
.faq__list { display: flex; flex-direction: column; gap: var(--space-md); }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-xl) var(--space-2xl);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px; font-weight: 400; color: var(--accent);
  flex-shrink: 0; transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-item__a { padding: 0 var(--space-2xl) var(--space-xl); }
.faq-item__a p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ─── Nav login button (desktop only) ───────────────────── */
.nav__login-btn { display: none; }
@media (min-width: 768px) { .nav__login-btn { display: inline-flex; } }

/* ─── Trust bar ──────────────────────────────────────────── */
.trustbar { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--border); }
.trustbar__label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--space-xl); }
.trustbar__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-lg) var(--space-3xl); }
.trustbar__logo { font-size: 15px; font-weight: 600; color: var(--text-tertiary); letter-spacing: -0.01em; opacity: 0.85; transition: color var(--ease), opacity var(--ease); }
.trustbar__logo:hover { color: var(--navy); opacity: 1; }

/* ─── Transformation (before / after) ────────────────────── */
.transform { background: var(--bg); padding: var(--space-6xl) 0; }
.transform__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: stretch; }
.transform-card { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-2xl); }
.transform-card--before { background: var(--danger-bg); border-color: rgba(226,75,74,0.20); }
.transform-card--after  { background: var(--success-bg); border-color: rgba(29,158,117,0.22); }
.transform-card__tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 12px; border-radius: var(--radius-full); margin-bottom: var(--space-lg); }
.transform-card__tag--before { background: rgba(226,75,74,0.14); color: var(--danger); }
.transform-card__tag--after  { background: rgba(29,158,117,0.16); color: var(--success); }
.transform-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-md); }
.transform-card__list li { font-size: 14px; line-height: 1.5; padding-left: 26px; position: relative; color: var(--text-primary); }
.transform-card--before .transform-card__list li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.transform-card--after .transform-card__list li::before  { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.transform__arrow { display: none; text-align: center; font-size: 24px; color: var(--text-tertiary); align-self: center; }
@media (min-width: 860px) {
  .transform__grid { grid-template-columns: 1fr auto 1fr; }
  .transform__arrow { display: block; }
}

/* ─── Why SocietyOS ──────────────────────────────────────── */
.why { background: var(--bg-alt); padding: var(--space-6xl) 0; }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-xl); }
.why-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2xl); transition: transform var(--ease), box-shadow var(--ease); }
.why-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.why-card__icon { font-size: 24px; display: block; margin-bottom: var(--space-md); }
.why-card__title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.why-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ─── Scroll progress bar ────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 1100; transition: width 0.1s linear; will-change: width;
}

/* ─── Floating WhatsApp ──────────────────────────────────── */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 12px 16px; border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.45); }
.wa-fab:focus-visible { outline: 2px solid #128C7E; outline-offset: 3px; }
.wa-fab__label { white-space: nowrap; }
@media (max-width: 600px) { .wa-fab__label { display: none; } .wa-fab { padding: 12px; } }

/* ─── Exit-intent popup ──────────────────────────────────── */
.exit-popup { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }
.exit-popup[hidden] { display: none; }
.exit-popup__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(2px); animation: fadeIn 0.2s ease-out; }
.exit-popup__card {
  position: relative; z-index: 1; width: 100%; max-width: 440px; text-align: center;
  background: var(--bg); border-radius: var(--radius-xl); padding: var(--space-4xl) var(--space-3xl) var(--space-3xl);
  box-shadow: 0 24px 60px rgba(15,23,42,0.25); animation: popIn 0.25s ease-out;
}
.exit-popup__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--text-tertiary); cursor: pointer; }
.exit-popup__close:hover { color: var(--text-primary); }
.exit-popup__icon { font-size: 40px; margin-bottom: var(--space-md); }
.exit-popup__title { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-md); line-height: 1.3; }
.exit-popup__sub { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-xl); }
.exit-popup__dismiss { display: block; margin: var(--space-md) auto 0; background: none; border: none; font-size: 13px; color: var(--text-tertiary); cursor: pointer; text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .exit-popup__backdrop, .exit-popup__card { animation: none; } }

/* ─── Phones: readable labels, no input zoom, tappable links ───────────────────
   iOS zooms the page when a focused input is under 16px; labels under 12px are hard to read on a phone.
   Footer gets room so the floating WhatsApp button never covers its last lines. */
@media (max-width: 639px) {
  .logo-badge, .hero__eyebrow, .metric-card__label, .metric-block__delta, .module-tag, .workflow__hint,
  .workflow__also-label, .feature-tile__number, .feature-tile__note, .testimonial__role, .tag-before, .tag-after,
  .side-label, .field__hint, .footer__compliance, .footer__bottom a { font-size: 12px; }
  .field__input { font-size: 16px; min-height: 44px; }
  .nav .btn--primary, .hamburger { min-height: 44px; }
  .hamburger { min-width: 44px; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer { padding-bottom: 88px; }
}
