/* Upshift Mobile Mechanics — site styles */

:root {
  --navy: #0a1222;
  --navy-2: #131d31;
  --navy-line: #1e2940;
  --navy-border: #334063;
  --on-dark: #f3f5f9;
  --on-dark-muted: #a9b3c6;

  --ink: #0e1525;
  --body: #475066;
  --muted: #5a6478;
  --line: #e6e9ef;
  --bg: #f2f4f7;
  --white: #ffffff;

  --red: #e2262f;
  --red-hover: #c81e27;
  --red-text: #c81e27;
  --red-on-dark: #ff6b71;
  --red-mono: #ff7a80;
  --error: #b91c1c;

  --green: #22c55e;
  --amber: #f59e0b;
  --red-dot: #ef4444;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--red-text);
}

a:hover {
  color: #951319;
}

:focus-visible {
  outline: 3px solid var(--red-mono);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text);
}

.eyebrow--on-dark {
  color: var(--red-mono);
}

.h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.h2--sm {
  font-size: clamp(28px, 3.4vw, 42px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn .icon {
  font-size: 18px;
  stroke-width: 2.5;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--navy-border);
  color: var(--on-dark);
}

.btn-ghost:hover {
  border-color: var(--on-dark-muted);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: #e4e8f0;
  color: var(--navy);
}

.btn-outline {
  border-color: #c7cdd8;
  background: var(--white);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 42px;
}

.brand-word {
  width: auto;
  height: 30px;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #d5dbe6;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.phone-pill:hover {
  color: var(--white);
  border-color: var(--on-dark-muted);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  background: transparent;
  color: var(--on-dark);
  font-size: 22px;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Below this width the five menu links no longer fit on one line. */
@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-top: 1px solid var(--navy-line);
  }
}

@media (max-width: 700px) {
  .phone-pill {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-actions .btn {
    display: none;
  }

  .brand-mark {
    height: 36px;
  }

  .brand-word {
    height: 25px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 40px;
  padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
}

/* Side by side on laptops and up; both columns start at the top so the
   headline and buttons are on the first screen whatever the form's height. */
@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }

  .hero-copy {
    padding-top: 44px;
  }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--red-on-dark);
}

