:root {
  --ink: #15232e;
  --ink-2: #1e3140;
  --ink-3: #2b4253;
  --gold: #c9a25a;
  --gold-soft: #e3c992;
  --gold-text: #7a5c1f;
  --blush: #ead3bf;
  --paper: #faf8f4;
  --paper-2: #f2eee6;
  --line: #e3dccf;
  --text: #1b2731;
  --muted: #55626c;
  --on-ink: #f4efe6;
  --on-ink-muted: #b9c2c9;
  --ok: #2f6b4f;
  --danger: #a3362b;

  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Outfit", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-script: "Pinyon Script", cursive;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(21, 35, 46, .06), 0 12px 32px -12px rgba(21, 35, 46, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid rgba(201, 162, 90, .25);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-word {
  font: 400 34px/1 var(--f-display);
  color: var(--gold-soft);
  letter-spacing: .01em;
}
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blush); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--on-ink);
  padding: 10px 12px; border-radius: var(--r-sm);
}
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--gold-soft); }
.head-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(201, 162, 90, .55); color: var(--gold-soft);
  text-decoration: none; font-size: 15px; white-space: nowrap;
}
.head-call:hover { background: rgba(201, 162, 90, .12); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .nav { display: none; }
  .head-call { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink); padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(201, 162, 90, .25);
  }
  .nav.open a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); cursor: pointer;
  }
}
@media (max-width: 420px) { .head-call .hc-num { display: none; } .site-head .wrap { gap: 12px; } }

/* Hero calculator */
.hero { background: var(--ink); color: var(--on-ink); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  min-height: min(760px, calc(100dvh - 72px));
}
.panel { padding: 36px var(--gutter) 40px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.tagline { font: 400 28px/1.1 var(--f-script); color: var(--gold-soft); margin: 0 0 8px; }
.hero h1 {
  font: 400 clamp(28px, 2.5vw, 34px)/1.15 var(--f-display);
  margin: 0 0 14px; letter-spacing: -.005em; color: #fff;
}
.lede { color: var(--on-ink-muted); margin: 0 0 22px; max-width: 44ch; font-size: 16px; }

.calc { display: grid; gap: 14px; }
.field { position: relative; }
.field label, .legend { display: block; font-size: 13px; color: var(--on-ink-muted); margin-bottom: 6px; letter-spacing: .02em; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px 12px 44px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-md);
  color: #fff; font-size: 16px;
}
.input::placeholder { color: #8796a1; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 90, .25); }
.field .pin { position: absolute; left: 15px; top: 40px; width: 16px; height: 16px; pointer-events: none; }
.pin-a { border-radius: 50%; border: 2px solid var(--gold); }
.pin-b { background: var(--gold); border-radius: 3px; }
.locate {
  position: absolute; right: 6px; top: 31px; height: 40px; padding: 0 10px;
  background: none; border: 0; color: var(--gold-soft); font-size: 13px; cursor: pointer; border-radius: var(--r-sm);
}
.locate:hover { background: rgba(255,255,255,.06); }
#pickup { padding-right: 132px; text-overflow: ellipsis; }
.input { text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--ink-3); color: var(--on-ink); font-size: 14px;
}
.chip:hover { border-color: var(--gold); }
.chip .mono { color: var(--gold-soft); margin-left: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select, .dt {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff; font-size: 16px;
  color-scheme: dark;
}
.select:focus, .dt:focus { outline: none; border-color: var(--gold); }
.when-toggle { display: flex; gap: 6px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-md); padding: 4px; min-height: 52px; }
.when-toggle button {
  flex: 1; border: 0; background: none; color: var(--on-ink-muted); border-radius: 10px; cursor: pointer; font-size: 15px;
}
.when-toggle button[aria-pressed="true"] { background: var(--ink-3); color: #fff; }
#dt-wrap[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: var(--r-md); border: 0; cursor: pointer;
  font-weight: 500; font-size: 17px; text-decoration: none;
  transition: transform .15s var(--ease), background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: rgba(21,35,46,.05); }
.btn[disabled] { opacity: .55; cursor: progress; }
.calc .btn { width: 100%; margin-top: 4px; }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--on-ink-muted); margin: 0; }
.form-msg.err { color: #f2bfb4; }

/* Suggestions (combobox) */
.sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; margin: 0; padding: 6px; border-radius: var(--r-md);
  background: #fff; color: var(--text); box-shadow: var(--shadow); max-height: 300px; overflow: auto;
}
.sugg[hidden] { display: none; }
.sugg li { padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.3; }
.sugg li small { display: block; color: var(--muted); font-size: 13px; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--paper-2); }

