:root {
  --navy: #101a23;
  --navy-soft: #1b2b36;
  --copper: #b88935;
  --copper2: #806027;
  --gold: #dec98f;
  --paper: #f6f2ea;
  --card: #fffefa;
  --ink: #0f1b2b;
  --muted: #68736f;
  --line: #e0d9ce;
  --sage: #e6ece7;
  --forest: #101a23;
  --forest2: #1b2b36;
  --shadow: 0 28px 75px rgba(17, 27, 36, .14);
}

body {
  color: var(--ink);
  background: linear-gradient(180deg, #faf9f6 0, var(--paper) 58%, #ece9e1 100%);
}

.site-header {
  border-bottom-color: rgba(20, 32, 41, .1);
  background: rgba(250, 249, 246, .92);
}

.brand-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(145deg, #253744, var(--navy));
  box-shadow: 0 10px 24px rgba(16, 26, 35, .22);
}

.header-cta,
.primary-button {
  color: #fff !important;
  border-color: #967128;
  background: linear-gradient(135deg, #bd903b, #8c6724);
  box-shadow: 0 12px 26px rgba(128, 96, 39, .2);
}

.hero {
  min-height: 545px;
  border-color: rgba(255, 255, 255, .08);
  color: #f7f4ed;
  background:
    radial-gradient(circle at 86% 22%, rgba(226, 171, 88, .19), transparent 27%),
    radial-gradient(circle at 8% 110%, rgba(209, 106, 56, .17), transparent 31%),
    linear-gradient(135deg, #0c151d, #14232d 58%, #203541);
  box-shadow: 0 38px 100px rgba(14, 25, 33, .27);
}

.hero:after {
  opacity: .22;
  background-size: 54px 54px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
}

.eyebrow,
.mode-card span,
.result-kicker,
.section-heading span,
.tool-card span,
.feature-card span {
  color: var(--copper);
}

.hero .eyebrow,
.hero h1 em,
.hero .mode-card span {
  color: var(--gold);
}

.hero-lede { color: #c9d0d3; }
.trust-row { color: #b8c2c5; }
.trust-row span:before { color: var(--gold); }

.mode-card {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
}

.mode-card:hover,
.mode-card.is-active {
  border-color: rgba(226, 171, 88, .65);
  background: linear-gradient(135deg, rgba(209, 106, 56, .16), rgba(255, 255, 255, .07));
}

.calculator-shell { width: min(1160px, calc(100% - 24px)); }

.stepper {
  width: min(620px, calc(100% - 20px));
  margin: 0 auto 20px;
  padding: 8px;
  border: 1px solid #dde1dd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 26, 35, .11);
}

.step {
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.step.is-active {
  color: #fff;
  background: var(--copper);
}

.calculator-panel {
  border-color: #d8ddd9;
  background: rgba(255, 254, 251, .99);
}

.mode-tabs {
  border-color: #d5dad6;
  background: #f0eee8;
}

.mode-tabs button.is-active { background: var(--navy); }

.route-box {
  margin: 0 0 30px;
  padding: clamp(20px, 3vw, 31px);
  border-color: #d8ddda;
  border-radius: 19px;
  background: #f8f7f3;
}

.route-card-heading { margin-bottom: 20px; }
.route-card-heading > span {
  color: var(--copper);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.route-card-heading h3 {
  margin: 5px 0 5px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -.025em;
}

.route-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.route-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.place-field { position: relative; min-width: 0; }
.place-heading { margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.place-heading label { color: #35424a; font-size: 12px; font-weight: 850; }
.place-dot { width: 11px; height: 11px; flex: 0 0 auto; border: 3px solid var(--copper); border-radius: 50%; }
.place-dot.destination { border-color: var(--navy); border-radius: 2px; background: var(--navy); }
.place-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.place-search-row input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid #c8cfcb;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  font-size: 15px;
  font-weight: 650;
}

.place-search-row input:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(209, 106, 56, .14);
}

.search-place {
  min-width: 88px;
  min-height: 52px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.search-place:disabled { opacity: .58; cursor: wait; }
.place-status { min-height: 20px; margin-top: 7px; color: #77827e; font-size: 11px; }
.place-status.is-confirmed { color: #287355; font-weight: 800; }

.place-results {
  position: absolute;
  z-index: 700;
  top: calc(100% - 10px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #d4d9d5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 26, 35, .18);
}

.place-result {
  width: 100%;
  padding: 11px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #eceeec;
  text-align: left;
  color: var(--ink);
  background: #fff;
}

.place-result:last-child { border-bottom: 0; }
.place-result:hover,
.place-result:focus { background: #f8f2ea; }
.place-result > span:first-child { color: var(--copper); font-weight: 900; }
.place-result b { display: block; color: var(--ink); font-size: 12px; line-height: 1.35; }
.place-result small { display: block; margin-top: 2px; color: #7a8581; font-size: 10px; text-transform: capitalize; }
.route-action-row { margin-top: 17px; display: flex; align-items: center; gap: 13px; }
.route-action-row .route-button { min-width: 180px; }
.route-status { margin: 0; flex: 1; }

.form-section {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #e0e3df;
  border-radius: 16px;
  background: #fff;
}

.form-section h3 { font-size: 14px; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input,
.field select,
.field textarea { border-color: #cbd1cd; background: #fff; }

.advanced-details {
  margin-top: 17px;
  border-top: 1px solid #e2e5e2;
}

.advanced-details summary {
  padding: 16px 2px 2px;
  color: #4d5a60;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.advanced-details summary small { margin-left: 6px; color: #7d8783; font-weight: 500; }
.advanced-details .field-grid { margin-top: 14px; }
.route-button,
.secondary-button { border-color: #c9ad72; color: #6d5222; background: #fff9ed; }
.factor-track span { background: linear-gradient(90deg, var(--gold), var(--copper)); }
.score-ring { border-color: var(--score-color, var(--copper)); }

.page-hero,
.mini-result {
  background: linear-gradient(135deg, #0d171f, #1a2c37);
}

.feature-card,
.tool-card,
.mini-card { border-color: #d9ded9; }

[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

@media (max-width: 760px) {
  .hero { background: linear-gradient(145deg, #0d171f, #192d38); }
  .route-fields,
  .field-grid,
  .field-grid.two { grid-template-columns: 1fr; }
  .route-action-row { align-items: stretch; flex-direction: column; }
  .route-action-row .route-button { width: 100%; }
  .form-section { padding: 18px 13px; }
}

@media (max-width: 650px) {
  .content-page .header-nav { display: flex; }
  .content-page .header-nav a { display: none; }
  .content-page .header-nav .header-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 13px !important; font-size: 11px; }
  .stepper { width: calc(100% - 8px); border-radius: 15px; }
  .step { border-radius: 10px; }
  .route-box { padding: 18px 12px; }
  .place-search-row { grid-template-columns: 1fr; }
  .search-place { width: 100%; min-height: 46px; }
  .place-search-row input { font-size: 16px; }
  .place-results { position: static; margin-top: 7px; }
  .advanced-details summary { min-height: 48px; }
}