.hero .lead {
  max-width: 540px;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-phone {
  margin-top: 28px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.hero-phone a {
  color: var(--white);
  font-weight: 700;
}

.hero-phone .hours {
  white-space: nowrap;
}

/* Where the form sits beside the hero text (laptops and up), the form is the
   call to action, so the hero has no buttons of its own. */
@media (min-width: 1024px) {
  .hero .cta-row {
    display: none;
  }
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--navy-line);
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: #d5dbe6;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points .icon {
  font-size: 18px;
  color: #4ade80;
  stroke-width: 2.5;
}

/* ---------- Request card ---------- */

.request-card {
  width: 100%;
  min-width: 0;
  max-width: 640px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.request-card form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.request-card .eyebrow {
  margin-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.request-card h2 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.request-card .intro {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* Steps: without JavaScript every step shows and the form works as one page. */
.form-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.is-stepped .form-step:not(.is-current) {
  display: none;
}

.steps-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-progress p {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.steps-count {
  color: var(--ink);
}

.steps-bar {
  display: flex;
  gap: 6px;
}

.steps-bar span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e1e5ec;
}

.steps-bar span.is-done {
  background: var(--red);
}

.form-nav {
  display: flex;
  gap: 10px;
}

.form-nav .btn {
  flex: 1;
}

.form-nav .btn-back {
  flex: 0 0 auto;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.field > span {
  font-size: 14px;
  font-weight: 700;
  color: #2a3347;
}

legend {
  margin-bottom: 10px;
  padding: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
}

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c7cdd8;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pill:hover span {
  border-color: var(--ink);
}

.pill input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field {
  display: flex;
  flex: 1 1 170px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group legend {
  margin-bottom: 12px;
}

/* Full-width fields sit directly in a column-direction container, where a
   flex-basis would become a height. */
.form-step > .field,
.field-group > .field {
  flex: none;
}

.field--year {
  flex: 1 1 80px;
}

.field--vehicle {
  flex: 1 1 120px;
}

.field--trim {
  flex: 1 1 130px;
}

.field--vin {
  flex: 2 1 210px;
}

.field--city {
  flex: 2 1 180px;
}

.field--zip {
  flex: 1 1 110px;
}

.field input.vin {
  text-transform: uppercase;
}

.field input.vin::placeholder {
  text-transform: none;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c7cdd8;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 16px var(--font);
}

.field textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7386;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 21, 37, 0.15);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.field-error,
.form-status {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--error);
}

.field-error:empty,
.form-status:empty {
  display: none;
}

.form-status {
  font-size: 14px;
  text-align: center;
}

.fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.fineprint .icon {
  font-size: 16px;
}

/* Honeypot: hidden from people, visible to naive bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-success {
  padding: 28px 8px;
  text-align: center;
}

.request-success:focus {
  outline: none;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f0faf3;
  color: #15803d;
  font-size: 32px;
}

.request-success h2 {
  margin-top: 0;
}

.request-success p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section--white {
  background: var(--white);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 44px;
}

.section-head > div {
  flex: 1 1 520px;
  min-width: 0;
}

.section-head > p {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.section-intro {
  max-width: 640px;
  margin: 12px 0 40px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* About: photos, hours and key facts */

.about .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .about .container {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
  }

  .about-photos {
    justify-self: end;
  }
}

.about-lead {
  max-width: 520px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.about-lead + .about-lead {
  margin-top: 14px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 16px;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.about-links a:hover {
  text-decoration: underline;
}

.fact-list {
  max-width: 520px;
  margin: 28px 0 0;
}

.fact-list > div {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fact-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  flex: 0 0 92px;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* The photos are 340px wide, so each is capped at 300px to stay sharp. */
.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 616px;
}

.about-photos img {
  width: 100%;
  border-radius: 20px;
}

.about-photos img:last-child {
  margin-top: 40px;
}

/* Services */

.service-card {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 26px;
}

.service-card h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block: -14px;
  padding-block: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.service-meta a:hover {
  color: var(--red-text);
}

/* How it works */

.step-card {
  flex: 1 1 320px;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--red-text);
}

.step-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.step-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
}

.dot--green {
  background: var(--green);
}

.dot--amber {
  background: var(--amber);
}

.dot--red {
  background: var(--red-dot);
}

/* Pricing */

.panel {
  flex: 1 1 440px;
  min-width: 0;
  padding: 30px;
  border-radius: 18px;
}

.panel--green {
  border: 1px solid #cdebd6;
  background: #f0faf3;
}

.panel--plain {
  border: 1px solid #e1e5ec;
  background: var(--white);
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 800;
}

.panel h3 .icon {
  font-size: 22px;
}

.panel--green h3 {
  color: #14532d;
}

.panel--green h3 .icon {
  color: #15803d;
  stroke-width: 2.5;
}

.panel ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2a3d;
}

.panel dl {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.panel dt {
  font-weight: 700;
}

.panel dd {
  margin: 2px 0 0;
  color: var(--body);
}

/* Service area */

.area {
  background: var(--navy-2);
  color: var(--on-dark);
}

.area .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}

.area-copy {
  flex: 1 1 440px;
  min-width: 0;
}

.area-copy .lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.no-fee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #d1fae0;
  font-size: 15px;
  font-weight: 700;
}

.no-fee .icon {
  font-size: 18px;
  color: #4ade80;
  stroke-width: 2.5;
}

.area-list {
  margin: 28px 0 0;
}

.area-list > div {
  padding: 18px 0;
  border-top: 1px solid var(--navy-border);
}

.area-list > div:last-child {
  border-bottom: 1px solid var(--navy-border);
}

.area-list dt {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.area-list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #d5dbe6;
}

.town-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-chips li {
  padding: 8px 14px;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.area-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.area-note a {
  color: var(--white);
  font-weight: 700;
}

/* Service-area map. Towns are placed from their real latitude/longitude. */

.area-map {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  border-radius: 24px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.zone {
  position: absolute;
  left: 18%;
  top: 3%;
  width: 64%;
  height: 94%;
  border: 1.5px dashed rgba(255, 122, 128, 0.55);
  border-radius: 50%;
  background: rgba(226, 38, 47, 0.16);
}

.town {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-4px, -50%);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.town::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--on-dark-muted);
}

.town--main {
  transform: translate(-6px, -50%);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.town--main::before {
  width: 12px;
  height: 12px;
  background: var(--red-on-dark);
  box-shadow: 0 0 0 3px rgba(255, 107, 113, 0.25);
}

.town--left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 4px), -50%);
}

