/* ==========================================================================
   TaxBackAir

   Design brief: this product asks strangers for money and for their booking
   documents. Every visual decision is therefore a trust decision. The look
   is deliberately closer to a payments company than to a claims agency —
   restrained palette, strong typography, generous space, real hierarchy.

   Constraint: the CSP is `default-src 'self'`, so no web fonts and no
   external assets. Everything below is system fonts, CSS and inline SVG.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */

:root {
  color-scheme: light dark;

  /* Ink. Not pure black — pure black on white reads as unstyled. */
  --ink-900: #0d1b2a;
  --ink-700: #1f3247;
  --ink-500: #4a5f75;
  --ink-400: #6b8199;
  --ink-300: #97a9bd;

  /* Surfaces. The page is warm off-white; cards sit above it in pure white. */
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: #dce4ed;
  --line-strong: #c3cfdd;

  /* Brand: a deep confident blue with a teal-leaning accent. */
  --brand-700: #0b3d6b;
  --brand-600: #0f5391;
  --brand-500: #1668b3;
  --brand-100: #e3eefa;
  --accent: #0e9c8a;
  --accent-100: #dff4f1;

  /* Semantic — one per engine verdict, so a NOT_RECOMMENDED result can
     never accidentally be styled like an accepted one. */
  --ok-bg: #e8f6ee;   --ok-line: #a8dcbe;  --ok-ink: #0d5c33;
  --info-bg: #e7f0fb; --info-line: #b3cef0; --info-ink: #10426f;
  --warn-bg: #fdf3e3; --warn-line: #f0d5a1; --warn-ink: #7a5210;
  --stop-bg: #fdeceb; --stop-line: #f3c0bd; --stop-ink: #8c231c;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 1px 3px rgba(13, 27, 42, .04);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, .07), 0 2px 4px rgba(13, 27, 42, .04);
  --shadow-lg: 0 18px 40px rgba(13, 27, 42, .10), 0 4px 12px rgba(13, 27, 42, .05);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-full: 999px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #eef4fa;
    --ink-700: #d3e0ec;
    --ink-500: #9db0c4;
    --ink-400: #7d93aa;
    --ink-300: #5f7590;

    --bg: #0c141d;
    --surface: #131f2b;
    --surface-2: #1a2937;
    --line: #24374a;
    --line-strong: #34506c;

    --brand-700: #a8ccf0;
    --brand-600: #7db4ea;
    --brand-500: #4f97dd;
    --brand-100: #16293d;
    --accent: #37c9b4;
    --accent-100: #10312e;

    --ok-bg: #102c1e;   --ok-line: #235d3d;  --ok-ink: #7fd6a4;
    --info-bg: #122436; --info-line: #24486e; --info-ink: #8fbdec;
    --warn-bg: #2e2410; --warn-line: #5d4a1e; --warn-ink: #e0bd77;
    --stop-bg: #301715; --stop-line: #6a2c27; --stop-ink: #eda19a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .55);
  }
}

/* ---------- reset ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand-100); color: var(--brand-700); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- typography -------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 660;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.012em; }

p { text-wrap: pretty; }
p + p { margin-top: .9em; }

a {
  color: var(--brand-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--brand-700); }

strong { font-weight: 640; color: var(--ink-900); }

.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--ink-500);
  max-width: 56ch;
}
.meta { font-size: .875rem; color: var(--ink-400); }
.tnum { font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* ---------- layout ------------------------------------------------------ */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(48px, 6vw, 84px); }
.stack > * + * { margin-top: 1rem; }

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.024em;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover { color: var(--ink-900); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 17px; height: 17px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--ink-500);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 520;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { color: var(--ink-900); background: var(--surface-2); }
.main-nav .btn { margin-left: 8px; }

/* ---------- hero -------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px);
  overflow: hidden;
}

/* Soft aurora behind the hero so the page is not a flat white sheet. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 620px;
  background:
    radial-gradient(46% 46% at 22% 34%, color-mix(in srgb, var(--brand-500) 16%, transparent), transparent 70%),
    radial-gradient(38% 42% at 82% 20%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-100);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 5px 13px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}
.eyebrow svg { width: 14px; height: 14px; }

.hero h1 { margin-bottom: 16px; }
.hero .sub {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem);
  color: var(--ink-500);
  max-width: 30ch;
  margin-bottom: 22px;
  font-weight: 420;
}

/* Price line: the single most reassuring fact on the page. */
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-top: 26px;
}
.price-line .amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-line .amount small {
  font-size: .82rem;
  font-weight: 520;
  color: var(--ink-400);
  letter-spacing: 0;
}
.price-line .divider { width: 1px; align-self: stretch; background: var(--line); }
.price-line .claim { font-size: .93rem; color: var(--ink-500); }
.price-line .claim b { color: var(--accent); font-weight: 660; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: .88rem;
  color: var(--ink-500);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- the form ---------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-md);
}

