/* ============================================
   ParkStrata — Landing Page Styles
   ============================================ */

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

:root {
  /* Brand palette */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;

  /* Community warm accents */
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-rose: #f43f5e;
  --accent-rose-light: #ffe4e6;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;
  --accent-teal: #14b8a6;
  --accent-teal-light: #ccfbf1;
  --accent-blue: #3b82f6;
  --accent-blue-light: #dbeafe;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Layout */
  --max-width: 1260px;
  --section-py: 100px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s var(--ease);
}

ul { list-style: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--block { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn--ghost:hover {
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}

.navbar--scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.navbar__name {
  font-size: 20px;
  color: var(--gray-800);
  font-weight: 400;
}
.navbar__name strong {
  font-weight: 700;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
}
.navbar__links a:not(.btn):hover {
  color: var(--primary);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--accent-green-light) 100%);
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .15;
}
.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: var(--primary-light);
  top: -200px;
  right: -100px;
}
.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--accent-green);
  bottom: -100px;
  left: -50px;
}
.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--accent-amber);
  top: 50%;
  left: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero__highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* App Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__mockup {
  perspective: 1000px;
}

.mockup__screen {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 420px;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.mockup__screen:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup__topbar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--gray-100);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__body {
  padding: 24px;
}

.mockup__header {
  margin-bottom: 20px;
}
.mockup__title-bar {
  height: 14px;
  width: 60%;
  background: var(--gray-200);
  border-radius: 7px;
  margin-bottom: 8px;
}
.mockup__subtitle-bar {
  height: 10px;
  width: 40%;
  background: var(--gray-100);
  border-radius: 5px;
}

.mockup__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mockup__bay {
  padding: 16px 8px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid;
  transition: transform .2s var(--ease);
}
.mockup__bay:hover { transform: scale(1.05); }
.mockup__bay span {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}
.mockup__bay small {
  font-size: 11px;
  font-weight: 500;
}

.mockup__bay--free {
  background: var(--accent-green-light);
  border-color: var(--accent-green);
  color: #065f46;
}
.mockup__bay--booked {
  background: var(--accent-amber-light);
  border-color: var(--accent-amber);
  color: #92400e;
}
.mockup__bay--active {
  background: var(--accent-blue-light);
  border-color: var(--accent-blue);
  color: #1e40af;
}

.mockup__action {
  display: flex;
  justify-content: center;
}
.mockup__btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

/* ── Section Headers ───────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Features (Flip Cards) ────────────────── */
.features {
  padding: var(--section-py) 0;
  background: #fff;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Flip card container */
.flip-card {
  perspective: 1000px;
  height: 380px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}

.flip-card--flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Front face */
.flip-card__front {
  background: #fff;
  transition: all .3s var(--ease);
}
.flip-card:hover .flip-card__front {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.flip-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.flip-card__icon svg { width: 24px; height: 24px; }
.flip-card__icon--blue   { background: var(--accent-blue-light); color: var(--accent-blue); }
.flip-card__icon--purple { background: var(--accent-purple-light); color: var(--accent-purple); }
.flip-card__icon--green  { background: var(--accent-green-light); color: var(--accent-green); }
.flip-card__icon--amber  { background: var(--accent-amber-light); color: var(--accent-amber); }
.flip-card__icon--rose   { background: var(--accent-rose-light); color: var(--accent-rose); }
.flip-card__icon--teal   { background: var(--accent-teal-light); color: var(--accent-teal); }

.flip-card__front h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.flip-card__front p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.flip-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 16px;
  opacity: .7;
  transition: opacity .2s;
}
.flip-card:hover .flip-card__hint { opacity: 1; }

/* Back face */
.flip-card__back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 20px 22px;
}

.flip-card__back-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

/* === Flip card animation elements === */
/* Staggered fade-in (paused until card flips) */
.flip-card:not(.flip-card--flipped) .fa-a1,
.flip-card:not(.flip-card--flipped) .fa-a2,
.flip-card:not(.flip-card--flipped) .fa-a3,
.flip-card:not(.flip-card--flipped) .fa-a4,
.flip-card:not(.flip-card--flipped) .fa-a5 { opacity: 0; animation: none; }

.flip-card--flipped .fa-a1 { opacity: 0; animation: flipFadeIn .4s var(--ease) .3s forwards; }
.flip-card--flipped .fa-a2 { opacity: 0; animation: flipFadeIn .4s var(--ease) .7s forwards; }
.flip-card--flipped .fa-a3 { opacity: 0; animation: flipFadeIn .4s var(--ease) 1.1s forwards; }
.flip-card--flipped .fa-a4 { opacity: 0; animation: flipFadeIn .4s var(--ease) 1.6s forwards; }
.flip-card--flipped .fa-a5 { opacity: 0; animation: flipFadeIn .4s var(--ease) 2.2s forwards; }

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

