/* FlyNest landing — tokens mirrored from the app (FlyNest/DesignSystem/Theme.swift). */
:root {
  --ink: #1E3550;
  --ink-2: #4A5D75;
  --ink-3: #33506F;
  --muted: #8696A8;
  --primary: #1F7BD1;
  --primary-dark: #165FA3;
  --yellow: #FFE45C;
  --page: #F6FAFE;
  --tile: #F2F8FE;
  --border: #DCE8F3;
  --online: #2FA77A;
  --sky: linear-gradient(180deg, #3D97E6 0%, #7FC3F4 48%, #CBE8FC 86%, #F6FAFE 100%);
  --shadow: 0 14px 30px rgba(30, 53, 80, .16), 0 2px 6px rgba(30, 53, 80, .08);
  --font: ui-rounded, "SF Pro Rounded", Nunito, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--yellow); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--sky); }
.cloud { position: absolute; opacity: .8; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; }
.cloud::before { left: 0; bottom: 0; width: 100%; height: 55%; border-radius: 999px; }
.cloud::after { left: 18%; bottom: 25%; width: 42%; height: 75%; border-radius: 50%; }
.cloud-a { left: -60px; top: 470px; width: 260px; height: 108px; }
.cloud-b { right: -40px; top: 150px; width: 220px; height: 92px; opacity: .7; }

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 6px rgba(30, 53, 80, .2); }
.brand span { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(30, 53, 80, .14); }
.nav-cta:hover { color: var(--ink); }