/* Map side */
.map-side { position: relative; background: #d9dcd6; min-height: 420px; }
#map { position: absolute; inset: 0; }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: 24px; font-size: 15px;
}
.leaflet-container { font-family: var(--f-body); background: #e6e4dc; }

/* Receipt */
.receipt {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); z-index: 500;
  width: min(380px, calc(100% - 32px));
  background: var(--paper); color: var(--text); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgba(21, 35, 46, .55);
  padding: 22px 22px 18px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.receipt.show { opacity: 1; transform: none; pointer-events: auto; }
.receipt-route { font-size: 14px; color: var(--muted); margin: 0 0 14px; display: grid; gap: 4px; }
.receipt-route span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-route b { color: var(--text); font-weight: 500; }
.fare-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.fare-big .label { font-size: 14px; color: var(--muted); }
.fare-big .amount { font: 500 40px/1 var(--f-mono); color: var(--ink); letter-spacing: -.03em; }
.fare-basis { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.compare {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted);
}
.compare .mono { color: var(--text); font-size: 15px; }
.compare small { display: block; font-size: 12px; }
.compare a { color: var(--gold-text); }
.receipt-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.receipt-actions .btn { min-height: 50px; font-size: 16px; padding: 0 16px; }
.receipt-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .panel { padding: 32px var(--gutter) 28px; }
  .map-side { min-height: 0; display: flex; flex-direction: column; }
  #map { position: relative; height: 300px; }
  .receipt { position: relative; right: auto; bottom: auto; width: auto; margin: -28px var(--gutter) 24px; display: none; }
  .receipt.show { display: block; }
  .map-fallback { position: absolute; inset: 0 0 auto 0; height: 300px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  font: 400 clamp(28px, 3.2vw, 40px)/1.15 var(--f-display);
  margin: 0 0 16px; color: var(--ink); letter-spacing: -.005em;
}
.section .intro { max-width: 62ch; color: var(--muted); margin: 0 0 40px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Rates table */
.rates { width: 100%; border-collapse: collapse; font-size: 16px; }
.rates th, .rates td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 0; }
.rates td.num, .rates th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.rates .mono { font-size: 17px; }
.rates .dift { color: var(--ink); font-weight: 500; }
.rates .bcp { color: var(--muted); }
.rates small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; font-family: var(--f-body); }
.source { font-size: 14px; color: var(--muted); margin-top: 18px; }
.source a { color: var(--gold-text); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.facts li { padding-left: 20px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.facts b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .rates .hours { display: none; }
  .rates th, .rates td { padding-right: 8px; }
}

/* Airports */
.airports { background: var(--ink); color: var(--on-ink); }
.airports h2 { color: #fff; }
.airports .intro { color: var(--on-ink-muted); }
.ap-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(201,162,90,.35); }
.ap { padding: 36px 32px 36px 0; display: grid; gap: 12px; }
.ap + .ap { border-left: 1px solid rgba(201,162,90,.35); padding-left: 32px; }
.ap h3 { font: 400 26px/1.2 var(--f-display); margin: 0; color: #fff; }
.ap .price { font: 500 clamp(52px, 7vw, 84px)/1 var(--f-mono); color: var(--gold-soft); letter-spacing: -.04em; }
.ap p { margin: 0; color: var(--on-ink-muted); max-width: 40ch; }
.ap .btn { justify-self: start; margin-top: 8px; }
.ap-notes { margin-top: 32px; color: var(--on-ink-muted); font-size: 15px; display: grid; gap: 6px; max-width: 70ch; }
@media (max-width: 720px) {
  .ap-list { grid-template-columns: 1fr; }
  .ap + .ap { border-left: 0; padding-left: 0; border-top: 1px solid rgba(201,162,90,.35); }
}

/* Safety */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 500 15px/1 var(--f-mono); color: var(--gold-text); padding-top: 6px; }
.steps h3 { margin: 0 0 4px; font-size: 19px; font-weight: 500; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); }
.pledge { font: 400 clamp(22px, 2.4vw, 28px)/1.35 var(--f-display); color: var(--ink); margin: 0 0 20px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold-text); border-bottom: 1.5px solid var(--gold-text);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
.faq .a p { margin: 0 0 10px; }

/* Book */
.book { background: var(--paper-2); }
.book-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } .book-actions .btn { flex: 1 1 100%; } }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); padding: 48px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot .brand-word { font-size: 40px; }
.site-foot .tagline { font-size: 24px; margin: 6px 0 0; }
.site-foot h2 { font: 500 13px/1 var(--f-body); color: var(--on-ink); margin: 0 0 14px; letter-spacing: .04em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-ink-muted); text-decoration: none; }
.site-foot a:hover { color: var(--gold-soft); }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Document pages (terms, privacy) */
.doc-head { background: var(--ink); color: var(--on-ink); padding: 56px 0 44px; }
.doc-head h1 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--f-display); margin: 0 0 10px; color: #fff; }
.doc-head p { margin: 0; color: var(--on-ink-muted); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding: 56px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { font: 400 24px/1.25 var(--f-display); color: var(--ink); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33414c; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }
.todo { background: #fbefd9; color: #6b4d12; padding: 1px 6px; border-radius: 4px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

/* Reveal entrance */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.prose { overflow-wrap: anywhere; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 12px; } }

@media (min-width: 861px) { .split > div:first-child { position: sticky; top: 112px; } }
