/* ============================================================
   SkyBuddy — corporate / high-tech design system
   Deep royal blue → indigo, glassmorphism, neon accents
   ============================================================ */

:root {
  /* environment */
  --bg-deep: #0d1b2a;
  --bg-indigo: #1b263b;
  --bg-shell: #0a1421;

  /* accents */
  --cyan: #00f0ff;
  --magenta: #ff007f;
  --amethyst: #9b6bff;
  --lime: #b4ff39;

  /* text */
  --white: #ffffff;
  --ice: #a9b8d4;
  --ice-dim: #7c8bab;

  /* glass */
  --glass: rgba(19, 33, 55, 0.55);
  --glass-strong: rgba(24, 41, 68, 0.75);
  --glass-border: rgba(255, 255, 255, 0.14);
  --blur: 18px;

  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;

  --display: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

/* An author `display` rule beats the UA stylesheet's [hidden], so hiding a
   flex container with .hidden = true silently does nothing without this. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-shell);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- environment: curved dual-tone gradient + drifting clouds ---------- */

.env {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  animation: fade-in 1.2s var(--ease) both;
}

.env__sky {
  position: absolute;
  left: -10%;
  right: -10%;
  top: -30%;
  height: 150%;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(0, 240, 255, 0.14), transparent 60%),
    radial-gradient(55% 45% at 85% 8%, rgba(155, 107, 255, 0.18), transparent 62%),
    linear-gradient(168deg, var(--bg-deep) 0%, var(--bg-indigo) 58%, #16213a 100%);
  border-radius: 0 0 55% 55% / 0 0 22% 22%;
}

.env__floor {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 108%, rgba(0, 240, 255, 0.10), transparent 65%);
}

.env__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 184, 212, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 184, 212, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
}

.clouds {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  opacity: 0;
  animation:
    cloud-in 1.4s var(--ease) forwards,
    levitate 7s ease-in-out infinite,
    drift 34s ease-in-out infinite;
}
.cloud svg { display: block; width: 100%; height: auto; }

.plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 40px;
  perspective: 320px;
  offset-rotate: auto;
  offset-anchor: 50% 50%;
  opacity: 0.9;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(0, 240, 255, 0.35));
  animation: fly-path 18s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
.plane__body {
  position: relative;
  width: 100%;
  height: 40px;
  transform-style: preserve-3d;
  animation: barrel 7s linear infinite;
}
.pf {
  position: absolute;
  inset: 0;
  backface-visibility: visible;
}
/* upper wing — catches the light */
.pf--wing-top {
  clip-path: polygon(100% 50%, 1% 4%, 33% 50%);
  background: linear-gradient(135deg, #ffffff 0%, #dcecfb 55%, #b9d5ee 100%);
  transform: rotateX(-21deg);
}
/* lower wing — in shade, which is what sells the fold */
.pf--wing-bottom {
  clip-path: polygon(100% 50%, 1% 96%, 33% 50%);
  background: linear-gradient(45deg, #6f97c2 0%, #97bade 60%, #c3daf1 100%);
  transform: rotateX(21deg);
}
/* keel between them */
.pf--keel {
  clip-path: polygon(100% 50%, 31% 50%, 24% 88%);
  background: linear-gradient(180deg, #eef6ff 0%, #8cb0d6 100%);
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; position: relative; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--white);
}
h1 { font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; color: var(--ice); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p { font-size: 17px; }

/* ---------- glass surface ---------- */

.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.45), rgba(0, 240, 255, 0.35) 45%, rgba(255, 255, 255, 0.06) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- nav ---------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 27, 42, 0.72);
  border-bottom: 1px solid rgba(169, 184, 212, 0.12);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--white);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 38px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.55));
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ice); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(169, 184, 212, 0.28);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 18px -8px rgba(0, 240, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(0, 240, 255, 0.5); }

