/* ================================================================
   SimplyAuth Marketing Site — Mobile-First CSS
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #7C3AED;
  --accent-light: #EDE9FE;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-secondary: #F1F5F9;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Scroll Animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}
.hero-content { margin-bottom: 40px; }
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-phone {
  display: flex;
  justify-content: center;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

/* ================================================================
   PHONE FRAME
   ================================================================ */
.phone-frame {
  width: 260px;
  height: 540px;
  background: #0F172A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), inset 0 0 0 2px #334155;
  position: relative;
  flex-shrink: 0;
}
.phone-notch {
  width: 70px;
  height: 18px;
  background: #0F172A;
  border-radius: 10px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  font-size: 12px;
  text-align: left;
}
.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

/* Status bar inside phone */
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 11;
}
.phone-statusbar-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Hero phone float animation */
.hero-phone .phone-frame {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Smaller phone for "How It Works" */
.phone-sm { width: 220px; height: 458px; border-radius: 36px; padding: 9px; }
.phone-sm .phone-screen { border-radius: 28px; font-size: 11px; }
.phone-sm .phone-notch { width: 56px; height: 14px; border-radius: 8px; top: 14px; }
.phone-sm .verify-token { font-size: 14px; padding: 5px 8px; }
.phone-sm .verify-timer-circle { width: 46px; height: 46px; border-radius: 23px; }
.phone-sm .verify-timer-seconds { font-size: 16px; }
.phone-sm .verify-timer-label { font-size: 7px; }
.phone-sm .home-title { font-size: 14px; }
.phone-sm .mock-avatar { width: 28px; height: 28px; border-radius: 14px; font-size: 10px; }
.phone-sm .mock-conn-name { font-size: 10px; }
.phone-sm .mock-verify-badge { font-size: 8px; padding: 3px 6px; }
.phone-sm .home-checkin-icon { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.phone-sm .home-checkin-text strong { font-size: 10px; }
.phone-sm .home-checkin-text span { font-size: 8px; }

/* ================================================================
   FEATURES GRID
   ================================================================ */
.features {
  padding: 60px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-icon-blue { background: var(--primary-light); }
.feature-icon-violet { background: var(--accent-light); }
.feature-icon-red { background: var(--danger-light); }
.feature-icon-green { background: var(--success-light); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  padding: 60px 0;
  background: var(--surface);
}
.steps { display: flex; flex-direction: column; gap: 60px; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.step-text { max-width: 400px; }
.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   CHECK-IN FEATURE
   ================================================================ */
.checkin-feature {
  padding: 60px 0;
}
.checkin-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.checkin-content { max-width: 400px; }
.feature-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.checkin-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.checkin-content > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  text-align: left;
}
.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ================================================================
   DEMO VIDEO
   ================================================================ */
.demo-video {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.demo-video h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.demo-video .section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.video-wrapper {
  max-width: 960px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  background: #000;
}
.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}
.video-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.video-credit {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.video-credit a {
  color: var(--text-tertiary);
  text-decoration: underline;
}
.video-credit a:hover {
  color: var(--text-secondary);
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing {
  padding: 60px 0;
  background: var(--surface);
}
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--primary);
  border-width: 2px;
  background: var(--surface);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-card li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.pricing-card .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}
.pricing-promo {
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  line-height: 1.4;
}
.pricing-promo strong {
  font-weight: 800;
  letter-spacing: 0.5px;
}
.pricing-teams {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.pricing-teams a {
  color: var(--primary);
  font-weight: 600;
}
.pricing-teams a:hover { text-decoration: underline; }

/* ================================================================
   DOWNLOAD CTA
   ================================================================ */
.download-cta {
  padding: 80px 0;
  background: var(--text-primary);
  text-align: center;
}
.download-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.download-cta > .container > p {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.store-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.store-badge {
  display: inline-block;
  height: 52px;
  transition: opacity 0.2s;
}
.store-badge:hover { opacity: 0.8; }
.store-badge-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.store-badge-disabled:hover { opacity: 0.5; }
.store-badge img { height: 100%; width: auto; }
.coming-soon {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

/* ================================================================
   COUNTRIES
   ================================================================ */
.countries {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}
.countries h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.countries-intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.countries-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  text-align: left;
}
.countries-list li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.countries-note {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 640px;
  margin: 0 auto;
}
.countries-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.countries-note a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .countries-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-copyright {
  font-size: 13px;
  color: var(--text-tertiary);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   MOCKUP SCREEN INTERNALS
   ================================================================ */

/* ── Shared mockup styles ──────────────────────────────────────── */
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px;
}
.mockup-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.mockup-header-action {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.mockup-body {
  padding: 0 14px;
}

/* ── Verify Screen Mockup ──────────────────────────────────────── */
.verify-mockup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px 8px;
  position: relative;
}
.verify-mockup-cancel {
  position: absolute;
  left: 14px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}
.verify-mockup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.verify-who-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 14px 12px;
}
.verify-who-avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.verify-who-info {
  flex: 1;
}
.verify-who-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.verify-who-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.verify-phrase-label {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
/* .verify-tokens is defined after .verify-token */
.verify-token {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  transition: opacity 0.3s, transform 0.3s;
}
.verify-tokens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 10px;
}
.verify-token-word {
  background: var(--primary-light);
  color: var(--primary);
}
.verify-token-number {
  background: var(--accent-light);
  color: var(--accent);
}
.verify-token.token-enter {
  opacity: 0;
  transform: scale(0.85);
}
.verify-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 10px;
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.verify-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.verify-timer-circle {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  border: 3px solid var(--success);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}
.verify-timer-circle.warning { border-color: var(--warning); }
.verify-timer-circle.critical { border-color: var(--danger); }
.verify-timer-circle.pulse {
  animation: timerPulse 0.8s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.verify-timer-seconds {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.3s;
}
.verify-timer-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color 0.3s;
}
.verify-progress-track {
  width: calc(100% - 28px);
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.verify-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s linear, background-color 0.3s;
}
.verify-confirm-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 10px auto 0;
  padding: 10px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ── Home Dashboard Mockup ─────────────────────────────────────── */
.home-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 0;
}
.home-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.home-profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.home-plan-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 7px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.home-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  padding: 2px 14px 6px;
}
.home-checkin-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin: 4px 14px 4px;
}
.home-checkin-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.home-checkin-text {
  flex: 1;
  min-width: 0;
}
.home-checkin-text strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.home-checkin-text span {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.2;
}
.home-checkin-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}
.home-section-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
}
.home-conn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.home-conn-count {
  font-size: 10px;
  color: var(--text-tertiary);
}
.home-add-link {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
}
.home-conn-hint {
  font-size: 7px;
  color: var(--text-tertiary);
  padding: 0 14px 4px;
  font-style: italic;
}
.home-connections {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px;
}

