:root {
  --ink: #102a31;
  --muted: #60737a;
  --surface: #ffffff;
  --canvas: #f3f7f6;
  --deep: #0b3b4c;
  --deep-2: #0f5160;
  --teal: #0f766e;
  --teal-soft: #e3f4f0;
  --amber: #f4a226;
  --amber-soft: #fff3d7;
  --line: #dbe5e3;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(11, 59, 76, .12);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--canvas); line-height: 1.5; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: white; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { padding: 22px 0; position: relative; z-index: 20; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; color: white; background: linear-gradient(145deg, var(--deep-2), var(--teal)); box-shadow: 0 9px 22px rgba(15,118,110,.24); }
.community-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--deep-2); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 750; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #20a46b; box-shadow: 0 0 0 4px rgba(32,164,107,.12); }

.hero { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(42px, 7vw, 90px); align-items: center; min-height: 690px; padding: 44px 0 72px; }
.hero-copy { padding-bottom: 44px; }
.eyebrow, .step-label { margin: 0 0 12px; color: var(--teal); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; color: var(--deep); }
.hero h1 span { color: var(--teal); }
.hero-lead { margin: 26px 0; max-width: 550px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #496169; font-size: 13px; font-weight: 650; }
.trust-row span::before { content: "✓"; color: var(--teal); margin-right: 6px; font-weight: 900; }

.calculator-card { position: relative; background: rgba(255,255,255,.96); border: 1px solid rgba(214,227,224,.9); border-radius: 30px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.calculator-card::before { content: ""; position: absolute; inset: -90px -70px auto auto; width: 200px; height: 200px; background: radial-gradient(circle, rgba(244,162,38,.17), transparent 68%); z-index: -1; }
.card-heading, .result-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.card-heading h2, .result-title-row h2 { margin: 0; color: var(--deep); font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
.card-heading .step-label { margin-bottom: 6px; }
.time-badge { white-space: nowrap; color: #8a5b12; background: var(--amber-soft); border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; }

.form-row.two-columns, .cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { position: relative; min-width: 0; }
.field-group label, .field-group legend { display: block; margin: 0 0 7px; color: #36525a; font-size: 12px; font-weight: 760; }
.field-group input, .field-group select, select { width: 100%; min-height: 50px; color: var(--ink); background: #f8fbfa; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field-group input:focus, .field-group select:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.field-group input[aria-invalid="true"] { border-color: var(--danger); }
.vehicle-field { border: 0; padding: 0; margin: 0; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; min-height: 50px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.segmented-control label { margin: 0; }
.segmented-control input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.segmented-control span { display: grid; place-items: center; height: 40px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 760; }
.segmented-control input:checked + span { background: white; color: var(--deep); box-shadow: 0 3px 12px rgba(11,59,76,.1); }
.segmented-control input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }

.route-fields { position: relative; display: grid; grid-template-columns: 1fr 40px; gap: 13px 8px; margin: 22px 0; padding-left: 28px; }
.route-fields .autocomplete { grid-column: 1; }
.route-fields .swap-button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.route-line { position: absolute; left: 5px; top: 33px; bottom: 25px; width: 12px; display: flex; flex-direction: column; align-items: center; }
.route-line span, .route-line b { width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--teal); background: white; }
.route-line b { border-radius: 3px; border-color: var(--amber); }
.route-line i { flex: 1; width: 1px; margin: 4px 0; border-left: 2px dotted #a8bdb9; }
.swap-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--teal); font-size: 20px; font-weight: 800; transition: transform .2s, background .2s; }
.swap-button:hover { transform: rotate(180deg); background: var(--teal-soft); }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 50; max-height: 300px; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 45px rgba(16,42,49,.16); padding: 6px; }
.suggestion-item { display: flex; gap: 11px; width: 100%; padding: 11px; border: 0; border-radius: 10px; text-align: left; color: var(--ink); background: transparent; }
.suggestion-item:hover, .suggestion-item:focus, .suggestion-item.is-active { background: #eef7f4; outline: none; }
.suggestion-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 16px; }
.suggestion-copy { min-width: 0; }
.suggestion-copy strong, .suggestion-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.suggestion-copy strong { font-size: 13px; }
.suggestion-copy span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.suggestion-attribution { padding: 5px 10px 3px; color: #68777d; text-align: right; font-size: 10px; }

.fare-field { margin-top: 4px; }
.money-input { position: relative; }
.money-input input { min-height: 66px; padding-right: 54px; color: var(--deep); background: #f6faf9; font-size: 28px; font-weight: 850; letter-spacing: -.02em; }
.money-input span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 750; }
.field-error { min-height: 17px; margin: 4px 2px 0; color: var(--danger); font-size: 11px; }

.cost-settings { margin: 12px 0 18px; border-top: 1px solid #e7efed; border-bottom: 1px solid #e7efed; }
.cost-settings summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; list-style: none; color: #3e5960; font-size: 12px; font-weight: 760; cursor: pointer; }
.cost-settings summary::-webkit-details-marker { display: none; }
.cost-settings summary::after { content: "+"; order: 3; font-size: 18px; color: var(--teal); }
.cost-settings[open] summary::after { content: "−"; }
.cost-settings summary span { margin-left: auto; margin-right: 12px; color: #7d8b90; font-weight: 600; }
.cost-grid { padding: 3px 0 17px; }
.compact-input { position: relative; }
.compact-input input { padding-right: 64px; }
.compact-input span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; }
.field-group small { display: block; margin: 5px 2px 0; color: #809096; font-size: 10px; }
.primary-button { width: 100%; min-height: 56px; border: 0; border-radius: 16px; color: white; background: linear-gradient(135deg, var(--deep-2), var(--teal)); font-weight: 820; box-shadow: 0 12px 26px rgba(15,118,110,.22); transition: transform .18s, box-shadow .18s, opacity .18s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(15,118,110,.28); }
.primary-button:disabled { opacity: .7; cursor: wait; transform: none; }
.button-loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-button.is-loading .button-label { display: none; }
.primary-button.is-loading .button-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { margin: 9px 0 0; min-height: 18px; color: var(--danger); text-align: center; font-size: 12px; }
.maps-attribution { margin: 3px 0 -5px; color: #849296; text-align: center; font-size: 10px; }

.result-section { padding: 0 0 74px; }
.result-card { display: grid; grid-template-columns: 1.35fr .65fr; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-main { padding: clamp(24px, 4vw, 42px); }
.result-tag { color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.hero-metric { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; }
.hero-metric strong { color: var(--deep); font-size: clamp(52px, 7vw, 76px); line-height: 1; letter-spacing: -.06em; }
.hero-metric span { color: var(--muted); font-weight: 750; }
.route-summary { margin: 8px 0 26px; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.metric-grid > div { padding: 15px; border-right: 1px solid var(--line); background: #fbfdfc; }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: var(--muted); font-size: 10px; }
.metric-grid strong { margin-top: 5px; color: var(--deep); font-size: 15px; }
.metric-grid .net-metric { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; display: flex; justify-content: space-between; align-items: center; background: #eef8f5; }
.metric-grid .net-metric strong { color: var(--teal); font-size: 20px; }
.route-warning { margin: 16px 0 0; padding: 11px 13px; color: #765219; background: #fff8e9; border-radius: 12px; font-size: 11px; }
.community-comparison { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); color: white; background: linear-gradient(155deg, var(--deep), #0c4a54); }
.comparison-heading { display: flex; align-items: center; gap: 12px; }
.community-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #72d6c5; font-size: 22px; }
.comparison-heading p, .comparison-heading h3 { margin: 0; }
.comparison-heading p { color: #9cc5c8; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.comparison-heading h3 { font-size: 17px; }
.comparison-content { flex: 1; padding: 28px 0; }
.comparison-stat { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.comparison-stat span { display: block; color: #a8c9cb; font-size: 11px; }
.comparison-stat strong { display: block; margin-top: 3px; font-size: 24px; letter-spacing: -.03em; }
.comparison-note { color: #b6d1d2; font-size: 12px; line-height: 1.6; }
.decision-panel { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.decision-panel p { margin: 0 0 10px; font-size: 12px; font-weight: 750; }
.decision-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decision-buttons button { min-height: 43px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 11px; font-size: 12px; font-weight: 730; }
.decision-buttons button:hover, .decision-buttons button.is-selected { background: #138474; border-color: #57c5b3; }
.decision-panel small { display: block; min-height: 17px; margin-top: 7px; color: #a9d7d2; font-size: 10px; }

.community-section { padding: 36px 0 92px; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--deep); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-grid article { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.summary-grid span, .summary-grid strong, .summary-grid small { display: block; }
.summary-grid span { color: var(--muted); font-size: 11px; font-weight: 690; }
.summary-grid strong { margin: 10px 0 5px; color: var(--deep); font-size: 25px; letter-spacing: -.03em; }
.summary-grid small { color: #87959a; font-size: 10px; }
.privacy-strip { padding: 38px 0; background: #dfeeea; }
.privacy-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.privacy-mark { display: grid; place-items: center; width: 48px; height: 48px; color: var(--teal); background: white; border-radius: 15px; font-weight: 900; }
.privacy-inner h2, .privacy-inner p { margin: 0; }
.privacy-inner h2 { color: var(--deep); font-size: 18px; }
.privacy-inner p { margin-top: 3px; color: #557077; font-size: 12px; }
.privacy-inner a { color: var(--deep); font-size: 12px; font-weight: 800; text-underline-offset: 4px; }

.site-footer { padding: 34px 0; color: #a9c0c4; background: #082f3b; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 30px; align-items: center; }
.footer-inner div strong, .footer-inner div span { display: block; }
.footer-inner div strong { color: white; }
.footer-inner div span, .footer-inner p { font-size: 11px; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner nav a { color: white; font-size: 12px; }
.footer-inner p { grid-column: 1 / -1; margin: 4px 0 0; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; color: white; background: #173b43; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,.22); font-size: 12px; }

.legal-page { background: white; }
.legal-header { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal-content { width: min(760px, calc(100% - 32px)); margin: 58px auto 90px; }
.legal-content h1 { color: var(--deep); font-size: clamp(34px, 6vw, 52px); letter-spacing: -.04em; }
.legal-content h2 { margin-top: 34px; color: var(--deep); font-size: 21px; }
.legal-content p, .legal-content li { color: #4e646b; line-height: 1.75; }
.legal-content a { color: var(--teal); }
.legal-updated { color: #7a8a90; font-size: 12px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 36px; padding-top: 24px; }
  .hero-copy { padding: 0; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .calculator-card { width: min(650px, 100%); margin-inline: auto; }
  .result-card { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid > div:nth-child(2) { border-right: 0; }
  .metric-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 22px, 520px); }
  .site-header { padding: 15px 0; }
  .community-chip { padding: 7px 9px; font-size: 10px; }
  .hero { padding: 25px 0 52px; gap: 28px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { margin: 19px 0; font-size: 15px; }
  .trust-row { gap: 8px 12px; font-size: 11px; }
  .calculator-card { border-radius: 23px; padding: 20px 16px; }
  .card-heading { margin-bottom: 20px; }
  .card-heading h2 { font-size: 20px; }
  .time-badge { display: none; }
  .form-row.two-columns { grid-template-columns: 1fr; }
  .route-fields { margin-top: 18px; }
  .money-input input { font-size: 26px; }
  .cost-grid { grid-template-columns: 1fr; }
  .result-section { padding-bottom: 50px; }
  .result-main, .community-comparison { padding: 23px 18px; }
  .result-title-row { margin-bottom: 18px; }
  .hero-metric strong { font-size: 56px; }
  .metric-grid strong { font-size: 14px; }
  .metric-grid .net-metric strong { font-size: 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .summary-grid article { padding: 17px 14px; }
  .summary-grid strong { font-size: 21px; }
  .community-section { padding: 24px 0 58px; }
  .privacy-inner { grid-template-columns: auto 1fr; }
  .privacy-inner a { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