.btn--primary {
  border-color: transparent;
  color: #04121c;
  background-image: linear-gradient(100deg, var(--cyan) 0%, #26a8ff 45%, #1450d8 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 34px -16px rgba(0, 240, 255, 0.95);
  transition: background-position 0.45s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 46px -14px rgba(0, 240, 255, 1), 0 0 26px -4px rgba(0, 240, 255, 0.75);
}
.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { padding: 76px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan), var(--amethyst) 60%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px;
  max-width: 40rem;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ice);
  border: 1px solid rgba(169, 184, 212, 0.22);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 14px;
}

.reveal { opacity: 0; animation: rise-in 0.9s var(--ease) forwards; }
.reveal--1 { animation-delay: 0.15s; }
.reveal--2 { animation-delay: 0.3s; }
.reveal--3 { animation-delay: 0.45s; }
.reveal--4 { animation-delay: 0.6s; }

/* ---------- search dashboard ---------- */

.dash {
  position: relative;
  margin-top: 46px;
  padding: 26px;
  overflow: hidden;
  opacity: 0;
  animation: rise-in 1s 0.55s var(--ease) forwards;
}
.dash__trace {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.dash__trace rect {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.9));
  stroke-dasharray: var(--dash-len, 2400);
  stroke-dashoffset: var(--dash-len, 2400);
  animation: trace 0.8s 1.4s linear forwards, trace-fade 0.6s 2.3s ease forwards;
}

.dash__fields {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 0.85fr;
  align-items: stretch;
  gap: 0;
  background: rgba(10, 20, 33, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(169, 184, 212, 0.16);
  padding: 6px;
}
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  text-align: left;
}
.field + .field::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  width: 1px; height: 72%;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.75), transparent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.field label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-dim);
  font-weight: 600;
}
.field input, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  padding: 0;
}
.field select option { background: var(--bg-indigo); color: var(--white); }
.field input::placeholder { color: rgba(169, 184, 212, 0.5); }
.field input:focus, .field select:focus { color: var(--cyan); }
.field--action { display: grid; place-items: center; padding: 6px; }
.field--action .btn { width: 100%; }

/* scanning laser */
.dash__laser {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, var(--magenta) 18%, #fff 50%, var(--magenta) 82%, transparent);
  box-shadow: 0 0 22px 4px rgba(255, 0, 127, 0.75);
  opacity: 0;
  pointer-events: none;
}
.dash.is-scanning .dash__laser { animation: laser 0.85s ease-in-out; }

/* ---------- results ---------- */

.results { margin-top: 26px; display: grid; gap: 16px; }

.flight {
  display: grid;
  grid-template-columns: 144px 1fr 250px 170px;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  opacity: 0;
  animation: rise-in 0.7s var(--ease) forwards;
  transition: transform 0.28s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.3s var(--ease);
}
.flight:hover {
  transform: translateY(-4px);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow:
    0 30px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 42px -6px rgba(0, 240, 255, 0.42),
    0 0 60px -10px rgba(255, 0, 127, 0.3);
}
.flight > * + * {
  border-left: 1px solid transparent;
  border-image: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.45), transparent) 1;
  padding-left: 22px;
}
.flight__airline { display: flex; align-items: center; gap: 12px; }
.flight__logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: #06131f;
  box-shadow: 0 0 20px -6px currentColor;
}
.flight__carrier { display: block; font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.flight__fno { display: block; font-size: 12px; color: var(--ice-dim); font-family: var(--mono); }

.flight__route { display: flex; align-items: center; gap: 16px; padding-left: 22px; }
.leg { text-align: center; }
.leg__time { font-family: var(--display); font-weight: 700; font-size: 20px; }
.leg__code { font-size: 12px; color: var(--ice); letter-spacing: 0.08em; }
.path { flex: 1; position: relative; height: 22px; min-width: 70px; }
.path__line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), var(--cyan), rgba(0, 240, 255, 0.15));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.path__meta {
  position: absolute; left: 50%; top: -4px;
  transform: translateX(-50%);
  font-size: 11px; color: var(--ice-dim);
  background: rgba(13, 27, 42, 0.85);
  padding: 0 8px;
  white-space: nowrap;
}

