/* Astral Pic site styles: reset, type, layout, header and footer, shared components, forms.
   Tokens live in tokens.css. App-only components live in app.css. Spacing is the 8px scale. */

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 1.125rem/var(--lh-body) var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-8); letter-spacing: -0.02em; margin-bottom: var(--sp-5); }
h2 { font-size: var(--fs-6); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-4); letter-spacing: 0; margin-bottom: var(--sp-2); }
h4, h5, h6 { font-size: var(--fs-2); letter-spacing: 0; margin-bottom: var(--sp-2); }
p { margin: 0 0 var(--sp-4); }
p, li { max-width: 66ch; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-1); }
nav li, nav p, .footer-cols li, .cred-badges li, .steps li, .breadcrumbs li, .toc li, .check-list li, .strips li, .tracker li, .faq li { max-width: none; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg { display: inline-block; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; }
address { font-style: normal; }
dl { margin: 0 0 var(--sp-4); }
dd { margin: 0; }
details summary { cursor: pointer; }
figure { margin: 0; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  padding: var(--sp-2) var(--sp-4); background: var(--paper); color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }
.tabular { font-variant-numeric: tabular-nums; }
.text-2 { color: var(--ink-2); }
.mt-5 { margin-top: var(--sp-5); }
.mb-5 { margin-bottom: var(--sp-5); }
.measure { max-width: 66ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-site); margin-inline: auto; padding-inline: var(--sp-5); width: 100%; }
.wrap-narrow { max-width: var(--max-narrow); }
.band { padding-block: var(--sp-9); }
.band-tint { background: var(--paper-2); }
.band-rule { border-top: 1px solid var(--line); }
.band > .wrap > h2:first-child, .band > .wrap > header h2 { margin-bottom: var(--sp-5); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-5); } /* items stretch to the row, so card edges, price tags and buttons line up */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
  height: 64px;
}
.site-header > .wrap { display: flex; align-items: center; gap: var(--sp-5); height: 64px; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: var(--fs-3);
  letter-spacing: 0; white-space: nowrap; flex: none;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.brand img, .brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn), .site-nav summary {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-2);
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav a:not(.btn):hover, .site-nav summary:hover { text-decoration: underline; text-underline-offset: .2em; color: var(--ink); }
.site-nav .nav-logout { padding: 0; color: var(--ink); font-weight: 500; font-size: var(--fs-2); text-decoration: none; }
.site-nav .nav-logout:hover { text-decoration: underline; text-underline-offset: .2em; color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--t-fast) var(--ease);
}
.nav-drop[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-drop ul {
  position: absolute; top: calc(100% + 4px); left: calc(-1 * var(--sp-3)); z-index: 60;
  min-width: 260px; margin: 0; padding: var(--sp-2); list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
}
.nav-drop ul a:not(.btn) { display: flex; width: 100%; padding: 0 var(--sp-3); border-radius: var(--r-control); }
.nav-drop ul a:not(.btn):hover { background: var(--paper-2); text-decoration: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--sp-3); margin-left: auto;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-control);
  color: var(--ink); font-weight: 500; font-size: var(--fs-2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  color: var(--ink); padding-block: var(--sp-8) var(--sp-6); font-size: var(--fs-2); line-height: var(--lh-ui);
}
.site-footer a { color: var(--accent); text-decoration: underline; }
.site-footer .brand { margin-bottom: var(--sp-3); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
.footer-cols h2, .footer-cols h3 { font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; margin: 0 0 var(--sp-3); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer-cols li { margin: 0; }
.footer-cols .soon { color: var(--ink-2); font-size: var(--fs-1); }
.footer-legal {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3) var(--sp-5);
  font-size: var(--fs-1); color: var(--ink-2);
}
.footer-legal p { margin: 0; max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-control);
  font: 500 var(--fs-2)/var(--lh-ui) var(--font); text-decoration: none; text-align: center;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  cursor: pointer; white-space: nowrap; vertical-align: middle;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #FFFFFF; }
.btn-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); }
.btn-quiet { border: 0; padding: 0 var(--sp-2); color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.btn-quiet:hover { color: var(--accent-2); text-decoration: underline; }
.btn-danger { border-color: var(--abort); color: var(--abort); background: transparent; }
.btn-danger:hover { background: var(--abort-tint); color: var(--abort); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-1); }
.btn-lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- Package card ---------- */
.pkg {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-5);
  background: var(--paper); margin: 0; min-width: 0;
}
.pkg:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pkg:has(input:focus-visible) { box-shadow: var(--focus); }
.pkg:has(input:checked):has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--accent), var(--focus); }
.pkg > label { cursor: pointer; }
.pkg > label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pkg input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg .btn, .pkg details, .pkg a { position: relative; z-index: 1; }
.pkg-name { margin: 0; font-size: var(--fs-4); }
.pkg-spec, .spec-list { list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: var(--fs-2); line-height: var(--lh-ui); }
.pkg-spec li, .spec-list li { padding-left: var(--sp-4); position: relative; margin-bottom: var(--sp-1); }
.pkg-spec li::before, .spec-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.pkg-time { color: var(--ink-2); font-size: var(--fs-1); margin: 0; }
.pkg details { font-size: var(--fs-1); color: var(--ink-2); }
.pkg details summary { font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: .15em; min-height: 32px; display: inline-flex; align-items: center; }
.pkg details ul { margin: var(--sp-2) 0 0; padding-left: 1.2em; }
.pkg .price-tag { margin-top: auto; }

