/* Spostia — approved brand assets with the existing readable interface. */
@font-face {
  font-family: "Source Sans 3";
  src: url("./fonts/source-sans-3-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f4f6f6;
  --card: #ffffff;
  --ink: #142525;
  --muted: #526363;
  --line: #dce5e4;
  --primary: #29d6c8;
  --primary-soft: #e3f7f4;
  --primary-dark: #006c63;
  --radius: 20px;
  --shadow: 0 6px 22px rgb(20 37 37 / 4%);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-optical-sizing: auto;
  font-feature-settings: "calt" 1;
}

/* Foundations and accessibility */
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 4px;
}
svg { flex-shrink: 0; }
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -.8px; }
h2 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.4px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -.2px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 18px; line-height: 1.55; }
.tiny { font-size: 14px; line-height: 1.5; }
.eyebrow { font-size: 14px; line-height: 1.5; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 90; left: 16px; top: -90px; padding: 14px 18px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

/* Application shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 22px 26px;
  background: #eef2f2;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.wordmark {
  display: flex;
  align-items: center;
  align-self: flex-start;
  justify-content: flex-start;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: none;
}
.brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.brand-sub { margin: 14px 0 38px; font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.nav-label { margin: 0 12px 12px; font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.nav { display: grid; gap: 8px; }
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 13px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.nav button:hover { background: #e1e9e8; }
.nav button.active { background: var(--ink); color: white; }
.nav .badge-dot { width: 8px; height: 8px; margin-left: auto; flex-shrink: 0; border-radius: 50%; background: var(--primary); }
.sidebar-bottom { margin-top: auto; }
.network-note { padding: 22px 6px 0; border-top: 1px solid #cfdbd9; color: var(--muted); font-size: 14px; line-height: 1.7; }
.swiss { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 5px; border-radius: 4px; background: #e64939; color: white; font-size: 20px; font-weight: 700; line-height: 1; vertical-align: -3px; }
.sidebar-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 10px; border-radius: 8px; background: #e1e9e8; font-size: 14px; font-weight: 700; }
.sidebar-chip i, .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-dark); }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding: 16px 40px; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wordmark { align-self: center; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb strong { font-weight: 700; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 20px; }
.demo-pill { padding: 8px 10px; border-radius: 7px; background: #e5ebeb; font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.role-picker { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.role-picker select { min-height: 48px; max-width: 200px; padding: 10px 30px 10px 13px; border: 1px solid #bccdcb; border-radius: 10px; background: white; color: var(--ink); font-size: 18px; font-weight: 650; }
.mobile-logo { display: none; }
main { max-width: 1450px; min-height: calc(100vh - 92px); margin: 0 auto; padding: 36px 40px 28px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-intro h1 { font-size: 40px; line-height: 46px; letter-spacing: -.6px; }
.page-intro p { max-width: 720px; margin-top: 14px; color: var(--muted); font-size: 18px; }
.date-stamp { color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }

/* Home: a readable introduction followed by the search */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 30px; margin-bottom: 30px; }
.hero-copy { padding: 12px 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero h1 span { display: block; color: var(--muted); }
.hero p { max-width: 500px; margin-top: 20px; color: var(--muted); font-size: 18px; }
.hero-art { position: relative; min-height: 280px; overflow: hidden; border-radius: var(--radius); background: var(--primary-soft); }
.art-header { display: flex; justify-content: space-between; gap: 12px; padding: 20px; font-size: 12px; line-height: 1.4; letter-spacing: .7px; text-transform: uppercase; }
.art-header span:last-child { font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.route-art { display: block; width: 100%; height: 215px; }
.art-ticket { position: absolute; right: 16px; bottom: 20px; padding: 12px 15px; border-radius: 12px; background: white; box-shadow: 0 7px 18px rgb(20 37 37 / 7%); transform: rotate(-4deg); font-size: 12px; }
.art-ticket strong { display: block; margin: 3px 0; font-size: 20px; font-weight: 700; }
.art-ticket .ticket-dots { margin: 10px -15px 0; padding: 8px 15px 0; border-top: 1px dashed #b5c6c4; font-size: 12px; }
.search-panel, .card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.search-panel { margin-bottom: 26px; padding: 28px; border-color: #c0d5d1; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-top h2 { font-size: 24px; line-height: 32px; }
.section-top .small { font-size: 14px; }
.trip-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 9px; color: var(--muted); font-size: 16px; font-weight: 600; }
.field input, .field select { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #bdcecb; border-radius: 10px; background: #fafcfc; color: var(--ink); font-size: 18px; font-weight: 600; }
.field input:focus, .field select:focus { border-color: var(--primary-dark); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
}
.btn.primary { background: var(--primary); color: var(--ink); }
.btn.secondary { border-color: #afc2bf; background: white; color: var(--ink); }
.btn.soft { background: var(--primary-soft); color: var(--ink); }
.btn.full { width: 100%; }
.btn:hover:not(:disabled) { filter: brightness(.96); }
.btn:active:not(:disabled) { filter: brightness(.91); }
.text-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: inherit; font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.trip-search .btn { min-height: 52px; }
.search-foot { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.search-foot .icon { width: 22px; height: 22px; }
.home-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.network-list { padding: 28px; }
.network-list .section-top { margin-bottom: 8px; }
.route-row { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.route-row:last-child { padding-bottom: 0; border-bottom: 0; }
.route-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--paper); }
.route-row-main { flex: 1; min-width: 0; }
.route-row-main strong { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 18px; font-weight: 650; }
.route-row-main strong .icon { width: 22px; height: 22px; }
.route-row-main p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.route-row > button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--ink); }
.flex-teaser { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-color: #beded8; background: var(--primary-soft); }
.flex-teaser .eyebrow { margin-bottom: 16px; }
.flex-teaser h2 { max-width: 360px; font-size: 30px; line-height: 36px; letter-spacing: -.4px; }
.flex-teaser p { max-width: 400px; margin: 16px 0 20px; color: var(--muted); font-size: 18px; }
.flex-teaser .btn { margin-top: auto; background: var(--ink); color: white; }
.flex-orb { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0 0 20px; padding: 10px 15px; border-radius: 12px; background: var(--primary); color: var(--ink); font-size: 28px; line-height: 1.2; font-weight: 700; }
.flex-orb > div { display: flex; align-items: center; gap: 10px; }
.flex-orb span { display: block; max-width: 90px; font-size: 14px; line-height: 1.4; font-weight: 650; letter-spacing: 0; }

/* Forms, progress and summaries */
.steps { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.steps span { display: flex; align-items: center; gap: 9px; }
.steps i { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #afc2bf; border-radius: 50%; font-size: 14px; font-style: normal; font-weight: 700; }
.steps .current { color: var(--ink); font-weight: 700; }
.steps .current i { border-color: var(--ink); background: var(--ink); color: white; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); align-items: start; gap: 24px; }
.form-card { padding: 28px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields + .fields { margin-top: 18px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 18px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--primary-dark); }
.hint { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.form-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.summary-card { position: sticky; top: 24px; padding: 26px; }
.summary-card h3 { margin-bottom: 20px; }
.route-points { position: relative; display: grid; gap: 24px; margin: 24px 0; }
.route-points::before { position: absolute; top: 13px; bottom: 15px; left: 6px; border-left: 2px dashed #9eb9b3; content: ""; }
.route-point { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 650; }
.route-point i { z-index: 1; width: 14px; height: 14px; flex-shrink: 0; border: 3px solid var(--primary-dark); border-radius: 50%; background: white; }
.route-point:last-child i { background: var(--primary-dark); }
.route-point small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; font-weight: 500; }
.divider { margin: 24px 0; border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--primary-soft); color: #07564f; font-size: 14px; line-height: 1.4; font-weight: 650; }
.chip.orange, .chip.purple { background: var(--primary-soft); color: #07564f; }
.chip.neutral { background: #edf1f1; color: var(--muted); }
.chip .icon { width: 22px; height: 22px; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 10px 0; font-size: 18px; line-height: 1.5; }
.detail-row span:first-child { color: var(--muted); }
.detail-row strong { font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.total-row { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 700; }
.total-row span:first-child { color: var(--ink); }

/* Results and bookings */
.flexible-search-notice { margin-bottom: 24px; padding: 24px; border: 1px solid #b9ddd7; border-radius: var(--radius); background: var(--primary-soft); }
.flexible-search-notice > .icon { width: 28px; height: 28px; margin-bottom: 12px; color: var(--primary-dark); }
.flexible-search-notice h2 { max-width: 820px; font-size: 28px; line-height: 36px; }
.flexible-search-notice p { max-width: 820px; margin-top: 12px; color: var(--muted); font-size: 18px; }
.date-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 24px 0; }
.date-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; min-width: 0; min-height: 130px; padding: 18px; border: 2px solid #c6d6d3; border-radius: 14px; background: white; color: var(--ink); text-align: left; }
.date-option strong { font-size: 20px; line-height: 28px; font-weight: 700; }
.date-option span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.date-option b { font-size: 18px; line-height: 26px; font-weight: 700; }
.date-option:hover { border-color: var(--primary-dark); }
.date-option.is-selected, .date-option[aria-pressed="true"] { border-color: var(--ink); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.date-option.is-selected span, .date-option[aria-pressed="true"] span { color: var(--primary-dark); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; gap: 20px; }
.results-grid > * { min-width: 0; }
.result-list { display: grid; gap: 18px; }
.result-card { padding: 28px; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.result-time { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.4px; }
.result-time span { display: block; margin: 8px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.result-bottom { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.price { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
.price small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.included { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.included span { display: flex; align-items: flex-start; gap: 7px; }
.included .icon { width: 22px; height: 22px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 12px; background: #edf3f2; font-size: 18px; line-height: 1.6; }
.notice .icon { width: 24px; height: 24px; margin-top: 1px; }
.notice.orange, .notice.purple { background: var(--primary-soft); }
.notice strong { font-weight: 700; }
.empty { padding: 46px 28px; text-align: center; }
.empty .icon { width: 40px; height: 40px; margin-bottom: 20px; }
.empty p { max-width: 440px; margin: 16px auto 26px; color: var(--muted); font-size: 18px; }
.booking-card { margin-bottom: 22px; padding: 28px; }
.booking-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.booking-meta { margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .3px; }
.booking-head h2 { font-size: 26px; line-height: 34px; }
.booking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.booking-grid label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.booking-grid strong { font-size: 18px; font-weight: 650; }
.booking-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 18px; }
.success-panel { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding: 26px; border: 1px solid #b5ded6; border-radius: var(--radius); background: var(--primary-soft); }
.success-panel .success-icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--primary); }
.success-panel h2 { font-size: 24px; line-height: 32px; }
.success-panel p { margin-top: 10px; color: var(--muted); font-size: 18px; }

/* Flex: all consent and payment states keep the same readable scale */
.flex-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 26px; padding: 30px; border: 1px solid #b9ddd7; border-radius: var(--radius); background: var(--primary-soft); }
.flex-banner h2 { max-width: 550px; font-size: 34px; line-height: 42px; }
.flex-banner p { max-width: 590px; margin-top: 16px; color: var(--muted); font-size: 18px; }
.reward { flex-shrink: 0; font-size: 54px; line-height: 1.1; font-weight: 700; letter-spacing: -.8px; white-space: nowrap; }
.reward small { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: 0; text-align: right; }
.exchange-dates { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 16px; margin: 26px 0; }
.date-box { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.date-box.new { border-color: #b9ddd7; background: var(--primary-soft); }
.date-box label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.date-box strong { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.2px; }
.date-box p { margin-top: 10px; color: var(--muted); font-size: 18px; }
.approval-list { display: grid; gap: 22px; margin-top: 24px; }
.approval { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.approval i { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #e8eeee; font-size: 18px; font-style: normal; font-weight: 650; }
.approval.done i { background: var(--primary); }
.approval strong { display: block; font-size: 18px; font-weight: 650; }
.approval small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.approval .icon { width: 22px; height: 22px; }
.role-switch-note { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.action-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Partner and operations */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.kpi { padding: 24px; }
.kpi > span { display: block; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.kpi strong { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
.kpi small { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.capacity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.capacity-card { padding: 24px; }
.capacity-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.capacity-top strong { font-size: 18px; font-weight: 650; }
.capacity-bar { height: 10px; overflow: hidden; margin: 22px 0 12px; border-radius: 10px; background: #e4edeb; }
.capacity-bar > div { height: 100%; border-radius: 10px; background: #159e91; }
.capacity-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.capacity-foot strong { color: var(--ink); }
.cost-list { margin: 20px 0; }
.cost-list .detail-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cost-list .detail-row:last-child { border-bottom: 0; font-size: 21px; font-weight: 700; }
.partner-offer { padding: 28px; }
.partner-offer .section-top { align-items: flex-start; margin-bottom: 20px; }
.partner-offer h3 { line-height: 1.5; }

/* Notices and footer */
.error-box { margin-bottom: 22px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 12px; background: #f0f5f4; color: var(--ink); font-size: 18px; font-weight: 650; }
.storage-warning { margin-bottom: 22px; padding: 16px 18px; border: 1px solid #b7cac6; border-radius: 12px; background: #edf3f2; font-size: 14px; line-height: 1.6; }
.toast { position: fixed; z-index: 100; left: calc(50% + 120px); bottom: 24px; max-width: min(560px, calc(100vw - 40px)); padding: 16px 22px; transform: translateX(-50%); border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 8px 30px rgb(20 37 37 / 20%); font-size: 14px; line-height: 1.5; pointer-events: none; }
.page-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.page-footer > span { max-width: 50%; }
.footer-button { min-height: 44px; padding: 9px 0; border: 0; background: none; color: var(--muted); font-size: 16px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

/* Intermediate layouts retain type size and give the content more room. */
@media (min-width: 1500px) {
  main { padding: 44px 48px 32px; }
  .hero { gap: 42px; }
  .hero-art { min-height: 300px; }
  .route-art { height: 235px; }
  .fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .topbar { padding-right: 28px; padding-left: 28px; }
  .breadcrumb { display: none; }
  .topbar { justify-content: flex-end; }
  main { padding: 30px 28px 26px; }
  .trip-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-search .btn { width: 100%; }
  .split-layout { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 20px; }
  .form-card, .result-card, .booking-card, .summary-card { padding: 24px; }
  .exchange-dates { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .exchange-dates > .icon { margin: 0 auto; transform: rotate(90deg); }
  .home-bottom { grid-template-columns: minmax(0, 1fr); }
  .flex-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; align-items: start; }
  .flex-teaser .eyebrow, .flex-teaser h2, .flex-teaser p { grid-column: 1; }
  .flex-teaser h2, .flex-teaser p { max-width: none; }
  .flex-orb { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
  .flex-teaser .btn { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-right: 16px; padding-left: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-art { display: none; }
  .hero p { max-width: 620px; }
  .split-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
  .summary-card .route-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card .route-points::before { display: none; }
  .flex-banner { flex-wrap: wrap; }
  .reward small { text-align: left; }
  .kpis { gap: 12px; }
  .kpi { padding: 18px; }
  .capacity-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .date-stamp { font-size: 14px; }
  .toast { left: calc(50% + 105px); }
}

/* Mobile: full-size controls, three visible navigation destinations, search first. */
@media (max-width: 800px) {
  .shell { display: block; }
  .sidebar { position: relative; top: auto; height: auto; padding: 100px 20px 0; border-right: 0; background: var(--paper); }
  .sidebar > .wordmark, .brand-sub, .nav-label, .sidebar-bottom { display: none; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .nav button { flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 82px; padding: 10px 7px; gap: 7px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 650; white-space: normal; }
  .nav .icon { width: 24px; height: 24px; }
  .nav .badge-dot { display: none; }
  .workspace { display: block; }
  .topbar { position: absolute; top: 0; left: 0; right: 0; min-height: 92px; height: 92px; padding: 10px 20px; border: 0; justify-content: space-between; gap: 14px; }
  .mobile-logo { display: flex; flex: 1 1 160px; min-width: 0; max-width: 180px; }
  .top-actions { flex-shrink: 0; min-width: 0; gap: 0; }
  .demo-pill { display: none; }
  .role-picker { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: 14px; line-height: 18px; }
  .role-picker select { min-height: 48px; width: 168px; max-width: 100%; padding: 9px 26px 9px 11px; font-size: 18px; }
  main { min-height: calc(100vh - 196px); padding: 24px 20px 26px; }
  h1, .page-intro h1 { font-size: 36px; line-height: 40px; letter-spacing: -.4px; }
  h2 { font-size: 26px; line-height: 34px; }
  .hero { display: block; margin-bottom: 24px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: 36px; line-height: 40px; letter-spacing: -.4px; }
  .hero p { max-width: 600px; margin-top: 16px; font-size: 18px; }
  .hero-art { display: none; }
  .search-panel { padding: 24px; }
  .section-top { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
  .section-top h2 { font-size: 24px; line-height: 32px; }
  .field { font-size: 16px; }
  .field input, .field select { height: 52px; font-size: 18px; }
  .btn, .form-actions .btn, .action-group .btn { min-height: 50px; font-size: 18px; }
  .trip-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .search-foot { font-size: 14px; }
  .home-bottom { gap: 22px; }
  .network-list { padding: 24px; }
  .flex-teaser { padding: 24px; }
  .flex-teaser h2 { font-size: 28px; line-height: 36px; }
  .flex-teaser p { font-size: 18px; }
  .page-intro { gap: 0; margin-bottom: 26px; }
  .page-intro p { margin-top: 14px; font-size: 18px; }
  .date-stamp { display: none; }
  .steps { gap: 14px 20px; font-size: 14px; }
  .form-card, .summary-card, .booking-card, .result-card, .partner-offer { padding: 24px; }
  .fields.three, .fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { gap: 14px; }
  .detail-row { font-size: 18px; }
  .total-row { font-size: 21px; }
  .result-time { font-size: 28px; }
  .flexible-search-notice h2 { font-size: 26px; line-height: 34px; }
  .result-bottom { align-items: center; }
  .price { font-size: 30px; }
  .booking-head h2 { font-size: 26px; line-height: 34px; }
  .booking-grid { gap: 22px; }
  .booking-action { flex-direction: column; align-items: flex-start; }
  .success-panel { align-items: flex-start; padding: 24px; gap: 16px; }
  .success-panel h2 { font-size: 24px; line-height: 32px; }
  .flex-banner { flex-direction: column; align-items: flex-start; padding: 26px; gap: 24px; }
  .flex-banner h2 { font-size: 30px; line-height: 38px; }
  .flex-banner p { font-size: 18px; }
  .reward { font-size: 48px; }
  .reward small { display: block; margin-top: 8px; font-size: 14px; text-align: left; }
  .exchange-dates { margin: 24px 0; }
  .date-box { padding: 22px; }
  .date-box strong { font-size: 28px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 18px; }
  .kpi strong { font-size: 30px; }
  .kpi > span { font-size: 14px; }
  .kpi small { font-size: 14px; }
  .capacity-top strong { font-size: 18px; }
  .partner-offer .section-top { gap: 18px; }
  .partner-offer h3 { font-size: 20px; }
  .action-group .btn { flex: 1 1 220px; }
  .notice { padding: 18px; font-size: 18px; }
  .page-footer { flex-direction: column; gap: 14px; margin-top: 28px; padding-top: 20px; font-size: 14px; }
  .page-footer > span { max-width: none; }
  .toast { left: 50%; bottom: 18px; width: max-content; max-width: calc(100vw - 32px); font-size: 14px; }
}
@media (max-width: 480px) {
  .sidebar { padding-right: 16px; padding-left: 16px; }
  .nav { gap: 6px; }
  .topbar { padding-right: 16px; padding-left: 16px; gap: 10px; }
  .role-picker select { width: 164px; }
  main { padding-right: 16px; padding-left: 16px; }
  .search-panel, .network-list, .flex-teaser, .form-card, .summary-card, .booking-card, .result-card, .partner-offer { padding: 20px; border-radius: 18px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .7px; }
  .trip-search { gap: 16px 12px; }
  .trip-search > .field:nth-child(3), .trip-search > .btn { grid-column: 1 / -1; }
  .trip-search .btn { width: 100%; }
  .field input, .field select { padding: 0 11px; }
  .section-top .small { font-size: 14px; }
  .route-row { gap: 10px; }
  .route-icon { display: none; }
  .route-row-main strong { gap: 6px; font-size: 18px; }
  .route-row > button { width: 44px; height: 44px; }
  .flex-teaser { display: flex; }
  .flex-teaser h2 { font-size: 28px; }
  .flex-orb { margin-bottom: 20px; }
  .flex-teaser .btn { width: 100%; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .steps span { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 16px; }
  .steps i { width: 28px; height: 28px; }
  .fields { gap: 16px 12px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .form-actions > .btn:first-child { order: 2; }
  .form-actions > .btn:last-child { order: 1; }
  .summary-card .route-points { grid-template-columns: minmax(0, 1fr); }
  .summary-card .route-points::before { display: block; }
  .detail-row { gap: 14px; font-size: 18px; }
  .detail-row span:first-child { max-width: 57%; }
  .detail-row strong { min-width: 0; }
  .total-row { font-size: 20px; }
  .result-bottom { align-items: flex-start; }
  .flexible-search-notice { padding: 20px; border-radius: 18px; }
  .flexible-search-notice h2 { font-size: 24px; line-height: 32px; }
  .date-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .date-option { min-height: 126px; padding: 14px; }
  .date-option strong { font-size: 18px; line-height: 26px; }
  .date-option span { font-size: 16px; }
  .date-option b { font-size: 18px; line-height: 24px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .result-bottom .btn { width: 100%; }
  .booking-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .booking-action .btn { width: 100%; }
  .success-panel { flex-direction: column; padding: 22px; gap: 14px; }
  .flex-banner { padding: 24px; }
  .flex-banner h2 { font-size: 28px; line-height: 36px; }
  .reward { font-size: 46px; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kpi { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-radius: 16px; }
  .kpi > span { max-width: 58%; margin: 0; font-size: 14px; }
  .kpi strong { text-align: right; font-size: 30px; }
  .kpi small { margin-top: 4px; font-size: 14px; }
  .capacity-card { padding: 20px; }
  .capacity-foot { gap: 8px; font-size: 14px; }
  .cost-list .detail-row:last-child { font-size: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav button, .route-row > button { transition: background-color .16s ease, filter .16s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.price, .detail-row strong, .result-time, .date-option b, .booking-grid strong, .kpi strong { font-variant-numeric: tabular-nums; }

/* Selected cargo: an original cutaway truck, with a real HTML caption. */
.cargo-preview { margin: 0 0 24px; padding: 10px 12px 16px; border: 1px solid #cce7e1; border-radius: 16px; background: #f0faf7; }
.cargo-scene { display: block; width: 100%; height: auto; }
.cargo-caption { display: flex; flex-direction: column; gap: 5px; padding: 0 6px; }
.cargo-caption strong { color: var(--ink); font-size: 18px; line-height: 24px; font-weight: 700; }
.cargo-caption span { color: var(--muted); font-size: 14px; line-height: 20px; }

/* How Spostia works: four short steps and one clear next action. */
.how-page { width: 100%; }
.how-heading { max-width: 840px; margin-bottom: 30px; }
.how-kicker { display: block; margin-bottom: 14px; color: var(--primary-dark); font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 1px; }
.how-heading h1 { margin: 0; }
.how-heading p { max-width: 700px; margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 28px; }
.how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.how-step { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.how-visual { display: flex; align-items: center; justify-content: space-between; min-height: 122px; margin-bottom: 22px; padding: 18px 24px; border-radius: 14px; background: var(--primary-soft); }
.how-step-number { align-self: flex-start; color: var(--primary-dark); font-size: 26px; line-height: 34px; font-weight: 700; }
.how-icon { display: block; width: 88px; height: 88px; }
.how-step h2 { margin-bottom: 14px; font-size: 26px; line-height: 34px; }
.how-step p { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 26px; }
.how-action { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: white; }
.how-action h2 { font-size: 28px; line-height: 36px; }
.how-action p { margin-top: 10px; color: #d3e2df; font-size: 18px; line-height: 26px; }
.how-action .btn { flex-shrink: 0; }
.how-demo { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #edf2f1; }
.how-demo strong { font-size: 18px; line-height: 24px; font-weight: 700; }
.how-demo p { max-width: 850px; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 23px; }
@media (max-width: 1100px) {
  .how-step { padding: 22px; }
  .how-step h2 { font-size: 24px; line-height: 32px; }
  .how-action { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 680px) {
  .cargo-preview { margin-bottom: 22px; }
  .cargo-scene { max-height: 215px; }
  .how-heading { margin-bottom: 24px; }
  .how-heading p { font-size: 18px; line-height: 26px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .how-step { padding: 22px; border-radius: 18px; }
  .how-visual { min-height: 106px; margin-bottom: 20px; padding: 14px 20px; }
  .how-icon { width: 78px; height: 78px; }
  .how-step-number { font-size: 24px; line-height: 32px; }
  .how-step h2 { font-size: 26px; line-height: 34px; }
  .how-step p { font-size: 18px; line-height: 26px; }
  .how-action { margin-top: 24px; padding: 24px; border-radius: 18px; }
  .how-action h2 { font-size: 26px; line-height: 34px; }
  .how-action .btn { width: 100%; }
  .how-demo { padding: 20px; }
}

/* Keep the alternative dates close to the search explanation. */
.flexible-search-notice { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; margin: 0; padding: 20px; }
.flexible-search-notice > .icon { margin: 0; }
.flexible-search-notice h2 { font-size: 20px; line-height: 28px; }
.flexible-search-notice p { margin-top: 8px; }
.date-options { margin: 0; }

@media (max-width: 1000px) { .review-layout > .summary-card { order: -1; } }

/* Date controls describe their state without relying on color alone. */
.date-option .date-selection { font-size: 14px; font-weight: 600; color: var(--muted); }
.date-option.is-selected .date-selection { color: var(--ink); }
.result-load { margin-top: 8px; font-size: 16px; color: var(--muted); }
@media (max-width: 800px) {
  .hero { margin-bottom: 18px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 34px; line-height: 38px; }
  .hero p { margin-top: 10px; }
  .nav button { font-size: 16px; font-weight: 600; }
  main { padding-top: 24px; }
}
