@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;
  
  /* Modern Crisp Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --shadow-glow: 0 10px 25px -5px rgba(37, 99, 235, 0.25), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
  --shadow-success-glow: 0 10px 25px -5px rgba(22, 163, 74, 0.25);
  --shadow-danger-glow: 0 10px 25px -5px rgba(220, 38, 38, 0.25);
}

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

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography */
h1, h2, h3 { font-family: 'Nunito', sans-serif; color: var(--text-main); }
h1 { font-size: 44px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 36px; font-weight: 700; margin-bottom: 40px; text-align: center; letter-spacing: -0.5px; }
p { font-size: 18px; color: var(--text-muted); margin-bottom: 16px; font-weight: 400; }

/* Modern UI Elements */
.neu-flat {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.neu-flat:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.neu-inset {
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn:active { box-shadow: var(--shadow-sm); transform: translateY(0); }

.btn-primary { color: #ffffff; }
.btn-success { color: var(--success); }
.btn-danger { color: var(--danger); }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 0;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.logo-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.logo-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-top: 2px;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.nav-link {
  color: var(--primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 4px;
  margin: 0 4px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:active {
  transform: translateY(1px);
}
.app-icon {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 12px;
}
.logo-brand-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin: 3px 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
}

/* Hero Section */
.hero { padding: 160px 0 60px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-logo-mobile { display: none; }

.hero-desc {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.form-wrapper { position: relative; height: 300px; margin-top: 40px; }
.register-blob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 340px; height: 80px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  overflow: hidden;
  text-align: center;
}
.register-blob:hover {
  transform: translate(-50%, -52%);
  box-shadow: var(--shadow-lg);
}
.register-blob:not(.expanded) {
  overflow: visible;
}

/* Pulsing Dot with Larger & Slower Waves (Option 10) */
.status-dot-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 20px;
  z-index: 3;
}
.status-dot-static {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  z-index: 2;
}
.dot-wave-slow {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: transparent;
  border: 1.5px solid rgba(34, 197, 94, 0.75);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: dot-wave-pulse-slow 4.0s infinite ease-out;
}
.dot-wave-slow:nth-child(2) {
  animation-delay: 2.0s;
}

@keyframes dot-wave-pulse-slow {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    border-color: rgba(34, 197, 94, 0.35);
  }
  100% {
    transform: scale(6.5);
    opacity: 0;
  }
}

.register-blob.expanded {
  width: 100%; height: 305px;
  border-radius: 24px; cursor: default;
  transform: translate(-50%, -50%);
}
.blob-text { 
  font-family: 'Nunito', sans-serif; 
  font-weight: 700; 
  color: var(--primary); 
  transition: opacity 0.3s; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.register-blob.expanded .blob-text { opacity: 0; pointer-events: none; }
.form-content {
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
  width: 100%; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.register-blob.expanded .form-content { opacity: 1; pointer-events: auto; transition-delay: 0.3s; }
.neu-input {
  width: 100%; padding: 16px 24px; border: none; background: #f8fafc;
  border-radius: 12px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); outline: none;
  font-family: 'Nunito', sans-serif; font-size: 16px; color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.neu-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 3D Phone and Simulator Details */
.scene { width: 320px; height: 640px; perspective: 1000px; margin: 0 auto; }
.phone-3d {
  width: 100%; height: 100%;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35), inset 0 0 0 4px #444, inset 0 0 20px rgba(0,0,0,0.8);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  padding: 12px;
  position: relative;
}
.scene:hover .phone-3d {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 35px 70px -15px rgba(0,0,0,0.45), inset 0 0 0 4px #444, inset 0 0 20px rgba(0,0,0,0.8);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center;
  transform: translateZ(20px);
  overflow: hidden;
  position: relative;
  transition: background 0.4s ease;
  user-select: none;
}

/* Authentic App Background Gradients */
.phone-screen.state-allgood {
  background: radial-gradient(circle at center, #ffffff 0%, #ffffff 45%, #D6EBFA 75%, #54B3E5 100%);
}
.phone-screen.state-expired {
  background: radial-gradient(circle at center, #ffffff 0%, #ffffff 45%, #CBD5E1 75%, #94A3B8 100%);
}

.screen-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 0 0;
  position: relative;
}

/* Authentic App CheckinButton structure */
.checkin-btn-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkin-btn-3d {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.1s ease-out;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkin-btn-3d .rim {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid #328A4C;
  background: linear-gradient(180deg, #5AC97A 0%, #4BB86C 50%, #3A9A58 100%);
  transition: background 0.3s;
}

.checkin-btn-3d.expired .rim {
  border-color: #7A8290;
  background: linear-gradient(180deg, #B0B8C4 0%, #9CA3AF 50%, #8A929E 100%);
}

.checkin-btn-3d .groove {
  position: absolute;
  width: 83.2%; height: 83.2%;
  border-radius: 50%;
  background: #2B7840;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.checkin-btn-3d.expired .groove {
  background: #6B7280;
}

.checkin-btn-3d.pulsing .groove {
  animation: groove-pulse 1.2s infinite;
}

@keyframes groove-pulse {
  0% { background: #2B7840; }
  50% { background: #4AAE68; }
  100% { background: #2B7840; }
}

.checkin-btn-3d .cap {
  position: absolute;
  width: 80.2%; height: 80.2%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 25%, #4AAE68 0%, #3D9B58 25%, #359650 50%, #2E8B48 75%, #267A3E 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s;
}

.checkin-btn-3d.expired .cap {
  background: radial-gradient(circle at 50% 25%, #B0B8C4 0%, #9CA3AF 25%, #8A929E 50%, #7A8290 75%, #6B7280 100%);
}

.checkin-btn-3d .cap-text {
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 4px rgba(26, 92, 48, 0.6);
  letter-spacing: 0.5px;
  transition: opacity 0.2s, text-shadow 0.3s;
}

.checkin-btn-3d.expired .cap-text {
  text-shadow: 0 2px 4px rgba(75, 85, 99, 0.6);
}

/* 100% Match Checkmark Drawing */
.checkmark-container-svg {
  position: absolute;
  width: 54px;
  height: 54px;
  z-index: 3;
  pointer-events: none;
}

.check-main-path, .check-shadow-path {
  stroke-dasharray: 112;
  stroke-dashoffset: 112;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkin-btn-3d.success-anim .check-main-path,
.checkin-btn-3d.success-anim .check-shadow-path {
  stroke-dashoffset: 0;
}

.checkin-btn-3d.success-anim .cap-text {
  opacity: 0;
}

/* Ripple waves for Checkin click */
.checkin-ripple {
  position: absolute;
  border-radius: 50%;
  border: 4px solid rgba(22, 163, 74, 0.4);
  pointer-events: none;
  transform: scale(0.8);
  opacity: 0;
}
.checkin-ripple.active {
  animation: phone-ripple 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes phone-ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; border-color: rgba(22, 163, 74, 0.05); }
}

/* Success status text below button */
.success-message {
  color: #3D9B58;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 10px;
  height: 20px;
}
.success-message.visible {
  opacity: 1;
}

/* Expiry Rings alert */
.expiry-rings-container {
  position: absolute;
  width: 100%; height: 100%;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.expiry-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid rgba(239, 68, 68, 0.85);
  width: 200px; height: 200px;
  opacity: 0;
  pointer-events: none;
}
.phone-screen.state-expired .expiry-ring {
  animation: expiry-pulse-css 2s infinite linear;
}
.phone-screen.state-expired .expiry-ring:nth-child(2) {
  animation-delay: 0.66s;
}
.phone-screen.state-expired .expiry-ring:nth-child(3) {
  animation-delay: 1.33s;
}

@keyframes expiry-pulse-css {
  0% { transform: scale(1); opacity: 0.85; box-shadow: none; }
  66% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.3); opacity: 0; box-shadow: 0 0 12px rgba(239, 68, 68, 0); }
}

/* Idle Green Pulse Rings */
.checkin-pulse-rings-container {
  position: absolute;
  width: 100%; height: 100%;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.checkin-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 163, 74, 0.55);
  width: 200px; height: 200px;
  opacity: 0;
  pointer-events: none;
  animation: checkin-pulse-idle-css 4s infinite ease-out;
}
.checkin-pulse-ring:nth-child(2) {
  animation-delay: 1.33s;
}
.checkin-pulse-ring:nth-child(3) {
  animation-delay: 2.66s;
}

@keyframes checkin-pulse-idle-css {
  0% { transform: scale(0.95); opacity: 0; }
  15% { opacity: 0.75; }
  100% { transform: scale(1.35); opacity: 0; }
}

.phone-screen.state-expired .checkin-pulse-rings-container {
  display: none !important;
}

/* Canvas overlay for exact Particle confettis */
.particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Bottom SOS Button (Restored original style) */
.sos-bottom-btn {
  width: 100%;
  border-radius: 16px;
  padding: 23px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #6B7280;
  background: #F3F4F6;
  font-family: 'Nunito', sans-serif;
  user-select: none;
  transition: all 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.sos-bottom-btn:active {
  transform: scale(0.98);
}

.sos-bottom-btn .icon-warning,
.sos-bottom-btn .icon-sync,
.sos-bottom-btn .icon-check {
  display: none;
  width: 20px;
  height: 20px;
}

/* state-idle */
.sos-bottom-btn.state-idle {
  background: #F3F4F6 !important;
  border-color: #6B7280 !important;
  color: #EF4444 !important;
}
.sos-bottom-btn.state-idle .sos-label {
  color: #EF4444 !important;
}
.sos-bottom-btn.state-idle .icon-warning {
  display: block !important;
}
.sos-bottom-btn.state-idle .icon-sync,
.sos-bottom-btn.state-idle .icon-check {
  display: none !important;
}

/* state-sending */
.sos-bottom-btn.state-sending {
  background: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}
.sos-bottom-btn.state-sending .sos-label {
  color: #EF4444 !important;
}
.sos-bottom-btn.state-sending .icon-sync {
  display: block !important;
  stroke: #EF4444 !important;
  animation: spin 1s linear infinite;
}
.sos-bottom-btn.state-sending .icon-warning,
.sos-bottom-btn.state-sending .icon-check {
  display: none !important;
}

/* state-sent */
.sos-bottom-btn.state-sent {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: white !important;
}
.sos-bottom-btn.state-sent .sos-label {
  color: white !important;
}
.sos-bottom-btn.state-sent .icon-check {
  display: block !important;
  stroke: white !important;
}
.sos-bottom-btn.state-sent .icon-warning,
.sos-bottom-btn.state-sent .icon-sync {
  display: none !important;
}

/* state-cancelling */
.sos-bottom-btn.state-cancelling {
  background: #F3F4F6 !important;
  border-color: #6B7280 !important;
  color: #64748B !important;
}
.sos-bottom-btn.state-cancelling .sos-label {
  color: #64748B !important;
}
.sos-bottom-btn.state-cancelling .icon-sync {
  display: block !important;
  stroke: #64748B !important;
  animation: spin 1s linear infinite;
}
.sos-bottom-btn.state-cancelling .icon-warning,
.sos-bottom-btn.state-cancelling .icon-check {
  display: none !important;
}

.sos-bottom-btn span {
  font-size: 18px;
  font-weight: 600;
}

/* SOS Result Card Overlay */
.sos-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sos-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sos-result-card {
  width: 220px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0.8);
}
.sos-overlay.active .sos-result-card {
  transform: scale(1);
}

.sos-result-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-top: 12px;
}
.sos-result-card.state-sending h4 { color: #EF4444; }
.sos-result-card.state-sent h4 { color: #EF4444; }
.sos-result-card.state-cancelling h4 { color: #64748B; }

.sos-result-card .hint {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 8px;
}

.sos-spinner-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner Loader */
.spinner-ring {
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 5px solid #E2E8F0;
  box-sizing: border-box;
}

/* state-sending */
.sos-result-card.state-sending .spinner-ring {
  border-top-color: #EF4444;
  animation: spin 1s linear infinite;
}

/* state-sent */
.sos-result-card.state-sent .spinner-ring {
  border-color: #EF4444;
  animation: none;
}
.sos-center-icon {
  display: none;
  width: 32px;
  height: 32px;
}

.sos-result-card.state-sent .sos-center-icon {
  display: block;
  stroke: #EF4444;
}

/* state-cancelling */
.sos-result-card.state-cancelling .spinner-ring {
  border-top-color: #64748B;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Features Section */
section { padding: 30px 0 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.feature-card {
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--glow-color);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.015);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #64748b;
  background: transparent;
  transition: all 0.3s;
}
.feature-icon svg {
  width: 32px;
  height: 32px;
}
/* Option 6 Glow Hover Reveal */
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--glow-rgb), 0.3);
  border-top-color: var(--glow-color);
  box-shadow: 0 20px 30px -10px rgba(var(--glow-rgb), 0.25);
}
.feature-card:hover .feature-icon {
  border-color: var(--glow-color);
  background: var(--glow-bg-light);
  color: var(--glow-color);
  transform: scale(1.05) rotate(5deg);
}

/* Timeline / How it works */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; position: relative; }
.step {
  text-align: center;
  padding: 30px 20px;
  z-index: 2;
  position: relative;
  border-top: 4px solid var(--primary);
}
.step-num {
  width: 60px; height: 60px; margin: 0 auto 20px;
  background: #f1f5f9; border-radius: 50%; border: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 700; color: var(--primary);
  transition: transform 0.8s ease;
}

.step:hover .step-num {
  animation: spin-y 1.5s ease forwards;
}

@keyframes spin-y {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}


.step-line {
  position: absolute; top: 60px; left: 12.5%; right: 12.5%; height: 4px;
  background: #e2e8f0; z-index: 1; border-radius: 2px;
}
.step-line-fill {
  height: 100%; background: var(--primary); width: 0; border-radius: 2px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); transition: width 0.1s ease;
}

/* Pricing */
#pricing { padding-top: 30px; }
#pricing h2 { margin-bottom: 20px; }
.pricing-subtitle-desktop { display: block; }
.pricing-subtitle-mobile { display: none; }
#how-it-works { padding-top: 30px; }
#how-it-works h2 { margin-bottom: 20px; }
#faq { padding-top: 30px; }
#faq h2 { margin-bottom: 20px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 800px; margin: 60px auto 0; }
.pricing-card {
  padding: 50px 40px;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--primary);
}
.pricing-card.highlight {
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-top: 4px solid var(--primary);
}
.price-amount { font-family: 'Nunito', sans-serif; font-size: 48px; font-weight: 800; color: var(--text-main); margin: 20px 0; }
.price-features { list-style: none; margin: 30px 0; text-align: left; }
.price-features li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-muted); display: flex; gap: 10px;}

/* FAQ Accordion with smooth transitions */
.faq-list { max-width: 800px; margin: 60px auto 0; display: flex; flex-direction: column; gap: 24px; }
.faq-item { padding: 24px 32px; transition: border-color 0.3s; }
.faq-header { display: flex; justify-content: space-between; align-items: center; font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 18px; }
.arrow {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active { border-color: rgba(37, 99, 235, 0.15); box-shadow: var(--shadow-md); }
.faq-item.active .arrow { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, margin 0.3s; opacity: 0; }
.faq-item.active .faq-content { max-height: 300px; opacity: 1; margin-top: 16px; }

/* Footer */
footer { padding: 60px 0; margin-top: 60px; text-align: center; }
.copyright {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
}

/* Scroll-triggered reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero, .features-grid, .timeline, .pricing-grid { grid-template-columns: 1fr; text-align: center; }
  .scene { margin-top: 40px; }
  .step-line { display: none; }
}

/* Hero Left Column Flex Layout for Vertical Phone Alignment */
.hero-left-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .hero-left-col {
    height: 640px; /* matches .scene height */
    justify-content: space-between;
  }
}

/* Static Hero Menu Card */
.hero-menu-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
  position: relative;
  box-sizing: border-box;
}

.hero-menu-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
  text-align: center;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
}

.hero-menu-card .btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  .hero-menu-card {
    margin: 40px auto 0 auto;
  }
}

