:root {
  color-scheme: light;
  --ink: #182a3a;
  --muted: #647586;
  --line: #dfe7ed;
  --blue: #146c94;
  --blue-deep: #104b70;
  --pale: #eff7f9;
  --green: #1b7957;
  --orange: #8a5a14;
  --red: #a33232;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f5f8fa;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; }
.topbar {
  height: 68px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 16px;
}
.topbar-note, .back-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.page-shell { max-width: 1000px; margin: 0 auto; padding: 62px 28px 36px; }
.hero { max-width: 650px; margin: 0 auto 36px; text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
}
h1, h2 { font-family: Manrope, "DM Sans", sans-serif; }
.hero h1, .results-intro h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 800;
}
.hero h1 span, .results-intro h1 span { color: var(--blue); }
.hero-copy { max-width: 570px; margin: 16px auto 0; color: var(--muted); font-size: 15px; }
.search-card, .progress-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 42px rgb(28 52 68 / 5%);
}
.card-heading, .progress-heading, .offers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.card-heading { margin-bottom: 25px; }
h2 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.45px; }
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 99px;
  color: var(--blue-deep);
  background: var(--pale);
  font-size: 12px;
  font-weight: 700;
}
.step-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field > span { display: flex; justify-content: space-between; gap: 8px; color: #263a4b; font-size: 12px; font-weight: 700; }
.field small { color: #8996a2; font-size: 10px; font-weight: 500; }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}
.field input:focus, .field select:focus { outline: 3px solid rgb(20 108 148 / 15%); border-color: var(--blue); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #edf1f4; }
.form-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.primary-button, .offer-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.primary-button:hover, .offer-button:hover { background: var(--blue-deep); transform: translateY(-1px); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 4px 0; }
.trust-row article { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; color: var(--blue); background: #e7f3f6; font-size: 17px; }
.trust-row strong { font-size: 12px; }
.trust-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.page-footer { margin: 36px auto 0; max-width: 700px; color: #82909c; font-size: 10px; text-align: center; }
.notice { margin: 0 0 20px; padding: 13px 15px; border: 1px solid; border-radius: 9px; font-size: 12px; }
.notice-warm { color: #684912; background: #fff8e9; border-color: #f1dfb9; }
.notice-info { color: #27536c; background: #eef7fb; border-color: #d4e8f1; }
.notice-error { color: #832a2a; background: #fff1f0; border-color: #f1ceca; }
.results-shell { max-width: 850px; padding-top: 50px; }
.results-intro { margin-bottom: 26px; }
.results-intro h1 { font-size: clamp(32px, 5vw, 42px); }
.results-intro .hero-copy { margin: 8px 0 0; font-size: 13px; }
.progress-card { padding: 25px 28px; }
.progress-heading { margin-bottom: 18px; }
.progress-heading h2 { font-size: 18px; }
.progress-percent { color: var(--blue); font-size: 13px; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: #e8eef2; }
.progress-track div { width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .4s ease; }
.stage-list { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.stage-item { display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; min-height: 49px; border-bottom: 1px solid #edf1f4; }
.stage-item:last-child { border-bottom: 0; }
.stage-check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #8b99a5; background: #f0f3f5; font-weight: 700; }
.stage-item.completed .stage-check { color: var(--green); background: #e7f5ee; }
.stage-item.running .stage-check { color: var(--blue); background: #e8f3f7; }
.stage-item.failed .stage-check { color: var(--red); background: #fff0ef; }
.stage-item strong { display: block; font-size: 12px; }
.stage-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.stage-status { color: #87939c; font-size: 10px; }
.results-section { margin-top: 24px; }
.insights-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 25px; padding: 21px 23px; border: 1px solid #cfe3eb; border-radius: 13px; background: #f0f8fa; }
.insights-card h2 { font-size: 17px; }
.insights-card ul { display: grid; gap: 7px; margin: 2px 0 0; padding-left: 18px; color: #355367; font-size: 12px; }
.ai-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 14px; padding: 20px 23px; border: 1px solid #d9d5f0; border-radius: 13px; background: #f8f7fc; }
.ai-card .eyebrow { color: #65539d; }
.ai-card p:last-child { margin: 0; color: #463d63; font-size: 12px; white-space: pre-wrap; }
.ai-status { color: #777185; font-size: 10px; }
.offers-heading { margin: 0 0 13px; align-items: end; }
.offers-heading h2 { font-size: 18px; }
.offers-heading > span { color: var(--muted); font-size: 11px; }
.offer-list { display: grid; gap: 11px; }
.offer-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.offer-card.best-offer { border-color: #b9d9e5; box-shadow: 0 4px 14px rgb(20 108 148 / 7%); }
.offer-main { flex: 1; min-width: 0; }
.offer-title-row { display: flex; justify-content: space-between; gap: 18px; }
.airline { display: block; font-weight: 700; font-size: 14px; }
.offer-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.price { text-align: right; white-space: nowrap; }
.price strong { display: block; color: var(--ink); font-size: 17px; }
.price small { color: var(--muted); font-size: 9px; }
.offer-facts { display: flex; flex-wrap: wrap; gap: 7px 17px; margin-top: 13px; color: #536574; font-size: 10px; }
.offer-button { min-height: 39px; padding: 0 13px; white-space: nowrap; font-size: 11px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.hidden { display: none !important; }
@media (max-width: 700px) {
  .page-shell { padding: 42px 18px 28px; }
  .topbar { height: 60px; padding: 0 18px; }
  .topbar-note { display: none; }
  .search-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 11px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .trust-row { grid-template-columns: 1fr; gap: 15px; margin-top: 25px; }
  .insights-card, .ai-card { grid-template-columns: 1fr; gap: 10px; }
  .offer-card { align-items: flex-start; flex-direction: column; gap: 15px; }
  .offer-button { width: 100%; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
  .card-heading { align-items: flex-start; }
  .step-chip { font-size: 0; gap: 0; width: 10px; height: 10px; padding: 0; margin-top: 3px; }
  .step-chip span { width: 10px; height: 10px; }
  .offer-title-row { gap: 8px; }
  .price strong { font-size: 14px; }
}
