/* BlueStar Taxi — v3 design system.
   Lane: photo-led prairie-travel. Real road/sky imagery carries the
   emotion; chrome recedes. Restrained colour: warm near-neutral canvas,
   deep BlueStar blue as structure, amber as the single action signal.
   Motion: Emil Kowalski framework (custom ease-out, <300ms, scale-on-press,
   @starting-style, prefers-reduced-motion). Only transform/opacity animate.
   Type: Hanken Grotesk, one family, weight + size contrast. */

:root {
  /* canvas + ink — neutrals tinted toward the brand hue, never pure */
  --canvas: oklch(0.984 0.006 84);
  --surface: oklch(0.997 0.003 84);
  --sunk: oklch(0.962 0.008 84);
  --ink: oklch(0.255 0.035 252);
  --ink-soft: oklch(0.46 0.028 252);
  --ink-faint: oklch(0.62 0.02 252);
  --line: oklch(0.905 0.012 84);
  --line-strong: oklch(0.84 0.018 252);

  /* brand blue carries structure (this brand IS "BlueStar") */
  --blue: oklch(0.45 0.118 254);
  --blue-deep: oklch(0.305 0.085 258);
  --blue-wash: oklch(0.95 0.022 250);

  /* amber = the single signal. CTAs, the star, the $10. Kept < 10%. */
  --amber: oklch(0.77 0.142 67);
  --amber-press: oklch(0.71 0.142 67);
  --on-amber: oklch(0.28 0.06 60);
  /* legible neutral + hairline for controls sitting on hero photography */
  --on-photo: oklch(0.97 0.015 84);
  --on-photo-line: oklch(0.97 0.015 84 / 0.42);

  --ok: oklch(0.6 0.12 155);
  --warn: oklch(0.66 0.13 70);

  /* shadows tinted toward ink, never black */
  --shadow-1: 0 1px 2px oklch(0.255 0.035 252 / 0.06);
  --shadow-2: 0 8px 24px -10px oklch(0.255 0.035 252 / 0.16);
  --shadow-3: 0 22px 50px -22px oklch(0.255 0.035 252 / 0.30);

  /* glass surfaces (topbar, mobile sticky bar) — themed */
  --glass-bg: oklch(0.984 0.006 84 / 0.86);
  --glass-bg-strong: oklch(0.984 0.006 84 / 0.92);

  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Emil: built-in easings are too weak. Strong custom curves. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- dark theme: owner-selectable + per-visitor cookie -------------- */
html[data-theme="dark"] {
  --canvas: oklch(0.17 0.025 252);
  --surface: oklch(0.225 0.028 252);
  --sunk: oklch(0.145 0.022 252);
  --ink: oklch(0.94 0.008 84);
  --ink-soft: oklch(0.78 0.012 84);
  --ink-faint: oklch(0.62 0.018 252);
  --line: oklch(0.32 0.022 252);
  --line-strong: oklch(0.42 0.028 252);

  --blue: oklch(0.55 0.13 254);
  --blue-deep: oklch(0.26 0.085 258);
  --blue-wash: oklch(0.24 0.04 252);

  --on-photo: oklch(0.97 0.015 84);
  --on-photo-line: oklch(0.97 0.015 84 / 0.42);

  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.30);
  --shadow-2: 0 8px 24px -10px oklch(0 0 0 / 0.55);
  --shadow-3: 0 22px 50px -22px oklch(0 0 0 / 0.70);

  --glass-bg: oklch(0.18 0.022 252 / 0.82);
  --glass-bg-strong: oklch(0.18 0.022 252 / 0.90);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.8vw, 4.6rem);
}
h2 {
  font-size: clamp(1.85rem, 1.4rem + 2vw, 2.9rem);
  letter-spacing: -0.022em;
}
h3 {
  font-size: clamp(1.12rem, 1.05rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.012em;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--amber);
  color: var(--on-amber);
}
:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.ico {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---- reveal (paired with IntersectionObserver in app.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  transition-delay: 60ms;
}
.reveal:nth-child(3) {
  transition-delay: 120ms;
}
.reveal:nth-child(4) {
  transition-delay: 180ms;
}
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ---- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 680;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.92em 1.5em;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.16s var(--ease-out),
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.btn:active {
  transform: scale(0.97); /* Emil: instant press feedback */
}
.btn--primary {
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: var(--shadow-2);
}
.btn--primary:hover {
  background: var(--amber-press);
}
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--quiet:hover {
  border-color: var(--ink);
  background: oklch(0.255 0.035 252 / 0.04);
}
/* quiet button placed over hero photography (no raw #fff) */
.btn--on-photo {
  color: var(--on-photo);
  border-color: var(--on-photo-line);
}
.btn--on-photo:hover {
  border-color: var(--on-photo);
  background: oklch(0.97 0.015 84 / 0.12);
}
.btn--block {
  width: 100%;
  padding-block: 1.05em;
  font-size: 1.06rem;
}
.btn--lg {
  padding: 1.04em 1.8em;
  font-size: 1.08rem;
}

/* ---- eyebrow + section heads -------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .ico {
  color: var(--amber);
}
.sec-head {
  max-width: 34ch;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.4rem);
}
.sec-head h2 {
  margin: 0.7rem 0 0;
}
.sec-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
}
section {
  padding-block: clamp(3.6rem, 2rem + 7vw, 7rem);
}
.band-blue {
  background: var(--blue-deep);
  color: oklch(0.93 0.02 250);
}
.band-blue h2,
.band-blue h3,
.band-blue .num {
  color: oklch(0.985 0.01 250);
}
.band-blue .eyebrow {
  color: oklch(0.82 0.07 250);
}
.band-blue p {
  color: oklch(0.83 0.025 250);
}
.band-sunk {
  background: var(--sunk);
}

/* ---- top bar ------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  height: 1.9em;
  width: auto;
  display: block;
  flex: none;
}
.brand b {
  color: var(--blue);
}
.topbar-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topbar-cta .btn {
  padding: 0.6em 1.15em;
  font-size: 0.94rem;
}

/* ---- hero (asymmetric, photo-led) --------------------------------- */
.hero {
  position: relative;
  padding: 0;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero-media::after {
  /* warm wash so type stays legible; image grounds into the canvas */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.22 0.05 255 / 0.82) 0%,
    oklch(0.22 0.05 255 / 0.5) 42%,
    oklch(0.22 0.05 255 / 0.12) 72%,
    transparent 100%
  );
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--canvas));
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
  min-height: min(86vh, 760px);
  padding-block: clamp(5.5rem, 4rem + 9vw, 8.5rem);
}
.hero-copy {
  max-width: 30ch;
  color: oklch(0.98 0.012 84);
}
.hero-copy h1 {
  color: inherit;
  margin: 1rem 0 0;
  text-wrap: balance;
}
.hero-copy h1 .accent {
  color: var(--amber);
}
.hero-copy .eyebrow {
  color: oklch(0.92 0.04 84);
}
.hero-sub {
  margin-top: 1.3rem;
  font-size: clamp(1.06rem, 1rem + 0.5vw, 1.28rem);
  color: oklch(0.93 0.015 84);
  max-width: 42ch;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-fare {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  background: oklch(0.255 0.035 252 / 0.34);
  border: 1px solid oklch(0.97 0.015 84 / 0.3);
  border-radius: var(--r-pill);
  backdrop-filter: blur(7px);
  color: oklch(0.985 0.012 84);
  font-weight: 560;
  font-size: 0.96rem;
}
.hero-fare b {
  font-size: 1.5rem;
  font-weight: 820;
  color: var(--amber);
  letter-spacing: -0.02em;
}

/* ---- trust: claim-based fact tiles (no fake quotes) --------------- */
.trust-lede {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.trust-lede .pic {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  aspect-ratio: 5 / 4;
}
.trust-lede .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trust-facts {
  margin-top: clamp(2.4rem, 1rem + 4vw, 4rem);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.trust-fact {
  margin: 0;
  padding: 1.7rem 1.7rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}
.trust-fact:nth-child(even) {
  transform: translateY(-14px);
}
@media (hover: hover) and (pointer: fine) {
  .trust-fact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
  .trust-fact:nth-child(even):hover {
    transform: translateY(-18px);
  }
}
.trust-fact-num {
  font-size: 1.85rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  color: var(--amber);
  line-height: 1;
}
.trust-fact h3 {
  font-size: 1.02rem;
  font-weight: 720;
  color: var(--ink);
  margin: 0;
}
.trust-fact p {
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
}

/* safety row — leading icons, no boxes (design-taste: anti-card) */
.safety {
  display: grid;
  gap: 2rem 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.safety .item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: start;
}
.safety .badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: oklch(0.99 0.01 84 / 0.1);
  color: var(--amber);
  grid-row: span 2;
}
.safety .badge .ico {
  width: 1.3rem;
  height: 1.3rem;
}
.safety h3 {
  align-self: center;
}
.safety p {
  grid-column: 2;
  margin-top: 0.35rem;
  font-size: 0.99rem;
}

/* ---- affordability (split, photo on one side) --------------------- */
.afford {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.afford-pic {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-3);
}
.afford-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bigprice {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.bigprice .num {
  font-size: clamp(3.6rem, 2rem + 7vw, 6rem);
  font-weight: 830;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 0.9;
}
.bigprice .cap {
  font-weight: 640;
  color: var(--ink-soft);
  max-width: 14ch;
}
.afford-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}
.afford-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 540;
  font-size: 1.05rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.afford-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.afford-list .ico {
  color: var(--amber);
  margin-top: 0.18rem;
  stroke-width: 2.4;
}
.afford-list a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.afford-list a:hover {
  color: var(--amber);
}

/* ---- comfort (image-led split) ------------------------------------ */
.comfort {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.4rem);
  align-items: center;
}
.comfort-pic {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-3);
}
.comfort-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comfort-pic .tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5rem 0.95rem;
  background: oklch(0.997 0.003 84 / 0.94);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 720;
  font-size: 0.88rem;
  box-shadow: var(--shadow-2);
}
.comfort-pic .tag .ico {
  color: var(--amber);
}
.specs {
  margin-top: 1.8rem;
  display: grid;
  gap: 0;
}
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.spec:first-child {
  border-top: 0;
}
.spec .ico {
  grid-row: span 2;
  align-self: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
}
.spec b {
  font-weight: 740;
  font-size: 1.04rem;
}
.spec span {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---- booking ------------------------------------------------------ */
.booking {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow-2);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}
.field label {
  font-weight: 680;
  font-size: 0.92rem;
  color: var(--ink);
}
.input,
textarea,
select.input {
  font: inherit;
  width: 100%;
  padding: 0.82rem 0.95rem;
  background: var(--canvas);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23394a6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.72rem;
}
textarea {
  min-height: 4.5rem;
  resize: vertical;
}
.input::placeholder,
textarea::placeholder {
  color: var(--ink-faint);
}
.input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-wash);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.ac {
  position: relative;
}
.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  display: none;
}
.ac-list.open {
  display: block;
}
.ac-list button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0.7rem 0.95rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
}
.ac-list button:last-child {
  border-bottom: 0;
}
.ac-list button:hover {
  background: var(--blue-wash);
}