/* Connection card inside mockup */
.mock-connection {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-conn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}
.mock-conn-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}
.mock-conn-role {
  font-size: 8px;
  color: var(--text-tertiary);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.mock-conn-verified {
  font-size: 8px;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  line-height: 1.4;
  text-align: left;
}
.mock-verify-badge {
  padding: 4px 8px;
  background: var(--primary-light);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ── Check-In Mockup ───────────────────────────────────────────── */
.checkin-mockup-title {
  text-align: center;
  padding: 4px 14px 8px;
}
.checkin-mockup-title h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.checkin-mockup-title p {
  font-size: 10px;
  color: var(--text-secondary);
}
.checkin-countdown {
  text-align: center;
  padding: 16px 14px;
}
.checkin-countdown-time {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.checkin-countdown-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.checkin-note {
  margin: 0 14px 12px;
  background: var(--surface-secondary);
  border-radius: 10px;
  padding: 10px 12px;
}
.checkin-note-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.checkin-note-text {
  font-size: 11px;
  color: var(--text-secondary);
}
.checkin-actions {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkin-btn-ok {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.checkin-btn-extend {
  width: 100%;
  padding: 12px;
  background: var(--surface-secondary);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ── Add Connection Mockup ─────────────────────────────────────── */
.add-conn-tabs {
  display: flex;
  margin: 0 14px 12px;
  background: var(--surface-secondary);
  border-radius: 10px;
  padding: 3px;
}
.add-conn-tab {
  flex: 1;
  padding: 6px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.add-conn-tab.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.add-conn-panel { display: none; padding: 0 14px; }
.add-conn-panel.active { display: block; }

.add-conn-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.add-conn-qr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.add-conn-qr-sub {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.add-conn-qr-code {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
}
.add-conn-qr-code canvas,
.add-conn-qr-code svg {
  width: 100% !important;
  height: 100% !important;
}
.add-conn-code-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.add-conn-code {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.add-conn-share-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Scan tab */
.add-conn-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.add-conn-scan-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.add-conn-scan p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Enter code tab */
.add-conn-enter {
  text-align: center;
  padding: 16px 0;
}
.add-conn-enter p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.add-conn-input {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  background: var(--surface);
  font-family: var(--font);
  margin-bottom: 12px;
}
.add-conn-submit-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ================================================================
   FAQ PAGE
   ================================================================ */
.nav-active { color: var(--primary) !important; }

.faq-header {
  padding: 100px 0 32px;
  text-align: center;
}
.faq-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.faq-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.faq-header a {
  color: var(--primary);
  font-weight: 600;
}
.faq-header a:hover { text-decoration: underline; }

.faq-section-nav {
  position: sticky;
  top: 64px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  padding: 14px 0;
}
.faq-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.faq-chips::-webkit-scrollbar { display: none; }
.faq-chips a {
  flex-shrink: 0;
  display: inline-flex;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s;
}
.faq-chips a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.faq-main { padding: 32px 0 60px; }
.faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 140px;
}
.faq-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: color 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}
.faq-item summary:hover { background: var(--surface-secondary); }
.faq-item[open] summary { color: var(--primary); }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.faq-answer p + p,
.faq-answer p + ol,
.faq-answer p + ul,
.faq-answer ol + p,
.faq-answer ul + p {
  margin-top: 12px;
}
.faq-answer ol,
.faq-answer ul {
  padding-left: 20px;
}
.faq-answer li { margin-bottom: 6px; }
.faq-answer a {
  color: var(--primary);
  font-weight: 600;
}
.faq-answer a:hover { text-decoration: underline; }
.faq-answer strong { color: var(--text-primary); }

.faq-support {
  margin-top: 48px;
  padding: 32px 24px;
  background: var(--primary-light);
  border-radius: 16px;
  text-align: center;
}
.faq-support h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.faq-support p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-support a {
  color: var(--primary);
  font-weight: 700;
}
.faq-support a:hover { text-decoration: underline; }

/* ================================================================
   LEGAL PAGES (Privacy / Terms)
   ================================================================ */
.legal-page {
  padding: 100px 0 60px;
}
.legal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
}
.legal-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 680px;
}
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 0;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--primary);
  font-weight: 600;
}
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text-primary); }
.legal-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 20px;
}
.legal-callout p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout strong { color: var(--primary); }
.legal-callout-warn {
  background: var(--danger-light);
  border-left-color: var(--danger);
}
.legal-callout-warn strong { color: var(--danger); }
.legal-callout-success {
  background: var(--success-light);
  border-left-color: var(--success);
}
.legal-callout-success strong { color: var(--success); }
.legal-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0 20px;
}
.legal-steps ol {
  margin: 0;
  padding-left: 20px;
}
.legal-steps li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 4px;
  margin-bottom: 8px;
}
.legal-steps li:last-child { margin-bottom: 0; }
.legal-steps strong { color: var(--text-primary); }