/* -- Booking -- */
.fa-booking { display: flex; flex-direction: column; gap: 8px; }
.fa-booking__calendar { background: var(--gray-50); border-radius: 10px; padding: 10px; }
.fa-cal__head { font-size: 12px; font-weight: 700; color: var(--gray-700); text-align: center; margin-bottom: 6px; }
.fa-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 10px; color: var(--gray-500); }
.fa-cal__grid span { padding: 3px 2px; border-radius: 4px; }
.fa-cal__grid span:nth-child(-n+7) { font-weight: 700; color: var(--gray-400); font-size: 9px; }
.fa-cal__today { background: var(--primary); color: #fff !important; font-weight: 700; }
.flip-card--flipped .fa-cal__today { animation: calPulse 2s ease infinite; }
@keyframes calPulse { 0%,100%{box-shadow:0 0 0 0 rgba(79,70,229,.3)} 50%{box-shadow:0 0 0 4px rgba(79,70,229,0)} }
.fa-booking__bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fa-bay { padding: 6px 2px; border-radius: 8px; text-align: center; border: 2px solid; }
.fa-bay span { display: block; font-weight: 800; font-size: 12px; }
.fa-bay small { font-size: 9px; font-weight: 600; }
.fa-bay--free { background: #d1fae5; border-color: #10b981; color: #065f46; }
.fa-bay--taken { background: #fee2e2; border-color: #f87171; color: #991b1b; }
.flip-card--flipped .fa-bay--pick { animation: bayPick 2s ease 1.2s forwards; }
@keyframes bayPick {
  0% { transform: scale(1); box-shadow: none; }
  30% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(79,70,229,.3); border-color: var(--primary); }
  100% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(79,70,229,.15); border-color: var(--primary); background: var(--primary-50); }
}
.fa-booking__btn { padding: 8px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; }
.fa-booking__done { display: flex; align-items: center; justify-content: center; gap: 5px; background: #d1fae5; color: #065f46; padding: 7px; border-radius: 8px; font-size: 11px; font-weight: 700; }

/* -- QR -- */
.fa-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.fa-qr__finder { width: 120px; height: 120px; position: relative; display: flex; align-items: center; justify-content: center; background: rgba(249,250,251,.7); border-radius: 10px; }
.fa-qr__corner { position: absolute; width: 16px; height: 16px; border: 3px solid var(--primary); }
.fa-qr__corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 5px 0 0 0; }
.fa-qr__corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 5px 0 0; }
.fa-qr__corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 5px; }
.fa-qr__corner--br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 5px 0; }
.fa-qr__scanline { position: absolute; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); border-radius: 1px; top: 12px; }
.flip-card--flipped .fa-qr__scanline { animation: qrScan 2s ease-in-out infinite; }
@keyframes qrScan { 0%{top:12px;opacity:.8} 50%{top:calc(100% - 14px);opacity:1} 100%{top:12px;opacity:.8} }
.fa-qr__code { opacity: .6; }
.fa-qr__detected { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-green); text-align: center; }
.fa-qr__building { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.fa-qr__action { padding: 8px 20px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; }

/* -- Geo -- */
.fa-geo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fa-geo__map { width: 180px; height: 140px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fa-geo__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 20px 20px; opacity: .3; }
.fa-geo__pin { z-index: 2; opacity: 0; }
.flip-card--flipped .fa-geo__pin { animation: pinDrop .6s var(--ease) .6s forwards; }
@keyframes pinDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fa-geo__radius { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--primary); background: rgba(99,102,241,.08); opacity: 0; }
.flip-card--flipped .fa-geo__radius { animation: radiusPulse 2s ease 1.2s infinite; }
@keyframes radiusPulse { 0%,100%{transform:scale(.5);opacity:0} 50%{transform:scale(1);opacity:1} }
.fa-geo__bldg-label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: var(--primary); background: #fff; padding: 2px 8px; border-radius: 4px; box-shadow: var(--shadow-sm); }
.fa-geo__status { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-green); }
.fa-geo__dist { font-size: 11px; color: var(--gray-400); }