/* slot grid — the surface the date→slots bug was hiding */
.slots-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  padding: 0.7rem;
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
}
.slots-msg {
  grid-column: 1 / -1;
  padding: 1.4rem 0.6rem;
  text-align: center;
  color: var(--ink-faint);
  font-weight: 560;
  font-size: 0.96rem;
}
.slot {
  font: inherit;
  font-weight: 660;
  font-size: 0.92rem;
  padding: 0.6rem 0.3rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  transition:
    transform 0.14s var(--ease-out),
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}
.slot:hover:not(:disabled) {
  border-color: var(--blue);
}
.slot:active:not(:disabled) {
  transform: scale(0.96);
}
.slot:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot.sel {
  background: var(--blue);
  border-color: var(--blue);
  color: oklch(0.99 0.01 250);
}

/* optional fields, folded away so the core path reads short */
.more {
  border-top: 1px solid var(--line);
  padding-top: 0.2rem;
}
.more > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 660;
  font-size: 0.95rem;
  color: var(--blue);
  padding: 0.55rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.more > summary::-webkit-details-marker {
  display: none;
}
.more > summary::after {
  content: "+";
  font-weight: 800;
  color: var(--ink-faint);
}
.more[open] > summary::after {
  content: "\2013";
}

.form-msg {
  margin-top: 0.9rem;
  font-weight: 620;
  font-size: 0.96rem;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}