/* ---------- Two-sided price tag ---------- */
.price-tag {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden;
  background: var(--paper); margin: 0;
}
.price-tag-cell { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-4); min-width: 0; }
.price-tag-pilot { background: var(--accent-tint); border-left: 1px solid var(--line); }
.price-tag-label { font-size: var(--fs-1); color: var(--ink-2); line-height: var(--lh-ui); }
.price-tag-value { font-family: var(--font); font-weight: 700; font-size: var(--fs-5); line-height: var(--lh-tight); font-variant-numeric: tabular-nums; color: var(--ink); }
.price-tag-sm .price-tag-cell { padding: var(--sp-2) var(--sp-3); }
.price-tag-sm .price-tag-value { font-size: var(--fs-3); }

/* ---------- Credential card ---------- */
.cred {
  position: relative; display: grid; grid-template-columns: 6px auto minmax(0, 1fr); gap: var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; background: var(--paper); margin: 0;
}
.cred-rail { display: block; width: 6px; align-self: stretch; margin: calc(-1 * var(--sp-4)) 0; background: var(--clear); }
.cred.is-pending .cred-rail { background: var(--hold); }
.cred-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-flex; align-items: center; justify-content: center; background: var(--paper-2);
}
.cred-photo-empty { background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: var(--fs-4); }
.cred-body { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.cred-name { margin: 0; font-size: var(--fs-4); }
.cred-meta { margin: 0; color: var(--ink-2); font-size: var(--fs-2); line-height: var(--lh-ui); }
.cred-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cred-badges li { margin: 0; }
.cred-stats { margin: 0; color: var(--ink-2); font-size: var(--fs-1); }
.seal { width: 20px; height: 20px; flex: none; }

/* ---------- Badges and notes ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-badge);
  font-size: var(--fs-1); font-weight: 500; line-height: var(--lh-ui); padding: 2px 8px; min-height: 24px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle;
}
.badge-clear { background: var(--clear-tint); color: var(--clear); }
.badge-hold { background: var(--hold-tint); color: var(--hold); }
.badge-abort { background: var(--abort-tint); color: var(--abort); }
.badge-accent { background: var(--accent-tint); color: var(--accent); }
.badge-neutral { background: var(--paper-2); color: var(--ink-2); }
.note {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-control);
  padding: var(--sp-4); background: var(--paper); margin: 0 0 var(--sp-4); font-size: var(--fs-2); line-height: var(--lh-body);
}
.note > :last-child { margin-bottom: 0; }
.note-warn { border-left-color: var(--hold); background: var(--hold-tint); }
.note-error { border-left-color: var(--abort); background: var(--abort-tint); }
.note-ok { border-left-color: var(--clear); background: var(--clear-tint); }

/* ---------- How it works ---------- */
/* Steps: a numbered list of hairline rows with a modest numeral. Used by "How it works" on the home,
   service, pilot and city pages. Markup: <ol class="steps"><li class="step"><h3>..</h3><p>..</p></li>. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; margin: 0; max-width: none; min-width: 0; padding: var(--sp-4) 0 var(--sp-4) 2.25rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: calc(var(--sp-4) - 2px);
  font-family: var(--font); font-weight: 700; font-size: var(--fs-4); line-height: 1.3;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.step:has(.step-num)::before { content: none; }
.step-num { position: absolute; left: 0; top: calc(var(--sp-4) - 2px); font-weight: 700; font-size: var(--fs-4); line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--accent); }
.step h3 { font-size: var(--fs-3); letter-spacing: 0; margin: 0 0 var(--sp-1); }
.step p { margin: 0; color: var(--ink-2); font-size: var(--fs-2); }
.step p + p { margin-top: var(--sp-2); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-bottom: var(--sp-5); }
.hero-copy p { font-size: var(--fs-4); color: var(--ink-2); }
.hero-media { margin: 0; min-width: 0; display: grid; grid-template-rows: auto auto; }
.hero-media img, .hero-media video {
  grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper-2); display: block;
}
.hero-media video { position: relative; z-index: 1; visibility: hidden; }
.hero-media.is-playing video { visibility: visible; }
.hero-caption { grid-row: 2; margin-top: var(--sp-2); font-size: var(--fs-1); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-note { margin: var(--sp-3) 0 0; font-size: var(--fs-1); color: var(--ink-2); }

/* ---------- Other marketing pieces ---------- */
.faq { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; font-weight: 600; font-size: var(--fs-3); min-height: 56px; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); margin-right: 4px; transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item > :not(summary) { padding-bottom: var(--sp-4); }
.faq-item p { color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 var(--sp-5); max-width: 100%; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--fs-2); line-height: var(--lh-ui); }
.price-table th, .price-table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.price-table th { font-weight: 600; }
.price-table thead th { border-bottom-color: var(--line-strong); }
.price-table th:first-child, .price-table td:first-child { padding-left: var(--sp-3); }
.price-table th:last-child, .price-table td:last-child { padding-right: var(--sp-3); }
.price-table tbody tr:nth-child(even) { background: var(--paper-2); }
.pilot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); }
.city-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-3) var(--sp-5); margin: 0 0 var(--sp-5); }
.city-facts > div { display: contents; }
.city-facts dt { font-weight: 600; }
.city-facts dd { margin: 0; color: var(--ink-2); max-width: 66ch; }
.supply-line { font-weight: 500; }
.prose { max-width: 66ch; }
.prose h2 { margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-2); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose table { font-size: var(--fs-2); line-height: var(--lh-ui); }
.prose th, .prose td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--line-strong); }
.prose img { border-radius: var(--r-card); border: 1px solid var(--line); }
.prose blockquote { margin: 0 0 var(--sp-4); padding-left: var(--sp-4); border-left: 4px solid var(--line); color: var(--ink-2); }
.updated { font-size: var(--fs-1); color: var(--ink-2); margin: 0 0 var(--sp-4); }
.breadcrumbs { font-size: var(--fs-1); color: var(--ink-2); margin: 0 0 var(--sp-5); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs li + li::before { content: "/"; padding: 0 var(--sp-2); color: var(--ink-3); }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-6); font-size: var(--fs-2); line-height: var(--lh-ui); }
.toc h2 { font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; margin: 0 0 var(--sp-2); }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--sp-1); }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 4px 0; }
.summary-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-control); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-6); font-size: var(--fs-2); }
.summary-box > :last-child { margin-bottom: 0; }
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--paper); border-top: 1px solid var(--line); padding: var(--sp-4) 0;
  font-size: var(--fs-2); line-height: var(--lh-ui);
}
.consent-banner > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); }
.consent-banner p { margin: 0; max-width: 66ch; }
.consent-banner-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.consent-sheet { font-size: var(--fs-2); line-height: var(--lh-body); }
.consent-sheet h2 { font-size: var(--fs-4); margin-bottom: var(--sp-3); }
.consent-sheet .check { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--sp-2) 0; margin: var(--sp-4) 0; }