.flight__trend { display: flex; flex-direction: column; gap: 4px; }
.trend__label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); font-weight: 600; }
.spark { width: 100%; height: 54px; overflow: visible; }
.spark__grid line { stroke: rgba(169, 184, 212, 0.16); stroke-width: 1; }
.spark__area { fill: url(#sparkFill); }
.spark__line { fill: none; stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.85)); }
.spark__dot {
  fill: var(--cyan);
  r: 2.4;
  transition: r 0.18s var(--spring), filter 0.18s var(--ease);
  cursor: pointer;
}
.spark__dot:hover { r: 5.4; filter: drop-shadow(0 0 10px var(--cyan)); }
.spark__dot--low { fill: var(--lime); }

.flight__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  transition: transform 0.35s var(--spring), color 0.35s var(--ease);
}
.price.is-drop { color: var(--lime); transform: scale(1.1); text-shadow: 0 0 24px rgba(180, 255, 57, 0.55); }
.price__verdict {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.v-buy { color: var(--lime); background: rgba(180, 255, 57, 0.12); border: 1px solid rgba(180, 255, 57, 0.4); }
.v-good { color: var(--cyan); background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.35); }
.v-wait { color: var(--ice); background: rgba(169, 184, 212, 0.1); border: 1px solid rgba(169, 184, 212, 0.28); }
.v-high { color: var(--magenta); background: rgba(255, 0, 127, 0.1); border: 1px solid rgba(255, 0, 127, 0.4); }

/* success check + ripple */
.check {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #d9ff8a, var(--lime));
  color: #10240a;
  font-size: 14px; font-weight: 800;
  animation: pop 0.5s var(--spring) both;
  box-shadow: 0 0 22px -2px rgba(180, 255, 57, 0.85);
}
.check::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(180, 255, 57, 0.65);
  animation: ripple 0.9s var(--ease) forwards;
}
.drop-row { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.drop-row small { color: var(--lime); font-weight: 600; }

/* skeleton */
.skeleton {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: rgba(16, 29, 48, 0.55);
}
.skeleton::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(0, 240, 255, 0.13) 45%, rgba(255, 255, 255, 0.09) 55%, transparent);
  animation: shimmer 1.15s linear infinite;
}