.form-msg.show {
  opacity: 1;
  transform: none;
}
.form-msg.ok {
  color: var(--ok);
}
.form-msg.err {
  color: oklch(0.55 0.18 25);
}

/* live estimate aside */
.estimate {
  position: sticky;
  top: 5.5rem;
  background: var(--blue-deep);
  color: oklch(0.93 0.02 250);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-3);
}
.estimate .eyebrow {
  color: oklch(0.8 0.07 250);
}
.est-price {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.2rem);
  font-weight: 840;
  letter-spacing: -0.03em;
  color: oklch(0.99 0.01 84);
  margin: 0.6rem 0 0.1rem;
}
.est-head {
  font-weight: 720;
  font-size: 1.02rem;
  color: oklch(0.97 0.015 84);
}
.est-msg {
  margin-top: 0.6rem;
  font-size: 0.96rem;
  color: oklch(0.82 0.025 250);
  line-height: 1.5;
}
.est-flag {
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-weight: 660;
  font-size: 0.9rem;
}
.est-flag.ok {
  background: oklch(0.6 0.12 155 / 0.22);
  color: oklch(0.92 0.08 155);
}
.est-flag.warn {
  background: oklch(0.77 0.142 67 / 0.2);
  color: oklch(0.9 0.1 67);
}
.estimate .alt {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid oklch(0.99 0.01 84 / 0.16);
  font-size: 0.92rem;
  color: oklch(0.82 0.025 250);
  font-weight: 560;
}
.estimate .alt a {
  color: oklch(0.86 0.09 84);
  font-weight: 700;
}

