:root {
  --ink: #14213d;
  --muted: #5c6b80;
  --line: #e3e8ef;
  --bg: #f4f6f9;
  --accent: #0f766e;
  --accent-dark: #0b5b55;
  --soft: #e6f4f2;
  --r: 18px;
  --r-btn: 26px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.links a:hover { color: var(--accent); }
nav.links a.pill { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--r-btn); font-weight: 600; }
nav.links a.pill:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 720px) { nav.links a.hide-sm { display: none; } nav.links { gap: 14px; } }

/* sections */
section { padding: 72px 0; }
section.tint { background: var(--bg); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p.lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }

/* hero */
.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: var(--r-btn); border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* phone mock of the quote email */
.mock { background: #fff; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(20,33,61,.25), 0 0 0 1px var(--line); padding: 22px; max-width: 380px; justify-self: center; width: 100%; }
.mock .from { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.mock .from b { color: var(--ink); }
.flight { background: var(--soft); border-radius: 14px; padding: 16px 18px; }
.flight .k { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--accent); }
.route { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.route .ap { font-size: 26px; font-weight: 800; }
.route .mid { font-size: 12px; color: var(--muted); text-align: center; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .name { font-weight: 700; }
.plan .sub { font-size: 13px; color: var(--muted); }
.plan .price { font-weight: 800; font-size: 18px; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }

/* forward box */
.forward { background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 28px; }
.addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 14px 0 18px; }
.addr code { font-family: var(--mono); font-size: clamp(16px, 2.4vw, 20px); font-weight: 700; color: var(--ink); word-break: break-all; }
.copy { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }

/* grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.tile { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
section.tint .tile { box-shadow: none; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.big { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--accent); line-height: 1.1; }

/* tabs for mail apps */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { background: var(--bg); border: 0; border-radius: 20px; padding: 8px 14px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabpanel ol { margin: 0; padding-left: 20px; }
.tabpanel li { margin-bottom: 6px; }
.tabpanel[hidden] { display: none; }

/* airlines */
.airlines { display: flex; flex-wrap: wrap; gap: 14px; }
.airline { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px 18px; font-weight: 600; }
.airline .code { font-family: var(--mono); background: var(--soft); color: var(--accent); border-radius: 8px; padding: 4px 8px; font-size: 14px; font-weight: 700; }
.airline.soon { color: var(--muted); font-weight: 500; box-shadow: 0 0 0 1px var(--line) inset; background: transparent; border: 1px dashed var(--line); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* card issuers page */
.dark-hero { background: #111c2e; color: #fff; }
.dark-hero .lede, .dark-hero p { color: #c8d1de; }
.dark-hero .eyebrow { color: #5eead4; }
.dark-hero h1, .dark-hero h2, .dark-hero h3 { color: #fff; }
.dark-hero.hero, section.dark-hero:first-of-type { padding: 88px 0 80px; }
.btn.ghost.light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn.ghost.light:hover { background: rgba(255,255,255,.08); }
.board { background: #0a1220; border: 1px solid #22314a; border-radius: 16px; padding: 18px 20px; overflow-x: auto; }
.board table { font: 13px/1.5 var(--mono); color: #e2e8f0; min-width: 440px; }
.board th { color: #7d8ba1; font-weight: 500; letter-spacing: 1.2px; border-bottom: 1px solid #22314a; }
.board td { border-bottom: 1px solid #1a2639; padding: 12px 12px 12px 0; }
.board tr:last-child td { border-bottom: 0; }
.board .late { color: #f87171; font-weight: 700; } .board .ok { color: #5eead4; font-weight: 700; }
.points > div { padding: 14px 0; border-top: 1px solid var(--line); }
.points > div:first-child { border-top: 0; }
.stat-panel { background: #111c2e; color: #c8d1de; border-radius: var(--r); padding: 36px; }
.big.light { color: #5eead4; }
.fine.light { color: #8d9bb0; }
.tile.dark { background: #111c2e; color: #c8d1de; }
.tile.dark a { color: #5eead4; }
.phones { display: grid; gap: 18px; margin-top: 32px; }
.phones.five { grid-template-columns: repeat(5, 1fr); }
.phones.four { grid-template-columns: repeat(4, 1fr); }
.phones.three { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
@media (max-width: 960px) { .phones.five, .phones.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phones.five, .phones.four, .phones.three { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; } }
.phones figure { margin: 0; }
.phones img { display: block; width: 100%; border-radius: 22px; background: #1e2a44; box-shadow: 0 20px 40px -18px rgba(20,33,61,.35); }
.phones figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }
.phones figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.dot { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; align-items: center; justify-content: center; margin-right: 8px; vertical-align: 1px; }
.dot.alert { background: #dc2626; }
.time { display: inline-block; font: 700 12px var(--mono); letter-spacing: 1px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.time.late { background: #dc2626; }
.kpis > div { padding: 16px 0; border-top: 1px solid var(--line); }
.kpis > div:first-child { border-top: 0; padding-top: 4px; }
.bar-row { display: grid; grid-template-columns: 1.3fr 1.5fr auto; gap: 12px; align-items: center; font-size: 14px; padding: 8px 0; }
.bar { background: var(--bg); border-radius: 6px; height: 22px; }
.bar i { display: block; height: 100%; border-radius: 6px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr auto; } .bar { grid-column: 1 / -1; grid-row: 2; } }
.calc label { display: block; font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.choices button { background: var(--bg); border: 0; border-radius: 20px; padding: 9px 16px; font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.choices button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.result { display: flex; flex-direction: column; background: var(--soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.pushes { list-style: none; counter-reset: p; padding: 0; margin: 0; }
.pushes li { counter-increment: p; padding: 10px 0 10px 40px; position: relative; border-top: 1px solid var(--line); color: var(--muted); }
.pushes li:first-child { border-top: 0; }
.pushes li::before { content: counter(p); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pushes b { color: var(--ink); margin-right: 6px; }
.callout { background: var(--soft); border-radius: 14px; padding: 16px 18px; font-size: 15px; }
.callout.dark { background: #111c2e; color: #fff; font-weight: 600; }
.tile.glass { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tile.glass .time { background: #5eead4; color: #111c2e; }
.accent-text { color: #5eead4 !important; }
.light-muted { color: #8d9bb0; font-size: 15px; }

/* footer */
footer.site { background: var(--ink); color: #c8d1de; padding: 48px 0 40px; font-size: 14px; }
footer.site a { color: #fff; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer.site .logo { color: #fff; }
footer.site .logo span { color: #5eead4; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; }
footer.site .cols div { display: flex; flex-direction: column; gap: 6px; }
footer.site .legal { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 8px; color: #8d9bb0; font-size: 13px; }
.board th { text-align: left; text-transform: uppercase; font-size: 11px; }
@media (max-width: 560px) {
  .board { padding: 12px 14px; }
  .board table { min-width: 0; font-size: 11.5px; }
  .board th:nth-child(4), .board td:nth-child(4), .board th:nth-child(2), .board td:nth-child(2) { display: none; }
  .board td { padding: 10px 8px 10px 0; }
}
.amount { display: flex; align-items: center; border: 1px solid #cfd7e2; border-radius: 12px; background: #fff; margin-bottom: 20px; overflow: hidden; }
.amount:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.amount span { padding: 0 4px 0 14px; font-size: 22px; font-weight: 700; color: var(--muted); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; font: 800 24px var(--font); color: var(--ink); padding: 10px 6px; background: transparent; }
.amount select { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--bg); font: 600 15px var(--font); color: var(--ink); padding: 0 14px; align-self: stretch; width: auto; }
.amount.small { width: 110px; margin: 0; flex: none; }
.amount.small span { padding: 0 14px 0 0; }
.amount.small input { padding-left: 14px; }
.takeup-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.takeup-row .choices { margin: 0; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.result-row > div { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.result-row b { font-size: 20px; }
.grid2 > *, .grid3 > * { min-width: 0; }
.amount input { width: 100%; }

/* legal pages */
.legal-doc h1 { font-size: clamp(30px, 4.4vw, 44px); }
.legal-doc h2 { font-size: 21px; letter-spacing: -0.2px; margin: 34px 0 10px; }
.legal-doc p, .legal-doc li { color: #2f3d52; }
.legal-doc ul { padding-left: 20px; margin: 0 0 14px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc table { margin: 8px 0 14px; }
.doc-meta { font-size: 14px; color: var(--muted) !important; }
.draft { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.callout.key { margin: 22px 0 8px; line-height: 1.6; }

/* API reference */
.api pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 13px/1.55 var(--mono); margin: 8px 0 16px; }
.api code { font-family: var(--mono); font-size: 0.92em; background: var(--soft); border-radius: 5px; padding: 1px 5px; word-break: break-word; }
.api pre code { background: none; padding: 0; font-size: inherit; word-break: normal; }
.api .ep { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 30px 0 6px; }
.api .ep h3 { margin: 0; font: 700 16px/1.4 var(--mono); word-break: break-all; }
.api .verb { font: 700 12px/1 var(--mono); color: #fff; background: var(--accent); border-radius: 6px; padding: 5px 7px; }
.api .verb.get { background: #2563eb; }
.api table { width: 100%; border-collapse: collapse; font-size: 14px; }
.api th, .api td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.api .dir { font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); margin-top: 44px; }

/* Terms text exported from the app (legal.body) */
.legal-doc .meta { font-size: 14px; color: var(--muted); }
.legal-doc .key { background: var(--soft); border-radius: 14px; padding: 16px 18px; font-size: 15px; margin: 22px 0 8px; line-height: 1.6; }

/* Carousel: one step at a time, swipe or use the buttons (issuers page journeys) */
.carousel { margin-top: 28px; position: relative; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 0; border-radius: 22px; }
.car-track::-webkit-scrollbar { display: none; }
.carousel .slide { box-sizing: border-box; flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; padding: 8px 4px 24px; }
.carousel .slide img { display: block; width: 100%; border-radius: 22px; background: #1e2a44; box-shadow: 0 20px 40px -18px rgba(20,33,61,.35); }
.carousel figcaption { max-width: 460px; }
.carousel figcaption h3 { font-size: 26px; line-height: 1.2; margin: 10px 0 10px; letter-spacing: -0.3px; }
.carousel figcaption p { font-size: 17px; color: var(--muted); margin: 0; }
.carousel .step { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.car-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.car-nav .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.car-nav .arrow:disabled { opacity: .35; cursor: default; }
.car-steps { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.car-steps button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.car-steps button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .carousel .slide { grid-template-columns: 1fr; gap: 18px; justify-items: center; text-align: left; }
  .carousel .slide img { max-width: 260px; }
  .carousel figcaption h3 { font-size: 21px; }
  .carousel figcaption p { font-size: 15px; }
  .car-steps { display: none; }
  .car-nav { justify-content: center; }
  .car-count { font-size: 14px; color: var(--muted); min-width: 60px; text-align: center; }
}
@media (min-width: 761px) { .car-count { display: none; } }

/* API reference: who builds what, and the journey call by call */
.api .who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 8px; }
.api .who-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.api .who-card.you { border-top: 4px solid #7c3aed; }
.api .who-card.gt { border-top: 4px solid var(--accent); }
.api .who-card ul { padding-left: 18px; margin: 6px 0 0; } .api .who-card li { margin-bottom: 8px; font-size: 15px; }
.api .who-tag { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.api .who-card.you .who-tag { color: #7c3aed; } .api .who-card.gt .who-tag { color: var(--accent); }
.api .opt { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: #fef3c7; color: #92400e; border-radius: 5px; padding: 2px 6px; }
.api .journey { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; }
.api .journey li { position: relative; padding: 0 0 22px 44px; margin: 0; counter-increment: step; }
.api .journey li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.api .journey li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.api .journey li:last-child::after { display: none; }
.api .journey h3 { font-size: 17px; margin: 6px 0 4px; }
.api .journey p { margin: 0 0 4px; font-size: 15px; }
.api .lanes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
.api .lane { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.api .lane.card { background: #e0f2fe; color: #075985; }
.api .lane.you { background: #ede9fe; color: #5b21b6; }
.api .lane.gt { background: var(--soft); color: var(--accent); }
.api .lanes .arrow { color: var(--muted); font-weight: 700; }
.api .call { font-size: 13px !important; color: var(--muted); }
.api .builder { font-weight: 700; } .api .builder.you { color: #7c3aed; } .api .builder.gt { color: var(--accent); }
.api .meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.api .glance td:first-child { white-space: nowrap; }
@media (max-width: 700px) { .api .who { grid-template-columns: 1fr; } .api .glance td:first-child { white-space: normal; } .api .glance { display: block; overflow-x: auto; } }
