/* pricing.mycalldriver.com - public page. Brand: navy #003B71, orange #F58220, logo on white.
   One type family (Manrope). Orange is spent in two places: the main button and the destination dot. */

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #003b71;
  --ink: #0f2438;
  --orange: #f58220;
  --orange-deep: #e06f0f;
  --tint: #fff2e5;
  --mist: #f2f5f9;
  --line: #dce4ec;
  --line-strong: #b9c6d4;
  --muted: #5a6b7d;
  --ok: #12805c;
  --ok-tint: #e5f5ee;
  --warn: #8a4b00;
  --bad: #b42318;
  --r-field: 12px;
  --r-panel: 20px;
  --font: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.muted { color: var(--muted); font-weight: 500; }
.small { font-size: 0.8125rem; }

/* ---- header ------------------------------------------------------------------------------- */
.top { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { height: 46px; width: auto; }
.top-note { color: var(--navy); font-weight: 700; font-size: 0.9375rem; }

/* ---- layout ------------------------------------------------------------------------------- */
.layout { display: grid; gap: 16px; padding-top: 20px; padding-bottom: 32px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; min-width: 0; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 36px; padding-bottom: 56px; }
  .panel { padding: 28px; }
  .fare-panel { position: sticky; top: 20px; }
}

h1 { margin: 0 0 6px; font-size: clamp(1.625rem, 4.4vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
h2 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.3; font-weight: 800; color: var(--navy); }
.lede { margin: 0 0 22px; color: var(--muted); font-weight: 500; max-width: 46ch; }

/* ---- form --------------------------------------------------------------------------------- */
label, legend { display: block; padding: 0; margin: 0 0 6px; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { position: relative; margin: 0 0 16px; min-width: 0; }
.duo { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 420px) { .duo { grid-template-columns: 1fr 1fr; } }
small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }

input[type=text], input[type=number], input[type=tel], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-field);
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 84px; font-weight: 500; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003b71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
input::placeholder, textarea::placeholder { color: #8a99a8; font-weight: 500; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(0 59 113 / 0.16); }

/* route: two stops joined by a dashed line. Row geometry is fixed (22px label + 48px control) so the line always meets both dots. */
.route { position: relative; display: grid; gap: 12px; padding-left: 30px; margin-bottom: 18px; }
.route::before { content: ''; position: absolute; left: 9px; top: 46px; bottom: 24px; border-left: 2px dashed var(--line-strong); }
.place { position: relative; }
.place label { height: 22px; line-height: 22px; margin: 0; }
.control { position: relative; }
.control input { padding-right: 44px; text-overflow: ellipsis; }
.dot { position: absolute; left: -30px; top: 37px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.dot-from { border: 5px solid var(--navy); }
.dot-to { background: var(--orange); box-shadow: 0 0 0 5px var(--tint); }
.clear { position: absolute; right: 4px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.clear:hover { background: var(--mist); color: var(--ink); }
.swap { position: absolute; right: 0; top: 62px; width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; z-index: 2; transition: background 0.15s, border-color 0.15s; }
.swap:hover { background: var(--mist); border-color: var(--navy); }
.route .control input { padding-right: 44px; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; max-height: 280px; overflow: auto; box-shadow: 0 12px 32px rgb(15 36 56 / 0.16); }
.suggest li { padding: 11px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.suggest li:hover, .suggest li[aria-selected=true] { background: var(--tint); }

/* segmented choice */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mist); border-radius: var(--r-field); border: 1.5px solid var(--line); }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font-weight: 700; color: var(--muted); transition: background 0.15s, color 0.15s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 1px; }
.seg input:not(:checked):hover + span { color: var(--navy); }

/* stepper */
.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: #fff; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.stepper:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgb(0 59 113 / 0.16); }
.stepper button { flex: 0 0 48px; border: 0; background: var(--mist); color: var(--navy); font-size: 1.375rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--line); }
.stepper button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.stepper input { border: 0; border-radius: 0; min-height: 44px; text-align: center; font-weight: 800; font-size: 1.125rem; padding: 0 4px; min-width: 0; -moz-appearance: textfield; box-shadow: none; }
.stepper input:focus-visible { box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* buttons */
.btn { min-height: 48px; padding: 0 22px; border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.05s; }
.btn:hover { border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.primary { width: 100%; min-height: 54px; background: var(--orange); border-color: var(--orange); color: var(--navy); font-size: 1.0625rem; }
.btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.error { margin: 0 0 14px; color: var(--bad); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }

/* ---- fare panel --------------------------------------------------------------------------- */
.empty { padding: 8px 0; }
.empty p { margin: 0; color: var(--muted); font-weight: 500; max-width: 38ch; }

.strip { display: grid; grid-template-columns: minmax(0, auto) minmax(40px, 1fr) minmax(0, auto); align-items: center; gap: 12px; }
.strip-meta { margin: 6px 0 22px; color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.strip-meta:empty { display: none; }
.city { font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.city.end { text-align: right; }
.line { position: relative; height: 14px; }
.line::before { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; border-top: 2px dashed var(--line-strong); }
.line::after { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--navy); background: #fff; box-sizing: border-box; }
.line-end { position: absolute; right: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--tint); }

.fare-label { margin: 0; color: var(--muted); font-weight: 700; font-size: 0.875rem; }
.fare { margin: 0; font-size: clamp(3.25rem, 11vw, 4.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--navy); font-variant-numeric: tabular-nums; }
.fare-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 0; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-size: 0.75rem; font-weight: 800; }
.badge.warn { background: var(--tint); color: var(--warn); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.explain { margin: 18px 0 6px; padding: 2px 0 2px 14px; border-left: 3px solid var(--orange); color: var(--ink); font-weight: 500; font-size: 0.9375rem; }
.explain:empty { display: none; }

/* ---- feedback ----------------------------------------------------------------------------- */
.feedback { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.feedback > .muted { margin: 0 0 14px; }
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.verdict { display: grid; justify-items: center; gap: 4px; min-height: 76px; padding: 12px 6px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.verdict:hover { border-color: var(--navy); }
.verdict:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.verdict[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.money { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-field); background: #fff; padding-left: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.money:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgb(0 59 113 / 0.16); }
.money span { font-weight: 800; color: var(--navy); font-size: 1.125rem; }
.money input { border: 0; box-shadow: none; font-weight: 800; font-size: 1.125rem; }
.money input:focus-visible { box-shadow: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 0.875rem; cursor: pointer; }
.quick button:hover { border-color: var(--navy); background: var(--mist); }
.quick button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin: 0 0 14px; }

.signin { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.signin summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 0.9375rem; padding: 4px 0; }
.signin summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.signin form { margin-top: 12px; }

.foot { color: var(--muted); font-size: 0.8125rem; font-weight: 500; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.foot p { margin: 0 0 8px; max-width: 70ch; }

/* ---- the one moment of motion: the fare arrives -------------------------------------------- */
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#result:not([hidden]) .fare { animation: arrive 0.35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