/* ---- final cta ---------------------------------------------------- */
.final {
  text-align: center;
}
.final .wrap {
  max-width: 52ch;
}
.final h2 {
  margin: 0.8rem 0 0.9rem;
}
.final p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.final-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- status page -------------------------------------------------- */
.status-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.status-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 1rem + 5vw, 5rem) var(--gut);
}
.status-card {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1rem + 3vw, 2.6rem);
  box-shadow: var(--shadow-2);
}
.status-card h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}
.status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.status-line {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-weight: 560;
  font-size: 1.05rem;
}
.kv {
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}
.kv dt {
  padding: 0.75rem 1rem 0.75rem 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kv dd {
  margin: 0;
  padding: 0.75rem 0;
  font-weight: 560;
  border-top: 1px solid var(--line);
  text-align: right;
}
.actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.actions form {
  display: contents;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 720;
  font-size: 0.82rem;
  background: var(--sunk);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge.confirmed {
  background: oklch(0.6 0.12 155 / 0.16);
  color: oklch(0.42 0.12 155);
  border-color: transparent;
}
.badge.quoted {
  background: oklch(0.77 0.142 67 / 0.2);
  color: var(--on-amber);
  border-color: transparent;
}
.badge.cancelled,
.badge.declined {
  background: oklch(0.55 0.18 25 / 0.12);
  color: oklch(0.5 0.18 25);
  border-color: transparent;
}
.notif-note {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---- footer ------------------------------------------------------- */
footer {
  background: var(--blue-deep);
  color: oklch(0.82 0.025 250);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
}
footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.7 0.05 250);
  margin-bottom: 0.9rem;
}
footer p {
  margin: 0.45rem 0;
  font-weight: 540;
}
footer a {
  color: oklch(0.93 0.02 250);
  font-weight: 640;
  transition: color 0.15s ease;
}
footer a:hover {
  color: var(--amber);
}
footer .brand {
  color: oklch(0.97 0.015 250);
  margin-bottom: 0.8rem;
}
footer .brand b {
  color: oklch(0.85 0.07 250);
}
.foot-note {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid oklch(0.99 0.01 84 / 0.12);
  font-size: 0.82rem;
  color: oklch(0.66 0.04 250);
  font-weight: 540;
}

/* ---- sticky mobile call bar --------------------------------------- */
.stickybar {
  display: none;
}

/* ---- responsive --------------------------------------------------- */
@media (max-width: 880px) {
  .trust-lede,
  .afford,
  .comfort,
  .booking,
  footer .grid {
    grid-template-columns: 1fr;
  }
  .trust-lede .pic,
  .afford-pic {
    aspect-ratio: 16 / 10;
    order: -1;
  }
  .quote:nth-child(2) {
    transform: none;
  }
  /* P0: the fare is the conversion driver — keep it docked in view at the
     commit moment instead of stacking it below the Reserve button */
  .estimate {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-top: 1rem;
    padding: 0.85rem 1.05rem calc(0.85rem + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.1rem 0.95rem;
    box-shadow: 0 -12px 26px oklch(0.255 0.035 252 / 0.3);
  }
  .estimate .eyebrow,
  .est-msg,
  .estimate .alt {
    display: none;
  }
  .est-price {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    font-size: 1.95rem;
  }
  .est-head {
    align-self: end;
  }
  .est-flag {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
  }
  #submitBtn {
    scroll-margin-bottom: 7rem;
  }
  .topbar-cta .btn--quiet {
    display: none;
  }
}
@media (max-width: 560px) {
  .row2 {
    grid-template-columns: 1fr;
  }
  .stickybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.7rem var(--gut)
      calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .stickybar .btn {
    padding-block: 0.8em;
  }
  body {
    padding-bottom: 4.5rem;
  }
  .hero-inner {
    min-height: min(82vh, 640px);
  }
  /* lift the fare strip clear of the fixed Call bar */
  .estimate {
    bottom: calc(3.7rem + env(safe-area-inset-bottom));
    padding-bottom: 0.85rem;
  }
  #submitBtn {
    scroll-margin-bottom: 11rem;
  }
}
@media (min-width: 1024px) {
  /* safety band reads under-filled with tall section padding; tighten it
     (scoped off the final CTA, which keeps its full breathing room) */
  .band-blue:not(.final) {
    padding-block: 4.6rem;
  }
}