/* -- Dashboard -- */
.fa-dash { display: flex; flex-direction: column; gap: 8px; }
.fa-dash__stats { display: flex; gap: 6px; }
.fa-dash__stat { flex: 1; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 4px; text-align: center; }
.fa-dash__num { display: block; font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }
.fa-dash__stat small { font-size: 9px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.fa-dash__bars { display: flex; flex-direction: column; gap: 5px; }
.fa-dash__bar-row { display: flex; align-items: center; gap: 6px; }
.fa-dash__bar-label { font-size: 9px; font-weight: 600; color: var(--gray-400); width: 24px; text-align: right; }
.fa-dash__bar { flex: 1; height: 7px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.fa-dash__bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 4px; width: 0; }
.flip-card--flipped .fa-dash__bar-fill { animation: barGrow 1s var(--ease) 1.2s forwards; }
@keyframes barGrow { to { width: var(--w); } }
.fa-dash__row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: #fff; border: 1px solid var(--gray-100); border-radius: 8px; }
.fa-dash__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fa-dash__row strong { font-size: 11px; color: var(--gray-800); display: block; }
.fa-dash__row small { font-size: 10px; color: var(--gray-400); }
.fa-dash__tag { margin-left: auto; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #d1fae5; color: #059669; text-transform: uppercase; white-space: nowrap; }
.fa-dash__tag--upcoming { background: #fef3c7; color: #b45309; }

/* -- SMS -- */
.fa-sms { display: flex; flex-direction: column; gap: 10px; }
.fa-sms__notif { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; opacity: 0; }
.flip-card--flipped .fa-sms__notif { animation: notifSlide .5s var(--ease) .3s forwards; }
@keyframes notifSlide { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fa-sms__notif-icon { width: 26px; height: 26px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fa-sms__notif strong { font-size: 11px; color: var(--gray-800); display: block; }
.fa-sms__notif p { font-size: 11px; color: var(--gray-500); margin: 0; }
.fa-sms__notif small { margin-left: auto; font-size: 10px; color: var(--gray-400); }
.fa-sms__otp { display: flex; gap: 5px; justify-content: center; }
.fa-sms__digit { width: 30px; height: 38px; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--gray-800); opacity: 0; }
.flip-card--flipped .fa-sms__d1 { animation: digitPop .2s var(--ease) .8s forwards; }
.flip-card--flipped .fa-sms__d2 { animation: digitPop .2s var(--ease) 1.0s forwards; }
.flip-card--flipped .fa-sms__d3 { animation: digitPop .2s var(--ease) 1.2s forwards; }
.flip-card--flipped .fa-sms__d4 { animation: digitPop .2s var(--ease) 1.4s forwards; }
.flip-card--flipped .fa-sms__d5 { animation: digitPop .2s var(--ease) 1.6s forwards; }
.flip-card--flipped .fa-sms__d6 { animation: digitPop .2s var(--ease) 1.8s forwards; }
@keyframes digitPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.fa-sms__verify { padding: 8px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; }
.fa-sms__confirmed { display: flex; align-items: center; justify-content: center; gap: 5px; background: #d1fae5; color: #065f46; padding: 7px; border-radius: 8px; font-size: 11px; font-weight: 700; }

/* -- Config -- */
.fa-config { display: flex; flex-direction: column; gap: 6px; }
.fa-config__row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--gray-50); }
.fa-config__row span { font-size: 12px; color: var(--gray-600); font-weight: 500; }
.fa-toggle { width: 34px; height: 18px; background: var(--gray-300); border-radius: 9px; position: relative; transition: background .3s var(--ease); flex-shrink: 0; }
.fa-toggle--on { background: var(--accent-green); }
.fa-toggle__dot { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: var(--shadow-sm); }
.fa-toggle--on .fa-toggle__dot { transform: translateX(16px); }
.fa-slider { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fa-slider__track { width: 50px; height: 5px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.fa-slider__fill { height: 100%; width: 0; background: var(--primary); border-radius: 3px; }
.flip-card--flipped .fa-slider__fill { animation: sliderFill 1s var(--ease) 1.2s forwards; }
@keyframes sliderFill { to { width: 50%; } }
.fa-slider__val { font-size: 11px; font-weight: 800; color: var(--primary); min-width: 12px; }
.fa-config__saved { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent-green); margin-top: 2px; }

/* Phone mockup for feature previews */
.fa-phone {
  width: 260px;
  background: #fff;
  border-radius: 24px;
  border: 2.5px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 24px 0;
}
.fa-phone--wide { width: 310px; }
.fa-phone__notch {
  width: 80px; height: 5px;
  background: var(--gray-200); border-radius: 3px;
  margin: 8px auto 0;
}
.fa-phone__screen { padding: 10px 14px 16px; }

/* === Feature animation elements === */
/* Staggered fade-in classes */
.fa-a1 { opacity: 0; animation: featAnimIn .4s var(--ease) .2s forwards; }
.fa-a2 { opacity: 0; animation: featAnimIn .4s var(--ease) .6s forwards; }
.fa-a3 { opacity: 0; animation: featAnimIn .4s var(--ease) 1.0s forwards; }
.fa-a4 { opacity: 0; animation: featAnimIn .4s var(--ease) 1.5s forwards; }
.fa-a5 { opacity: 0; animation: featAnimIn .4s var(--ease) 2.2s forwards; }

/* -- Booking feature -- */
.fa-booking { display: flex; flex-direction: column; gap: 10px; }
.fa-booking__header { font-size: 14px; font-weight: 700; color: var(--gray-800); padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.fa-booking__calendar { background: var(--gray-50); border-radius: 10px; padding: 10px; }
.fa-cal__head { font-size: 12px; font-weight: 700; color: var(--gray-700); text-align: center; margin-bottom: 8px; }
.fa-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 10px; color: var(--gray-500); }
.fa-cal__grid span { padding: 4px 2px; border-radius: 4px; }
.fa-cal__grid span:nth-child(-n+7) { font-weight: 700; color: var(--gray-400); font-size: 9px; }
.fa-cal__today { background: var(--primary); color: #fff !important; font-weight: 700; animation: calPulse 2s ease infinite; }
@keyframes calPulse { 0%,100%{box-shadow:0 0 0 0 rgba(79,70,229,.3)} 50%{box-shadow:0 0 0 4px rgba(79,70,229,0)} }
.fa-booking__bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fa-bay { padding: 8px 4px; border-radius: 8px; text-align: center; border: 2px solid; }
.fa-bay span { display: block; font-weight: 800; font-size: 13px; }
.fa-bay small { font-size: 9px; font-weight: 600; }
.fa-bay--free { background: #d1fae5; border-color: #10b981; color: #065f46; }
.fa-bay--taken { background: #fee2e2; border-color: #f87171; color: #991b1b; }
.fa-bay--pick { animation: bayPick 2s ease 1.4s forwards; position: relative; }
@keyframes bayPick {
  0% { transform: scale(1); box-shadow: none; }
  30% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(79,70,229,.3); border-color: var(--primary); }
  100% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(79,70,229,.15); border-color: var(--primary); background: var(--primary-50); }
}
.fa-booking__btn { padding: 10px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; }
.fa-booking__done { display: flex; align-items: center; justify-content: center; gap: 6px; background: #d1fae5; color: #065f46; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }

/* -- QR feature -- */
.fa-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.fa-qr__finder { width: 130px; height: 130px; position: relative; display: flex; align-items: center; justify-content: center; background: rgba(249,250,251,.7); border-radius: 10px; }
.fa-qr__corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--primary); }
.fa-qr__corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 5px 0 0 0; }
.fa-qr__corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 5px 0 0; }
.fa-qr__corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 5px; }
.fa-qr__corner--br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 5px 0; }
.fa-qr__scanline { position: absolute; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: qrScan 2s ease-in-out infinite; border-radius: 1px; }
.fa-qr__code { opacity: .6; }
.fa-qr__detected { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--accent-green); }
.fa-qr__building { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.fa-qr__action { padding: 10px 24px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700; }

/* -- Geo feature -- */
.fa-geo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fa-geo__map { width: 200px; height: 160px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fa-geo__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 20px 20px; opacity: .3; }
.fa-geo__pin { animation: pinDrop .6s var(--ease) .6s both; z-index: 2; }
@keyframes pinDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fa-geo__radius { position: absolute; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--primary); background: rgba(99,102,241,.08); animation: radiusPulse 2s ease 1.2s infinite; }
@keyframes radiusPulse { 0%,100%{transform:scale(.6);opacity:0} 50%{transform:scale(1);opacity:1} }
.fa-geo__bldg-label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: var(--primary); background: #fff; padding: 2px 8px; border-radius: 4px; box-shadow: var(--shadow-sm); }
.fa-geo__status { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--accent-green); }
.fa-geo__dist { font-size: 11px; color: var(--gray-400); }

