/* =============================================================================
   LATEGATE — styles.css
   Shared stylesheet for index.html, contact.html, legal.html
   Google Fonts loaded in each HTML <head>:
   DM Sans (300–700, italic) + DM Serif Display (regular, italic)
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy:        #011a49;
  --navy-deep:   #010f2d;
  --navy-mid:    #02245f;
  --navy-light:  #0a2d6e;
  --teal:        #00c7e5;
  --teal-glow:   rgba(0,199,229,.18);
  --teal-subtle: rgba(0,199,229,.08);

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #e8eef8;
  --muted:       rgba(255,255,255,.50);
  --muted-more:  rgba(255,255,255,.32);

  /* Borders */
  --rule:        rgba(255,255,255,.08);
  --rule-bright: rgba(255,255,255,.14);

  /* Semantic (contact form) */
  --error:       #ff5c5c;
  --success:     #00e5a0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }


/* ─────────────────────────────────────────────────────────────────────────────
   3. GRID BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,199,229,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,199,229,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  position: relative;
  z-index: 1;
}

.teal  { color: var(--teal); }
.serif { font-family: 'DM Sans', sans-serif; }


/* ─────────────────────────────────────────────────────────────────────────────
   5. ANIMATIONS & TRANSITIONS
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,199,229,.4); }
  50%      { box-shadow: 0 0 28px 6px rgba(0,199,229,.18); }
}

@keyframes glow-breathe {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .7; }
}

@keyframes notif-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

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

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. SHARED COMPONENTS — PILL BADGE
   ───────────────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem 1rem;
  border: 1px solid rgba(0,199,229,.35);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-subtle);
  margin-bottom: 1.75rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  /* Default: frosted glass (contact, legal) */
  background: rgba(1,15,45,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

/* index.html overrides: nav starts transparent, turns frosted on scroll */
nav.transparent {
  background: transparent;
  border-bottom-color: transparent;
  transition: background .3s, border-color .3s;
}
nav.transparent.scrolled {
  background: rgba(1,15,45,.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: bold;
  font-size: 2.0rem;
  color: var(--white);
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--teal); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.2rem;
  background: var(--teal);
  color: var(--navy-deep);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }


/* ─────────────────────────────────────────────────────────────────────────────
   8. BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 2rem;
  background: var(--teal);
  color: var(--navy-deep);
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s;
  animation: glow-pulse 3s 1.5s ease-in-out infinite;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,199,229,.3); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 1px solid var(--rule-bright);
  color: rgba(255,255,255,.75);
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--navy-deep);
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.btn-appstore-inner  { text-align: left; }
.btn-appstore-sub {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  opacity: .6;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-appstore-main {
  display: block;
  font-size: .975rem;
  font-weight: 700;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -.01em;
}
.footer-logo span { color: var(--teal); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-copy {
  color: var(--muted-more);
  font-size: .8rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. PAGE HEADER  (contact.html + legal.html)
   ───────────────────────────────────────────────────────────────────────────── */
.page-header {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,199,229,.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .5s .1s ease forwards;
}

.page-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .6s .2s ease forwards;
}

.page-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp .6s .3s ease forwards;
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. SECTION SCAFFOLDING  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  line-height: 1.75;
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. HERO  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,199,229,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .6s .15s ease forwards;
}

.hero-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s .25s ease forwards;
}
.hero-heading em { font-style: italic; color: var(--teal); }

.flip-word { display: inline-block; color: var(--teal); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.68);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp .7s .4s ease forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s .55s ease forwards;
}

.hero-trust {
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--muted-more);
  display: flex;
  align-items: center;
  gap: .6rem;
  opacity: 0;
  animation: fadeUp .7s .7s ease forwards;
}
.hero-trust svg { opacity: .5; }