/* ---- Owner admin chrome (settings, security, audit, new booking) -- */
.pause-banner {
  background: oklch(0.95 0.04 67);
  color: oklch(0.32 0.07 60);
  border-bottom: 1px solid oklch(0.85 0.06 67);
  padding: 0.7rem 0;
  font-size: 0.96rem;
  text-align: center;
}
html[data-theme="dark"] .pause-banner {
  background: oklch(0.32 0.08 67);
  color: oklch(0.96 0.04 67);
  border-bottom-color: oklch(0.42 0.1 67);
}
.pause-banner a {
  font-weight: 700;
  text-decoration: underline;
}
.btn--icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.15s var(--ease-out);
}
.btn--icon:hover {
  background: var(--sunk);
}
.theme-toggle-form {
  display: inline-flex;
  margin: 0;
}
.dash-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
  padding-bottom: 4px;
  align-items: center;
}
.dash-nav-link {
  padding: 0.55rem 1rem;
  color: oklch(0.75 0.03 252);
  font-weight: 620;
  font-size: 0.94rem;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.dash-nav-link:hover {
  background: oklch(1 0 0 / 0.05);
  color: #fff;
}
.dash-nav-link.active {
  background: var(--amber);
  color: var(--on-amber);
}
.dash-nav-spacer {
  margin-left: auto;
}
.paused-cta {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
.src-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-amber);
  background: var(--amber);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.hours-grid {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
}
.hours-grid th,
.hours-grid td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.hours-grid th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
}
.audit-table th,
.audit-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.audit-table th {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--sunk);
}
.audit-table td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

/* ---- Emil: reduced motion = fewer + gentler, not zero ------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: opacity 0.3s ease;
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.12s !important;
  }
  .btn:active,
  .slot:active:not(:disabled) {
    transform: none;
  }
}