.hero-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn-text-desktop {
  display: inline;
}

.btn-text-mobile {
  display: none;
}

.desc-text-desktop {
  display: inline;
}

.desc-text-mobile {
  display: none;
}

/* ===================================
   HAMBURGER MENU
=================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav-link {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
  width: 80%;
  text-align: center;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: #f1f5f9;
  color: var(--primary);
}

.vs-mobile-grid {
  display: none;
}

.audience-mobile-scroll {
  display: none;
}

.pricing-mobile-card {
  display: none;
}

/* ===================================
   MOBILE (max-width: 768px)
=================================== */
@media (max-width: 768px) {

  .step:hover .step-num { animation: none; }

  .audiences-subtitle { display: none !important; }

  /* Header */
  .desktop-nav { display: none !important; }
  .hamburger { display: flex; margin-left: auto !important; }
  .header-inner { padding: 0 16px; }
  .logo { display: none !important; }

  /* Hero */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 68px 0 32px;
    gap: 0;
    text-align: center;
  }
  .hero-left-col {
    display: contents;
    position: static !important;
    z-index: auto !important;
  }
  .hero-left-col > div:first-child {
    order: 1;
  }
  .hero-title-desktop {
    display: none !important;
  }
  .hero-logo-mobile {
    display: block !important;
    margin: 0 auto 8px auto !important;
    text-align: center;
  }
  .hero-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  h1 { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 0; }
  
  .hero-desc {
    order: 3;
    font-size: 16px !important;
    line-height: 1.6;
    margin: 0 auto !important;
    max-width: 340px;
    color: var(--text-muted);
  }

  /* Phone: shrink and center */
  .scene {
    order: 2;
    width: 250px !important;
    height: 250px !important;
    margin: 4px auto 16px auto !important;
    perspective: 700px;
  }
  .phone-3d { 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
    inset: auto !important;
  }
  .scene:hover .phone-3d {
    transform: none !important;
    box-shadow: none !important;
  }
  .phone-screen { 
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .screen-layout {
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
  }
  /* Hide safe area greeting, SOS wrapper, and bottom nav */
  .screen-layout > div:first-child {
    display: none !important;
  }
  .screen-layout > div:nth-child(3) {
    display: none !important;
  }
  .screen-layout > div:last-child {
    display: none !important;
  }
  
  /* Center area button container overrides */
  .screen-layout > div:nth-child(2) {
    padding-bottom: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    flex: none !important;
    width: 100% !important;
  }
  /* Hide countdown timer and success text */
  .screen-layout > div:nth-child(2) > div:last-child {
    display: none !important;
  }
  .success-message {
    display: none !important;
  }
  .checkin-btn-wrapper {
    margin-bottom: 0 !important;
  }

  /* Hero menu card */
  .hero-menu-card {
    order: 4;
    margin: 24px auto 0 !important;
    max-width: 340px;
    padding: 24px 20px;
  }
  .hero-menu-card h3 { font-size: 17px !important; }

  /* Typography */
  h2 { font-size: 24px !important; margin-bottom: 20px; }
  p { font-size: 15px; }

  /* Sections */
  section { padding: 16px 0 40px; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Feature cards */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .feature-card {
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    background: var(--glow-bg-light) !important;
    border: 1px solid rgba(var(--glow-rgb), 0.12) !important;
    border-top: none !important;
    border-left: 4px solid var(--glow-color) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .feature-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(var(--glow-rgb), 0.12) !important;
    border-left-color: var(--glow-color) !important;
  }
  .feature-icon {
    width: 38px;
    height: 38px;
    margin: 0 !important;
    flex-shrink: 0;
    border: 1.5px solid rgba(var(--glow-rgb), 0.25) !important;
    background: rgba(var(--glow-rgb), 0.08) !important;
    color: var(--glow-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .feature-card:hover .feature-icon {
    transform: none !important;
    border-color: rgba(var(--glow-rgb), 0.25) !important;
    background: rgba(var(--glow-rgb), 0.08) !important;
    color: var(--glow-color) !important;
  }
  .feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .feature-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
  }
  .feature-card h3 {
    font-size: 14.5px;
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    text-align: left !important;
  }
  .feature-card p {
    font-size: 12.5px;
    margin: 0;
    line-height: 1.35;
    color: #475569;
    text-align: left !important;
  }
  .desc-text-desktop {
    display: none;
  }
  .desc-text-mobile {
    display: inline;
  }

  /* Timeline: Vertical line style on mobile */
  .timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    margin-top: 24px;
    padding-left: 28px;
    position: relative;
  }
  .step-line {
    display: block !important;
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    background: #cbd5e1;
    right: auto;
  }
  .step-line-fill {
    display: none !important;
  }
  .step {
    text-align: left;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2;
    position: relative;
  }
  .step:hover {
    transform: none !important;
  }
  .step-num {
    position: absolute;
    left: -28px;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    box-shadow: 0 0 0 4px var(--bg);
  }
  .step h3 {
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 4px 0;
    color: var(--text-main);
    text-align: left !important;
  }
  .step p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
  }

  /* VS grid mobile split table */
  .vs-subtitle { display: none !important; }
  .vs-grid { display: none !important; }
  .vs-mobile-grid {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }
  .split-grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .split-grid-header .col-no {
    color: #6b5f82;
    background: #f5f3ff;
    padding: 8px 6px 6px;
    border-radius: 4px 4px 8px 8px;
    border: 1px solid rgba(139, 122, 160, 0.15);
    border-top: 4px solid #8b7aa0;
  }
  .split-grid-header .col-yes {
    color: #15803d;
    background: #f0fdf4;
    padding: 8px 6px 6px;
    border-radius: 4px 4px 8px 8px;
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-top: 4px solid var(--success);
  }
  .split-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .split-cell {
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.02);
  }
  .split-cell.no {
    background: #f5f3ff;
    color: #5b4f72;
    border-left: none !important;
    border-right: 3px solid #8b7aa0 !important;
    text-align: left !important;
  }
  .split-cell.yes {
    background: #f0fdf4;
    color: #14532d;
    border-left: 3px solid var(--success) !important;
    border-right: none !important;
    text-align: left !important;
  }
  .split-cell-title {
    font-weight: 700;
    font-size: 11.5px;
  }

  /* Audience cards */
  .audience-grid {
    display: none !important;
  }
  .audience-mobile-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .audience-scroll-card {
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
  }
  .audience-scroll-card.c1 { background: #eff6ff; border-left: 4px solid #3b82f6; }
  .audience-scroll-card.c2 { background: #f0fdfa; border-left: 4px solid #14b8a6; }
  .audience-scroll-card.c3 { background: #f0fdf4; border-left: 4px solid #22c55e; }
  .audience-scroll-card.c4 { background: #fffbeb; border-left: 4px solid #eab308; }

  .audience-scroll-who {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-family: 'Nunito', sans-serif;
    text-align: left !important;
  }
  .audience-scroll-card.c1 .audience-scroll-who { color: #2563eb; }
  .audience-scroll-card.c2 .audience-scroll-who { color: #0d9488; }
  .audience-scroll-card.c3 .audience-scroll-who { color: #16a34a; }
  .audience-scroll-card.c4 .audience-scroll-who { color: #ca8a04; }

  .audience-scroll-desc {
    font-size: 11px;
    color: #475569;
    margin: 0;
    line-height: 1.35;
    font-family: 'Nunito', sans-serif;
    text-align: left !important;
  }

  /* Big quote (Variant 3: Left Accent Strip) */
  .big-quote-wrap {
    padding: 4px 0 4px 16px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    border-left: 4px solid var(--success) !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .big-quote {
    font-size: 17px !important;
    line-height: 1.5;
    text-align: center !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .quote-author {
    text-align: center !important;
    margin-top: 8px;
    font-size: 13px !important;
  }

  /* Pricing */
  .pricing-subtitle-desktop {
    display: none !important;
  }
  .pricing-subtitle-mobile {
    display: block !important;
  }
  .pricing-grid {
    display: none !important;
  }
  .pricing-mobile-card {
    display: block !important;
  }
  .opt6-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    width: 100%;
    margin-top: 20px;
  }
  .opt6-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 4px;
  }
  .opt6-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
  }
  .opt6-tab.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .opt6-body {
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
  }
  .opt6-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
  }
  .opt6-price-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Nunito', sans-serif;
  }
  .opt6-price {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Nunito', sans-serif;
  }
  .opt6-price span {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
  }
  .opt6-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left !important;
  }
  .opt6-list li {
    font-size: 12px;
    color: #475569;
    display: flex;
    gap: 6px;
    text-align: left !important;
  }


  /* FAQ */
  .faq-list { margin-top: 24px; gap: 12px; }
  .faq-item { padding: 18px 20px; }
  .faq-item:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .faq-item.active {
    box-shadow: var(--shadow-sm) !important;
    border-color: rgba(0, 0, 0, 0.03) !important;
  }
  .faq-header { font-size: 15px; gap: 12px; }
  .faq-content p { font-size: 14px; }

  /* Footer - Option 1: Minimalist Text Stack */
  footer {
    padding: 24px 0 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  footer .neu-flat {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    transform: none !important;
  }
  footer .neu-flat:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  footer .copyright {
    display: block !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
  }
  footer .neu-flat > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  footer .neu-flat div a {
    display: block;
    margin: 0 !important;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted) !important;
  }
  footer .neu-flat div a:last-child {
    font-weight: 700;
    color: #475569 !important;
    margin-top: 2px !important;
  }

  /* Section headings alignment */
  section h2, section p { text-align: center; }

  /* Responsive buttons container inside Hero Menu Card */
  .hero-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero-buttons-container .btn {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 12px;
  }
  .btn-text-desktop {
    display: none;
  }
  .btn-text-mobile {
    display: inline;
  }
}