/* ================================================================
   TABLET+ (768px)
   ================================================================ */
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero-subtitle { font-size: 18px; }
  .hero-buttons { flex-direction: row; justify-content: center; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .pricing-cards { flex-direction: row; }
  .pricing-card { flex: 1; }

  .store-buttons { flex-direction: row; }

  .section-header h2 { font-size: 32px; }

  .faq-header { padding: 120px 0 40px; }
  .faq-header h1 { font-size: 40px; }
  .faq-section h2 { font-size: 28px; }
  .faq-item summary { font-size: 16px; padding: 20px 56px 20px 24px; }
  .faq-answer { font-size: 15px; padding: 0 24px 24px; }

  .legal-page { padding: 120px 0 80px; }
  .legal-header h1 { font-size: 40px; }
  .legal-content h2 { font-size: 22px; margin-top: 40px; }
  .legal-content p,
  .legal-content ul { font-size: 16px; }
}

/* ================================================================
   DESKTOP (1024px)
   ================================================================ */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }

  .hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
  }
  .hero-content {
    flex: 1;
    margin-bottom: 0;
  }
  .hero h1 { font-size: 48px; }
  .hero-subtitle { margin: 0 0 28px; }
  .hero-buttons { justify-content: flex-start; }
  .hero-phone { flex: 0 0 auto; }

  .step {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }
  /* .step-reverse kept in HTML for backward compat but no longer flips layout —
     all phones sit on the right for consistent alignment across all steps */
  .step-text { flex: 1; }

  .checkin-inner {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }
  .checkin-content { flex: 1; }

  .phone-frame { width: 280px; height: 580px; border-radius: 44px; padding: 12px; }
  .phone-screen { border-radius: 34px; }
  .phone-notch { width: 76px; height: 20px; border-radius: 12px; top: 18px; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }

  .faq-header h1 { font-size: 48px; }
}
