:root {
  --ink: #171913;
  --paper: #f2f0e8;
  --acid: #dfff43;
  --orange: #ff6b2c;
  --line: #c9c7bd;
  --muted: #686a61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.route-line { height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 32px, var(--acid) 32px 64px); }
.topbar { height: 76px; max-width: 1240px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--acid); transform: rotate(-4deg); }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #46a239; box-shadow: 0 0 0 4px #46a22020; }
main { max-width: 1240px; margin: auto; padding: 0 30px; }
.hero { min-height: 620px; padding: 72px 0 68px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .7fr); gap: 90px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-family: "Courier New", monospace; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(54px, 7vw, 102px); line-height: .96; letter-spacing: -.075em; }
h1 em { color: var(--orange); font-style: normal; }
.lead { max-width: 570px; color: var(--muted); font-size: 18px; }
.meter-panel { background: var(--ink); color: white; padding: 28px; box-shadow: 14px 14px 0 var(--acid); }
.meter-head { margin: -28px -28px 25px; padding: 16px 28px; border-bottom: 1px solid #3e4038; display: flex; justify-content: space-between; font-size: 13px; color: #c4c6bd; }
.meter-head output { font-family: "Courier New", monospace; color: var(--acid); }
.field { display: block; margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; color: #bbbdb4; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-unit, select { width: 100%; height: 52px; border: 1px solid #53554d; background: #262820; color: white; }
select { appearance: none; padding: 0 42px 0 14px; background-image: linear-gradient(45deg, transparent 50%, var(--acid) 50%), linear-gradient(135deg, var(--acid) 50%, transparent 50%); background-position: calc(100% - 19px) 22px, calc(100% - 13px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.input-unit { display: flex; align-items: center; }
.input-unit input { min-width: 0; width: 100%; height: 100%; padding: 0 4px 0 14px; border: 0; outline: 0; background: transparent; color: white; font-family: "Courier New", monospace; font-size: 21px; font-weight: 700; }
.input-unit span { padding-right: 13px; color: #9ea097; font-size: 12px; white-space: nowrap; }
select:focus, .input-unit:focus-within { outline: 2px solid var(--acid); outline-offset: 2px; }
.night-switch { min-height: 62px; margin: 2px 0 0; display: flex; align-items: center; gap: 13px; cursor: pointer; }
.night-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: 0 0 44px; width: 44px; height: 24px; border: 1px solid #6b6d64; padding: 3px; }
.switch b { display: block; width: 16px; height: 16px; background: #888a82; transition: .2s; }
.night-switch input:checked + .switch { border-color: var(--acid); }
.night-switch input:checked + .switch b { transform: translateX(20px); background: var(--acid); }
.night-switch input:focus-visible + .switch { outline: 2px solid white; outline-offset: 3px; }
.night-switch strong, .night-switch small { display: block; }
.night-switch strong { font-size: 14px; }
.night-switch small { margin-top: 2px; color: #92948b; font-size: 11px; }
.form-error { min-height: 21px; margin: 5px 0 8px; color: #ff9b77; font-size: 13px; }
.calculate { width: 100%; height: 54px; padding: 0 18px; border: 0; background: var(--acid); color: var(--ink); display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.calculate:hover { background: white; }
.calculate b { font-size: 23px; }
.results { margin: 0 -30px; padding: 65px 30px 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-heading h2, .how-it-works h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.055em; line-height: 1; }
.trip-summary { margin: 0; max-width: 450px; color: var(--muted); text-align: right; font-family: "Courier New", monospace; font-size: 13px; }
.fare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fare-card { min-width: 0; border: 2px solid var(--ink); background: #faf9f3; }
.ride-card { box-shadow: 7px 7px 0 var(--orange); }
.taxi-card { box-shadow: 7px 7px 0 var(--acid); }
.card-top { padding: 22px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line); }
.vehicle-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }
.card-top p { margin: 0; font-size: 17px; font-weight: 800; }
.card-top small { color: var(--muted); }
.badge { margin-left: auto; padding: 4px 8px; background: #e6e4da; font-size: 11px; font-weight: 700; }
.total { padding: 25px 24px 20px; display: flex; align-items: baseline; justify-content: space-between; }
.total > span { color: var(--muted); font-size: 13px; }
.total strong { font-family: "Courier New", monospace; font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -.07em; }
.total sup { margin-right: 7px; font-size: 18px; vertical-align: top; letter-spacing: 0; }
.receipt-lines { margin: 0 24px; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.receipt-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 10px 0; color: #45473f; font-size: 13px; }
.receipt-line span:first-child { overflow-wrap: anywhere; }
.receipt-line strong { font-family: "Courier New", monospace; font-weight: 700; white-space: nowrap; }
.receipt-line.muted { color: #96988f; }
.card-note { min-height: 58px; margin: 0; padding: 16px 24px; color: var(--muted); font-size: 11px; }
.comparison { margin-top: 28px; padding: 17px 20px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.comparison strong { color: var(--acid); }
.comparison span { color: #bfc1b7; font-size: 12px; }
.disclaimer { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.how-it-works { padding: 76px 0 90px; }
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.steps > div { padding: 24px 32px 12px 0; border-right: 1px solid var(--line); }
.steps > div + div { padding-left: 32px; }
.steps > div:last-child { border-right: 0; }
.steps span { font-family: "Courier New", monospace; color: var(--orange); font-weight: 800; }
.steps h3 { margin: 25px 0 10px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
footer { min-height: 90px; padding: 25px max(30px, calc((100vw - 1180px) / 2)); background: var(--ink); color: #a7a99f; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
footer span:first-child { color: white; font-size: 16px; font-weight: 800; }

@media (max-width: 800px) {
  .topbar, main { padding-left: 20px; padding-right: 20px; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 52px 0 58px; }
  h1 { font-size: clamp(52px, 16vw, 76px); }
  .lead { font-size: 16px; }
  .meter-panel { box-shadow: 8px 8px 0 var(--acid); }
  .results { margin: 0 -20px; padding: 52px 20px 62px; }
  .section-heading { display: block; }
  .trip-summary { margin-top: 16px; text-align: left; }
  .fare-grid { grid-template-columns: 1fr; gap: 28px; }
  .total strong { font-size: 60px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div, .steps > div + div { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps > div:last-child { border-bottom: 0; }
  .steps h3 { margin: 12px 0 5px; }
}

@media (max-width: 480px) {
  .status { display: none; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .meter-panel { padding: 22px; }
  .meter-head { margin: -22px -22px 22px; padding: 14px 22px; }
  .card-top, .total { padding-left: 18px; padding-right: 18px; }
  .receipt-lines { margin-left: 18px; margin-right: 18px; }
  .comparison { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; align-items: flex-start; gap: 5px; }
}

@media (prefers-reduced-motion: no-preference) {
  .fare-card { animation: rise .45s ease both; }
  .taxi-card { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