/* -- Dashboard feature -- */
.fa-dash { display: flex; flex-direction: column; gap: 10px; }
.fa-dash__head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--gray-800); padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.fa-dash__live { font-size: 10px; font-weight: 700; background: #fee2e2; color: #dc2626; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; animation: livePulse 2s ease infinite; }
.fa-dash__stats { display: flex; gap: 8px; }
.fa-dash__stat { flex: 1; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px 6px; text-align: center; }
.fa-dash__num { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.fa-dash__stat small { font-size: 9px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; }
.fa-dash__bars { display: flex; flex-direction: column; gap: 6px; }
.fa-dash__bar-row { display: flex; align-items: center; gap: 8px; }
.fa-dash__bar-label { font-size: 10px; font-weight: 600; color: var(--gray-400); width: 26px; text-align: right; }
.fa-dash__bar { flex: 1; height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.fa-dash__bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 4px; width: 0; animation: barGrow 1s var(--ease) 1.2s forwards; }
@keyframes barGrow { to { width: var(--w); } }
.fa-dash__row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--gray-100); border-radius: 8px; }
.fa-dash__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fa-dash__row strong { font-size: 12px; color: var(--gray-800); display: block; }
.fa-dash__row small { font-size: 10px; color: var(--gray-400); }
.fa-dash__tag { margin-left: auto; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #d1fae5; color: #059669; text-transform: uppercase; white-space: nowrap; }
.fa-dash__tag--upcoming { background: #fef3c7; color: #b45309; }

/* -- SMS feature -- */
.fa-sms { display: flex; flex-direction: column; gap: 10px; }
.fa-sms__notif { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; animation: notifSlide .5s var(--ease) .2s both; }
@keyframes notifSlide { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fa-sms__notif-icon { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 7px; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fa-sms__notif strong { font-size: 11px; color: var(--gray-800); display: block; }
.fa-sms__notif p { font-size: 11px; color: var(--gray-500); }
.fa-sms__notif small { margin-left: auto; font-size: 10px; color: var(--gray-400); }
.fa-sms__otp-label { font-size: 11px; font-weight: 600; color: var(--gray-500); text-align: center; }
.fa-sms__otp { display: flex; gap: 6px; justify-content: center; }
.fa-sms__digit { width: 32px; height: 40px; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--gray-800); opacity: 0; }
.fa-sms__d1 { animation: digitPop .2s var(--ease) .8s forwards; }
.fa-sms__d2 { animation: digitPop .2s var(--ease) 1.0s forwards; }
.fa-sms__d3 { animation: digitPop .2s var(--ease) 1.2s forwards; }
.fa-sms__d4 { animation: digitPop .2s var(--ease) 1.4s forwards; }
.fa-sms__d5 { animation: digitPop .2s var(--ease) 1.6s forwards; }
.fa-sms__d6 { animation: digitPop .2s var(--ease) 1.8s forwards; }
@keyframes digitPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.fa-sms__verify { padding: 10px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; }
.fa-sms__confirmed { display: flex; align-items: center; justify-content: center; gap: 6px; background: #d1fae5; color: #065f46; padding: 8px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.fa-sms__email { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--primary); font-weight: 600; }

/* -- Config feature -- */
.fa-config { display: flex; flex-direction: column; gap: 8px; }
.fa-config__head { font-size: 14px; font-weight: 700; color: var(--gray-800); padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.fa-config__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-50); }
.fa-config__row span { font-size: 12px; color: var(--gray-600); font-weight: 500; }
.fa-toggle { width: 36px; height: 20px; background: var(--gray-300); border-radius: 10px; position: relative; transition: background .3s var(--ease); flex-shrink: 0; }
.fa-toggle--on { background: var(--accent-green); }
.fa-toggle__dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: var(--shadow-sm); }
.fa-toggle--on .fa-toggle__dot { transform: translateX(16px); }
.fa-slider { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fa-slider__track { width: 60px; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.fa-slider__fill { height: 100%; width: 0; background: var(--primary); border-radius: 3px; animation: sliderFill 1s var(--ease) 1.2s forwards; }
@keyframes sliderFill { to { width: 50%; } }
.fa-slider__val { font-size: 12px; font-weight: 800; color: var(--primary); min-width: 14px; }
.fa-config__saved { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent-green); margin-top: 4px; }

/* Feature card icon colors (keep for backward compat) */
.feature-card__icon--blue   { background: var(--accent-blue-light); color: var(--accent-blue); }
.feature-card__icon--purple { background: var(--accent-purple-light); color: var(--accent-purple); }
.feature-card__icon--green  { background: var(--accent-green-light); color: var(--accent-green); }
.feature-card__icon--amber  { background: var(--accent-amber-light); color: var(--accent-amber); }
.feature-card__icon--rose   { background: var(--accent-rose-light); color: var(--accent-rose); }
.feature-card__icon--teal   { background: var(--accent-teal-light); color: var(--accent-teal); }

/* ── How It Works ──────────────────────────── */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

.step__number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.step__content {
  padding-top: 4px;
}

.step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step__text {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: var(--primary-light);
  margin: 8px 0 8px 27px;
  border-radius: 2px;
}

/* ── Demo Walkthrough ──────────────────────── */
.demo {
  padding: var(--section-py) 0;
  background: #fff;
}

.demo__player {
  max-width: 900px;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo__controls {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo__controls::-webkit-scrollbar { display: none; }

.demo__tab {
  flex: 1;
  min-width: 140px;
  padding: 16px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.demo__tab:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

.demo__tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
}

.demo__tab-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}

.demo__tab--active .demo__tab-num {
  background: var(--primary);
  color: #fff;
}

.demo__viewport {
  position: relative;
  min-height: 520px;
}

.demo__screen {
  display: none;
  padding: 40px;
  gap: 48px;
  align-items: center;
  justify-content: center;
  animation: demoFadeIn .4s var(--ease);
}

.demo__screen--active {
  display: flex;
}

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

/* Phone mockup */
.demo__phone {
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-radius: 28px;
  border: 3px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.demo__phone--wide {
  width: 340px;
  min-width: 340px;
}

.demo__phone-notch {
  width: 100px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin: 10px auto 0;
}

.demo__phone-content {
  padding: 12px 16px 20px;
}

.demo__caption {
  flex: 1;
  max-width: 320px;
}

.demo__caption h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.demo__caption p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Demo screen inner elements */
.ds__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}

.ds__header-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .5px;
  animation: livePulse 2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.ds__logo-small {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds__input-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds__input-group label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ds__input {
  padding: 8px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}

.ds__input--typing {
  color: transparent;
  position: relative;
  overflow: hidden;
}

.ds__input--typing::after {
  content: attr(data-text);
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--gray-700);
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(25) 0.5s forwards;
  width: 0;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.ds__cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  animation: blink .8s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

.ds__row {
  display: flex;
  gap: 8px;
}

.ds__input-group--half {
  flex: 1;
}

.ds__btn {
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

.ds__btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.ds__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  background: var(--accent-green-light);
  border-radius: 8px;
}

/* Bay list in step 2 */
.ds__bay-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds__bay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.ds__bay-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.ds__bay-icon--resident {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.ds__bay-icon--visitor {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
}

.ds__bay-item strong {
  font-size: 13px;
  color: var(--gray-800);
  display: block;
}

.ds__bay-item small {
  font-size: 11px;
  color: var(--gray-400);
}

.ds__bay-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.ds__bay-status--active {
  background: var(--accent-green-light);
  color: #059669;
}

.ds__add-bay {
  padding: 10px;
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Bay select in step 3 */
.ds__bay-select label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  display: block;
}

.ds__bay-options {
  display: flex;
  gap: 8px;
}

.ds__bay-opt {
  flex: 1;
  padding: 10px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-500);
}

.ds__bay-opt--selected {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* QR flow - step 4 */
.ds__qr-flow {
  text-align: center;
}

.ds__qr-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background: var(--primary-50);
  border: 2px solid var(--primary-light);
  border-radius: 12px;
}

.ds__qr-badge small {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ds__pulse {
  animation: dsPulse 2s ease-in-out infinite;
}

@keyframes dsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,.2); }
  50% { box-shadow: 0 0 0 8px rgba(79,70,229,0); }
}

.ds__otp-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.ds__otp-box {
  width: 34px;
  height: 40px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
}

.ds__otp-box--active {
  border-color: var(--primary);
  color: var(--primary);
  animation: blink .8s step-end infinite;
}

/* Dashboard - step 5 */
.ds__stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ds__stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.ds__stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.ds__stat small {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.ds__booking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds__booking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.ds__booking-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ds__booking-dot--green { background: var(--accent-green); }
.ds__booking-dot--blue { background: var(--accent-blue); }
.ds__booking-dot--amber { background: var(--accent-amber); }

.ds__booking strong {
  font-size: 13px;
  color: var(--gray-800);
  display: block;
}

.ds__booking small {
  font-size: 11px;
  color: var(--gray-400);
}

.ds__booking-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-green-light);
  color: #059669;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}

.ds__booking-tag--pending {
  background: var(--accent-blue-light);
  color: #2563eb;
}

.ds__booking-tag--upcoming {
  background: var(--accent-amber-light);
  color: #b45309;
}

/* Demo animation delays */
.ds__fade-in-1 { opacity: 0; animation: demoFadeIn .4s var(--ease) .6s forwards; }
.ds__fade-in-2 { opacity: 0; animation: demoFadeIn .4s var(--ease) 1.0s forwards; }
.ds__fade-in-3 { opacity: 0; animation: demoFadeIn .4s var(--ease) 1.5s forwards; }
.ds__fade-in-4 { opacity: 0; animation: demoFadeIn .4s var(--ease) 2.2s forwards; }

.ds__slide-in-0 { opacity: 0; animation: dsSlideIn .4s var(--ease) .2s forwards; }
.ds__slide-in-1 { opacity: 0; animation: dsSlideIn .4s var(--ease) .4s forwards; }
.ds__slide-in-2 { opacity: 0; animation: dsSlideIn .4s var(--ease) .6s forwards; }
.ds__slide-in-3 { opacity: 0; animation: dsSlideIn .4s var(--ease) .8s forwards; }

@keyframes dsSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* QR scan scene — step 4 */
.ds__qr-scan-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.ds__qr-viewfinder {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,250,251,.7);
  border-radius: 12px;
}

.ds__qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary);
}
.ds__qr-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.ds__qr-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.ds__qr-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.ds__qr-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.ds__qr-scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: qrScan 2s ease-in-out infinite;
  border-radius: 1px;
}