/* tooltip */
.tip {
  position: fixed;
  z-index: 90;
  transform: translate(-50%, -130%);
  padding: 8px 13px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  background: rgba(16, 29, 48, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 26px -6px rgba(0, 240, 255, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  white-space: nowrap;
}
.tip.is-on { opacity: 1; }
.tip small { display: block; font-family: var(--body); font-weight: 400; color: var(--ice); font-size: 11px; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--ice); }

/* ---------- feature cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px;
  transition: transform 0.28s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95), 0 0 40px -8px rgba(0, 240, 255, 0.4);
}
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  margin-bottom: 15px;
  font-size: 20px;
  background: linear-gradient(140deg, rgba(0, 240, 255, 0.2), rgba(155, 107, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 20px -8px rgba(0, 240, 255, 0.8);
}
.card p { margin: 0; font-size: 14.5px; }
.card code { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }

/* ---------- booking spotlight ---------- */

.spotlight { padding: 44px; }
.spotlight-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.steps li { display: flex; gap: 15px; align-items: flex-start; }
.steps .n {
  flex: 0 0 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-family: var(--mono); font-size: 12px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 18px -6px rgba(0, 240, 255, 0.9);
}
.steps strong { font-family: var(--display); font-weight: 600; font-size: 15px; display: block; }
.steps span { font-size: 14px; color: var(--ice); }
.note {
  margin-top: 26px;
  border-left: 3px solid var(--magenta);
  background: rgba(255, 0, 127, 0.08);
  padding: 13px 17px;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  color: #ffc6e0;
}

/* ---------- code panels ---------- */

.panel-shell { overflow: hidden; }
.panel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(169, 184, 212, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f6d; } .dot.y { background: #ffd166; } .dot.g { background: var(--lime); }
.panel-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ice-dim); }
.panel-shell pre {
  margin: 0;
  padding: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #dbe6ff;
  overflow-x: auto;
}
.c-dim { color: var(--ice-dim); }
.c-ok { color: var(--lime); }
.c-key { color: var(--cyan); }
.c-warn { color: #ffd166; }
.c-str { color: #ff7ab8; }

.tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(169, 184, 212, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.tab[aria-selected="true"] {
  color: #04121c;
  border-color: transparent;
  background: linear-gradient(100deg, var(--cyan), #26a8ff);
  box-shadow: 0 10px 26px -14px rgba(0, 240, 255, 0.95);
}
.code-panel[hidden] { display: none; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 20px; font-size: 14px; border-bottom: 1px solid rgba(169, 184, 212, 0.13); }
th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); font-weight: 600; }
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: rgba(0, 240, 255, 0.05); }
tbody tr:last-child td { border-bottom: none; }
td code { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
td.desc { color: var(--ice); }

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(169, 184, 212, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip:hover { border-color: rgba(0, 240, 255, 0.5); box-shadow: 0 0 26px -10px rgba(0, 240, 255, 0.9); }
.chip .ok { color: var(--lime); }

/* ---------- cta ---------- */

.cta { text-align: center; padding: 60px 32px; }
.cta h2 { margin-bottom: 10px; }
.cta .hero-cta { margin-top: 26px; margin-bottom: 0; }

/* ---------- footer ---------- */

footer { border-top: 1px solid rgba(169, 184, 212, 0.12); padding: 34px 0 52px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; font-size: 13.5px; }
.foot nav { display: flex; gap: 22px; font-size: 13.5px; }

/* ---------- keyframes ---------- */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cloud-in { from { opacity: 0; transform: scale(0.9); } to { opacity: var(--cloud-opacity, 0.7); transform: scale(1); } }
@keyframes drift { 0%, 100% { margin-left: 0; } 50% { margin-left: 26px; } }
@keyframes fly-path {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@keyframes barrel {
  from { transform: rotateX(0deg) rotateY(6deg); }
  to { transform: rotateX(360deg) rotateY(6deg); }
}

@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes trace-fade { to { opacity: 0; } }
@keyframes laser {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(220%); } }
@keyframes pop { 0% { transform: scale(0); } 62% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ripple { from { transform: scale(1); opacity: 0.85; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .dash__fields { grid-template-columns: 1fr 1fr; }
  .field + .field::before { display: none; }
  .field { border-top: 1px solid rgba(169, 184, 212, 0.12); }
  .field--action { grid-column: 1 / -1; }
  .flight { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .flight > * + * { border-image: none; border-left: 0; padding-left: 0; }
  .flight__route { padding-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 680px) {
  section { padding: 62px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .flight { grid-template-columns: 1fr; }
  .flight__price { align-items: flex-start; text-align: left; }
  .spotlight { padding: 26px; }
  .cloud--small { display: none; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .dash, .flight { opacity: 1; }
}

/* ---------- traveller (multi-user) switcher ---------- */

.users {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 6px 18px;
}
.users__label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-dim);
  font-weight: 600;
}
.users__list { display: flex; flex-wrap: wrap; gap: 8px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(169, 184, 212, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.user-chip:hover { border-color: rgba(0, 240, 255, 0.5); color: var(--white); }
.user-chip.is-active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(100deg, rgba(0, 240, 255, 0.22), rgba(155, 107, 255, 0.28));
  box-shadow: 0 0 26px -8px rgba(0, 240, 255, 0.95);
}
.user-chip__av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: #06131f;
  background: linear-gradient(140deg, var(--cyan), var(--amethyst));
}
.user-chip__n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ice-dim);
  padding-left: 4px;
  border-left: 1px solid rgba(169, 184, 212, 0.25);
}
.user-chip.is-active .user-chip__n { color: var(--lime); }
.users__add {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 240, 255, 0.45);
  background: transparent;
  color: var(--cyan);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.users__add:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 24px -8px rgba(0, 240, 255, 0.9); }
.users__hint { font-size: 12.5px; color: var(--ice-dim); margin-left: auto; }

/* ---------- tracked flights ---------- */

.tracked { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(169, 184, 212, 0.14); }
.tracked__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tracked__head h3 { margin: 0; font-size: 17px; }
.tracked__list { display: grid; gap: 10px; }
.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  animation: rise-in 0.5s var(--ease) both;
}
.track-row__route { font-family: var(--display); font-weight: 600; font-size: 15px; }
.track-row__meta { font-size: 13px; color: var(--ice-dim); }
.track-row__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  margin-left: auto;
  transition: transform 0.35s var(--spring), color 0.35s var(--ease);
}
.track-row__price.is-drop {
  color: var(--lime);
  transform: scale(1.1);
  text-shadow: 0 0 22px rgba(180, 255, 57, 0.6);
}
.track-row__x {
  background: transparent;
  border: 0;
  color: var(--ice-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s var(--ease);
}
.track-row__x:hover { color: var(--magenta); }
.drop-flag { animation: rise-in 0.4s var(--ease) both; }

@media (max-width: 680px) {
  .users__hint { display: none; }
  .track-row__price { margin-left: 0; }
}

/* ---------- historical range on each fare ---------- */

.trend__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ice-dim);
}
.ts { white-space: nowrap; }
.trend__stats b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ice);
  margin-left: 3px;
}
.ts--low b { color: var(--lime); }
.ts--high b { color: var(--magenta); }

