/* Odyssey website — design tokens mirror the app `Theme` (HomeView.swift) */
:root {
  /* Brand palette */
  --bg: #EEF5FF;            /* light sky-blue page */
  --surface: #FFFFFF;       /* cards */
  --text: #0C2340;          /* deep navy text */
  --muted: #5E7088;         /* WCAG-AA muted slate-blue */
  --accent: #3E7FE0;        /* primary blue */
  --accent-dark: #2C5FB0;

  /* Hero gradient (Theme.heroGradient) */
  --hero-from: #5BA8F5;
  --hero-mid:  #3E7FE0;
  --hero-to:   #6FB0F0;
  --hero-gradient: linear-gradient(135deg, var(--hero-from), var(--hero-mid) 55%, var(--hero-to));

  /* Success green (booking confirmation) */
  --success-from: #1D9E75;
  --success-to:   #3FC79A;

  /* Surfaces & effects */
  --card-shadow: 0 12px 32px rgba(62, 127, 224, 0.12);
  --radius: 18px;
  --radius-sm: 12px;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --section-y: 72px;       /* vertical rhythm between sections */

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* Scroll reveal — only active when JS is present (.js set before first paint) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 245, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(62, 127, 224, 0.10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text);
}
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  transition: transform 0.18s ease;
}
.brand-name {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 45%, var(--hero-from));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-6deg);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 7px 16px;
  border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(62, 127, 224, 0.10);
  padding-block: 44px 28px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-tag { margin: 8px 0 0; max-width: 28em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-nav a { color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.8rem;
}
.footer-qr img {
  padding: 7px; border-radius: 10px; background: var(--bg);
  border: 1px solid rgba(62, 127, 224, 0.22);
}
.footer-qr:hover { color: var(--text); }
.footer-qr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #5BA8F5, #3E7FE0 55%, #6FB0F0);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(62, 127, 224, 0.35);
}
.footer-legal {
  padding-top: 18px; border-top: 1px solid rgba(62, 127, 224, 0.10);
  font-size: 0.85rem;
}

/* ---------- Shared section headings ---------- */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 44px;
  max-width: 36em;
}

/* ---------- How it works ---------- */
.flow {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
}
.flow-step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(62, 127, 224, 0.08);
}
.flow-num {
  position: absolute; top: -14px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(62, 127, 224, 0.35);
}
.flow-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.flow-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.flow-text { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .flow { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.section-alt { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row dense;
  gap: 22px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid rgba(62, 127, 224, 0.10);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 127, 224, 0.35);
  box-shadow: 0 18px 38px rgba(62, 127, 224, 0.16);
}
.feature-card:hover .feature-icon { transform: scale(1.06); }
/* Bento showcase tile — first feature spans a 2×2 block */
.feature-card--lg {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, rgba(62, 127, 224, 0.12), rgba(91, 168, 245, 0.04));
}
.feature-card--lg .feature-icon { width: 58px; height: 58px; font-size: 2rem; margin-bottom: 18px; }
.feature-card--lg h3 { font-size: 1.45rem; }
.feature-card--lg p { font-size: 1.05rem; max-width: 26em; }
.feature-icon {
  font-size: 1.6rem; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(62, 127, 224, 0.10); margin-bottom: 14px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.feature-soon { border-style: dashed; grid-column: 1 / -1; }
.pill {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: rgba(62, 127, 224, 0.12);
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--lg { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--lg { grid-column: auto; }
}

/* ---------- App surfaces (tabs) ---------- */
.tabs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.tab-row {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface);
  border: 1px solid rgba(62, 127, 224, 0.10);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
}
.tab-icon {
  flex: none;
  font-size: 1.5rem; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--hero-gradient);
}
.tab-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.tab-text { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Tech & status ---------- */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 36px;
}
.tech-h {
  font-size: 1.05rem; font-weight: 800; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(62, 127, 224, 0.18);
}
.tech-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tech-list li {
  position: relative; padding-left: 24px; color: var(--muted); font-size: 0.95rem;
}
.tech-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.status-banner {
  background: var(--bg);
  border: 1px solid rgba(62, 127, 224, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--text);
  font-size: 0.98rem;
}
.status-banner strong { color: var(--accent-dark); }

