@import url("https://fonts.googleapis.com/css2?family=Questrial&display=swap");

:root {
  color-scheme: dark;
  --ink: #f6f8f4;
  --muted: #a8b4ad;
  --quiet: #728177;
  --page: #050806;
  --panel: #0a0f0d;
  --panel-2: #101712;
  --panel-3: #16211b;
  --line: rgba(222, 238, 226, .12);
  --line-strong: rgba(222, 238, 226, .22);
  --gas: #ff9c48;
  --ev: #63f2b3;
  --blue: #7aa8ff;
  --leaf: #a9ff4f;
  --shadow: 0 34px 100px rgba(0, 0, 0, .46);
  --radius: 8px;
  font-family: "Questrial", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 88, 58, .28), transparent 31rem),
    radial-gradient(circle at 82% 18%, rgba(16, 58, 42, .2), transparent 36rem),
    linear-gradient(135deg, #0b241a 0%, #06120d 44%, #010302 100%),
    var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, rgba(20, 74, 50, .15), transparent 66%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 6, .78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(169, 255, 79, .36);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #18251d, #080d0a);
  color: var(--leaf);
  font-size: 13px;
  box-shadow: 0 0 34px rgba(99, 242, 179, .12);
}

.nav {
  gap: 20px;
  color: #c6d2cb;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--leaf);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(500px, .95fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 58px 0 42px;
}

.hero::before,
.hero::after,
.hero-copy::before,
.tool-card::before {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: 0 auto 0 50%;
  z-index: -2;
  width: 100vw;
  height: auto;
  background:
    radial-gradient(circle at 20% 16%, rgba(33, 109, 70, .24), transparent 28rem),
    radial-gradient(circle at 84% 22%, rgba(23, 77, 54, .18), transparent 30rem),
    linear-gradient(135deg, rgba(12, 42, 30, .82), rgba(4, 12, 9, .78) 54%, rgba(0, 0, 0, .9));
  opacity: 1;
  transform: translateX(-50%);
}

.hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  isolation: isolate;
}

.hero-copy h1 {
  max-width: 710px;
  margin: 12px 0 0;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
}

.real-map-card {
  position: relative;
  overflow: hidden;
  width: min(690px, 100%);
  min-height: 454px;
  margin-top: 28px;
  border: 1px solid rgba(122, 168, 255, .22);
  border-radius: var(--radius);
  background: #dce8dc;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 26px 78px rgba(0, 0, 0, .38);
}

.trip-map {
  position: absolute;
  inset: 0;
  min-height: 454px;
  background: #dce8dc;
}

.trip-map .leaflet-tile {
  filter: saturate(.78) contrast(1.06) brightness(1.06);
}

.trip-map .leaflet-control-container {
  font-family: inherit;
}

.trip-map .leaflet-control-attribution {
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #3f4b43;
  font-size: 10px;
}

.trip-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(18, 27, 22, .12);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.trip-map .leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: #17211c;
  line-height: 30px;
}

.map-route-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: grid;
  gap: 10px;
  width: min(292px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid rgba(18, 27, 22, .1);
  border-radius: 8px;
  background: rgba(247, 245, 240, .9);
  color: #1b2420;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.route-mode-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(18, 27, 22, .1);
  border-radius: 7px;
  background: rgba(18, 27, 22, .06);
}

.route-mode-row span {
  display: grid;
  place-items: center;
  min-height: 32px;
  color: #6a756f;
  font-size: 12px;
  font-weight: 900;
}

.route-mode-row .is-active {
  background: #fff;
  color: #111b17;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
}

.route-input-list {
  display: grid;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(18, 27, 22, .08);
}

.route-input-list span {
  min-height: 33px;
  padding: 8px 11px;
  color: #3d4742;
  font-size: 13px;
  font-weight: 800;
}

.route-input-list span + span {
  border-top: 1px solid rgba(18, 27, 22, .11);
}

.route-search-form {
  display: grid;
  gap: 8px;
}

.route-field {
  gap: 4px;
  color: #47544e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-field input {
  min-height: 36px;
  border-color: rgba(18, 27, 22, .12);
  background: rgba(18, 27, 22, .08);
  color: #17211c;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
}

.route-field input:focus {
  outline: 3px solid rgba(10, 132, 255, .22);
}

.route-submit {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: #17211c;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.route-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.map-route-panel .route-status {
  min-height: 17px;
  margin: -2px 0 0;
  color: #5d6a64;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.map-route-panel .route-status[data-type="success"] {
  color: #147c4f;
}

.map-route-panel .route-status[data-type="error"] {
  color: #b3261e;
}

.route-option {
  display: grid;
  gap: 1px;
  border-radius: 7px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .58);
  color: #17211c;
}

.route-option.is-selected {
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 132, 255, .32);
}

.route-option strong {
  font-size: 21px;
  line-height: 1.1;
}

.route-option span,
.route-option em {
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.route-option em {
  color: #2cae72;
}

.route-option.is-selected em {
  color: #dbffec;
}

.map-marker-shell {
  border: 0;
  background: transparent;
}

.map-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.map-marker-start {
  background: #34c759;
}

.map-marker-end {
  background: #0a84ff;
}

.map-route-label {
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .95);
  color: #0a84ff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 454px;
  padding: 24px;
  background: #dce8dc;
  color: #17211c;
  font-weight: 900;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-card,
.content-card,
.ticker,
.service-cta,
.legal-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 13, .82);
  box-shadow: var(--shadow);
}

