/* Calm light canvas, white cards, one mint action color, pill controls and
   circles. The only dark object on the page is the departures board. */
:root {
  --blue: #116eee;
  --blue-bg: #e8f1fe;
  --mint: #ffc83d;
  --mint-press: #f4b61f;
  --mint-bg: #e3fcf1;
  --mint-ink: #0a7a4b;
  --charcoal: #252b2f;
  --slate: #666e7e;
  --border: #d6dee6;
  --line: #e6edf4;
  --mist: #f2f7fd;
  --white: #ffffff;
  --coral: #e5484d;
  --coral-bg: #fdecec;
  --violet: #5a3cc4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  --radius-card: 16px;
  --radius-input: 5px;
  --radius-pill: 45px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
  color: var(--charcoal); background: var(--mist); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  padding: 10px 22px; font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary { background: var(--mint); color: var(--charcoal); }
@media (hover: hover) { .btn-primary:hover { background: var(--mint-press); } }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
@media (hover: hover) { .btn-outline:hover { background: var(--blue-bg); } }
.btn-ghost { color: var(--charcoal); background: transparent; }
@media (hover: hover) { .btn-ghost:hover { background: var(--mist); } }
.btn-lg { padding: 13px 30px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: -.3px; }
.brand-name .logo { display: block; height: 28px; width: auto; }
.brand-name .logo-white { display: none; }
.brand-tag { font-size: 12px; font-weight: 500; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links .btn { padding: 8px 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.hero h1 { font-size: 48px; line-height: 1.1; font-weight: 800; margin: 0 0 18px; letter-spacing: -.5px; }
.lead { font-size: 18px; line-height: 1.65; color: #3d454b; margin: 0 0 28px; max-width: 520px; }
.fn { text-decoration: none; font-weight: 700; padding: 0 1px; }
.footnote { font-size: 12.5px; color: var(--slate); margin: 14px 0 0; }
.stat-line { font-size: 14px; color: var(--slate); margin: 16px 0 0; max-width: 540px; line-height: 1.6; }
.stat-line b { color: var(--charcoal); }

.search { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; max-width: 540px; background: var(--white); }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: var(--radius-input); background: var(--white); font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 80px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 110, 238, .15); }
.field input.code-input { direction: ltr; text-align: right; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; }
.search-alt { margin: 12px 0 0; font-size: 14px; color: var(--slate); }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; font-size: 14px; }
.form-error { color: var(--coral); font-size: 14px; }
.form-error:not(:empty) { margin-top: 10px; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
.white-band { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head.start { text-align: start; margin: 0 0 28px; max-width: 720px; }
.section-head h2 { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 0 0 8px; }
.section-head p { color: var(--slate); margin: 0; font-size: 17px; }


/* ---------- How it works ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.demo { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 18px 22px; display: flex; flex-direction: column; counter-increment: step; }
.demo-num { display: none; }
.demo h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; line-height: 1.35; }
.demo h3::before { content: counter(step) ". "; color: var(--blue); }
.demo p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.6; }
.demo-ui { order: -1; background: var(--mist); border-radius: 12px; padding: 16px; margin-bottom: 18px; min-height: 164px; display: grid; gap: 8px; align-content: center; }
.mini-input { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-input); height: 40px; padding: 0 12px; display: flex; align-items: center; font-weight: 700; font-size: 15px; }
.mini-input.ltr-val { direction: ltr; justify-content: flex-end; letter-spacing: .5px; }
.mini-btn { background: var(--mint); border-radius: var(--radius-pill); height: 40px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.mini-q { font-weight: 700; font-size: 14px; }
.mini-paper { background: #fbfcfe; border: 1px solid var(--border); font-size: 13px; line-height: 1.75; align-content: start; gap: 0; color: #3d454b; }
mark { background: var(--mint-bg); color: var(--mint-ink); border-radius: 3px; padding: 0 3px; }

/* ---------- Law comparison ---------- */

.closing { padding: 44px 0 52px; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 32px; }
.closing-inner p { margin: 0; font-size: 20px; font-weight: 700; }

/* ---------- Result: boarding pass ---------- */
.result-wrap { padding: 48px 0 16px; scroll-margin-top: 64px; }
#how, #rights, #board { scroll-margin-top: 64px; }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.card { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px; }
.pass { padding: 0; overflow: hidden; position: relative; }
.pass-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; gap: 12px; }
.pass-airline { font-weight: 700; }
.pass-meta { color: var(--slate); font-size: 14px; }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 22px 22px; position: relative; }
.ap { text-align: center; min-width: 84px; }
.ap-code { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: 1px; }
.ap-city { display: block; font-size: 14px; color: var(--slate); margin-top: 6px; }
.ap-time { display: block; font-size: 13px; font-weight: 700; margin-top: 2px; }
.route-box { position: relative; height: 86px; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.route-svg .track { stroke: var(--border); stroke-width: 2; stroke-dasharray: 2 7; }
.route-svg .progress { stroke: var(--blue); stroke-width: 2.4; }
.route-dot { position: absolute; top: calc(70 / 86 * 100%); width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.route-dot.start { left: calc(292 / 300 * 100%); }
.route-dot.end { left: calc(8 / 300 * 100%); }
.route-plane { position: absolute; top: 0; left: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; color: var(--blue); opacity: 0; will-change: transform; }
.route-plane svg { width: 100%; height: 100%; fill: currentColor; }
.stamp {
  position: absolute; top: 58px; left: 50%; translate: -50% 0; rotate: -7deg;
  border: 2.5px solid currentColor; border-radius: 10px; padding: 4px 14px; font-weight: 800; font-size: 18px;
  background: rgba(255,255,255,.85); opacity: 0; scale: 1.6; transition: opacity .35s ease, scale .35s cubic-bezier(.2, 1.4, .4, 1);
}
.stamp.show { opacity: 1; scale: 1; }
.stamp.cancel { color: var(--coral); }
.stamp.delay { color: var(--violet); }
.stamp.ok { color: var(--slate); }
.perf { position: relative; height: 0; border-top: 2px dashed var(--border); margin: 0 18px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); }
.perf::before { right: -32px; }
.perf::after { left: -32px; }
.pass-bottom { padding: 20px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.verdict-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: var(--radius-pill); padding: 4px 12px; white-space: nowrap; }
.v-likely { background: var(--mint-bg); color: var(--mint-ink); }
.v-possible { background: var(--blue-bg); color: var(--blue); }
.v-unknown { background: var(--mist); color: var(--slate); }
.v-no { background: var(--coral-bg); color: #b4232a; }
.amount-label { font-size: 13px; color: var(--slate); }
.amount-big { font-size: 40px; font-weight: 800; line-height: 1.1; direction: ltr; text-align: right; word-spacing: -.12em; }
.amount-sub { font-size: 14px; color: var(--slate); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--white); cursor: pointer; font-size: 20px; font-weight: 700; color: var(--blue); }
.stepper button:hover { background: var(--mist); }
.stepper span { min-width: 36px; text-align: center; font-weight: 800; }
.stepper-label { font-size: 13px; color: var(--slate); display: block; margin-bottom: 4px; text-align: center; }
.law-line { grid-column: 1 / -1; font-size: 14px; color: var(--slate); border-top: 1px solid var(--mist); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.law-line b { color: var(--charcoal); }

.q-card h3, .letter-card h3, .why-card h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 4px; }
.q-card > p, .letter-card > p { color: var(--slate); margin: 0 0 14px; font-size: 15px; }
.q { padding: 14px 0; border-top: 1px solid var(--mist); }
.q:first-of-type { border-top: 0; }
.q-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; line-height: 1.3; }
@media (hover: hover) { .chip:hover { border-color: var(--blue); } }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 700; }
.demo .chip { cursor: default; font-size: 13px; padding: 6px 12px; }