@keyframes qrScan {
  0% { top: 12px; opacity: .8; }
  50% { top: calc(100% - 14px); opacity: 1; }
  100% { top: 12px; opacity: .8; }
}

.ds__qr-code {
  opacity: .7;
}

.ds__qr-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
}

.ds__qr-building-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.ds__qr-geo, .ds__qr-geo-ok {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.ds__qr-geo small { color: var(--gray-400); }
.ds__qr-geo-ok small { color: var(--accent-green); font-weight: 600; }

/* Building banner — resident join step */
.ds__building-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 10px;
  margin-bottom: 4px;
}

.ds__building-icon {
  font-size: 24px;
  line-height: 1;
}

.ds__building-banner strong {
  font-size: 13px;
  color: var(--gray-800);
  display: block;
}

.ds__building-banner small {
  font-size: 11px;
  color: var(--gray-400);
}

/* Geo pill in header */
.ds__geo-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* OTP section */
.ds__otp-section {
  text-align: center;
}

.ds__otp-msg {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.ds__fade-in-0 { opacity: 0; animation: demoFadeIn .4s var(--ease) .3s forwards; }

/* Demo responsive */
@media (max-width: 768px) {
  .demo__screen {
    flex-direction: column;
    padding: 24px 16px;
    gap: 24px;
  }

  .demo__phone, .demo__phone--wide {
    width: 100%;
    min-width: auto;
    max-width: 300px;
  }

  .demo__caption {
    text-align: center;
    max-width: none;
  }

  .demo__tab {
    min-width: 110px;
    font-size: 11px;
    padding: 12px 8px;
  }

  .demo__viewport {
    min-height: auto;
  }
}

/* ── Community ─────────────────────────────── */
.community {
  padding: var(--section-py) 0;
  background: #fff;
}

.community__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community__text {
  font-size: 17px;
  color: var(--gray-500);
  margin: 20px 0 28px;
  line-height: 1.8;
}

.community__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
}