@media (max-width: 860px) {
  .tech-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(62, 127, 224, 0.10);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.contact-form input,
.contact-form textarea {
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(62, 127, 224, 0.20);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 127, 224, 0.20);
}
.btn-submit {
  justify-self: start;
  border: none;
  background: var(--accent); color: #fff;
}
.btn-submit:hover { background: var(--accent-dark); color: #fff; }
.contact-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.contact-email { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  border-bottom: 1px solid rgba(62, 127, 224, 0.10);
  padding-block: 26px;
}
.trust-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 12px 30px;
}
.trust-label {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
}
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text); opacity: 0.85;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--hero-gradient);
  color: #fff;
  padding-block: 88px 96px;
  overflow: hidden;
}
/* Soft aurora glow blobs for depth (sit above the gradient, below content) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 440px; height: 440px; top: -140px; right: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
}
.hero::after {
  width: 400px; height: 400px; bottom: -160px; left: -60px;
  background: radial-gradient(circle, rgba(111, 176, 240, 0.55), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 30em;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 24px rgba(12, 35, 64, 0.18); }
.btn-primary:hover { color: var(--accent-dark); box-shadow: 0 14px 30px rgba(12, 35, 64, 0.24); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hero-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); margin: 0; }

/* Phone mockup (pure CSS) */
.hero-visual { display: flex; justify-content: center; perspective: 1100px; }
.phone {
  position: relative;
  width: 280px;
  /* Titanium-style frame edge (iPhone 17 Pro) */
  background: linear-gradient(145deg, #2a3a4d, #0C2340 45%, #060f1c);
  border-radius: 52px;
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(12, 35, 64, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.10),   /* polished rim highlight */
    inset 0 0 0 6px #0a1626;                       /* matte inner bezel */
  transform-style: preserve-3d;
  /* Gentle resting 3D tilt; JS overrides via --rx/--ry on pointer move */
  transform:
    rotateX(var(--rx, 6deg))
    rotateY(var(--ry, -14deg))
    rotateZ(1deg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.hero-visual:hover .phone {
  box-shadow: 0 44px 80px rgba(12, 35, 64, 0.45), inset 0 0 0 2px rgba(255,255,255,0.08);
}
/* Lift inner content forward in 3D space for depth */
.phone .phone-screen { transform: translateZ(28px); }
.phone .app-card, .phone .app-confirm { transform: translateZ(18px); }
/* Side buttons (iPhone 17 Pro) — Action + volume left, side + Camera Control right */
.pbtn {
  position: absolute; width: 3px; z-index: 1;
  background: linear-gradient(180deg, #46586d, #16202e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.pbtn-action { left: -2px; top: 116px; height: 26px; border-radius: 3px 0 0 3px; }
.pbtn-volup  { left: -2px; top: 158px; height: 36px; border-radius: 3px 0 0 3px; }
.pbtn-voldn  { left: -2px; top: 200px; height: 36px; border-radius: 3px 0 0 3px; }
.pbtn-side   { right: -2px; top: 150px; height: 58px; border-radius: 0 3px 3px 0; }
.pbtn-cam    { right: -2px; top: 222px; height: 30px; border-radius: 0 3px 3px 0; }

/* Dynamic Island — floating pill (iPhone 17 Pro) */
.phone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%) translateZ(30px);
  width: 92px; height: 26px; background: #05080f; border-radius: 999px; z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* Camera dot inside the island */
.phone-island::after {
  content: ""; position: absolute; top: 50%; right: 9px; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1b3a5c, #05080f 70%);
}
.phone-screen {
  background: var(--bg);
  border: 4px solid #05080f;   /* thin black display bezel (iPhone 17) */
  border-radius: 42px;
  padding: 54px 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 520px;
}
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-greeting { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.app-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hero-gradient); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.app-search {
  background: var(--surface); border-radius: 14px; padding: 13px 14px;
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500;
  box-shadow: var(--card-shadow);
}
.app-search-icon { font-size: 1.1rem; color: var(--accent); }
.app-chips { display: flex; gap: 8px; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--muted); border: 1px solid rgba(62,127,224,0.15);
}
.chip-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.app-card {
  background: var(--surface); border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 8px;
}
.app-route { display: flex; align-items: center; gap: 10px; }
.app-iata { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.app-arc { color: var(--accent); }
.app-card-title { font-weight: 700; color: var(--text); }
.app-card-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.app-price { color: var(--accent); font-weight: 800; }
.app-confirm {
  margin-top: auto; text-align: center; font-size: 0.85rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--success-from), var(--success-to));
  padding: 11px; border-radius: 12px;
}

/* Phone image slider */
.phone-slider { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.phone-track {
  display: flex; flex: 1; min-height: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.phone-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.phone-dots { display: flex; justify-content: center; gap: 7px; padding-top: 14px; }
.phone-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(62, 127, 224, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
}
.phone-dot.is-active { width: 20px; border-radius: 999px; background: var(--accent); }

.slide-head { display: flex; align-items: center; gap: 10px; }
.slide-back { font-size: 1.3rem; line-height: 1; color: var(--accent); font-weight: 700; }
.slide-route { font-weight: 700; color: var(--text); }
.slide-route b { color: var(--text); }
.slide-tag {
  margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--accent);
  background: rgba(62, 127, 224, 0.12); padding: 3px 10px; border-radius: 999px;
}

.opt {
  background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px;
  box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 4px;
}
.opt-row { display: flex; align-items: center; justify-content: space-between; }
.opt-air { font-weight: 700; color: var(--text); font-size: 0.92rem; }
.opt-sub { font-size: 0.8rem; color: var(--muted); }

.stay-photo {
  position: relative; height: 132px; border-radius: var(--radius-sm); overflow: hidden;
}
.stay-photo img { width: 100%; height: 100%; object-fit: cover; }
.app-amen { display: flex; gap: 6px; flex-wrap: wrap; }
.app-amen span {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid rgba(62, 127, 224, 0.15);
  padding: 4px 10px; border-radius: 999px;
}
.stay-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.stay-night { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.mini-btn {
  font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--accent);
  padding: 8px 18px; border-radius: 999px;
}

.phone-slide--confirm { align-items: center; justify-content: center; text-align: center; }
.confirm-check {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--success-from), var(--success-to));
  box-shadow: 0 10px 24px rgba(29, 158, 117, 0.35);
}
.confirm-title { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.confirm-ref { font-size: 0.82rem; color: var(--muted); }
.phone-slide--confirm .app-card { width: 100%; text-align: left; }
.phone-slide--confirm .app-confirm { width: 100%; margin-top: 8px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(62, 127, 224, 0.12);
    box-shadow: var(--card-shadow);
    max-height: 0; overflow: hidden; padding: 0 var(--gutter);
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .site-nav.is-open { max-height: 360px; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: 8px; }
  :root { --section-y: 56px; }
  .hero { padding-block: 56px 64px; }
}

/* Respect users who prefer reduced motion: flatten the 3D effects */
@media (prefers-reduced-motion: reduce) {
  .phone {
    transform: rotateY(-6deg) !important;
    transition: none;
  }
  .feature-card:hover { transform: translateY(-4px); }
  .feature-card:hover .feature-icon { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Dark theme — placed last so component overrides win the cascade.
   Mostly token swaps; components already reference the variables. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1626;
    --surface: #11243C;
    --text: #EAF2FF;
    --muted: #9DB2CE;
    --card-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  }
  /* Glass header tint follows the dark page */
  .site-header {
    background: rgba(10, 22, 38, 0.82);
    border-bottom-color: rgba(91, 155, 240, 0.18);
  }
  /* --accent-dark is tuned for white surfaces; brighten this label on dark */
  .status-banner strong { color: var(--accent); }
}
