/* DelayOwed, "Clear Skies" theme */
:root {
  --bg: #eaf4ff;
  --sky: #dceeff;
  --surface: #ffffff;
  --ink: #0b1f3a;
  --muted: #41546e;
  --line: #d6e6fa;
  --brand: #0b63ce;
  --brand-dark: #084a9a;
  --brand-ink: #ffffff;
  --brand-soft: #e3effd;
  --good: #14532d;
  --good-soft: #e9f7ef;
  --warn: #8a4b00;
  --warn-soft: #fff3dc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --radius: 24px;
  --shadow: 0 30px 70px rgba(11, 99, 206, .13);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site { position: relative; z-index: 2; padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--brand); font-weight: 800; }
.logo svg { width: 44px; height: 34px; flex: none; }
header.site nav a { margin-left: 24px; text-decoration: none; color: #2b3f5c; font-size: 15px; }
header.site nav a:hover { color: var(--brand); }
@media (max-width: 680px) {
  header.site .wrap { flex-wrap: nowrap; }
  header.site nav { white-space: nowrap; }
  header.site nav a { margin-left: 0; }
  header.site nav a:not(:last-child) { display: none; }
}

/* Sky hero */
.sky { position: relative; background: var(--sky); padding-bottom: 96px; }
.sky-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .95; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 15%; bottom: 20%; }
.cloud::after { width: 40%; height: 120%; right: 12%; bottom: 25%; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.contrail { position: absolute; inset: 0; width: 100%; height: 420px; }
.contrail path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trail 9s ease-in-out infinite; }
@keyframes trail { 0% { stroke-dashoffset: 1600; opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.jet { position: absolute; left: 0; top: 0; width: 44px; height: 44px; offset-path: path('M -80 300 C 300 120, 700 80, 1500 40'); offset-rotate: auto; animation: jet 9s ease-in-out infinite; }
@keyframes jet { 0% { offset-distance: 0%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; padding-top: 48px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; margin: 0 0 20px; }
.hero h1 span { color: var(--brand); }
.hero p { color: #2b3f5c; font-size: 1.15rem; margin: 0 0 26px; max-width: 520px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero .badges span { background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float:focus-within { animation-play-state: paused; }

/* Cards and forms */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 24px 0; }
.sky .card { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--ink); background: #f3f8ff;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); background: #fff; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #f3f8ff; border-radius: 999px; padding: 8px 14px; cursor: pointer; margin: 0; }
.choices input { width: auto; margin: 0; accent-color: var(--brand); }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.check input { width: auto; accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 1.05rem; border: 0; border-radius: 999px; padding: 14px 26px; background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); color: var(--brand-ink); transform: translateY(-1px); }
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn.secondary:hover { background: #d3e5fb; color: var(--brand-dark); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }

/* Airport typeahead */
.ta { position: relative; }
.ta ul { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.ta li { padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.ta li[aria-selected="true"], .ta li:hover { background: var(--brand-soft); }
.ta li b { display: inline-block; min-width: 42px; color: var(--brand); }
.ta li small { color: var(--muted); }

/* Result */
.result { position: relative; margin-top: -48px; z-index: 1; animation: pop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.result.yes .verdict { background: var(--good-soft); color: var(--good); }
.result.maybe .verdict { background: var(--warn-soft); color: var(--warn); }
.result.no .verdict, .result.not_covered .verdict { background: var(--bad-soft); color: var(--bad); }
.verdict { border-radius: 18px; padding: 18px 20px; margin: 10px 0 6px; }
.verdict h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.amount { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; margin: 4px 0 0; line-height: 1.1; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 5px 11px; background: var(--brand-soft); color: var(--brand-dark); }
.pill.low { background: var(--good-soft); color: var(--good); }
.pill.medium { background: var(--warn-soft); color: var(--warn); }
.pill.high { background: var(--bad-soft); color: var(--bad); }
.notes { padding-left: 18px; margin: 10px 0; }
.notes li { margin: 6px 0; }
.cta { background: var(--sky); border-radius: 20px; padding: 20px; margin-top: 18px; }
.cta h3 { margin: 0 0 6px; letter-spacing: -.02em; }

/* Sections */
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.steps .card { margin: 0; }
.step-num { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }
.keep { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: center; }
.keep .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; margin: 2px 0 0; }
table.compare { width: 100%; border-collapse: collapse; margin-top: 18px; }
table.compare th, table.compare td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
.disclaimer { font-size: .88rem; color: var(--muted); }
footer.site { padding: 28px 0 44px; color: var(--muted); font-size: .88rem; }

/* Pack */
.letter { white-space: pre-wrap; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f7fbff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-height: 480px; overflow: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font: inherit; font-weight: 600; font-size: .92rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.page-head { position: relative; padding: 24px 0 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .contrail path { stroke-dashoffset: 0; }
  .jet { display: none; }
}
@media print {
  header.site, footer.site, .no-print, .tabs, .sky-fx { display: none !important; }
  .letter { max-height: none; border: 0; background: none; }
  .card { box-shadow: none; border: 0; }
  body, .sky { background: #fff; }
}