/* ---------- Forms (GOV.UK pattern) ---------- */
.field { display: block; margin: 0 0 var(--sp-5); min-width: 0; }
.field-label { display: block; font-weight: 700; font-size: var(--fs-2); line-height: var(--lh-ui); margin-bottom: var(--sp-2); color: var(--ink); }
.field-label .optional { font-weight: 400; color: var(--ink-2); }
.field-hint { display: block; color: var(--ink-2); font-size: var(--fs-1); line-height: var(--lh-ui); margin: calc(-1 * var(--sp-1)) 0 var(--sp-2); max-width: 66ch; }
.field-error { display: block; color: var(--abort); font-size: var(--fs-1); font-weight: 600; line-height: var(--lh-ui); margin: 0 0 var(--sp-2); }
.field-error:empty { display: none; }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 44px; padding: 0 var(--sp-3);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-2); line-height: var(--lh-ui);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--ink); }
.textarea { min-height: 120px; padding: var(--sp-3); resize: vertical; line-height: var(--lh-body); }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2315202B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--sp-3) center;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"],
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border: 2px solid var(--abort); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--paper-2); color: var(--ink-2); cursor: not-allowed; }
.input[readonly] { background: var(--paper-2); }
.input-sm { max-width: 12ch; }
.input-md { max-width: 24ch; }
.input-prefix {
  display: flex; align-items: center; min-height: 44px; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-control); background: var(--paper);
}
.input-prefix::before { content: "$"; padding-left: var(--sp-3); color: var(--ink-2); font-weight: 500; }
.input-prefix .input { border: 0; min-height: 41px; flex: 1; padding-left: var(--sp-1); font-variant-numeric: tabular-nums; }
.input-prefix .input:focus { box-shadow: none; }
.input-prefix:focus-within { box-shadow: var(--focus); border-color: var(--ink); }
.input-prefix:has([aria-invalid="true"]) { border: 2px solid var(--abort); }
.check {
  display: flex; align-items: flex-start; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) 0;
  cursor: pointer; font-size: var(--fs-2); line-height: var(--lh-ui); max-width: 66ch;
}
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer;
}
.check input:focus-visible { box-shadow: var(--focus); border-radius: 3px; }
.check-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.check-list li { margin: 0; }
.radio-card {
  position: relative; display: flex; align-items: center; gap: var(--sp-3);
  min-height: 44px; padding: var(--sp-2) var(--sp-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--paper); cursor: pointer; font-size: var(--fs-2); line-height: var(--lh-ui); font-weight: 500;
}
.radio-card input[type="radio"], .radio-card input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 .5px var(--accent); }
.radio-card:has(input:focus-visible) { box-shadow: var(--focus); }
.radio-card:has(input:checked):has(input:focus-visible) { box-shadow: inset 0 0 0 .5px var(--accent), var(--focus); }
.radio-card .radio-card-hint { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--fs-1); }
.radio-group { display: grid; gap: var(--sp-2); }
.radio-group-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); min-width: 0; }
legend { padding: 0; font-weight: 700; font-size: var(--fs-2); line-height: var(--lh-ui); margin-bottom: var(--sp-2); color: var(--ink); }
legend.legend-lg { font-size: var(--fs-4); margin-bottom: var(--sp-4); }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 44px; margin: 0; }
input[type="range"]:focus-visible { box-shadow: var(--focus); border-radius: var(--r-badge); }
input[type="file"] { font-size: var(--fs-1); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 var(--sp-4); }

