/* ==========================================================================
   SafeTrip Stylesheet
   Mobile-first, high performance, high contrast
   ========================================================================== */

:root {
  --bg: #0F172A;
  --bg-deep: #0B1120;
  --panel: #1E293B;
  --panel-hover: #27354A;
  --border: #334155;
  --border-light: #475569;
  
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --text-light: #E2E8F0;
  
  --gold: #FACC15;
  --gold-hover: #EAB308;
  --gold-tint: rgba(250, 204, 21, 0.12);
  
  --blue: #1D4ED8;
  --blue-sky: #38BDF8;
  --green: #059669;
  --green-ok: #22C55E;
  --amber: #D97706;
  --red: #B91C1C;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Amiri", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
}

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

::selection {
  background: var(--gold);
  color: #0F172A;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--border-light) var(--bg-deep);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: var(--blue-sky);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

.urdu-text {
  font-family: var(--font-urdu);
  direction: rtl;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 38px;
  }
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  font-size: 24px;
}

.brand-dot {
  color: var(--gold);
}

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

.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  min-height: 44px;
  transition: all 0.2s;
}

.lang-selector:hover,
.lang-selector:focus-within {
  border-color: var(--gold);
}

.lang-globe {
  font-size: 16px;
  margin-right: 6px;
  pointer-events: none;
}

.lang-dropdown {
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding-right: 4px;
}

.lang-dropdown option {
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* RTL Support for Urdu & Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-sub,
[dir="rtl"] .hero-meta,
[dir="rtl"] .section-header,
[dir="rtl"] .story-lead,
[dir="rtl"] .beat-card,
[dir="rtl"] .tile-card,
[dir="rtl"] .step-card,
[dir="rtl"] .faq-question,
[dir="rtl"] .faq-answer,
[dir="rtl"] .form-group label,
[dir="rtl"] .checkbox-group label {
  text-align: right;
}

[dir="rtl"] .faq-question {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-globe {
  margin-right: 0;
  margin-left: 6px;
}

.nav-cta {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 48px 0 64px 0;
  background: radial-gradient(circle at 50% 20%, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 1) 100%);
  position: relative;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left;
  }
}

.hero-urdu {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .hero-urdu {
    font-size: 32px;
  }
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 800;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gold);
  color: #0F172A;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: #0F172A;
  box-shadow: 0 6px 28px rgba(250, 204, 21, 0.45);
}

.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-meta {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Side-by-Side Phone Mockups (Hero Visuals)
   ========================================================================== */
.mockups-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 18px;
}

@media (max-width: 480px) {
  .mockups-wrapper {
    flex-direction: column;
  }
}