.track-row__range { font-size: 11.5px; color: var(--ice-dim); }
.track-row__range b { font-family: var(--display); font-weight: 600; color: var(--ice); }

/* ---------- airport autocomplete ---------- */

.field--combo { position: relative; }
.field__caption {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ice-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.combo {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(12, 22, 38, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  display: none;
}
.combo.is-open { display: block; }
.combo__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
}
.combo__item:hover,
.combo__item.is-active { background: rgba(0, 240, 255, 0.12); }
.combo__code {
  flex: 0 0 44px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}
.combo__text { display: flex; flex-direction: column; min-width: 0; }
.combo__text strong { font-size: 14px; font-weight: 600; }
.combo__text small {
  font-size: 11.5px;
  color: var(--ice-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- account bar (signed in) ---------- */

.account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 6px 18px;
}
.account__email { font-size: 13px; color: var(--ice-dim); }
.account__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ice);
  cursor: pointer;
}
.account__toggle input { accent-color: var(--cyan); width: 16px; height: 16px; }
.account__warn {
  font-size: 12px;
  color: var(--warn, #ffd166);
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- sign-in modal ---------- */

.auth {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s var(--ease) both;
}
.auth[hidden] { display: none; }
.auth__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 32px;
  animation: rise-in 0.4s var(--ease) both;
}
.auth__panel h3 { font-size: 24px; margin-bottom: 10px; }
.auth__panel p { font-size: 14.5px; }
.auth__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--ice-dim);
  font-size: 15px;
  cursor: pointer;
}
.auth__close:hover { color: var(--magenta); }
.auth__panel form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.auth__panel input {
  flex: 1 1 200px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(169, 184, 212, 0.28);
  background: rgba(10, 20, 33, 0.7);
  color: var(--white);
  font-family: var(--body);
  font-size: 14.5px;
  outline: none;
}
.auth__panel input:focus { border-color: rgba(0, 240, 255, 0.6); box-shadow: 0 0 24px -10px var(--cyan); }
.auth__note { margin: 14px 0 0; font-size: 13.5px; color: var(--ice-dim); min-height: 20px; }
.auth__note.is-ok { color: var(--lime); }
.auth__note.is-error { color: var(--magenta); }