/* ---------- Dialog and toasts (shared with app pages; AP.ui uses them everywhere) ---------- */
.dialog {
  border: 0; border-radius: var(--r-card); padding: var(--sp-5); max-width: 480px; width: calc(100% - 32px);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-dialog);
  font-size: var(--fs-2); line-height: var(--lh-body); margin: auto;
}
.dialog::backdrop { background: rgba(21, 32, 43, .5); }
.dialog[open] { animation: ap-dialog-in var(--t-base) var(--ease); }
.dialog h2 { font-size: var(--fs-4); letter-spacing: 0; margin: 0 0 var(--sp-3); }
.dialog p { max-width: none; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
@keyframes ap-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast-host, .toast-host-assertive {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 80;
  display: grid; gap: var(--sp-2); width: min(360px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-control);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-2); line-height: var(--lh-ui);
  animation: ap-toast-in var(--t-base) var(--ease);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.toast-ok { border-left-color: var(--clear); }
.toast-warn { border-left-color: var(--hold); }
.toast-error { border-left-color: var(--abort); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }
@keyframes ap-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1119.98px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--sp-2) var(--sp-5) var(--sp-5);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-header.is-open .site-nav, .site-header:has(.nav-toggle[aria-expanded="true"]) .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border-bottom: 0; padding-top: var(--sp-4); }
  .site-nav a:not(.btn), .site-nav summary { display: flex; width: 100%; min-height: 48px; }
  .site-nav .btn { width: 100%; }
  .site-nav .nav-logout { justify-content: flex-start; min-height: 48px; }
  .nav-drop ul { position: static; min-width: 0; border: 0; border-radius: 0; padding: 0 0 var(--sp-2) var(--sp-4); }
  .hero { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-media { order: 2; }
  .hero-media video { display: none; }
}
@media (max-width: 699.98px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: var(--fs-5); }
  .hero-copy p { font-size: var(--fs-3); }
  .wrap { padding-inline: var(--sp-4); }
  .band { padding-block: var(--sp-7); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-block: var(--sp-7) var(--sp-5); }
  .hero-actions .btn { flex: 1 1 auto; }
  .price-table th, .price-table td { padding: var(--sp-2) var(--sp-3); }
  .table-wrap { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; container-type: scroll-state; }
  .table-wrap::-webkit-scrollbar { height: 6px; }
  .table-wrap::-webkit-scrollbar-track { background: transparent; }
  .table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-strip); }
  .table-wrap::before { content: "Scroll sideways to see the whole table"; content: "Scroll sideways to see the whole table" / ""; display: block; padding-bottom: var(--sp-2); font-size: var(--fs-1); line-height: var(--lh-ui); color: var(--ink-3); }
  @supports (container-type: scroll-state) {
    .table-wrap::before { display: none; }
    @container scroll-state(scrollable: x) { .table-wrap::before { display: block; } }
  }
  .table-wrap > table > caption:not(.visually-hidden) { max-width: calc(100vw - 2 * var(--sp-4)); position: sticky; left: 0; text-align: left; }
  .toast-host, .toast-host-assertive { right: var(--sp-4); left: var(--sp-4); width: auto; }
}
@media (max-width: 479.98px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .city-facts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1) 0; }
  .city-facts dd { margin-bottom: var(--sp-3); }
  .price-tag-value { font-size: var(--fs-4); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .consent-banner-actions .btn { flex: 1; }
  .dialog { padding: var(--sp-4); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print (legal and guide pages read well on paper) ---------- */
@media print {
  @page { margin: 2cm; }
  body { font-size: 11pt; line-height: 1.45; color: #000; background: #fff; }
  .site-header, .site-footer, .skip-link, .consent-banner, .nav-toggle, .toast-host, .btn, .hero-media video, .breadcrumbs { display: none !important; }
  .wrap, .prose, .wrap-narrow { max-width: none; padding: 0; }
  .band { padding-block: 0 1.5cm; }
  .band-tint { background: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  h3 { font-size: 13pt; break-after: avoid; }
  p, li { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; color: #444; }
  .toc, .summary-box, .note, table, .price-tag, .cred { break-inside: avoid; border-color: #999; }
  .toc { background: none; }
  .toc a::after { content: none; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
}

/* ---------- Rate card: the published price list (home, pricing, city hubs) ----------
   A plain table: package, what you get, time on site, what you pay, what the pilot earns, a link.
   Under 700px each row stacks into a block; the thead is hidden visually and the short cells carry
   their column name through data-label. Markup carries explicit table roles so the semantics survive
   the display change. */
.rate-card { width: 100%; border-collapse: collapse; font-size: var(--fs-2); line-height: var(--lh-ui); margin: 0; }
.rate-card th, .rate-card td { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.rate-card th:last-child, .rate-card td:last-child { padding-right: 0; }
.rate-card thead th { padding-top: 0; padding-bottom: var(--sp-2); font-size: var(--fs-1); font-weight: 500; color: var(--ink-2); border-bottom-color: var(--line-strong); white-space: nowrap; }
.rate-card tbody th { font-weight: 600; font-size: var(--fs-3); color: var(--ink); white-space: nowrap; }
.rate-card .what { color: var(--ink-2); max-width: 46ch; }
.rate-card .time { color: var(--ink-2); white-space: nowrap; }
.rate-card .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-card tbody .num { font-weight: 600; font-size: var(--fs-3); color: var(--ink); }
.rate-card tbody .num-pilot { font-weight: 500; color: var(--ink-2); }
.rate-card .act { text-align: right; white-space: nowrap; }
.rate-card .act a { font-weight: 500; }
.rate-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
.rate-card-foot p { margin: 0; }

/* ---------- Two-column document layout: heading and lede left, content right ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6) var(--sp-7); align-items: start; }
.two-col h2 { margin-bottom: var(--sp-3); }
.two-col > div > :last-child { margin-bottom: 0; }

/* ---------- Row list: hairline rows with a bold lead and one short paragraph ---------- */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list > li { margin: 0; max-width: none; padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.row-list > li:last-child { border-bottom: 1px solid var(--line); }
.row-list strong { display: block; font-weight: 600; font-size: var(--fs-3); color: var(--ink); margin-bottom: var(--sp-1); }
.row-list p { margin: 0; color: var(--ink-2); font-size: var(--fs-2); }
.row-list ul { margin: var(--sp-2) 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--fs-2); }
.row-list ul li { margin: 0 0 var(--sp-1); max-width: none; }

@media (max-width: 899.98px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
}
@media (max-width: 699.98px) {
  .rate-card, .rate-card tbody, .rate-card tr, .rate-card th, .rate-card td { display: block; }
  .rate-card thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .rate-card tbody tr { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
  .rate-card tbody tr:first-child { border-top: 1px solid var(--line-strong); }
  .rate-card th, .rate-card td { padding: 0; border: 0; white-space: normal; }
  .rate-card tbody th { margin-bottom: var(--sp-1); }
  .rate-card .what { max-width: none; margin-bottom: var(--sp-2); }
  .rate-card .time { display: block; margin: 0 0 var(--sp-1); }
  .rate-card .num { display: inline-block; text-align: left; margin: 0 var(--sp-5) 0 0; vertical-align: baseline; }
  .rate-card tbody .num { font-size: var(--fs-2); }
  .rate-card .time::before, .rate-card .num::before { content: attr(data-label) " "; font-weight: 400; font-size: var(--fs-1); color: var(--ink-2); }
  .rate-card .act { display: block; text-align: left; margin: var(--sp-2) 0 0; }
}