.form-card {
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-card::before {
  /* Thin brand rule along the top edge. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
}

.form-head { margin-bottom: 22px; }
.form-head h2 { font-size: 1.3rem; margin-bottom: 4px; }

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: .74rem;
  font-weight: 720;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: .84rem;
  font-weight: 620;
  color: var(--ink-700);
  margin-bottom: 6px;
  letter-spacing: -0.004em;
}
.field .help { font-size: .8rem; color: var(--ink-400); margin-top: 5px; }
.opt { font-weight: 450; color: var(--ink-300); }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
input::placeholder { color: var(--ink-300); }

input:hover, select:hover { border-color: var(--ink-300); }
input:focus, select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 18%, transparent);
}

select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b8199' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

input[type=file] {
  width: 100%;
  padding: 22px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  cursor: pointer;
  font-size: .9rem;
  color: var(--ink-500);
  transition: border-color .15s ease, background .15s ease;
}
input[type=file]:hover { border-color: var(--brand-500); background: var(--brand-100); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.check:hover { border-color: var(--line-strong); }
.check input[type=checkbox] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand-500);
  cursor: pointer;
}
.check label {
  font-size: .89rem;
  line-height: 1.5;
  color: var(--ink-700);
  cursor: pointer;
}

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  border: 0;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: .97rem;
  font-weight: 620;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.07); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn-block { width: 100%; padding-block: 15px; font-size: 1.02rem; }
.btn-sm { padding: 8px 15px; font-size: .88rem; }

.btn-ghost {
  background: transparent;
  color: var(--brand-600);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--brand-700); filter: none; }

@media (prefers-color-scheme: dark) {
  .btn { color: #08131d; }
  .btn:hover { color: #08131d; }
}

/* ---------- explainer sections ------------------------------------------
   This product sells something most visitors have never heard of and
   routinely confuse with delay/cancellation compensation. These blocks
   carry that explanation, so they get real visual weight rather than
   being small print.
   ------------------------------------------------------------------------ */

/* Alternating bands stop the long explainer from reading as one slab. */
.band { background: var(--surface); border-block: 1px solid var(--line); }

.section-title { margin-bottom: 10px; }
.section-title + .lead { margin-bottom: 28px; }

/* --- "this is not that" -------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.compare-col {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg);
}
.compare-col.is-not {
  border-color: var(--line);
  opacity: .82;
}
.compare-col.is-not p { color: var(--ink-400); }
.compare-col.is-us {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: var(--accent-100);
  box-shadow: var(--shadow-sm);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.compare-head h3 { margin: 0; font-size: 1.02rem; }
.compare-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
}
.is-not .compare-icon { background: var(--stop-bg); color: var(--stop-ink); }
.is-us  .compare-icon { background: var(--ok-bg);   color: var(--ok-ink); }
.is-us h3 { color: var(--ok-ink); }

/* --- fare vs taxes ------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 28px;
}
.split-part {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.split-part p { font-size: .95rem; color: var(--ink-500); margin: 0; }
.split-part.is-highlight {
  border-color: color-mix(in srgb, var(--brand-500) 40%, transparent);
  background: var(--brand-100);
  box-shadow: var(--shadow-md);
}
.split-part.is-highlight p { color: var(--ink-700); }

.split-tag {
  display: block;
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 9px;
}
.is-highlight .split-tag { color: var(--brand-600); }

.split-arrow {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-300);
  padding-inline: 4px;
}

.conclusion {
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.conclusion-main {
  font-size: clamp(1.02rem, .97rem + .4vw, 1.18rem);
  color: var(--ink-900);
  font-weight: 520;
  max-width: 68ch;
}
.conclusion-sub {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 640;
  font-size: .96rem;
}

/* --- the objection ------------------------------------------------------- */

.objection {
  position: relative;
  padding: 30px 32px 30px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.objection::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--brand-500), var(--accent));
}
.objection h2 {
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  margin-bottom: 14px;
}
.objection p { color: var(--ink-500); }
.objection strong { color: var(--ink-900); font-weight: 560; }

/* --- reasons ------------------------------------------------------------- */

.reason-list {
  list-style: none;
  padding: 0;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.reason-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .94rem;
  color: var(--ink-700);
}
.reason-list svg { color: var(--accent); flex: none; }