.why-card { margin-top: 24px; }
.why-list { list-style: none; padding: 0; margin: 10px 0 0; }
.why-list li { position: relative; padding-inline-start: 26px; margin: 8px 0; font-size: 15px; line-height: 1.55; }
.why-list li::before { content: ""; position: absolute; right: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint-bg); box-shadow: inset 0 0 0 4px #11c47e; }
.why-list.todo li::before { background: var(--mist); box-shadow: inset 0 0 0 4px var(--border); }
details.more { margin-top: 12px; border-top: 1px solid var(--mist); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 14px; }
.regime { margin-top: 12px; padding: 12px 14px; background: var(--mist); border-radius: 12px; font-size: 14px; }
.regime-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }

.letter-card { margin-top: 24px; }
.letter-card > p.self-first { background: #fff7d6; color: #5c4a00; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; }
.letter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.letter-form .full { grid-column: 1 / -1; }
.seg { display: inline-flex; background: var(--mist); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 12px; }
.seg button { border: 0; background: none; border-radius: var(--radius-pill); padding: 6px 16px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--slate); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--charcoal); box-shadow: var(--shadow); }
.paper { background: #fbfcfe; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; max-height: 420px; overflow: auto; }
.paper[dir="ltr"] { text-align: left; }
.letter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.hint { font-size: 13px; color: var(--slate); }
.copied { color: var(--mint-ink); font-weight: 700; font-size: 14px; }
/* After the result: share with others on the flight, check another, watch a flight */
.after-card { margin-top: 24px; }
.after-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.after-card > p { color: var(--slate); margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.btn-wa { background: #25d366; color: #0b2e1a; }
@media (hover: hover) { .btn-wa:hover { background: #1fc05c; } }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.share-done { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.share-done p { margin: 0 0 12px; }
.watch-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.watch-fields .field.wide { grid-column: 1 / -1; }
.watch-form .check { font-size: 13.5px; color: var(--slate); }
.watch-form .form-error:empty { display: none; }
.watch-form .btn { margin-top: 4px; }
.watch-done p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; }
details.watch-more { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); text-align: start; }
details.watch-more summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: 15px; }
details.watch-more > p { color: var(--slate); font-size: 14.5px; margin: 10px 0 12px; }
.watch-wrap { max-width: 760px; }
@media (max-width: 600px) { .watch-fields { grid-template-columns: 1fr; } }
.matches { display: grid; gap: 10px; }
.match { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--white); cursor: pointer; text-align: start; width: 100%; }
.match:hover { border-color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 48px; }
.legal h1 { font-size: 32px; font-weight: 800; margin: 0 0 4px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 28px 0 6px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: #3d454b; }
.legal ul { padding-inline-start: 20px; }
.legal-meta { color: var(--slate) !important; font-size: 14px !important; margin: 0 0 8px; }
footer a { color: var(--slate); }

/* ---------- Claim dialog ---------- */
.claim-steps { display: flex; gap: 6px; margin: 2px 0 18px; font-size: 13px; color: var(--slate); }
.claim-steps span { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--mist); }
.claim-steps span.on { background: var(--blue); color: var(--white); font-weight: 700; }
.claim-step[hidden], .claim-steps[hidden], .dialog-actions .btn[hidden] { display: none; }
.field .help { font-size: 12.5px; color: var(--slate); margin-top: 4px; }
.summary-box { background: var(--mist); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
.summary-box b { font-weight: 800; }
.poa-box { max-height: 220px; font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--mist); border-radius: 8px; margin-top: 6px; }
.file-drop { border: 1.5px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; color: var(--slate); font-size: 14.5px; cursor: pointer; display: block; }
.file-drop:hover { border-color: var(--blue); color: var(--blue); }
.done { text-align: center; padding: 10px 0 4px; }
.done .ref { font-size: 28px; font-weight: 800; letter-spacing: 1px; direction: ltr; display: inline-block; margin: 6px 0 10px; }
.cta-choice { display: grid; gap: 10px; }
.next-box { text-align: right; background: #eaf6ef; border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; font-size: 15px; line-height: 1.65; }
.next-box p { margin: 0 0 12px; }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Customer case page (/case/<token>) ---------- */
.case-page { max-width: 640px; padding-top: 28px; padding-bottom: 48px; }
.case-page h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.case-meta { color: var(--slate); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.case-status { border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.case-status.todo { background: #fff7d6; }
.case-status.ok { background: #eaf6ef; }
.case-card { margin-bottom: 14px; }
.case-card h2 { display: flex; gap: 8px; align-items: center; font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.case-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: #3d454b; }
.case-card .tick { color: var(--mint-ink); }
.case-card .tick[hidden] { display: none; }
.case-page .file-drop { padding: 20px; font-size: 16px; font-weight: 700; color: var(--blue); border-color: var(--blue); }
.case-page .file-list li { align-items: center; }
.mail-help { margin-top: 14px; padding: 14px 16px; background: var(--mist); border-radius: 12px; font-size: 14.5px; line-height: 1.6; }
.mail-help > p { margin: 0 0 10px; }
.mail-help .hint { margin: 8px 0 0; }
.mail-help-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail-help .search-term { font-weight: 800; font-size: 17px; letter-spacing: .5px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.mail-help details.more { border-top-color: var(--border); }
.mail-help details.more ul { margin: 8px 0 0; padding-inline-start: 18px; }
.mail-help details.more li { margin-bottom: 6px; }
.pnr-row { display: flex; gap: 8px; align-items: flex-end; }
.pnr-row .field { flex: 1; }

/* ---------- Footer ---------- */
footer { padding: 36px 0 56px; color: var(--slate); font-size: 14px; background: var(--white); border-top: 1px solid var(--line); }
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 4px 0; max-width: 620px; }

/* ---------- Manual dialog ---------- */
dialog { border: 0; border-radius: var(--radius-card); padding: 0; width: min(560px, calc(100% - 24px)); box-shadow: 0 24px 64px rgba(20, 24, 27, .28); color: var(--charcoal); }
dialog::backdrop { background: rgba(37, 43, 47, .45); }
.dialog-body { padding: 24px; }
.dialog-body h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.dialog-body > p { margin: 0 0 16px; color: var(--slate); font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .result-grid, .demo-grid { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .ap-code { font-size: 30px; }
  .ap { min-width: 62px; }
  .route-box { height: 60px; }
  .pass-top { flex-wrap: wrap; }
  .stamp { top: 64px; font-size: 16px; }
  .amount-big { font-size: 32px; }
  .pass-bottom { grid-template-columns: 1fr; }
  .letter-form, .grid-2 { grid-template-columns: 1fr; }
  .closing-inner p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