/* ─────────────────────────────────────────────────────────────────────────────
   13. PHONE MOCKUP  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeUp .9s .3s ease forwards;
}

.phone-wrap::before {
  content: '';
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse, rgba(0,199,229,.14) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-breathe 4s ease-in-out infinite;
}

.phone {
  width: 280px;
  border-radius: 44px;
  background: #0a0f1e;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 0 8px rgba(255,255,255,.04),
    0 40px 80px rgba(0,0,0,.7),
    0 0 60px rgba(0,199,229,.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  padding: 60px 0 0;
  min-height: 560px;
  background: linear-gradient(160deg, #080e20 0%, #040b1a 100%);
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,199,229,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,199,229,.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  position: relative;
  z-index: 2;
}

.push-notif {
  margin: 16px 12px 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  animation: notif-slide .6s 1.2s ease both;
}

.notif-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--navy-mid), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-app {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: 1;
}

.notif-time { font-size: 11px; color: rgba(255,255,255,.35); }
.notif-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.notif-body  { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.45; }

.app-screen {
  padding: 16px 12px 0;
  position: relative;
  z-index: 2;
}

.app-flight-card {
  background: linear-gradient(135deg, rgba(0,36,95,.9), rgba(0,199,229,.08));
  border: 1px solid rgba(0,199,229,.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}

.flight-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.flight-airport {
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  letter-spacing: -.01em;
}

.flight-city { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 1px; }

.flight-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.flight-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.flight-num { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .08em; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
.status-badge.delayed {
  background: rgba(255,160,0,.15);
  color: #ffb300;
  border: 1px solid rgba(255,160,0,.25);
}

.app-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-action {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.app-action-icon  { font-size: 18px; margin-bottom: 4px; }
.app-action-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); line-height: 1.3; }


/* ─────────────────────────────────────────────────────────────────────────────
   14. STATS BAR  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,.025);
  position: relative;
  z-index: 1;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 2.25rem clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  border-right: 1px solid var(--rule);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-num span { color: var(--teal); }

.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }


/* ─────────────────────────────────────────────────────────────────────────────
   15. PROBLEM / CHAOS CARDS  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.chaos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.chaos-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.chaos-card:hover {
  border-color: rgba(0,199,229,.2);
  background: rgba(0,199,229,.04);
}
.chaos-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,199,229,.06), transparent 70%);
}

.chaos-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 4rem;
  color: rgba(0,199,229,.12);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -.04em;
}

.chaos-emoji { font-size: 2rem; margin-bottom: 1rem; }
.chaos-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.chaos-desc  { font-size: .9rem; color: var(--muted); line-height: 1.65; }


/* ─────────────────────────────────────────────────────────────────────────────
   16. FEATURES  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.features-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  z-index: 1;
}

.features-section::before {
  content: '';
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,199,229,.07) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.feature-card:hover {
  border-color: rgba(0,199,229,.25);
  transform: translateY(-3px);
}
.feature-card.featured {
  background: linear-gradient(135deg, rgba(0,36,95,.8) 0%, rgba(0,199,229,.06) 100%);
  border-color: rgba(0,199,229,.2);
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at 80% 80%, rgba(0,199,229,.06), transparent 60%);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,199,229,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}

.feature-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.feature-desc { font-size: .9375rem; color: rgba(255,255,255,.62); line-height: 1.7; }

.feature-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.feature-bullet::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: .55rem;
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. HOW IT WORKS  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.how-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  z-index: 1;
}

.how-section-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,36,95,.2), transparent);
  pointer-events: none;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(0,199,229,.3), var(--teal));
  opacity: .3;
}

.how-step { text-align: center; padding: 1.5rem; }

.how-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid rgba(0,199,229,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  color: var(--teal);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.how-title { font-family: 'DM Sans', sans-serif; font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: .65rem; }
.how-desc  { font-size: .9rem; color: var(--muted); line-height: 1.7; }


/* ─────────────────────────────────────────────────────────────────────────────
   18. COMPENSATION CALLOUT  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.comp-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  z-index: 1;
}

.comp-card {
  background: linear-gradient(135deg, rgba(0,36,95,.6) 0%, rgba(0,10,30,.8) 60%, rgba(0,199,229,.05) 100%);
  border: 1px solid rgba(0,199,229,.2);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.comp-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,199,229,.08), transparent 65%);
}

.comp-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--teal);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .5rem;
}

.comp-amount-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.comp-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.comp-sub { font-size: .9375rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1.75rem; }

.comp-rules { display: flex; flex-direction: column; gap: .75rem; }

.comp-rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}

.comp-rule-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,199,229,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   19. TESTIMONIALS  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.trust-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  z-index: 1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color .3s;
}
.trust-card:hover { border-color: rgba(0,199,229,.15); }

.trust-stars { color: var(--teal); font-size: .85rem; letter-spacing: .1em; margin-bottom: 1rem; }
.trust-quote { font-size: .9375rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }

.trust-author { display: flex; align-items: center; gap: .75rem; }

.trust-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid var(--rule-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.trust-name   { font-size: .875rem; font-weight: 600; color: var(--white); }
.trust-detail { font-size: .78rem; color: var(--muted-more); }


/* ─────────────────────────────────────────────────────────────────────────────
   20. FINAL CTA  (index.html)
   ───────────────────────────────────────────────────────────────────────────── */