.soon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 800; color: var(--ink); }
.soon-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px rgba(47, 167, 122, .22); }
.soon-pill--nav { display: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 110px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.soon-pill--hero { align-self: flex-start; }
h1 { font-size: 76px; line-height: 1; font-weight: 900; letter-spacing: -.03em; color: #fff; text-shadow: 0 4px 0 rgba(30, 53, 80, .22); }
.lead { max-width: 520px; font-size: 21px; line-height: 1.45; font-weight: 700; }
.hero-nesty--mobile { display: none; }

.hero-art { position: relative; height: 560px; }
.hero-art .hero-nesty { position: absolute; left: 50%; top: 10px; width: 440px; margin-left: -220px; filter: drop-shadow(0 16px 24px rgba(30, 53, 80, .22)); }
.sparkle { position: absolute; fill: #fff; }
.s1 { left: 40px; top: 30px; width: 30px; }
.s2 { right: 30px; top: 260px; width: 20px; }
.float-pill { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 22px 8px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 19px; font-weight: 900; white-space: nowrap; }
.float-pill img { width: 44px; height: 44px; margin: -4px 0; }
.p1 { left: 0; top: 400px; transform: rotate(-3deg); }
.p2 { right: 0; top: 470px; transform: rotate(2deg); }

/* Sign-up */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.signup label { font-size: 15px; font-weight: 800; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.field input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; }
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: 3px solid rgba(31, 123, 209, .35); }
.field button { height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.field button:hover { background: var(--primary-dark); }
.field button:disabled { opacity: .6; cursor: wait; }
.signup--dark .field button { background: var(--ink); }
.fine { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.error { font-size: 14px; font-weight: 800; color: #B3261E; }
.done { display: flex; align-items: center; gap: 14px; max-width: 540px; padding: 16px 20px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.done img { width: 48px; height: 48px; border-radius: 50%; background: #FFE6EF; }
.done div { display: flex; flex-direction: column; gap: 2px; }
.done strong { font-size: 18px; font-weight: 900; }
.done span { font-size: 15px; font-weight: 700; color: var(--ink-2); }
[hidden] { display: none !important; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 900; }
.badge svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge > span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 11px; font-weight: 700; opacity: .8; }

/* Features */
.features { padding-top: 40px; padding-bottom: 96px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .journey h2 { font-size: 48px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.section-head p { max-width: 560px; margin: 14px auto 0; font-size: 19px; line-height: 1.45; font-weight: 700; color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 32px; background: #fff; border: 1.5px solid var(--border); }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head img { width: 60px; height: 60px; }
.card h3 { font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }
.card > p { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.demo { padding: 16px; border-radius: 20px; background: var(--tile); border: 1.5px solid var(--border); }

.route-top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.blue { color: var(--primary); }
.route { display: flex; align-items: center; gap: 10px; }
.iata { padding: 6px 12px; border-radius: 999px; background: #EEF2F6; color: var(--muted); font-size: 13px; font-weight: 800; }
.iata--to { background: var(--primary); color: #fff; }
.track { position: relative; flex: 1; height: 4px; }
.flown { position: absolute; left: 0; top: 0; width: 52%; height: 4px; border-radius: 2px; background: #9AA9BA; }
.ahead { position: absolute; left: 52%; right: 0; top: 1px; height: 2px; background: repeating-linear-gradient(90deg, var(--primary) 0 5px, transparent 5px 10px); }
.plane { position: absolute; left: 52%; top: -10px; width: 24px; margin-left: -12px; fill: var(--primary); transform: rotate(90deg); }
.route-note { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1.5px solid var(--border); font-size: 15px; line-height: 1.4; font-weight: 600; }
.bubble--me { align-self: flex-end; max-width: 80%; border: 0; border-radius: 18px 18px 6px 18px; background: var(--primary); color: #fff; font-weight: 700; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row img { width: 30px; height: 30px; border-radius: 50%; background: #FFE6EF; border: 2px solid #fff; }

.breathe { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 18px; }
.ring { display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.r1 { width: 112px; height: 112px; background: rgba(31, 123, 209, .12); animation: breathe 8s ease-in-out infinite; }
.r2 { width: 80px; height: 80px; background: rgba(31, 123, 209, .22); }
.r3 { width: 50px; height: 50px; background: var(--primary); }
@keyframes breathe { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.04); } }
.breathe-copy { display: flex; flex-direction: column; gap: 4px; }
.breathe-copy strong { font-size: 26px; font-weight: 900; }
.breathe-copy span { font-size: 15px; font-weight: 700; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); font-size: 15px; font-weight: 800; }
.chip svg { width: 14px; height: 14px; fill: var(--primary); }
.chip--on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip--on svg { fill: #fff; }

/* Journey */
.journey { background: #fff; border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.journey .wrap { padding-top: 88px; padding-bottom: 88px; }
.journey h2 { margin-bottom: 40px; text-align: center; font-size: 44px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: var(--page); }
.step h3 { font-size: 23px; font-weight: 900; }
.step p { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; }
.tag--yellow { background: var(--yellow); }
.tag--blue { background: #CBE8FC; }
.tag--green { background: #D7F2E5; }

/* Final call to action */
.final { padding-top: 96px; padding-bottom: 96px; }
.final-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; padding: 56px 64px; border-radius: 40px; background: linear-gradient(135deg, #3D97E6 0%, #7FC3F4 100%); overflow: hidden; }
.final-nesty { order: 2; width: 300px; filter: drop-shadow(0 14px 20px rgba(30, 53, 80, .22)); }
.final-copy { display: flex; flex-direction: column; gap: 18px; }
.final h2 { font-size: 46px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 rgba(30, 53, 80, .18); }
.final p { font-size: 18px; font-weight: 700; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 48px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand strong { font-weight: 900; color: var(--ink); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { padding: 12px 0; }

/* Phone */
@media (max-width: 820px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .cloud-a { top: 470px; width: 160px; height: 67px; left: -50px; }
  .cloud-b { top: 300px; width: 170px; height: 71px; right: -50px; }
  .nav { padding-top: 18px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand span { font-size: 20px; }
  .nav-cta { display: none; }
  .soon-pill--nav { display: inline-flex; padding: 6px 12px; font-size: 12px; }
  .soon-pill--hero, .hero-art { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 48px; }
  .hero-copy { align-items: center; text-align: center; gap: 16px; }
  h1 { font-size: 50px; text-shadow: 0 3px 0 rgba(30, 53, 80, .22); }
  .lead { font-size: 17px; }
  .hero-nesty--mobile { display: block; width: 280px; filter: drop-shadow(0 12px 18px rgba(30, 53, 80, .22)); }
  .signup { width: 100%; margin-top: -8px; }
  .field { flex-direction: column; padding: 0; background: none; box-shadow: none; }
  .field input { flex: none; height: 56px; background: #fff; text-align: center; box-shadow: 0 10px 24px rgba(30, 53, 80, .14); }
  .field button { height: 56px; font-size: 18px; box-shadow: 0 10px 24px rgba(31, 123, 209, .3); }
  .fine { font-size: 13px; }
  .done { width: 100%; text-align: left; }
  .badges { justify-content: center; }
  .features { padding-top: 16px; padding-bottom: 56px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .journey h2 { font-size: 32px; line-height: 1.08; }
  .section-head p { font-size: 16px; }
  .feature-grid, .journey-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; gap: 12px; border-radius: 28px; }
  .card-head img { width: 50px; height: 50px; }
  .card h3 { font-size: 22px; }
  .card > p { font-size: 15px; }
  .journey .wrap { padding-top: 48px; padding-bottom: 48px; }
  .journey h2 { margin-bottom: 20px; font-size: 30px; }
  .step { padding: 20px; border-radius: 24px; }
  .final { padding-top: 48px; padding-bottom: 48px; }
  .final-card { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 32px 20px; text-align: center; border-radius: 32px; }
  .final-nesty { order: 0; width: 160px; }
  .final-copy { align-items: center; width: 100%; }
  .final h2 { font-size: 32px; }
  .final p { font-size: 16px; }
  .footer { flex-direction: column; padding-bottom: 40px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r1 { animation: none; }
}