.cta-end {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

/* ---------- how it works ------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 34px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step h3 { margin-bottom: 7px; }
.step p { font-size: .93rem; color: var(--ink-500); }
.step-n {
  counter-increment: step;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid; place-items: center;
  font-weight: 720;
  font-size: .95rem;
  margin-bottom: 14px;
}
.step-n::before { content: counter(step); }

/* ---------- verdict cards ----------------------------------------------- */

.verdict {
  border: 1px solid;
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.verdict-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.verdict-icon svg { width: 22px; height: 22px; }
.verdict h2 { font-size: 1.3rem; margin-bottom: 8px; color: inherit; }
.verdict p { color: inherit; opacity: .9; }
.verdict-body { min-width: 0; }

.v-AUTO            { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok-ink); }
.v-RULES,
.v-MANUAL,
.v-LEGACY          { background: var(--info-bg); border-color: var(--info-line); color: var(--info-ink); }
.v-NOT_RECOMMENDED { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.v-INELIGIBLE      { background: var(--stop-bg); border-color: var(--stop-line); color: var(--stop-ink); }

.pill-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  border-radius: var(--r-full);
  padding: 3px 11px;
  font-size: .74rem;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- price breakdown --------------------------------------------- */

.breakdown {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 22px;
  box-shadow: var(--shadow-sm);
}
.breakdown dl { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.breakdown dt, .breakdown dd {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown dt { font-size: .93rem; color: var(--ink-500); }
.breakdown dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-900);
}
.breakdown dt:last-of-type, .breakdown dd:last-of-type { border-bottom: 0; }
.breakdown .zero { color: var(--accent); font-weight: 700; }

/* ---------- case header ------------------------------------------------- */

.case-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.ref-chip {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  font-size: .88rem;
  font-weight: 620;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: var(--r-sm);
  color: var(--ink-900);
}

/* ---------- messages ---------------------------------------------------- */

.errors {
  background: var(--stop-bg);
  border: 1px solid var(--stop-line);
  color: var(--stop-ink);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.errors ul { margin: 0; padding-left: 18px; }

.gap-warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: var(--r-md);
  padding: 15px 18px;
  margin: 20px 0;
  font-size: .92rem;
}

.policy-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-400);
}
.policy-note svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- content pages ----------------------------------------------- */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); }

.dl { display: grid; grid-template-columns: minmax(170px, 28%) 1fr; gap: 12px 22px; }
.dl dt { font-weight: 620; color: var(--ink-900); font-size: .93rem; }
.dl dd { color: var(--ink-500); }

.airline-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.airline-list a {
  display: block;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 540;
  color: var(--ink-700);
  transition: border-color .15s ease, transform .15s ease;
}
.airline-list a:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
  transform: translateX(2px);
}

/* ---------- footer ------------------------------------------------------ */

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 40px 32px;
  font-size: .9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: var(--ink-500); text-decoration: none; }
.footer-legal a:hover { color: var(--ink-900); text-decoration: underline; }

.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs a {
  color: var(--ink-400);
  text-decoration: none;
  font-size: .85rem;
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.footer-langs a:hover { color: var(--ink-900); background: var(--surface-2); }
.footer-langs a[aria-current="true"] {
  color: var(--ink-900);
  font-weight: 620;
  background: var(--surface-2);
  border-color: var(--line);
}

.footer-note { margin-top: 22px; color: var(--ink-400); max-width: 72ch; font-size: .85rem; }

/* ---------- admin ------------------------------------------------------- */

.admin-body { background: var(--bg); }
.admin-wrap { max-width: 1240px; margin-inline: auto; padding: 24px; }
.admin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.admin-nav a {
  color: var(--ink-500);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: .92rem;
}
.admin-nav a:hover { background: var(--surface-2); color: var(--ink-900); }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: var(--surface-2);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-400);
  font-weight: 660;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .02em;
}
.tag-AUTO, .tag-HIGH { background: var(--ok-bg); color: var(--ok-ink); }
.tag-RULES { background: var(--info-bg); color: var(--info-ink); }
.tag-MANUAL, .tag-LEGACY { background: var(--surface-2); color: var(--ink-400); }
.tag-MEDIUM, .tag-NOT_RECOMMENDED { background: var(--warn-bg); color: var(--warn-ink); }
.tag-LOW, .tag-INELIGIBLE { background: var(--stop-bg); color: var(--stop-ink); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat .v {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .k {
  color: var(--ink-400);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 620;
  margin-top: 4px;
}

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .sub { max-width: none; }
  .compare { grid-template-columns: 1fr; }
  /* Stack fare/taxes vertically and turn the "+" into a divider. */
  .split { grid-template-columns: 1fr; gap: 12px; }
  .split-arrow { justify-self: center; padding: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { padding-inline: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 3px 0; }
  .dl dd { margin-bottom: 14px; }
  .main-nav a:not(.btn) { display: none; }
  .verdict { flex-direction: column; gap: 14px; }
  .price-line .divider { display: none; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