.cta-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  z-index: 1;
}

.cta-card {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(0,36,95,.5), rgba(0,12,36,.8));
  border: 1px solid rgba(0,199,229,.2);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,199,229,.12), transparent 60%);
}

.cta-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted-more); position: relative; z-index: 1; }


/* ─────────────────────────────────────────────────────────────────────────────
   21. CONTACT FORM  (contact.html)
   ───────────────────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  padding-bottom: 8rem;
  align-items: start;
}

.form-card {
  background: linear-gradient(135deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .7s .35s ease forwards;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,199,229,.4), transparent);
}

.form-title    { font-family: 'DM Sans', sans-serif; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.form-subtitle { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }

/* Topic selector */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 2rem;
}

.topic-btn {
  padding: .65rem .5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  line-height: 1.35;
}
.topic-btn .topic-icon { display: block; font-size: 1.1rem; margin-bottom: .25rem; }
.topic-btn:hover       { border-color: var(--rule-bright); color: var(--white); }
.topic-btn.active      { border-color: var(--teal); background: var(--teal-subtle); color: var(--teal); }

/* Form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field     { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-bottom: .45rem;
  letter-spacing: .03em;
}
label .req { color: var(--teal); margin-left: 2px; }

input, textarea, select {
  width: 100%;
  padding: .825rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.25); }

input:focus, textarea:focus, select:focus {
  border-color: rgba(0,199,229,.5);
  background: rgba(0,199,229,.04);
  box-shadow: 0 0 0 3px rgba(0,199,229,.08);
}

input.error, textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255,92,92,.08);
}

.field-error { font-size: .78rem; color: var(--error); margin-top: .35rem; display: none; }
.field-error.visible { display: block; }

textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

select { cursor: pointer; }
select option { background: var(--navy-deep); color: var(--white); }

.char-count { font-size: .75rem; color: var(--muted-more); text-align: right; margin-top: .3rem; }

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem;
  background: var(--teal);
  color: var(--navy-deep);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .01em;
  margin-top: .5rem;
  position: relative;
  overflow: hidden;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-submit:hover    { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,199,229,.25); }
.btn-submit:active   { transform: none; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-submit .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(1,15,45,.3);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner   { display: block; }
.btn-submit.loading .btn-text  { opacity: 0; position: absolute; }

.submit-note { font-size: .78rem; color: var(--muted-more); text-align: center; margin-top: .85rem; line-height: 1.55; }
.submit-note a { color: var(--teal); }

/* Success state */
.success-state { display: none; text-align: center; padding: 2rem 0 1rem; }
.success-state.visible { display: block; }

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,229,160,.12);
  border: 1px solid rgba(0,229,160,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.success-title { font-family: 'DM Sans', sans-serif; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.success-sub   { font-size: .9375rem; color: var(--muted); line-height: 1.7; }


/* ─────────────────────────────────────────────────────────────────────────────
   22. CONTACT SIDEBAR  (contact.html)
   ───────────────────────────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp .7s .5s ease forwards;
}

.info-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color .3s;
}
.info-card:hover { border-color: rgba(0,199,229,.18); }

.info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,199,229,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.info-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.info-title { font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.info-body  { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.info-body a       { color: var(--teal); }
.info-body a:hover { text-decoration: underline; }

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  font-size: .78rem;
  color: rgba(0,229,160,.8);
  background: rgba(0,229,160,.08);
  border: 1px solid rgba(0,229,160,.18);
  border-radius: 100px;
  padding: .25rem .7rem;
}

.response-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,229,160,.9);
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────────────────────────────────
   23. LEGAL — DOC SWITCHER  (legal.html)
   ───────────────────────────────────────────────────────────────────────────── */
.doc-switcher {
  display: flex;
  padding-bottom: 3rem;
  opacity: 0;
  animation: fadeUp .5s .4s ease forwards;
}

.doc-tabs {
  display: flex;
  gap: .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: .35rem;
}

.doc-tab {
  padding: .6rem 1.5rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.doc-tab.active           { background: var(--teal); color: var(--navy-deep); }
.doc-tab:not(.active):hover { color: var(--white); }


/* ─────────────────────────────────────────────────────────────────────────────
   24. LEGAL — LAYOUT & TOC  (legal.html)
   ───────────────────────────────────────────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 8rem;
}

.toc {
  position: sticky;
  top: 88px;
}

.toc-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.toc-list  { list-style: none; display: flex; flex-direction: column; gap: .1rem; }

.toc-link {
  display: block;
  padding: .45rem .75rem;
  border-radius: 7px;
  font-size: .8rem;
  color: var(--muted);
  transition: all .2s;
  border-left: 2px solid transparent;
}
.toc-link:hover  { color: var(--white); background: rgba(255,255,255,.04); }
.toc-link.active { color: var(--teal); border-left-color: var(--teal); background: var(--teal-subtle); }

.toc-updated {
  margin-top: 1.5rem;
  padding: .6rem .75rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: .75rem;
  color: var(--muted-more);
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────────────────────────────
   25. LEGAL — DOCUMENT CONTENT  (legal.html)
   ───────────────────────────────────────────────────────────────────────────── */
.doc-panel        { display: none; }
.doc-panel.active { display: block; }

.legal-section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.legal-section:last-child { border-bottom: 1px solid var(--rule); }

.section-num {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-body p             { color: rgba(255,255,255,.72); margin-bottom: 1rem; font-size: .9375rem; }
.section-body p:last-child  { margin-bottom: 0; }
.section-body ul,
.section-body ol            { color: rgba(255,255,255,.72); padding-left: 1.5rem; margin-bottom: 1rem; font-size: .9375rem; }
.section-body li            { margin-bottom: .45rem; }
.section-body strong        { color: var(--white); font-weight: 600; }
.section-body a             { color: var(--teal); transition: opacity .2s; }
.section-body a:hover       { opacity: .8; text-decoration: underline; }

.callout {
  background: var(--teal-subtle);
  border: 1px solid rgba(0,199,229,.22);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.callout strong { color: var(--teal); }

.def-term {
  font-weight: 700;
  color: var(--white);
  margin-top: 1rem;
  display: block;
}


/* ─────────────────────────────────────────────────────────────────────────────
   26. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

/* ── 900px — tablet landscape ── */
@media (max-width: 900px) {
  /* index hero */
  .hero-inner         { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-sub           { margin: 0 auto 2rem; }
  .hero-ctas          { justify-content: center; }
  .hero-trust         { justify-content: center; }
  .phone-wrap         { order: -1; }
  .phone              { width: 240px; }
  .phone-screen       { min-height: 480px; }
  /* index sections */
  .chaos-grid         { grid-template-columns: 1fr; }
  .features-grid      { grid-template-columns: 1fr; }
  .how-grid           { grid-template-columns: 1fr; }
  .how-grid::before   { display: none; }
  .comp-card          { grid-template-columns: 1fr; gap: 2rem; }
  .trust-grid         { grid-template-columns: 1fr; }
  /* stats */
  .stats-inner        { grid-template-columns: 1fr; }
  .stat-item          { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat-item:last-child { border-bottom: none; }
  /* footer */
  .footer-inner       { flex-direction: column; align-items: flex-start; }
  /* contact */
  .contact-layout     { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar            { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ── 860px — legal TOC collapses ── */
@media (max-width: 860px) {
  .legal-layout       { grid-template-columns: 1fr; gap: 2rem; }
  .toc                { display: none; }
}

/* ── 640px — tablet portrait ── */
@media (max-width: 640px) {
  .field-row          { grid-template-columns: 1fr; }
  .topic-grid         { grid-template-columns: repeat(2, 1fr); }
  .sidebar            { grid-template-columns: 1fr; }
}

/* ── 600px — mobile ── */
@media (max-width: 600px) {
  .nav-links          { display: none; }
  .btn-nav            { display: none; }
  .section-header     { margin-bottom: 2.5rem; }
}