.community__check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: var(--accent-green);
}

.community__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: transform .3s var(--ease);
}
.community__card:hover {
  transform: translateX(8px);
}

.community__card--1 { transform: translateX(0); }
.community__card--2 { transform: translateX(30px); }
.community__card--3 { transform: translateX(15px); }
.community__card--1:hover { transform: translateX(8px); }
.community__card--2:hover { transform: translateX(38px); }
.community__card--3:hover { transform: translateX(23px); }

.community__card-icon {
  font-size: 28px;
  line-height: 1;
}

.community__card strong {
  display: block;
  color: var(--gray-800);
  font-size: 15px;
  margin-bottom: 2px;
}

.community__card small {
  color: var(--gray-400);
  font-size: 13px;
}

/* ── Pricing ───────────────────────────────── */
.pricing {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing__grid--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pricing__note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 32px;
}

.pricing-card__limits {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-align: center;
  margin-bottom: 20px;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all .3s var(--ease);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured:hover {
  transform: translateY(-4px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pricing-card__header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.pricing-card__price {
  margin: 28px 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-card__currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.pricing-card__period {
  font-size: 14px;
  color: var(--gray-400);
  margin-left: 4px;
}

.pricing-card__features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  font-size: 15px;
  color: var(--gray-600);
  padding-left: 28px;
  position: relative;
}
.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.pricing-card .btn--block {
  margin-top: 12px;
  padding: 15px 28px;
  font-size: 16px;
}

/* ── CTA / Register ────────────────────────── */
.cta {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: #fff;
}

.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta__text {
  font-size: 18px;
  opacity: .85;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta__form-wrapper {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(255,255,255,.2);
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta__input {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all .2s var(--ease);
}
.cta__input--full {
  grid-column: 1 / -1;
}
.cta__input::placeholder {
  color: rgba(255,255,255,.6);
}
.cta__input:focus {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}

.cta .btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  margin-top: 8px;
}
.cta .btn--primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

.cta__note {
  font-size: 13px;
  opacity: .7;
  margin-top: 16px;
}

.cta__plan-hint {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 0;
  color: var(--primary, #2563eb);
}

/* ── Footer ────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand .navbar__name {
  color: #fff;
}

.footer__tagline {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color .2s var(--ease);
}
.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Screen-reader only ────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only--focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

/* ── Hero scroll indicator ─────────────────── */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 24px;
  color: var(--gray-400);
  font-size: 13px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── FAQ ───────────────────────────────────── */
.faq {
  padding: var(--section-py) 0;
}
.faq__list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq__item {
  border-bottom: 1px solid var(--gray-200);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item[open] .faq__question::after {
  content: '−';
  color: var(--primary);
}
.faq__answer {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ── Back to top ───────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  z-index: 100;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
}

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp .6s var(--ease) forwards;
  opacity: 0;
}

.fade-in-delay-1 { animation-delay: .1s; }
.fade-in-delay-2 { animation-delay: .2s; }
.fade-in-delay-3 { animation-delay: .3s; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .hero__title { font-size: 42px; }
  .section-title { font-size: 34px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 360px; }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero__inner {
    display: block;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__visual {
    display: none;
  }

  .features__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .flip-card { height: 340px; }

  .community__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title--left { text-align: center; }
  .section-tag { display: block; text-align: center; }
  .community__text { text-align: center; }
  .community__list { align-items: center; }

  .hero__scroll { display: none; }

  .community__card--2 { transform: translateX(0); }
  .community__card--3 { transform: translateX(0); }
  .community__card--2:hover { transform: translateX(8px); }
  .community__card--3:hover { transform: translateX(8px); }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
  }
  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .cta__title { font-size: 28px; }
  .cta__form-row { grid-template-columns: 1fr; }
  .cta__form-wrapper { padding: 24px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 48px;
  }

  /* ── Hero ── */
  .hero { padding: 88px 0 36px; }
  .hero__title { font-size: 26px; margin-bottom: 14px; }
  .hero__subtitle { font-size: 14px; margin-bottom: 20px; max-width: none; }
  .hero__badge { font-size: 11px; padding: 4px 12px; margin-bottom: 12px; }
  .hero__actions { margin-bottom: 20px; gap: 10px; }
  .hero__actions .btn--lg { padding: 12px 20px; font-size: 14px; width: 100%; }
  .hero__visual { display: none; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 22px; margin-bottom: 8px; }
  .section-subtitle { font-size: 14px; }
  .section-tag { font-size: 11px; padding: 3px 10px; margin-bottom: 10px; }

  /* ── Flip cards: auto-height so back content doesn't clip ── */
  .features__grid { gap: 16px; max-width: none; }
  /* Tall enough for the densest back-face demo (booking / dashboard) so the
     confirmation line at the bottom isn't clipped once the card is flipped. */
  .flip-card { height: auto; min-height: 320px; }
  .flip-card__inner { min-height: 320px; }
  .flip-card__front,
  .flip-card__back { position: relative; inset: auto; }
  .flip-card__back { position: absolute; inset: 0; }
  .flip-card__front { padding: 20px 18px; }
  .flip-card__front h3 { font-size: 16px; margin-bottom: 6px; }
  .flip-card__front p { font-size: 13px; line-height: 1.5; }
  .flip-card__icon { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; }
  .flip-card__icon svg { width: 18px; height: 18px; }
  .flip-card__hint { font-size: 11px; padding-top: 10px; }
  .flip-card__back { padding: 14px 12px; }
  .flip-card__back-label { font-size: 9px; margin-bottom: 6px; padding-bottom: 5px; }

  /* ── Flip card back-face inner elements: scale down ── */
  /* Booking */
  .fa-booking { gap: 5px; }
  .fa-booking__calendar,
  .fa-cal__head { font-size: 10px; }
  .fa-cal__grid { font-size: 8px; gap: 1px; }
  .fa-cal__grid span { padding: 2px 1px; }
  .fa-cal__grid span:nth-child(-n+7) { font-size: 7px; }
  .fa-booking__bays { gap: 4px; }
  .fa-bay { padding: 4px 2px; border-width: 1.5px; }
  .fa-bay span { font-size: 10px; }
  .fa-bay small { font-size: 7px; }
  .fa-booking__btn { padding: 5px; font-size: 10px; }
  .fa-booking__done { padding: 4px; font-size: 9px; gap: 3px; }
  .fa-booking__done svg { width: 12px; height: 12px; }

  /* QR */
  .fa-qr { gap: 6px; padding-top: 0; }
  .fa-qr__finder { width: 90px; height: 90px; }
  .fa-qr__corner { width: 12px; height: 12px; border-width: 2px; }
  .fa-qr__code { width: 42px; height: 42px; }
  .fa-qr__detected { font-size: 10px; gap: 3px; }
  .fa-qr__detected svg { width: 12px; height: 12px; }
  .fa-qr__action { padding: 5px 12px; font-size: 10px; }

  /* Geo */
  .fa-geo { gap: 6px; }
  .fa-geo__map { width: 140px; height: 100px; border-radius: 8px; }
  .fa-geo__pin svg { width: 20px; height: 20px; }
  .fa-geo__radius { width: 60px; height: 60px; }
  .fa-geo__bldg-label { font-size: 8px; padding: 1px 5px; bottom: 4px; }
  .fa-geo__status { font-size: 10px; }
  .fa-geo__status svg { width: 12px; height: 12px; }
  .fa-geo__dist { font-size: 9px; }

  /* Dashboard */
  .fa-dash { gap: 5px; }
  .fa-dash__stats { gap: 4px; }
  .fa-dash__stat { padding: 5px 3px; border-radius: 6px; }
  .fa-dash__num { font-size: 16px; }
  .fa-dash__stat small { font-size: 7px; }
  .fa-dash__bars { gap: 3px; }
  .fa-dash__bar-label { font-size: 8px; width: 20px; }
  .fa-dash__bar { height: 5px; }
  .fa-dash__row { padding: 5px 6px; gap: 5px; border-radius: 6px; }
  .fa-dash__row strong { font-size: 10px; }
  .fa-dash__row small { font-size: 8px; }
  .fa-dash__tag { font-size: 7px; padding: 1px 4px; }
  .fa-dash__dot { width: 6px; height: 6px; }

  /* SMS */
  .fa-sms { gap: 6px; }
  .fa-sms__notif { padding: 6px 8px; gap: 6px; border-radius: 8px; }
  .fa-sms__notif-icon { width: 22px; height: 22px; font-size: 9px; border-radius: 5px; }
  .fa-sms__notif strong { font-size: 10px; }
  .fa-sms__notif p { font-size: 9px; }
  .fa-sms__notif small { font-size: 8px; }
  .fa-sms__otp { gap: 3px; }
  .fa-sms__digit { width: 24px; height: 30px; font-size: 12px; border-radius: 5px; border-width: 1.5px; }
  .fa-sms__verify { padding: 5px; font-size: 10px; }
  .fa-sms__confirmed { padding: 4px; font-size: 9px; gap: 3px; }
  .fa-sms__confirmed svg { width: 12px; height: 12px; }

  /* Config */
  .fa-config { gap: 4px; }
  .fa-config__row { padding: 4px 0; }
  .fa-config__row span { font-size: 10px; }
  .fa-toggle { width: 28px; height: 16px; border-radius: 8px; }
  .fa-toggle__dot { width: 12px; height: 12px; }
  .fa-toggle--on .fa-toggle__dot { transform: translateX(12px); }
  .fa-slider__track { width: 40px; height: 4px; }
  .fa-slider__val { font-size: 9px; }
  .fa-config__saved { font-size: 9px; margin-top: 1px; }
  .fa-config__saved svg { width: 12px; height: 12px; }

  /* ── How It Works ── */
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .step__number { width: 42px; height: 42px; min-width: 42px; font-size: 18px; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 13px; }
  .step__connector { height: 20px; margin: 4px 0; }

  /* ── Demo walkthrough ── */
  .demo__controls { gap: 0; }
  .demo__tab { min-width: 0; flex: 1; font-size: 0; padding: 10px 4px; justify-content: center; }
  .demo__tab-num { width: 22px; height: 22px; font-size: 11px; }
  .demo__screen { padding: 16px 10px; gap: 14px; }
  .demo__phone { border-radius: 18px; border-width: 2px; }
  .demo__phone-content { padding: 8px 10px 14px; }
  .demo__phone-notch { width: 70px; height: 4px; margin-top: 6px; }
  .demo__caption h4 { font-size: 16px; margin-bottom: 4px; }
  .demo__caption p { font-size: 12px; line-height: 1.6; }
  .ds__header { font-size: 12px; padding-bottom: 8px; margin-bottom: 10px; gap: 5px; }
  .ds__input { padding: 6px 8px; font-size: 11px; border-radius: 6px; }
  .ds__input-group { gap: 2px; }
  .ds__input-group label { font-size: 8px; }
  .ds__btn { padding: 7px; font-size: 11px; border-radius: 7px; }
  .ds__success { font-size: 11px; padding: 6px; gap: 4px; }
  .ds__success svg { width: 14px; height: 14px; }
  .ds__otp-row { gap: 4px; }
  .ds__otp-box { width: 26px; height: 32px; font-size: 13px; border-radius: 6px; }
  .ds__otp-msg { font-size: 10px; }
  .ds__stat { padding: 8px 4px; border-radius: 8px; }
  .ds__stat-num { font-size: 18px; }
  .ds__stat small { font-size: 8px; }
  .ds__booking { padding: 7px 8px; gap: 6px; border-radius: 8px; }
  .ds__booking strong { font-size: 11px; }
  .ds__booking small { font-size: 9px; }
  .ds__booking-tag { font-size: 8px; padding: 2px 6px; }
  .ds__booking-dot { width: 7px; height: 7px; }
  .ds__qr-viewfinder { width: 110px; height: 110px; }
  .ds__qr-corner { width: 16px; height: 16px; border-width: 2px; }
  .ds__qr-code { width: 60px; height: 60px; }
  .ds__qr-label { font-size: 11px; }
  .ds__qr-label svg { width: 12px; height: 12px; }
  .ds__qr-building-name { font-size: 12px; }
  .ds__qr-geo, .ds__qr-geo-ok { font-size: 10px; }
  .ds__building-banner { padding: 7px 10px; gap: 8px; border-radius: 8px; }
  .ds__building-icon { font-size: 20px; }
  .ds__building-banner strong { font-size: 11px; }
  .ds__building-banner small { font-size: 9px; }
  .ds__bay-opt { padding: 7px; font-size: 12px; border-radius: 7px; }
  .ds__bay-select label { font-size: 8px; }
  .ds__geo-pill { font-size: 8px; padding: 1px 6px; }

  /* ── Community ── */
  .community__inner { gap: 28px; }
  .community__text { font-size: 14px; margin: 14px 0 20px; }
  .community__list { gap: 10px; }
  .community__list li { font-size: 13px; gap: 8px; }
  .community__check { width: 18px; height: 18px; min-width: 18px; }
  .community__visual { gap: 12px; }
  .community__card { padding: 12px 14px; gap: 10px; }
  .community__card-icon { font-size: 22px; }
  .community__card strong { font-size: 13px; }
  .community__card small { font-size: 11px; }

  /* ── Pricing ── */
  .pricing-card { padding: 24px 18px; }
  .pricing-card__header h3 { font-size: 19px; }
  .pricing-card__desc { font-size: 13px; }
  .pricing-card__price { margin: 20px 0; }
  .pricing-card__amount { font-size: 36px; }
  .pricing-card__currency { font-size: 20px; }
  .pricing-card__period { font-size: 12px; }
  .pricing-card__limits { font-size: 12px; padding: 6px 12px; margin-bottom: 16px; }
  .pricing-card__features { margin-bottom: 24px; gap: 8px; }
  .pricing-card__features li { font-size: 13px; padding-left: 24px; }
  .pricing-card__features li::before { width: 16px; height: 16px; top: 4px; }
  .pricing__note { font-size: 12px; margin-top: 20px; }
  .pricing-card__badge { font-size: 10px; padding: 4px 14px; top: -12px; }

  /* ── FAQ ── */
  .faq__list { margin-top: 28px; }
  .faq__question { font-size: 14px; padding: 14px 0; }
  .faq__question::after { font-size: 18px; }
  .faq__answer { font-size: 13px; padding-bottom: 14px; line-height: 1.6; }

  /* ── CTA ── */
  .cta { padding: 40px 0; }
  .cta__title { font-size: 22px; }
  .cta__text { font-size: 14px; margin-bottom: 20px; }
  .cta__form-wrapper { padding: 16px 14px; }
  .cta__form { gap: 10px; }
  .cta__form-row { grid-template-columns: 1fr; gap: 10px; }
  .cta__input { padding: 11px 12px; font-size: 13px; }
  .cta .btn--lg { padding: 12px; font-size: 14px; }

  /* ── Footer ── */
  .footer { padding: 36px 0 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .footer__brand { grid-column: span 2; }
  .footer__tagline { font-size: 13px; }
  .navbar__logo-svg { width: 32px; height: 32px; }
  .footer .navbar__name { font-size: 17px; }
  .footer__col h4 { margin-bottom: 8px; font-size: 13px; }
  .footer__col li { margin-bottom: 5px; }
  .footer__col a { font-size: 12px; }
  .footer__bottom { font-size: 11px; padding-top: 16px; }

  .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}

/* ── Extra small (≤360px) ──────────────────── */
@media (max-width: 360px) {
  .hero { padding: 80px 0 28px; }
  .hero__title { font-size: 22px; }
  .hero__subtitle { font-size: 13px; }
  .section-title { font-size: 20px; }
  .section-subtitle { font-size: 13px; }

  .flip-card { min-height: 320px; }
  .flip-card__front { padding: 16px 14px; }
  .flip-card__front h3 { font-size: 15px; }
  .flip-card__front p { font-size: 12px; }
  .flip-card__icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .flip-card__icon svg { width: 16px; height: 16px; }

  /* Shrink back-face demos further for tiny screens */
  .fa-qr__finder { width: 70px; height: 70px; }
  .fa-qr__code { width: 34px; height: 34px; }
  .fa-geo__map { width: 110px; height: 80px; }
  .fa-geo__pin svg { width: 16px; height: 16px; }
  .fa-geo__radius { width: 50px; height: 50px; }
  .fa-sms__digit { width: 20px; height: 26px; font-size: 10px; }
  .fa-dash__num { font-size: 14px; }
  .fa-dash__row { padding: 4px 5px; }
  .fa-dash__row strong { font-size: 9px; }
  .fa-dash__row small { font-size: 7px; }

  .demo__tab-num { width: 20px; height: 20px; font-size: 10px; }
  .demo__phone { max-width: 260px; }
  .ds__otp-box { width: 22px; height: 28px; font-size: 12px; }

  .cta__title { font-size: 19px; }
  .cta__text { font-size: 13px; }
  .cta__form-wrapper { padding: 14px 12px; }
  .cta__input { padding: 10px; font-size: 13px; }

  .pricing-card { padding: 20px 14px; }
  .pricing-card__amount { font-size: 30px; }

  .community__card { padding: 10px 12px; }
  .community__card strong { font-size: 12px; }
  .community__card small { font-size: 10px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

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

/* ── "Coming Soon" modal ───────────────────── */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cs-modal[hidden] { display: none; }

.cs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(3px);
  animation: cs-fade .2s var(--ease);
}

.cs-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px 32px;
  text-align: center;
  animation: cs-pop .25s var(--ease);
}

.cs-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  font-size: 26px;
  line-height: 1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.cs-modal__close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.cs-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary);
}

.cs-modal__icon svg { width: 32px; height: 32px; }

.cs-modal__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.cs-modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.cs-modal__btn {
  width: 100%;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
}

@keyframes cs-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cs-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
