:root {
  --ink: #101828;
  --muted: #667085;
  --soft: #f2f4f7;
  --line: #e4e7ec;
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1749b8;
  --primary-soft: #eff6ff;
  --success: #087f5b;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
/* Classes that set display (.button) must not show what the page hides. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fcfcfd;
  font-family: "Manrope", "Noto Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(228, 231, 236, 0.82);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; width: 5px; border-radius: 6px; background: white; }
.brand-mark::before { height: 15px; left: 7px; top: 8px; }
.brand-mark span { height: 10px; left: 13px; top: 8px; }
.brand-mark::after { height: 17px; left: 19px; top: 6px; background: #60a5fa; }
.nav-links { display: flex; align-items: center; gap: 26px; color: #475467; font-size: 14px; font-weight: 650; }
.nav-links a:hover, .link-button:hover { color: var(--primary); }
.nav-account { padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink) !important; background: white; }
.inline-form { display: inline; }
.link-button { border: 0; padding: 0; color: #475467; background: transparent; font-weight: 650; }

.hero { overflow: hidden; padding: 92px 0 100px; background: radial-gradient(circle at 75% 18%, #dbeafe 0, transparent 31%), linear-gradient(180deg, #f8faff 0%, #fff 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; align-items: center; gap: 88px; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; max-width: 690px; font-size: clamp(50px, 6vw, 78px); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { color: var(--primary); }
.hero-lead { max-width: 590px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.availability-card { display: inline-flex; align-items: center; gap: 13px; margin-top: 34px; padding: 12px 17px; border: 1px solid #d0d5dd; border-radius: 14px; background: rgba(255,255,255,.76); }
.availability-card div { display: flex; flex-direction: column; gap: 2px; }
.availability-card strong { font-size: 14px; }
.availability-card span:not(.availability-dot) { color: var(--muted); font-size: 11px; }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 5px #d1fadf; }
.availability-public_full .availability-dot { background: #f79009; box-shadow: 0 0 0 5px #fef0c7; }
.availability-full .availability-dot { background: #f04438; box-shadow: 0 0 0 5px #fee4e2; }

.lookup-card, .session-card, .checkout-card, .panel, .auth-card, .status-card {
  border: 1px solid rgba(228, 231, 236, .92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lookup-card { padding: 34px; }
.lookup-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.step-number { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.lookup-heading h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.035em; text-wrap: balance; }
.lookup-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.lookup-form { margin-top: 25px; }
.lookup-form label, .stack-form label, .plans-grid label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 800; }
.plate-input {
  width: 100%; height: 72px; border: 2px solid #d0d5dd; border-radius: 14px; padding: 0 20px; outline: none;
  background: #fff; color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: .18s ease;
}
.plate-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .10); }
.plate-input-wrap { position: relative; }
.plate-input-wrap .plate-input { padding-right: 50px; }
.plate-clear { position: absolute; top: 50%; right: 13px; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 50%; color: var(--muted); background: var(--soft); font-size: 21px; line-height: 1; }
.plate-clear:hover { color: var(--ink); background: #e4e7ec; }
.field-help { margin: 9px 0 19px; color: var(--muted); font-size: 11px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 11px; padding: 0 20px; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .82; transform: none; }
.button.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: currentColor; border-radius: 50%; animation: button-spin .7s linear infinite; }
.button-primary { color: white; background: var(--primary); box-shadow: 0 8px 20px rgba(37, 99, 235, .21); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { border-color: var(--line); color: var(--ink); background: white; }
.button-large { min-height: 55px; }
.button-block { width: 100%; }
.lookup-form .button { width: 100%; justify-content: space-between; }
.lookup-trust, .secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.trust-icon, .secure-note span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: var(--success); background: var(--success-soft); font-weight: 800; }

/* The driver's lookup, layout A: a big plate photo on top of each card, plate and time parked on
   the left, the fee on the right, a green border on the picked car. */
.lookup-shell { max-width: 560px; }
.lookup-heading h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.035em; text-wrap: balance; }
.lookup-note { margin: 4px 0 0; padding: 14px 16px; border-radius: 12px; color: #475467; background: var(--soft); font-size: 13px; line-height: 1.6; }
.lookup-note a { color: var(--primary); font-weight: 800; white-space: nowrap; }
.lookup-note.is-error { color: var(--danger); background: #fef3f2; }
.lookup-warning { display: flex; gap: 9px; margin-top: 4px; padding: 11px 13px; border: 1px solid #fedf89; border-radius: 12px; color: #7a2e0e; background: #fffaeb; font-size: 12.5px; line-height: 1.5; }
.lookup-warning p { margin: 0; }
.lookup-count { margin: 16px 2px 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.lookup-cars { display: grid; gap: 10px; }
.lookup-car { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.lookup-car:hover { border-color: #b2ccff; }
.lookup-car.is-selected, .lookup-car:has(input:checked) { border-color: var(--success); box-shadow: 0 0 0 1px var(--success); }
.lookup-car:has(input:focus-visible) { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.lookup-car.is-free { cursor: default; }
.lookup-car.is-free:hover { border-color: var(--line); }
.lookup-photo { display: grid; place-items: center; height: 96px; padding: 8px; background: linear-gradient(#8a8f96, #5d636b); }
.lookup-photo img { display: block; width: auto; height: 100%; max-width: 100%; border-radius: 4px; object-fit: contain; }
.lookup-plate { padding: 5px 12px; border: 2px solid #222; border-radius: 6px; color: #111; background: white; font-size: 22px; font-weight: 850; letter-spacing: .05em; }
.lookup-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.lookup-id { min-width: 0; }
.lookup-id strong { font-size: 18px; font-weight: 850; letter-spacing: .05em; }
.lookup-id small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.lookup-tag { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 6px; color: var(--primary-dark); background: var(--primary-soft); font-size: 10.5px; font-weight: 800; vertical-align: 2px; }
.lookup-fee { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.is-free .lookup-fee { color: var(--success); }
.lookup-fee input { width: 20px; height: 20px; margin: 0; accent-color: var(--success); cursor: pointer; }
.lookup-pay { margin-top: 14px; justify-content: space-between; }
.lookup-pay:disabled:not(.is-loading) { cursor: default; opacity: .5; box-shadow: none; }
.status-warning .status-symbol { color: var(--warning); background: #fffaeb; }
.confirm-question { font-size: 24px; line-height: 1.35; text-wrap: balance; }
.confirm-actions { display: grid; gap: 10px; margin-top: 26px; }

.section { padding: 88px 0; }
.section-heading, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading h2, .page-heading h1, .center-heading h1 { margin: 9px 0 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.055em; }
.section-heading.compact { margin-bottom: 45px; }
.text-link { color: var(--muted); font-size: 14px; }
.text-link strong { color: var(--primary); }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rate-card { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.rate-card.featured { border-color: #bfdbfe; background: var(--primary-soft); }
.rate-card.dark { color: white; border-color: var(--ink); background: var(--ink); }
.rate-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.rate-card.dark .rate-label, .rate-card.dark .rate-price { color: #98a2b3; }
.rate-card strong { margin: 10px 0 6px; font-size: 31px; letter-spacing: -.04em; }
.rate-price { color: var(--primary); font-size: 13px; font-weight: 700; }
.how-section { background: #f8fafc; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; }
.steps-grid article { position: relative; }
.steps-grid article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--primary); background: #dbeafe; font-size: 13px; font-weight: 800; }
.steps-grid h3 { margin: 20px 0 8px; font-size: 19px; }
.steps-grid p { max-width: 270px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.page-section { min-height: calc(100vh - 220px); padding: 64px 0 90px; background: linear-gradient(180deg, #f8faff, #fcfcfd 300px); }
.narrow-page .shell { max-width: 610px; }
.detail-shell { max-width: 980px; }
.back-row { margin-bottom: 20px; color: var(--muted); font-size: 13px; font-weight: 700; }
.payment-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 24px; }
.session-card, .checkout-card { padding: 32px; box-shadow: 0 16px 45px rgba(16,24,40,.08); }
.session-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.plate-display { margin: 17px 0 26px; padding-bottom: 25px; border-bottom: 1px solid var(--line); font-size: 38px; font-weight: 850; letter-spacing: .055em; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #344054; background: var(--soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-paid, .status-success, .status-active, .status-acknowledged { color: var(--success); background: var(--success-soft); }
.status-payment_due, .status-pending, .status-created, .status-sent { color: var(--warning); background: #fffaeb; }
.status-failed, .status-expired, .status-cancelled { color: var(--danger); background: #fef3f2; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 750; text-align: right; }
.price-lines { margin-top: 20px; padding-top: 18px; border-top: 1px dashed #d0d5dd; }
.price-lines > div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; font-size: 11px; }
.price-lines span { color: var(--muted); }
.checkout-card { text-align: center; }
.checkout-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.amount { margin: 10px 0; font-size: 47px; line-height: 1; font-weight: 850; letter-spacing: -.055em; }
.amount small { font-size: 22px; color: var(--muted); }
.checkout-note { margin: 17px auto 27px; max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.result-icon, .status-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; font-size: 22px; font-weight: 900; }
.result-icon.success, .status-success .status-symbol { color: var(--success); background: var(--success-soft); }
.result-icon.pending, .status-symbol.pending { color: var(--primary); background: var(--primary-soft); letter-spacing: 2px; }
.success-text { color: var(--success); }
.checkout-card h2, .status-card h1 { margin: 9px 0 10px; letter-spacing: -.04em; }
.checkout-card > p, .status-card > p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.countdown { margin: 24px auto 0; padding: 18px; border-radius: 14px; background: var(--success-soft); }
.countdown span { display: block; color: var(--success); font-size: 35px; font-weight: 850; letter-spacing: -.03em; }
.countdown small { color: #3f6b5a; }
.gate-notice { margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: var(--warning); background: #fffaeb; font-size: 12px; font-weight: 700; line-height: 1.6; }
.poll-status { margin-top: 22px; padding: 12px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 750; }
.status-card { padding: 50px 42px; text-align: center; box-shadow: 0 16px 45px rgba(16,24,40,.08); }
.status-search { max-width: 390px; margin: 28px auto 0; text-align: left; }
.status-neutral .status-symbol { color: var(--muted); background: var(--soft); }
.status-pending .status-symbol { color: var(--primary); background: var(--primary-soft); }
.mock-banner { margin: 0 auto 12px; padding: 8px; border-radius: 8px; color: #7a2e0e; background: #fffaeb; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-align: center; }
.checkout-card.standalone { box-shadow: 0 16px 45px rgba(16,24,40,.08); }
.checkout-card.standalone h1 { margin: 14px 0; font-size: 42px; }
.compact-list { margin: 24px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.auth-card { padding: 42px; box-shadow: 0 16px 45px rgba(16,24,40,.08); }
.auth-card h1 { margin: 9px 0; font-size: 37px; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); font-size: 13px; }
.stack-form { margin-top: 28px; }
.stack-form p { margin: 0 0 17px; }
.stack-form input, .add-vehicle-form input, .plans-grid select { width: 100%; min-height: 48px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 13px; outline: 0; background: white; }
.stack-form input:focus, .add-vehicle-form input:focus, .plans-grid select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #dbeafe; }
.stack-form .helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.stack-form ul.errorlist { padding: 0; color: var(--danger); list-style: none; font-size: 11px; }
.auth-footer { margin-top: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-footer a { color: var(--primary); font-weight: 750; }

.account-page, .plans-page, .dashboard-page { min-height: calc(100vh - 150px); }
.account-grid, .dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { overflow: hidden; padding: 25px; border-radius: 17px; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.panel-heading > span { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.vehicle-row, .subscription-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.vehicle-row > div, .subscription-row > div { display: flex; flex-direction: column; gap: 3px; }
.vehicle-row strong, .subscription-row strong { font-size: 14px; }
.vehicle-row small, .subscription-row small { color: var(--muted); font-size: 10px; }
.icon-button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); background: var(--soft); font-size: 18px; }
.add-vehicle-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 18px; }
.subscription-meta { align-items: flex-end; }
.empty-state { padding: 25px 0; color: var(--muted); font-size: 12px; text-align: center; }
.empty-state a { color: var(--primary); font-weight: 700; }
.empty-state.wide { grid-column: 1 / -1; padding: 60px; border: 1px dashed #d0d5dd; border-radius: 16px; }
.payment-history { margin-top: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 10px 12px; color: var(--muted); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .07em; }
td { padding: 13px 12px; border-top: 1px solid var(--line); }

.center-heading { max-width: 710px; margin: 0 auto 48px; text-align: center; }
.center-heading p { color: var(--muted); line-height: 1.65; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.plan-card.popular { border-color: var(--primary); box-shadow: 0 16px 45px rgba(37,99,235,.12); }
.popular-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; color: white; background: var(--primary); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.plan-type { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.plan-card h2 { margin: 10px 0 7px; font-size: 22px; }
.plan-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-price { margin: 22px 0; font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.plan-price small { font-size: 16px; color: var(--muted); }
.plan-card ul { flex: 1; margin: 0 0 25px; padding: 0; list-style: none; }
.plan-card li { margin: 9px 0; color: #475467; font-size: 12px; }
.plans-grid label { color: var(--muted); }
.plans-grid select { margin: 7px 0 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 10px; }
.metric-grid strong { display: block; margin: 8px 0 3px; font-size: 29px; letter-spacing: -.04em; }
.alert-list > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.alert-list > div:first-child { border-top: 0; }
.alert-list strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--warning); background: #fffaeb; }
.alert-list span { color: var(--muted); font-size: 12px; }
.manual-gates { margin-top: 22px; }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate-actions form { display: grid; grid-template-columns: 1fr minmax(180px, 2fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.gate-actions form > div { display: flex; flex-direction: column; gap: 3px; }
.gate-actions small { color: var(--muted); font-size: 10px; }
.gate-actions input { min-height: 43px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 9px; }

.messages { position: fixed; top: 88px; left: 50%; z-index: 50; transform: translateX(-50%); }
.message { margin-left: auto; max-width: 520px; padding: 13px 17px; border: 1px solid #bfdbfe; border-radius: 12px; color: #1849a9; background: #eff8ff; box-shadow: 0 12px 30px rgba(16,24,40,.1); font-size: 12px; }
.message-success { border-color: #abefc6; color: #067647; background: #ecfdf3; }
.message-error { border-color: #fecdca; color: #b42318; background: #fef3f2; }
.message.is-dismissing { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: white; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { font-weight: 800; }
.footer-row p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .hero { padding: 62px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin: 0 auto; }
  .availability-card { text-align: left; }
  .lookup-card { width: min(520px, 100%); margin: 0 auto; }
  .rate-grid, .steps-grid, .plans-grid { grid-template-columns: 1fr; }
  .rate-card { min-height: 150px; }
  .steps-grid { gap: 32px; }
  .steps-grid article { text-align: center; }
  .steps-grid article > span { margin: 0 auto; }
  .steps-grid p { margin: 0 auto; }
  .payment-layout, .account-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .payment-layout .checkout-card { order: -1; }
  .gate-actions { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .gate-actions form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 26px, 1160px); }
  .nav-row { min-height: 64px; }
  .nav-links > a:first-child, .nav-links > form { display: none; }
  .nav-links { gap: 9px; }
  .brand { font-size: 14px; }
  .hero { padding: 40px 0 52px; }
  .hero-grid { gap: 38px; }
  .hero h1 { font-size: clamp(41px, 12vw, 47px); }
  .hero-lead { font-size: 15px; }
  .lookup-card { padding: 23px; }
  .plate-input { height: 65px; font-size: 22px; }
  .section { padding: 62px 0; }
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .page-heading h1, .center-heading h1 { font-size: 33px; }
  .text-link { align-self: flex-start; }
  .page-section { padding: 40px 0 65px; }
  .session-card, .checkout-card, .auth-card, .status-card { padding: 25px; }
  .plate-display { font-size: 31px; }
  .amount { font-size: 42px; }
  .account-page .page-heading { gap: 15px; }
  .add-vehicle-form { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { padding: 17px; }
  .metric-grid strong { font-size: 24px; }
  .footer-row { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .button-large { min-height: 58px; }
}

@keyframes button-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