.phone-mockup {
  width: 250px;
  height: 470px;
  background: #020617;
  border: 8px solid #334155;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-mockup.primary {
  transform: scale(1.03);
  z-index: 2;
  border-color: #475569;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #020617;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Phone Screen 1: Yellow NEW GATE Screen */
.screen-gate {
  flex: 1;
  background: var(--gold);
  color: #0F172A;
  padding: 30px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.gate-badge {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.gate-urdu-title {
  font-family: var(--font-urdu);
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.gate-number {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0;
}

.gate-flight {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.gate-btn-ok {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  padding: 11px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.gate-btn-call {
  background: var(--blue);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  padding: 11px;
  border-radius: 12px;
}

/* Phone Screen 2: Multi-Button Dark Home Screen */
.screen-home {
  flex: 1;
  background: var(--bg);
  padding: 26px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-headline {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.mini-card {
  flex: 1;
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  border-width: 2px;
  border-style: solid;
}

.mini-card-blue {
  background: var(--blue);
  border-color: #2563EB;
}

.mini-card-green {
  background: var(--green);
  border-color: #10B981;
}

.mini-card-amber {
  background: var(--amber);
  border-color: #F59E0B;
}

.mini-card-red {
  background: var(--red);
  border-color: #EF4444;
}

.mini-card-purple {
  background: #4338CA;
  border-color: #6366F1;
}

.mini-card .emoji {
  font-size: 24px;
}

.mini-card .title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.mini-card .urdu {
  font-family: var(--font-urdu);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  direction: rtl;
  text-align: right;
  opacity: 0.95;
}

/* ==========================================================================
   Story Section (§4.2)
   ========================================================================== */
.story-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  background: var(--panel);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  margin-bottom: 48px;
}

.story-beats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

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

.beat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.beat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.beat-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-tint);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.beat-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.beat-card p {
  font-size: 15px;
  color: var(--text-muted);
}

.quote-banner {
  background: radial-gradient(circle at top left, #1e293b, #0f172a);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  position: relative;
}

.quote-text {
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 14px;
}

.quote-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   What They Get (4 Tiles, §4.3)
   ========================================================================== */
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.tile-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.tile-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.tile-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works (3 Steps, §4.4)
   ========================================================================== */
.steps-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0F172A;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ==========================================================================
   Travel eSIM Offer Section
   ========================================================================== */
.esim-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

@media (min-width: 860px) {
  .esim-card {
    grid-template-columns: 1.35fr 0.65fr;
    padding: 48px;
  }
}

.esim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.esim-content h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .esim-content h2 {
    font-size: 32px;
  }
}

.esim-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
}

.esim-perks {
  list-style: none;
  display: grid;
  gap: 10px;
}

.esim-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-light);
}

.esim-offer-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.esim-price-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-sky);
  margin-bottom: 6px;
}

.esim-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.esim-price span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.esim-price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 20px 0;
}