.town--main.town--left {
  transform: translate(calc(-100% + 6px), -50%);
}

.t-saratoga { left: 55.2%; top: 9.9%; }
.t-ballston { left: 45.7%; top: 22.9%; }
.t-malta { left: 54.1%; top: 28%; }
.t-clifton { left: 57.1%; top: 44.4%; }
.t-schenectady { left: 32.5%; top: 52.5%; }
.t-rotterdam { left: 28%; top: 56.9%; }
.t-niskayuna { left: 46.3%; top: 58%; }
.t-latham { left: 58.9%; top: 63.1%; }
.t-colonie { left: 48%; top: 67.7%; }
.t-guilderland { left: 36.8%; top: 70%; }
.t-troy { left: 68.8%; top: 66.1%; }
.t-albany { left: 59.3%; top: 78.1%; }
.t-greenbush { left: 67.1%; top: 87.9%; }

.compass {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.compass .icon {
  font-size: 16px;
  transform: rotate(-90deg);
}

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--on-dark-muted);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.key {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--on-dark-muted);
}

.key--main {
  width: 12px;
  height: 12px;
  background: var(--red-on-dark);
}

/* On small screens the map is too tight to label every town; the list beside it names them all. */
@media (max-width: 520px) {
  .town:not(.town--main) {
    gap: 0;
    font-size: 0;
  }
}

/* FAQ */

.faq .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
}

.faq-intro {
  flex: 1 1 320px;
  min-width: 0;
}

.faq-intro p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.faq-list {
  flex: 2 1 560px;
  min-width: 0;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

/* The padding is on the question itself so the whole row is easy to tap. */
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--red-text);
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: -10px 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-dark);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 72px 56px;
  border-bottom: 1px solid var(--navy-line);
}

.footer-cta h2 {
  flex: 1 1 520px;
  min-width: 0;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.footer-cta .cta-row {
  margin-top: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding-top: 40px;
}

.footer-bottom .brand-mark {
  height: 40px;
}

.footer-bottom .brand-word {
  height: 28px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 12px;
  color: var(--on-dark-muted);
  font-size: 15px;
  text-decoration: none;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 20px 28px;
}

.copyright {
  font-size: 14px;
  line-height: 1.6;
  color: #8f9ab0;
}

.copyright a {
  color: var(--on-dark-muted);
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-nav a {
  display: inline-block;
  padding-block: 12px;
  color: #8f9ab0;
  font-size: 14px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--white);
}

/* ---------- Legal pages ---------- */

.page-hero {
  background: var(--navy);
  color: var(--on-dark);
}

.page-hero .container {
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.page-hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero .lead {
  max-width: 660px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.updated {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-dark-muted);
}

.legal {
  padding-block: clamp(32px, 6vw, 64px) clamp(64px, 8vw, 104px);
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.legal-intro {
  margin-bottom: 36px;
  font-size: 17px;
  line-height: 1.7;
}

.legal-card section + section {
  margin-top: 30px;
}

.legal-card h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.legal-card h2 span {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red-text);
}

.legal-card section p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}

/* ---------- Mobile action bar ---------- */

.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--navy-line);
    background: rgba(10, 18, 34, 0.97);
  }

  .mobile-bar a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--navy-border);
    border-radius: 999px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-bar a.is-primary {
    border-color: var(--red);
    background: var(--red);
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ---------- Simple pages (thanks, 404, form errors) ---------- */

.simple-page {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.simple-page h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.simple-page p + p,
.simple-page ul + p {
  margin-top: 16px;
}

.simple-page .btn {
  margin-top: 12px;
}