/* ---------- results states ---------- */

.results__msg {
  margin: 0;
  padding: 22px 26px;
  font-size: 14.5px;
  color: var(--ice);
}
.results__msg.is-error { color: #ffc6e0; border-left: 3px solid var(--magenta); }
.trend__empty { margin: 6px 0 0; font-size: 11.5px; color: var(--ice-dim); }
.track-row__spark { display: block; width: 150px; }

/* =====================================================================
   Small screens — phone and tablet only.
   Everything above 1024px keeps the desktop layout untouched.
   ===================================================================== */

/* ---------- tablet / iPad (portrait and landscape) ---------- */
@media (max-width: 1024px) {
  section { padding: 68px 0; }
  .wrap { padding: 0 20px; }

  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: clamp(34px, 6.4vw, 52px); }
  .hero .lede { font-size: 17px; }

  .dash { padding: 20px; margin-top: 34px; }

  /* two fields per row reads better than four squeezed ones */
  .dash__fields { grid-template-columns: 1fr 1fr; gap: 2px; }
  .field { padding: 11px 14px; }
  .field input, .field select { font-size: 16px; } /* 16px stops iOS zooming on focus */
  .field--action { grid-column: 1 / -1; }
  .field--action .btn { width: 100%; }

  /* the flight card becomes two rows instead of four columns */
  .flight {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
    padding: 18px 20px;
  }
  /* place explicitly, otherwise the price falls onto a row of its own and
     leaves a hole the size of the card */
  .flight__airline { grid-column: 1; grid-row: 1; }
  .flight__price { grid-column: 2; grid-row: 1; align-items: flex-end; text-align: right; }
  .flight__route { grid-column: 1 / -1; grid-row: 2; padding-left: 0; }
  .flight__trend { grid-column: 1 / -1; grid-row: 3; }
  .flight > * + * { border-image: none; border-left: 0; padding-left: 0; }

  /* a sparkline stretched across the whole tablet width reads as a mountain
     range, not a price trend — keep it card-sized and left aligned */
  .flight__trend .spark { height: 46px; max-width: 320px; }
  .flight__price { gap: 10px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .spotlight { padding: 28px; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 28px; }

  .account { gap: 10px; }
  .account__toggle { margin-left: 0; }

  .panel-shell pre { font-size: 12px; padding: 18px; }

  /* keep the sky decorative, not dominant */
  .cloud { transform: scale(0.72); opacity: 0.6 !important; }
  .plane { width: 76px; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }

  header.nav { }
  .nav-inner { height: 62px; gap: 12px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 8px 14px; font-size: 12.5px; }

  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero .lede { font-size: 15.5px; }
  .hero-cta { gap: 10px; margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pills { gap: 6px; }
  .pill { font-size: 11px; padding: 5px 10px; }

  .dash { padding: 14px; border-radius: 18px; }

  /* one field per row: the whole point on a phone is not to mis-tap */
  .dash__fields { grid-template-columns: 1fr; }
  .field { padding: 12px 14px; }
  .field + .field { border-top: 1px solid rgba(169, 184, 212, 0.12); }
  .field__caption { font-size: 10.5px; }

  /* the dropdown must never push the page sideways */
  .combo {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
    max-height: 46vh;
  }
  .combo__item { padding: 11px 10px; }
  .combo__code { flex-basis: 40px; font-size: 12.5px; }

  /* travellers and account stack */
  .users { gap: 8px; padding-bottom: 14px; }
  .users__hint { display: none; }
  .account { flex-direction: column; align-items: flex-start; padding-bottom: 14px; }
  .account__toggle { font-size: 12.5px; }
  .account__warn { font-size: 11px; }

  /* flight card: single column, generous tap targets */
  /* single column: clear the explicit placement from the tablet rules,
     otherwise the price sits on top of the airline */
  .flight { grid-template-columns: 1fr; padding: 16px; row-gap: 12px; }
  .flight__airline, .flight__route, .flight__trend, .flight__price {
    grid-column: 1;
    grid-row: auto;
  }
  .flight__price { align-items: flex-start; text-align: left; width: 100%; }
  .flight__price .btn { width: 100%; }
  .price { font-size: 27px; }
  .leg__time { font-size: 18px; }
  .path { min-width: 48px; }
  .path__meta { font-size: 10.5px; }
  .trend__stats { font-size: 10px; gap: 8px; }

  /* tracked rows read as small cards */
  .tracked { margin-top: 20px; padding-top: 18px; }
  .track-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .track-row__price { margin-left: 0; font-size: 22px; }
  .track-row__spark { width: 100%; }
  .flight__trend .spark { max-width: none; }
  .track-row .btn { width: 100%; }
  .track-row__x { position: absolute; top: 10px; right: 12px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat b { font-size: 26px; }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 20px; }

  .spotlight { padding: 20px; border-radius: 18px; }
  .steps span { font-size: 13.5px; }

  .tabs { gap: 6px; }
  .tab { padding: 8px 13px; font-size: 12.5px; }
  .panel-shell pre { font-size: 11px; padding: 14px; line-height: 1.65; }

  th, td { padding: 11px 14px; font-size: 13px; }

  .cta { padding: 36px 20px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }

  .auth { padding: 16px; }
  .auth__panel { padding: 24px 20px; }
  .auth__panel h3 { font-size: 21px; }
  .auth__panel form { flex-direction: column; }
  .auth__panel input, .auth__panel .btn { width: 100%; }

  /* one small cloud is atmosphere; five is clutter on a 390px screen */
  .cloud { transform: scale(0.55); opacity: 0.42 !important; }
  .cloud--small { display: none; }
  .plane { width: 58px; }

  /* tooltips follow a finger badly — the numbers are already on the card */
  .tip { display: none; }
}

/* ---------- small phones ---------- */
@media (max-width: 430px) {
  .hero h1 { font-size: 29px; }
  .brand span, .brand { gap: 8px; }
  .nav-links .btn { padding: 7px 11px; font-size: 12px; }
  .stats { grid-template-columns: 1fr; }
  .price { font-size: 24px; }
  .section-head { margin-bottom: 30px; }
  h2 { font-size: 25px; }
}

/* ---------- touch devices: bigger targets, no hover lift ---------- */
@media (hover: none) {
  .btn { min-height: 44px; }
  .tab { min-height: 40px; }
  .combo__item { min-height: 46px; }
  .flight:hover, .card:hover { transform: none; }
}

/* ---------- trip-tool sheets (seats, bookings, wallet, travellers) ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: start center;
  padding: 40px 20px;
  overflow-y: auto;
  background: rgba(6, 12, 22, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.22s var(--ease) both;
}
.sheet[hidden] { display: none; }
.sheet__panel {
  position: relative;
  width: min(720px, 100%);
  padding: 34px;
  animation: rise-in 0.35s var(--ease) both;
}
.sheet__panel h3 { font-size: 23px; margin-bottom: 8px; }
.sheet__panel h4 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 26px 0 12px;
}
.sheet__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--ice-dim);
  font-size: 15px;
  cursor: pointer;
}
.sheet__close:hover { color: var(--magenta); }
.sheet__lede { font-size: 14.5px; }
.sheet__body .steps li { align-items: flex-start; }
.sheet__body .steps strong { display: block; font-size: 14.5px; text-transform: capitalize; }
.sheet__body .steps strong em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ice-dim); margin-left: 6px; }
.sheet__body .steps span { display: block; font-size: 13.5px; }
.sheet__body .steps .muted { color: var(--ice-dim); font-size: 12.5px; margin-top: 2px; }
.sheet__body table { min-width: 0; }
.sheet__body td code { font-size: 12px; color: var(--ice-dim); }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.bullets li { font-size: 13.5px; color: var(--ice); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sheet__form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.sheet__form input {
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid rgba(169, 184, 212, 0.28);
  background: rgba(10, 20, 33, 0.7);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
}
.sheet__form input:focus { border-color: rgba(0, 240, 255, 0.6); }
.sheet__form .btn { grid-column: 1 / -1; }

.flight__tools { display: flex; gap: 8px; margin-top: 8px; }
.account__tools { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 680px) {
  .sheet { padding: 16px; }
  .sheet__panel { padding: 22px 18px; }
  .sheet__form { grid-template-columns: 1fr; }
  .flight__tools { width: 100%; }
  .flight__tools .btn { flex: 1; }
  .account__tools { width: 100%; }
  .account__tools .btn { flex: 1 1 40%; }
}

.account__note {
  font-size: 12px;
  color: var(--ice-dim);
  border: 1px solid rgba(169, 184, 212, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
}

/* =====================================================================
   Small-screen refinements — desktop above 1024px is untouched.
   ===================================================================== */

/* anchors must clear the sticky header */
section[id] { scroll-margin-top: 76px; }

@media (max-width: 1024px) {
  /* Two columns beat four stacked rows: fare details on the left, the money
     and the actions on the right, so a card is scannable in one glance. */
  .flight {
    grid-template-columns: minmax(0, 1fr) 190px;
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
  }
  .flight__airline { grid-column: 1; grid-row: 1; }
  .flight__route   { grid-column: 1; grid-row: 2; padding-left: 0; }
  .flight__trend   { grid-column: 1; grid-row: 3; }
  .flight__price {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-items: stretch;
    text-align: right;
    gap: 8px;
  }
  .flight__price .price { text-align: right; }
  .flight__price .price__verdict { align-self: flex-end; }
  .flight__price .btn { width: 100%; }
  .flight__tools { flex-direction: column; gap: 8px; margin-top: 0; }
  .flight__tools .btn { width: 100%; }
  .flight__trend .spark { max-width: none; }

  /* keep the sky out from behind the words */
  .cloud { opacity: 0.28 !important; transform: scale(0.55); }
}

@media (max-width: 680px) {
  /* One column, but pair things that belong together instead of stacking
     six full-width blocks. */
  .flight { grid-template-columns: 1fr; row-gap: 10px; }
  .flight__price {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 8px 12px;
  }
  .flight__price .price { grid-column: 1; grid-row: 1; text-align: left; }
  .flight__price .price__verdict { grid-column: 2; grid-row: 1; align-self: center; }
  .flight__price > .btn { grid-column: 1 / -1; grid-row: 2; }
  .flight__tools {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    gap: 8px;
    margin-top: 0;
  }
  .flight__tools .btn { flex: 1; }

  /* hero: get the product above the fold sooner */
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 34px); margin-bottom: 12px; }
  .hero .lede { font-size: 15px; margin-bottom: 18px; }
  .hero-cta { gap: 8px; margin: 0 0 14px; }
  .hero-cta .btn { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 12px 14px; font-size: 13.5px; }
  .pill { font-size: 10.5px; padding: 4px 9px; }

  /* barely-there sky so the headline stays legible */
  .cloud { opacity: 0.22 !important; transform: scale(0.42); }
  .plane { opacity: 0.55; }

  .section-head { margin-bottom: 26px; }
  .stat b { font-size: 23px; }
}

/* 390px still has room for the price and its verdict on one line — only
   restack on the genuinely narrow phones. */
@media (max-width: 340px) {
  .flight__price { grid-template-columns: 1fr; justify-content: start; }
  .flight__price .price__verdict { grid-column: 1; grid-row: 2; justify-self: start; }
  .flight__price > .btn { grid-row: 3; }
  .flight__tools { grid-row: 4; }
}