.esim-cta {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Waitlist Form Section (§4.5)
   ========================================================================== */
.form-section {
  padding: 80px 0;
}

.form-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .form-wrapper {
    padding: 48px;
  }
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group label .req {
  color: var(--gold);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* iOS zoom prevention */
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.form-control::placeholder {
  color: #64748B;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group a {
  text-decoration: underline;
}

.honeypot-field {
  display: none !important;
  visibility: hidden !important;
}

.btn-submit {
  width: 100%;
  font-size: 18px;
  padding: 16px;
}

.form-status {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--green-ok);
  color: #86EFAC;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--red);
  color: #FCA5A5;
}

/* ==========================================================================
   FAQ Section (§4.6)
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 48px;
}

.faq-arrow {
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px 0;
  margin-top: auto;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 13px;
  color: #64748B;
}

/* ==========================================================================
   Legal & Confirmation Pages
   ========================================================================== */
.legal-page {
  background-color: var(--bg);
  min-height: 100vh;
  padding: 40px 20px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

@media (max-width: 600px) {
  .legal-container {
    padding: 24px 18px;
  }
}

.nav-back {
  margin-bottom: 24px;
}

.nav-back a {
  font-size: 14px;
  font-weight: 600;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 6px;
  color: var(--gold);
}

.legal-page .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-section p, .legal-section ul {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section ul {
  padding-left: 24px;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.confirm-card {
  max-width: 540px;
  margin: 60px auto 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
}

.badge-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.confirm-card h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.lead-text {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.personal-note {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
  text-align: left;
  margin-bottom: 32px;
}

.personal-note p {
  font-style: italic;
  font-size: 15px;
  margin-bottom: 8px;
}

.author-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================================
   Hero Motion Graphics, Interactive Phone Demos & Mobile Sticky CTA
   ========================================================================== */
.hero {
  overflow: hidden;
}

.hero-flight-arc {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: none;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.flight-path-glow {
  animation: flightPulse 10s linear infinite;
}

@keyframes flightPulse {
  0% {
    stroke-dashoffset: 1710;
    opacity: 0.25;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.25;
  }
}

.flight-plane {
  offset-path: path("M -40 120 Q 260 14 600 88 T 1240 24");
  offset-rotate: auto 20deg;
  animation: planeFly 10s linear infinite;
}

@keyframes planeFly {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.mockups-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mockup-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* SMS-to-Gate-Alert Toast Animation inside Phone 1 */
.phone-mockup {
  position: relative;
}

.sms-toast {
  position: absolute;
  top: 26px;
  left: 12px;
  right: 12px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid var(--blue-sky);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  z-index: 12;
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sms-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sms-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-sky);
  text-transform: uppercase;
}

.phone-mockup.alert-shake {
  animation: phoneVibrate 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes phoneVibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-0.8deg); }
  40% { transform: translateX(4px) rotate(0.8deg); }
  60% { transform: translateX(-3px) rotate(-0.4deg); }
  80% { transform: translateX(3px) rotate(0.4deg); }
}

.gate-number.gate-flash {
  animation: gatePop 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gatePop {
  0% { transform: scale(0.82); opacity: 0.5; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.gate-btn-ok {
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.gate-btn-ok:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* Smooth kinetic swap for Call Son / Daughter / Dad / Mom variations */
.gate-btn-call,
.mini-card-green .title,
.mini-card-green .urdu {
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-morph-out {
  opacity: 0 !important;
  transform: translateY(-6px) scale(0.97) !important;
  filter: blur(2px) !important;
}

.call-morph-in {
  animation: callMorphIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes callMorphIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Interactive Clickable Cards & Sub-Screen Overlay on Phone 2 */
.interactive-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s;
}

.interactive-card:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
}

.interactive-card:active {
  transform: scale(0.98);
}

.phone-subscreen {
  position: absolute;
  inset: 10px;
  background: var(--bg-deep);
  border-radius: 26px;
  padding: 28px 14px 16px 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: subscreenIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-subscreen[hidden] {
  display: none;
}

@keyframes subscreenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.subscreen-back {
  align-self: flex-start;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.subscreen-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.subscreen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.demo-qr-box {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
}

.demo-doc-card {
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-light);
}

.demo-doc-card strong {
  color: var(--text);
}

.demo-doc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-qr-grid {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px auto;
  background: repeating-conic-gradient(#0F172A 0% 25%, #FFFFFF 0% 50%) 50% / 16px 16px;
  border: 4px solid #0F172A;
  border-radius: 6px;
}

.demo-pill-ok {
  display: inline-block;
  background: rgba(34, 197, 94, 0.16);
  color: var(--green-ok);
  border: 1px solid var(--green-ok);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 95;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

.mobile-sticky-btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flight-path-glow,
  .flight-plane,
  .phone-mockup.alert-shake,
  .gate-number.gate-flash,
  .phone-subscreen {
    animation: none !important;
  }
  .sms-toast,
  .mobile-sticky-cta,
  .interactive-card {
    transition: none !important;
  }
}

/* ==========================================================================
   Waitlist Perks & Referral / Confirm / Status Page Styles
   ========================================================================== */
.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .waitlist-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.waitlist-layout .form-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
}

.perks-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.perks-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.perks-main-copy {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 24px;
}

.perks-agent-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.perks-agent-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-sky);
  margin-bottom: 6px;
}

.perks-agent-box p {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 0;
}

.confirm-card-wide {
  max-width: 720px;
}

.queue-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.queue-stat-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.queue-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.queue-stat-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin: 6px 0;
}

.queue-stat-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.referral-share-box,
.referral-tiers-box,
.followup-form-box {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.referral-share-box h2,
.followup-form-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.referral-share-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.share-link-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.share-url-input {
  flex: 1 1 240px;
  font-size: 14px;
}

.copy-link-btn {
  min-height: 46px;
  padding: 10px 18px;
}

.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.tier-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.tier-progress-track {
  width: 100%;
  height: 10px;
  background: var(--panel);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-sky), var(--gold));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.tier-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.tier-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--border);
}

.tier-item.tier-unlocked {
  border-color: var(--green-ok);
  background: rgba(34, 197, 94, 0.08);
}

.tier-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tier-item.tier-unlocked .tier-badge {
  background: var(--green-ok);
  border-color: var(--green-ok);
  color: #0F172A;
}

.tier-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.tier-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Small phones: the sticky bottom CTA covers "Join the Waitlist",
   so drop the nav copy to keep the header within the viewport. */
@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }
}
