:root {
  --ink: #102321;
  --muted: #62706d;
  --paper: #f4f6f1;
  --card: #ffffff;
  --line: #dfe6de;
  --green: #153f39;
  --green-2: #225b50;
  --mint: #dff2c8;
  --lime: #b9e77e;
  --coral: #fa8f74;
  --lavender: #c8c3f2;
  --yellow: #f7d777;
  --shadow: 0 24px 70px rgba(20, 52, 46, .11);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 40px), var(--max));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.035em;
  font-size: 20px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50% 50% 50% 12px;
  background: var(--green);
  color: var(--lime);
  font-size: 20px;
}
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a {
  color: #3d4d49;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.header-nav a:hover { color: var(--green); }
.header-nav .header-cta {
  padding: 11px 17px;
  border: 1px solid #b8c3bc;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.55);
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 40px), var(--max));
  min-height: 520px;
  margin: 10px auto 0;
  padding: 54px 0 130px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .75fr);
  gap: 95px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-2);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow > span { width: 25px; height: 2px; background: var(--coral); }
.eyebrow.light { color: #bdd4ce; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero h1 em { color: var(--green-2); font-weight: 500; }
.hero-lede {
  max-width: 625px;
  margin: 29px 0 24px;
  color: #53615e;
  font-size: 18px;
  line-height: 1.65;
}
.hero-lede strong { color: var(--ink); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; color: #5e6b68; font-size: 13px; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #d8ebc6;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
}
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.hero-glow-one { width: 260px; height: 260px; right: 130px; top: 60px; background: rgba(185,231,126,.38); }
.hero-glow-two { width: 150px; height: 150px; right: 4px; bottom: 150px; background: rgba(250,143,116,.2); }

.hero-snapshot {
  position: relative;
  z-index: 2;
  padding: 28px;
  border: 1px solid rgba(196, 210, 199, .8);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 32px 80px rgba(36, 73, 62, .13);
  backdrop-filter: blur(12px);
  transform: rotate(1.5deg);
}
.snapshot-top { display: flex; justify-content: space-between; align-items: center; }
.route-pill { padding: 8px 12px; border-radius: 999px; background: var(--paper); font-weight: 850; letter-spacing: .06em; font-size: 13px; }
.route-pill b { margin: 0 6px; color: var(--coral); }
.snapshot-label { color: #89938f; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.snapshot-score-row { margin: 27px 0 24px; display: flex; align-items: center; gap: 20px; }
.mini-score, .score-ring {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--score) * 1%), #e8ede7 0);
}
.mini-score { width: 86px; height: 86px; }
.mini-score::before, .score-ring::before { content: ""; grid-area: 1/1; border-radius: 50%; background: white; }
.mini-score::before { width: 68px; height: 68px; }
.mini-score span { grid-area: 1/1; z-index: 1; font-family: Georgia, serif; font-size: 32px; }
.snapshot-kicker { margin: 0 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.snapshot-rating { margin: 0; font-family: Georgia, serif; font-size: 27px; }
.snapshot-bars { display: grid; gap: 10px; }
.snapshot-bars div { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 12px; color: #65726f; font-size: 12px; }
.snapshot-bars i { height: 7px; overflow: hidden; border-radius: 99px; background: #e9eee8; }
.snapshot-bars b { display: block; height: 100%; border-radius: inherit; background: var(--green-2); }
.snapshot-tip { margin: 22px 0 0; padding: 14px; border-radius: 14px; background: #eff7e8; color: #37544c; font-size: 12px; line-height: 1.45; }
.snapshot-tip span { margin-right: 6px; color: #78a947; }

.builder-wrap {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 40px), var(--max));
  margin: -74px auto 110px;
}
.stepper {
  width: min(620px, 90%);
  margin: 0 auto 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper > i { flex: 1; height: 1px; margin: 0 10px; background: #cbd5cd; }
.step { display: flex; align-items: center; gap: 9px; color: #89938f; white-space: nowrap; }
.step span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #bdc8c0; border-radius: 50%; font-size: 12px; font-weight: 800; }
.step b { font-size: 12px; }
.step.is-active { color: var(--green); }
.step.is-active span { border-color: var(--green); background: var(--green); color: white; }
.step.is-done { color: var(--green-2); }
.step.is-done span { border-color: var(--lime); background: var(--lime); color: var(--green); }

.app-panel {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #dbe3dc;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.panel-heading.compact { padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.section-kicker { margin: 0 0 8px; color: #7a8985; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.panel-heading h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -.035em; }
.panel-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.mode-toggle { display: flex; padding: 4px; border-radius: 999px; background: #f0f3ef; }
.mode-toggle button { padding: 9px 15px; border: 0; border-radius: 999px; background: transparent; color: #73807d; cursor: pointer; font-size: 12px; font-weight: 750; white-space: nowrap; }
.mode-toggle button.is-selected { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(20,45,40,.1); }

.itinerary-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.itinerary-grid.is-comparing { grid-template-columns: 1fr 1fr; align-items: start; }
.itinerary-card { padding: 25px; border: 1px solid var(--line); border-radius: 21px; background: #fbfcfa; min-width: 0; }
.itinerary-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.itinerary-title-row > div { display: flex; align-items: center; gap: 10px; }
.itinerary-title-row h3 { margin: 0; font-size: 16px; }
.option-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--mint); color: var(--green); font-size: 12px; font-weight: 900; }
.option-badge-alt { background: #e8e4fa; color: #554d8f; }
.itinerary-summary { color: #7d8986; font-size: 11px; font-weight: 750; }
.segments { display: grid; gap: 14px; }
.segment-card { position: relative; padding: 18px; border: 1px solid #e0e6e0; border-radius: 16px; background: #fff; }
.segment-head { margin-bottom: 15px; display: flex; align-items: center; }
.segment-number { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--green); color: white; font-size: 10px; font-weight: 850; }
.segment-route-label { color: #52625e; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.remove-segment { margin-left: auto; border: 0; background: transparent; color: #a0584d; font-size: 11px; cursor: pointer; }
.segment-card:only-child .remove-segment { display: none; }
.airport-row { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: end; gap: 9px; }
.flight-arrow { display: grid; place-items: center; height: 43px; color: #91a09b; }
label { color: #53625f; font-size: 11px; font-weight: 750; }
.combobox-wrap { position: relative; display: block; margin-top: 6px; }
input, select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cfd9d1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 13px;
}
input { padding: 10px 11px; }
select { padding: 9px 34px 9px 11px; }
input:focus, select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34,91,80,.12); }
input.is-invalid, select.is-invalid { border-color: #ca604e; box-shadow: 0 0 0 3px rgba(202,96,78,.11); }
.airport-input.has-code { padding-right: 55px; }
.airport-code-chip { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 3px 5px; border-radius: 5px; background: #e7f2dd; color: var(--green); font-size: 10px; font-weight: 900; }
.airport-code-chip:empty { display: none; }
.suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #d7e0d8;
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 45px rgba(19, 48, 42, .16);
}
.suggestion { width: 100%; padding: 10px 11px; display: grid; grid-template-columns: 42px 1fr; gap: 8px; border: 0; border-bottom: 1px solid #edf0ed; background: white; text-align: left; cursor: pointer; }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion.is-focused { background: #f0f7e9; }
.suggestion-code { color: var(--green); font-weight: 900; font-size: 12px; }
.suggestion-copy { min-width: 0; }
.suggestion-copy b, .suggestion-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy b { color: var(--ink); font-size: 12px; }
.suggestion-copy small { margin-top: 2px; color: #7a8783; font-size: 10px; }
.no-suggestions { display: block; padding: 12px; color: var(--muted); font-size: 11px; }
.time-row { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-row label input { margin-top: 6px; }
.field-hint { margin: 8px 0 0; color: #8b9693; font-size: 10px; }
.add-segment { width: 100%; margin-top: 13px; padding: 11px; border: 1px dashed #becac0; border-radius: 12px; background: transparent; color: var(--green-2); cursor: pointer; font-size: 11px; font-weight: 800; }
.add-segment:hover { background: #f1f7ed; }
.cabin-row { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cabin-row select { margin-top: 6px; }
.form-message { min-height: 20px; margin-top: 14px; color: #ad4e40; font-size: 12px; font-weight: 650; }
.panel-actions { margin-top: 16px; padding-top: 21px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.panel-actions .text-button { margin-right: auto; }
.primary-button, .secondary-button, .text-button { min-height: 45px; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 13px; }
.primary-button { padding: 12px 19px; border: 1px solid var(--green); background: var(--green); color: white; box-shadow: 0 8px 20px rgba(21,63,57,.18); }
.primary-button:hover { background: var(--green-2); }
.primary-button span { margin-left: 8px; }
.secondary-button { padding: 11px 17px; border: 1px solid #c7d1c9; background: white; color: var(--green); }
.secondary-button:hover { background: #f4f7f2; }
.text-button { padding: 8px 4px; border: 0; background: transparent; color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { margin: 13px 0 0; color: #84908c; text-align: right; font-size: 10px; }
.privacy-note span { margin-right: 5px; color: #7eb05b; }

.quiz-panel { max-width: 880px; margin: auto; }
.quiz-time { flex: none; padding: 8px 12px; border-radius: 999px; background: #f0f5ec; color: #5e746d; font-size: 11px; font-weight: 750; }
.question-block { margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); }
.question-block legend { width: 100%; margin: 0 0 16px; color: var(--ink); font-size: 15px; font-weight: 800; }
.question-block legend > span { margin-right: 10px; color: #8aa17f; font-size: 10px; letter-spacing: .1em; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { min-height: 76px; padding: 14px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #d5ddd6; border-radius: 12px; background: #fff; transition: .15s ease; }
.choice-card b { color: var(--ink); font-size: 12px; }
.choice-card small { margin-top: 4px; color: #7a8783; font-size: 10px; font-weight: 500; line-height: 1.35; }
.choice-card input:checked + span { border-color: var(--green-2); background: #eff7e8; box-shadow: inset 0 0 0 1px var(--green-2); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(34,91,80,.18); }
.compact-choices .choice-card > span { min-height: 52px; }
.sleep-times, .dual-question { display: grid; align-items: end; gap: 12px; }
.sleep-times { grid-template-columns: 1fr 28px 1fr; }
.sleep-times > span { display: grid; place-items: center; height: 43px; color: #8a9692; }
.sleep-times input, .dual-question select { margin-top: 6px; }
.dual-question { grid-template-columns: 1fr 1fr; }

.result-panel { max-width: 1040px; margin: auto; }
.result-hero { padding-bottom: 31px; display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; border-bottom: 1px solid var(--line); }
.score-ring { width: 172px; height: 172px; }
.score-ring::before { width: 140px; height: 140px; }
.score-ring-content { grid-area: 1/1; z-index: 1; text-align: center; }
.score-ring-content strong { display: block; font-family: Georgia, serif; font-size: 52px; line-height: .9; font-weight: 500; }
.score-ring-content span { color: #788581; font-size: 11px; font-weight: 750; }
.result-route { margin: 0 0 9px; color: var(--green-2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.result-hero h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 56px); font-weight: 500; letter-spacing: -.045em; }
.result-hero h2 span { color: var(--coral); }
.result-summary { max-width: 600px; margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-chips span { padding: 7px 10px; border-radius: 8px; background: #f0f4ef; color: #53625e; font-size: 10px; font-weight: 750; }
.result-columns { margin-top: 30px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.result-section h3 { margin: 0 0 15px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.score-list { display: grid; gap: 14px; }
.score-row { display: grid; grid-template-columns: 145px 1fr 32px; align-items: center; gap: 10px; }
.score-row > span { color: #53625e; font-size: 11px; font-weight: 750; }
.score-row > b { font-size: 11px; text-align: right; }
.score-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e8eee7; }
.score-track i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--bar-color, var(--green-2)); }
.why-list, .tip-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.why-list li, .tip-list li { position: relative; padding: 13px 14px 13px 37px; border-radius: 12px; background: #f6f8f4; color: #52605d; font-size: 12px; line-height: 1.45; }
.why-list li::before { content: "•"; position: absolute; left: 17px; top: 10px; color: var(--coral); font-size: 20px; }
.tip-list li { background: #eff7e8; }
.tip-list li::before { content: "✦"; position: absolute; left: 14px; top: 13px; color: #719a4e; }
.tips-section { margin-top: 24px; }
.result-disclaimer { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #89938f; font-size: 10px; line-height: 1.5; }
.result-actions { margin-top: 25px; display: flex; align-items: center; gap: 12px; }
.result-actions .primary-button { margin-left: auto; }

.comparison-callout { margin-bottom: 26px; padding: 22px 24px; border-radius: 17px; background: var(--green); color: white; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.comparison-callout p { margin: 0 0 4px; color: #c9dad5; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.comparison-callout h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.comparison-difference { flex: none; padding: 11px 15px; border-radius: 12px; background: rgba(255,255,255,.11); text-align: center; }
.comparison-difference b { display: block; color: var(--lime); font-size: 24px; }
.comparison-difference span { color: #c8d8d4; font-size: 9px; }
.compare-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-result-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.compare-result-card.is-winner { border-color: #9cc47a; box-shadow: inset 0 4px 0 var(--lime); }
.compare-card-top { display: flex; align-items: center; gap: 13px; }
.compare-score { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #eef3ec; font-family: Georgia, serif; font-size: 28px; }
.compare-card-top p { margin: 0 0 3px; color: #798581; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.compare-card-top h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.winner-tag { margin-left: auto; align-self: flex-start; padding: 5px 8px; border-radius: 7px; background: var(--mint); color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.compare-metrics { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.compare-metrics span { padding: 6px 8px; border-radius: 7px; background: #f3f5f2; color: #64716e; font-size: 9px; }
.compare-score-list { display: grid; gap: 9px; }
.compare-score-row { display: grid; grid-template-columns: 100px 1fr 24px; align-items: center; gap: 8px; color: #61706c; font-size: 9px; font-weight: 750; }
.compare-score-row i { height: 6px; overflow: hidden; border-radius: 99px; background: #e9eee8; }
.compare-score-row i b { display: block; height: 100%; width: var(--value); border-radius: inherit; background: var(--green-2); }
.compare-why { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.compare-why p { margin: 0; color: #63716d; font-size: 11px; line-height: 1.5; }
.compare-tip-panel { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-tip-panel > div { padding: 18px; border-radius: 15px; background: #f1f7ec; }
.compare-tip-panel h4 { margin: 0 0 8px; font-size: 12px; }
.compare-tip-panel p { margin: 0; color: #5e6c68; font-size: 11px; line-height: 1.5; }

.how-section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 115px; }
.section-intro { max-width: 710px; margin-bottom: 45px; }
.section-intro h2 { margin: 0 0 17px; font-family: Georgia, serif; font-size: clamp(37px, 5vw, 54px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 590px; color: var(--muted); line-height: 1.65; }
.factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.factor-grid article { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
.factor-grid article > span { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 25px; border-radius: 11px; background: var(--mint); color: var(--green); font-size: 19px; }
.factor-grid article:nth-child(2) > span, .factor-grid article:nth-child(5) > span { background: #eeeafa; color: #5e5790; }
.factor-grid article:nth-child(3) > span, .factor-grid article:nth-child(6) > span { background: #fbe8df; color: #a25846; }
.factor-grid h3 { margin: 0 0 8px; font-size: 15px; }
.factor-grid p { margin: 0; color: #687572; font-size: 12px; line-height: 1.55; }

.method-section { padding: 75px max(20px, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; background: var(--green); color: white; }
.method-section h2 { max-width: 550px; margin: 0; font-family: Georgia, serif; font-size: clamp(35px, 4.8vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.method-copy > p { margin: 36px 0 30px; color: #c3d2ce; line-height: 1.7; font-size: 14px; }
.method-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-points span { padding: 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; color: #b5c9c3; font-size: 10px; line-height: 1.4; }
.method-points b { display: block; margin-bottom: 5px; color: var(--lime); font-size: 12px; }

footer { padding: 38px max(20px, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 30px; background: #0d2925; color: #b7c9c4; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand { color: white; }
footer p { margin: 0; font-size: 12px; }
.footer-small { grid-column: 1 / -1; color: #78908a; font-size: 9px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 38px; }
  .hero-copy { max-width: 760px; }
  .hero-snapshot { width: min(430px, 90%); margin: 0 auto; }
  .builder-wrap { margin-top: -70px; }
  .itinerary-grid.is-comparing { grid-template-columns: 1fr; }
  .result-columns { grid-template-columns: 1fr; }
  .factor-grid { grid-template-columns: repeat(2, 1fr); }
  .method-section { grid-template-columns: 1fr; gap: 20px; }
  .method-copy > p { margin-top: 0; }
}

@media (max-width: 650px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); height: 72px; }
  .header-nav a:not(.header-cta) { display: none; }
  .header-nav .header-cta { padding: 9px 12px; font-size: 11px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { width: min(calc(100% - 28px), var(--max)); padding: 35px 0 115px; }
  .hero h1 { font-size: clamp(45px, 15vw, 62px); }
  .hero-lede { font-size: 16px; }
  .trust-row { gap: 10px 16px; }
  .hero-snapshot { width: 96%; padding: 22px; }
  .builder-wrap { width: min(calc(100% - 20px), var(--max)); margin-bottom: 85px; }
  .step b { display: none; }
  .stepper { width: 200px; }
  .app-panel { padding: 22px 16px; border-radius: 22px; }
  .panel-heading { flex-direction: column; gap: 18px; }
  .panel-heading .mode-toggle { align-self: stretch; }
  .mode-toggle button { flex: 1; }
  .itinerary-card { padding: 16px 12px; }
  .segment-card { padding: 14px 11px; }
  .airport-row { grid-template-columns: 1fr; }
  .flight-arrow { height: 20px; justify-content: start; transform: rotate(90deg); margin-left: 8px; }
  .time-row, .cabin-row { grid-template-columns: 1fr; }
  .panel-actions { flex-wrap: wrap; }
  .panel-actions .text-button { width: 100%; order: 3; margin: 0; }
  .panel-actions .primary-button, .panel-actions .secondary-button { flex: 1; }
  .privacy-note { text-align: center; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .choice-card > span { min-height: 57px; }
  .sleep-times { grid-template-columns: 1fr; }
  .sleep-times > span { height: 12px; transform: rotate(90deg); }
  .dual-question { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; text-align: center; }
  .score-ring { margin: auto; }
  .metric-chips { justify-content: center; }
  .score-row { grid-template-columns: 116px 1fr 28px; }
  .result-actions { flex-wrap: wrap; }
  .result-actions button { flex: 1; white-space: nowrap; }
  .result-actions .primary-button { flex-basis: 100%; margin: 0; order: -1; }
  .comparison-callout { flex-direction: column; align-items: flex-start; }
  .comparison-difference { align-self: stretch; }
  .compare-result-grid, .compare-tip-panel { grid-template-columns: 1fr; }
  .factor-grid { grid-template-columns: 1fr; }
  .factor-grid article { min-height: 0; }
  .method-section { padding-top: 55px; padding-bottom: 55px; }
  .method-points { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; }
  .site-header, .hero, .stepper, .result-actions, .how-section, .method-section, footer { display: none !important; }
  .builder-wrap { width: 100%; margin: 0; }
  .app-panel { padding: 0; border: 0; box-shadow: none; }
  .result-panel { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Theme v2 — night-sky flight intelligence */
:root {
  --ink: #0b1d2e;
  --muted: #607184;
  --paper: #edf2f7;
  --card: #ffffff;
  --line: #dbe3ec;
  --green: #145ff5;
  --green-2: #0b4bd1;
  --mint: #e2edff;
  --lime: #c8ff72;
  --coral: #ff9a6c;
  --lavender: #c7d7ff;
  --yellow: #ffd66b;
  --shadow: 0 28px 80px rgba(8, 31, 55, .13);
  --radius: 22px;
}

body {
  background:
    linear-gradient(180deg, #f7f9fc 0, var(--paper) 34%, #f4f7fa 100%);
  color: var(--ink);
}

.site-header { height: 92px; }
.brand { color: #0b1d2e; font-size: 19px; letter-spacing: -.045em; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #0b1d2e;
  color: var(--lime);
  box-shadow: 0 7px 18px rgba(11, 29, 46, .16);
}
.header-nav { gap: 27px; }
.header-nav a { color: #536577; }
.header-nav a:hover { color: var(--green); }
.header-nav .header-cta {
  border: 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 95, 245, .2);
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 590px;
  margin: 0 auto;
  padding: 74px 70px 165px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr);
  gap: 78px;
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(50, 131, 255, .35), transparent 31%),
    radial-gradient(circle at 15% 110%, rgba(52, 221, 193, .16), transparent 35%),
    linear-gradient(135deg, #061726 0%, #0b2944 58%, #0b3653 100%);
  box-shadow: 0 35px 90px rgba(7, 26, 45, .2);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 72%);
}
.hero .eyebrow { color: #a8bfd4; }
.hero .eyebrow > span { background: var(--lime); }
.hero h1 {
  max-width: 690px;
  color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(50px, 6.1vw, 78px);
  line-height: .98;
  font-weight: 760;
  letter-spacing: -.065em;
}
.hero h1 em { color: #9bc5ff; font-style: normal; font-weight: inherit; }
.hero-lede { max-width: 610px; color: #b9ccdc; font-size: 17px; }
.hero-lede strong { color: #fff; }
.trust-row { color: #b4c6d5; }
.trust-row i { background: rgba(200,255,114,.14); color: var(--lime); }
.hero-glow { filter: blur(10px); }
.hero-glow-one { right: -40px; top: -70px; background: rgba(64, 135, 255, .2); }
.hero-glow-two { right: 34%; bottom: -100px; background: rgba(83, 233, 205, .12); }

.hero-snapshot {
  padding: 27px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.075);
  box-shadow: 0 25px 65px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  transform: rotate(0);
}
.route-pill { background: rgba(255,255,255,.1); color: #fff; }
.route-pill b { color: var(--lime); }
.snapshot-label, .snapshot-kicker { color: #8fa8ba; }
.snapshot-rating { color: #fff; font-family: inherit; font-weight: 700; }
.mini-score { background: conic-gradient(var(--lime) calc(var(--score) * 1%), rgba(255,255,255,.11) 0); }
.mini-score::before { background: #102d46; }
.mini-score span { color: #fff; font-family: inherit; font-weight: 800; }
.snapshot-bars div { color: #a8bdcd; }
.snapshot-bars i { background: rgba(255,255,255,.11); }
.snapshot-bars b { background: #70a7ff; }
.snapshot-tip { background: rgba(200,255,114,.09); color: #d7e9c0; }
.snapshot-tip span { color: var(--lime); }

.builder-wrap { margin-top: -105px; }
.stepper { margin-bottom: 16px; }
.step { color: #718294; }
.step.is-active span { border-color: var(--green); background: var(--green); }
.step.is-done span { border-color: #b2e960; background: var(--lime); color: #183b20; }

.app-panel {
  border-color: rgba(207, 219, 231, .9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.panel-heading h2,
.section-intro h2,
.method-section h2,
.result-hero h2,
.result-section h3 {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 740;
  letter-spacing: -.045em;
}
.section-kicker { color: var(--green); }
.mode-toggle { background: #edf2f7; }
.mode-toggle button.is-selected { color: var(--green); }
.itinerary-card { border-color: #d8e1eb; border-radius: 16px; background: #f8fafc; }
.option-badge { border-radius: 7px; background: #dce9ff; color: var(--green); }
.option-badge-alt { background: #efe7ff; color: #7657bd; }
.segment-card { border-color: #dde5ed; border-radius: 13px; }
.segment-number { background: #0b1d2e; }
input, select { border-color: #cdd8e3; border-radius: 8px; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,95,245,.12); }
.airport-code-chip { background: #e4edff; color: var(--green); }
.suggestion:hover, .suggestion.is-focused { background: #edf4ff; }
.suggestion-code { color: var(--green); }
.add-segment { border-color: #aabed2; color: var(--green); }
.add-segment:hover { background: #eef4ff; }
.cabin-row { grid-template-columns: repeat(3, 1fr); }
.primary-button { border-color: var(--green); background: var(--green); box-shadow: 0 9px 22px rgba(20,95,245,.2); }
.primary-button:hover { background: var(--green-2); }
.secondary-button { color: var(--green-2); }
.text-button { color: var(--green); }
.privacy-note span { color: #4cbf9e; }

.quiz-panel { max-width: 920px; }
.quiz-time { background: #edf3ff; color: var(--green-2); }
.question-block legend > span { color: var(--green); }
.choice-card > span { border-radius: 10px; }
.choice-card input:checked + span { border-color: var(--green); background: #edf4ff; box-shadow: inset 0 0 0 1px var(--green); }
.choice-card input:focus-visible + span { outline-color: rgba(20,95,245,.2); }
.profile-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.profile-select-grid select { margin-top: 6px; }

.score-ring { background: conic-gradient(var(--coral) calc(var(--score) * 1%), #e7edf3 0); }
.result-hero h2 span { color: var(--green); }
.metric-chips span { background: #edf3f9; }
.why-list li::before { color: var(--green); }
.tip-list li { background: #eef6ff; }
.tip-list li::before { color: var(--green); }
.comparison-callout { background: #071f36; }
.comparison-difference b { color: var(--lime); }
.compare-result-card.is-winner { border-color: #8fb8ff; box-shadow: inset 0 4px 0 var(--green); }
.winner-tag { background: #e2edff; color: var(--green-2); }
.compare-tip-panel > div { background: #eef5ff; }

.how-section { margin-top: 0; }
.factor-grid article { border-color: #d8e1ea; border-radius: 15px; background: rgba(255,255,255,.78); }
.factor-grid article > span { background: #e1ebff; color: var(--green); }
.factor-grid article:nth-child(2) > span, .factor-grid article:nth-child(5) > span { background: #e9e4ff; color: #6e57b4; }
.factor-grid article:nth-child(3) > span, .factor-grid article:nth-child(6) > span { background: #ffeadf; color: #bd6748; }

.tools-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 115px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(12, 37, 62, .08);
}
.tools-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.tools-heading-row h2 { max-width: 620px; margin: 0; font-size: clamp(34px, 4.5vw, 51px); line-height: 1.02; letter-spacing: -.055em; }
.tools-heading-row > a { flex: none; color: var(--green); text-decoration: none; font-size: 12px; font-weight: 800; }
.tool-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-link-grid > a { min-height: 245px; padding: 22px; display: flex; flex-direction: column; border: 1px solid #dce4ec; border-radius: 14px; background: #f9fbfd; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-link-grid > a:hover { transform: translateY(-4px); border-color: #91b7ff; box-shadow: 0 15px 32px rgba(20,95,245,.1); }
.tool-link-grid span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #e4edff; color: var(--green); font-size: 10px; font-weight: 900; }
.tool-link-grid h3 { margin: 36px 0 9px; font-size: 16px; }
.tool-link-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tool-link-grid b { margin-top: auto; padding-top: 18px; color: var(--green); font-size: 11px; }

.method-section { background: #071a2d; }
.method-points b { color: var(--lime); }
.method-link { display: inline-block; margin-top: 24px; color: #a9c8ff; text-decoration: none; font-size: 12px; font-weight: 800; }
footer { background: #051523; }
footer a { color: inherit; }

@media (max-width: 1050px) {
  .tool-link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding: 62px 50px 170px; gap: 40px; }
  .hero-snapshot { width: min(470px, 92%); }
  .builder-wrap { margin-top: -112px; }
}

@media (max-width: 650px) {
  .hero { width: min(calc(100% - 16px), var(--max)); padding: 48px 22px 145px; border-radius: 23px; }
  .hero h1 { font-size: clamp(44px, 14vw, 59px); }
  .builder-wrap { margin-top: -95px; }
  .cabin-row, .profile-select-grid { grid-template-columns: 1fr; }
  .tools-section { width: min(calc(100% - 20px), var(--max)); padding: 27px 17px; }
  .tools-heading-row { align-items: flex-start; flex-direction: column; }
  .tool-link-grid { grid-template-columns: 1fr; }
  .tool-link-grid > a { min-height: 205px; }
}

@media print {
  .site-header, .hero, .stepper, .result-actions, .how-section, .tools-section, .method-section, footer { display: none !important; }
}