.tool-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(122, 168, 255, .2);
  background:
    radial-gradient(circle at 15% 0%, rgba(38, 86, 62, .18), transparent 26rem),
    linear-gradient(145deg, rgba(17, 30, 24, .94), rgba(7, 12, 10, .95) 58%, rgba(3, 6, 5, .98));
  backdrop-filter: blur(16px);
}

.tool-card::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 38%);
  opacity: .7;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.tool-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #a9b8af;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.tool-tab:hover,
.tool-tab.is-active {
  border-color: rgba(122, 168, 255, .36);
  background: linear-gradient(180deg, rgba(122, 168, 255, .18), rgba(99, 242, 179, .08));
  color: #dce9ff;
}

.tool-tab:hover {
  transform: translateY(-1px);
}

.calculator-form {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #c4d0c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(222, 238, 226, .16);
  border-radius: var(--radius);
  background: rgba(3, 6, 5, .72);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 800;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #b8c7bf 50%) right 15px center / 7px 7px no-repeat,
    linear-gradient(135deg, #b8c7bf 50%, transparent 50%) right 10px center / 7px 7px no-repeat,
    rgba(3, 6, 5, .72);
  cursor: pointer;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(169, 255, 79, .24);
  outline-offset: 2px;
}

.unit-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tool-panel {
  display: none;
  min-height: 463px;
  padding: 0 18px 18px;
}

.tool-panel.is-active {
  display: grid;
  align-content: start;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 336px;
  align-content: stretch;
}

.result-card {
  min-height: 146px;
  padding: 16px;
  border: 1px solid rgba(222, 238, 226, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent),
    #0b110e;
}

.result-card span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.result-card:nth-child(2) strong {
  color: var(--ev);
}

.result-card:first-child strong {
  color: var(--blue);
}

.result-card:nth-child(3) strong,
.result-card:nth-child(4) strong {
  color: var(--leaf);
}

.result-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.comparison-bar {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(222, 238, 226, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.bar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.bar-row strong {
  color: var(--ink);
  text-align: right;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(222, 238, 226, .12);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.gas-fill {
  background: linear-gradient(90deg, var(--gas), #ffcf6b);
}

.ev-fill {
  background: linear-gradient(90deg, var(--ev), var(--leaf));
}

.ticker,
.section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  background: var(--line);
}

.ticker div {
  padding: 17px;
  background: rgba(10, 15, 13, .82);
}

.ticker strong,
.ticker span {
  display: block;
}

.ticker strong {
  color: var(--ink);
  font-size: 19px;
}

.ticker span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section {
  padding: 58px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.service-cta h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.05;
}

.section-heading p,
.service-cta p {
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.content-card {
  min-height: 158px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    #0b110e;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.content-card strong,
.content-card span {
  display: block;
}

.content-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.content-card span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
}

.content-card:hover {
  border-color: rgba(169, 255, 79, .38);
  transform: translateY(-2px);
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  margin-bottom: 58px;
  padding: 26px;
  background:
    linear-gradient(120deg, rgba(99, 242, 179, .12), transparent 55%),
    #0b110e;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 12px 17px;
  background: var(--leaf);
  color: #071008;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(169, 255, 79, .18);
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 38px auto 58px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    #0a0f0d;
}

.legal-page h1 {
  margin-top: 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.02;
}

.legal-page h2 {
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.formula {
  border: 1px solid rgba(99, 242, 179, .24);
  border-left: 4px solid var(--ev);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: rgba(99, 242, 179, .08);
  color: var(--ink);
  font-weight: 900;
}

.seo-page {
  width: min(1040px, calc(100% - 32px));
  margin: 38px auto 58px;
}

.seo-hero,
.seo-card,
.seo-section,
.faq-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    #0a0f0d;
  box-shadow: var(--shadow);
}

.seo-hero {
  padding: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 242, 179, .13), transparent 24rem),
    linear-gradient(135deg, rgba(12, 42, 30, .98), rgba(4, 11, 8, .98));
}

.seo-hero h1 {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.seo-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.ghost-link {
  color: #d7e4dc;
  font-weight: 900;
  text-decoration-color: rgba(169, 255, 79, .48);
  text-underline-offset: 5px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.seo-card,
.seo-section,
.faq-block {
  padding: 24px;
}

.seo-card h2,
.seo-section h2,
.faq-block h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
}

.seo-card p,
.seo-card li,
.seo-section p,
.faq-block p {
  color: var(--muted);
}

.seo-card ul,
.faq-block ul {
  padding-left: 20px;
}

.seo-section,
.faq-block {
  margin-top: 14px;
}

.seo-card .formula + .formula {
  margin-top: 10px;
}

.compact-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-block details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-block details:first-of-type {
  border-top: 0;
}

.faq-block summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 4px 0 0;
}

.footer-links {
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 38px;
  }

  .hero::after {
    display: none;
  }

  .hero-copy h1 {
    max-width: 820px;
  }

  .real-map-card {
    width: min(640px, 100%);
  }

  .compact-results,
  .link-grid,
  .seo-grid,
  .compact-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .footer,
  .service-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

    .tool-tabs,
    .unit-controls,
    .form-grid,
    .result-grid,
    .ticker {
    grid-template-columns: 1fr;
  }

  .tool-panel,
  .compact-results {
    min-height: 0;
  }

  .hero {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .seo-hero,
  .seo-card,
  .seo-section,
  .faq-block {
    padding: 20px;
  }

  .seo-hero h1 {
    font-size: 40px;
  }

  .real-map-card,
  .trip-map,
  .map-fallback {
    min-height: 540px;
    margin-top: 22px;
  }

  .map-route-panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-row strong {
    text-align: left;
  }
}
