:root {
  --ink: #071522;
  --ink-soft: #173047;
  --muted: #607086;
  --line: #d8e0ea;
  --paper: #f3f7fb;
  --white: #ffffff;
  --yellow: #ffb000;
  --green: #168a58;
  --red: #c92a2a;
  --cyan: #18a7b8;
  --cream: #fff8ee;
  --shadow: 0 18px 46px rgba(7, 21, 34, 0.12);
  --premium-shadow: 0 20px 60px rgba(7, 21, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand img {
  width: 214px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(7, 21, 34, 0.14)) contrast(1.08) saturate(1.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(245, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-nav,
.hero-actions,
.topbar-actions,
.action-row,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.primary-button,
.secondary-button,
.ghost-button,
.sidebar-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-weight: 900;
}

.site-nav a,
.ghost-button,
.secondary-button {
  background: var(--white);
}

.site-nav .admin-link {
  color: var(--muted);
}

.primary-button {
  border-color: var(--yellow);
  color: var(--ink);
  background: linear-gradient(135deg, #ffd86a 0%, var(--yellow) 52%, #18a7b8 145%);
  box-shadow: 0 12px 28px rgba(255, 176, 0, 0.24);
}

.secondary-button {
  color: var(--ink);
  border-color: var(--ink);
}

.ghost-button,
.sidebar-install {
  color: var(--ink);
}

.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.notice {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.danger {
  border-color: rgba(201, 42, 42, 0.3);
  color: var(--red);
}

.landing-page {
  background: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(22px, 6vw, 72px);
  min-height: calc(100svh - 76px);
  padding: clamp(38px, 7vw, 86px) clamp(18px, 5vw, 72px) 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--muted);
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 26px;
}

.hero-panel {
  min-height: 480px;
  padding: 18px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.mini-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, rgba(255, 255, 255, 0.12) 51%, transparent 52%),
    linear-gradient(16deg, transparent 45%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.1) 49%, transparent 50%),
    #10283f;
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--yellow);
}

.pin.origin {
  left: 42px;
  bottom: 58px;
}

.pin.destination {
  right: 54px;
  top: 56px;
  background: var(--cyan);
}

.route-line {
  position: absolute;
  left: 58px;
  right: 68px;
  top: 144px;
  height: 5px;
  background: var(--yellow);
  transform: rotate(-18deg);
}

.ride-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
}

.ride-preview span,
.ride-preview small {
  color: var(--muted);
  font-weight: 800;
}

.ride-preview strong {
  font-size: 1.2rem;
}

.ride-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-band,
.driver-callout,
.site-footer {
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.content-band.alt {
  background: var(--white);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title.inline {
  align-items: center;
  margin-bottom: 0;
}

.section-title h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.feature-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.benefit-grid div,
.city-list span,
.faq-list details,
.metric,
.panel,
.list-item,
.auth-card,
.empty-state {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 21, 34, 0.06);
}

.feature-grid article,
.benefit-grid div,
.city-list span,
.faq-list details {
  padding: 18px;
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 950;
}

.feature-grid strong,
.benefit-grid strong,
.city-list span,
.faq-list summary {
  display: block;
  font-weight: 950;
}

.feature-grid p,
.benefit-grid span,
.faq-list p,
.driver-callout p {
  color: var(--muted);
  line-height: 1.5;
}

.driver-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: var(--ink);
}

.driver-callout div {
  max-width: 720px;
}

.driver-callout h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: var(--ink);
}

.site-footer img {
  width: 118px;
}

.app-body {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(24, 167, 184, 0.12), rgba(255, 176, 0, 0.06) 34%, rgba(243, 247, 251, 1) 72%),
    var(--paper);
}

.app-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100svh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100svh;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(216, 224, 234, 0.82);
  box-shadow: 18px 0 48px rgba(7, 21, 34, 0.05);
  backdrop-filter: blur(18px);
}

.app-sidebar .brand {
  justify-content: center;
  min-height: 108px;
  padding: 6px;
}

.app-sidebar .brand img {
  width: 224px;
  max-height: 102px;
}

.role-badge {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(7, 21, 34, 0.05);
}

.role-badge span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-badge strong {
  font-size: 1.2rem;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a,
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(216, 224, 234, 0.86);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.app-nav a.is-active,
.mobile-nav a.is-active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.sidebar-install {
  margin-top: auto;
  background: var(--white);
}

.app-main {
  min-width: 0;
  padding: 22px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 224, 234, 0.8);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(16px);
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.mobile-nav {
  display: none;
}

.mobile-nav:empty {
  display: none;
}

.screen {
  display: grid;
  gap: 16px;
}

.auth-wrap {
  display: grid;
  place-items: start center;
  padding-top: min(8vh, 60px);
}

.auth-card {
  width: min(100%, 520px);
  padding: 20px;
  box-shadow: var(--premium-shadow);
}

.grid-2,
.grid-3,
.metric-grid,
.content-grid {
  display: grid;
  gap: 14px;
}

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

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

.content-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header h2,
.auth-card h2 {
  margin: 0;
}

.metric {
  min-height: 112px;
  padding: 16px;
  border-left: 5px solid var(--yellow);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.metric span,
.form label span,
.list-item span,
.status-pill {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 850;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.upload-field {
  padding: 12px;
  border: 1px dashed #b8c6d8;
  border-radius: 8px;
  background: #f8fbff;
}

.upload-field input[type="file"] {
  min-height: auto;
  padding: 10px;
  background: var(--white);
}

.upload-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.form textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

.quote-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(24, 167, 184, 0.35);
  background: linear-gradient(180deg, #eefbfe, #ffffff);
}

.quote-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-grid div,
.price-grid div {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.debt-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-color: rgba(201, 42, 42, 0.22);
  background: linear-gradient(135deg, #fff7f2, #ffffff);
}

.debt-panel h2,
.debt-panel p {
  margin: 8px 0 0;
}

.inline-form {
  grid-template-columns: minmax(140px, 190px) auto;
  align-items: end;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.list-item strong {
  display: block;
}

.list-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #e8eef5;
}

.status-pill.green {
  color: var(--white);
  background: var(--green);
}

.status-pill.red {
  color: var(--white);
  background: var(--red);
}

.status-pill.blue {
  color: var(--white);
  background: var(--cyan);
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #e8eef5;
  font-size: 0.72rem;
  font-weight: 900;
}

.doc-chip.is-ok {
  color: var(--white);
  background: var(--green);
}

.empty-state {
  padding: 18px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 21, 34, 0.68);
}

.install-modal[hidden] {
  display: none;
}

.install-dialog {
  width: min(520px, 100%);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 21, 34, 0.18), rgba(7, 21, 34, 0.72)),
    linear-gradient(110deg, #071522 0%, #173047 45%, #0f2a31 100%);
  animation: splashIn 180ms ease-out both;
  overflow: hidden;
}

.login-splash.is-leaving {
  animation: splashOut 220ms ease-in both;
}

.splash-scene {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(620px, 100%);
  min-height: 390px;
  padding: 28px 20px;
}

.splash-glow {
  position: absolute;
  inset: 14% 8% auto;
  height: 210px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.42), transparent);
  filter: blur(24px);
  transform: skewX(-14deg);
  animation: headlightSweep 1900ms ease-in-out both;
}

.splash-logo {
  position: relative;
  z-index: 2;
  width: min(410px, 86vw);
  max-height: 205px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.38));
  animation: logoArrive 1500ms cubic-bezier(.2,.9,.2,1) both;
}

.splash-scene strong {
  position: relative;
  z-index: 3;
  font-size: 1.25rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.splash-scene > span {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.splash-road {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  height: 108px;
  overflow: hidden;
  margin-top: -22px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.16);
}

.splash-road::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 18px;
  height: 42px;
  transform: perspective(180px) rotateX(58deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0 44px, transparent 44px 92px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.55;
  animation: roadRun 620ms linear infinite;
}

.road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  height: 3px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.9);
}

.vehicle {
  position: absolute;
  bottom: 39px;
  display: block;
  background: #061220;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.36));
}

.vehicle.car {
  left: -160px;
  width: 122px;
  height: 34px;
  border-radius: 18px 30px 8px 8px;
  animation: carDrive 1800ms cubic-bezier(.24,.74,.2,1) 120ms both;
}

.vehicle.car::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -20px;
  width: 54px;
  height: 28px;
  border-radius: 20px 24px 4px 4px;
  background: #061220;
}

.vehicle.car::after {
  content: "";
  position: absolute;
  right: -38px;
  top: 8px;
  width: 42px;
  height: 12px;
  background: linear-gradient(90deg, rgba(255, 230, 150, 0.9), transparent);
  filter: blur(3px);
}

.vehicle.car i,
.vehicle.bike i {
  position: absolute;
  left: 16px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
}

.vehicle.car i::after {
  content: "";
  position: absolute;
  left: 72px;
  top: -4px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
}

.vehicle.bike {
  right: -130px;
  width: 84px;
  height: 28px;
  border-radius: 20px 28px 8px 8px;
  transform: skewX(-18deg);
  animation: bikeDrive 1650ms cubic-bezier(.18,.84,.24,1) 60ms both;
}

.vehicle.bike::before {
  content: "";
  position: absolute;
  left: -56px;
  top: 10px;
  width: 54px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--yellow));
}

.vehicle.bike::after {
  content: "";
  position: absolute;
  left: 30px;
  top: -28px;
  width: 18px;
  height: 34px;
  border-radius: 12px 12px 2px 2px;
  background: #061220;
  transform: rotate(-24deg);
}

.vehicle.bike i {
  left: 6px;
}

.vehicle.bike i::after {
  content: "";
  position: absolute;
  left: 50px;
  top: -4px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
}

@keyframes splashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.02); }
}

@keyframes logoPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}

@keyframes roadRun {
  from { background-position-x: 0; }
  to { background-position-x: 92px; }
}

@keyframes logoArrive {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  42% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes headlightSweep {
  0% { opacity: 0; transform: translateX(-44%) skewX(-14deg); }
  38% { opacity: 1; }
  100% { opacity: 0.75; transform: translateX(38%) skewX(-14deg); }
}

@keyframes carDrive {
  0% { transform: translateX(0) scale(0.84); opacity: 0; }
  18% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 230px)) scale(1); opacity: 0; }
}

@keyframes bikeDrive {
  0% { transform: translateX(0) skewX(-18deg) scale(0.9); opacity: 0; }
  15% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translateX(calc(-100vw - 230px)) skewX(-18deg) scale(1); opacity: 0; }
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.step-list div {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.step-list strong,
.step-list span {
  display: block;
}

.step-list span {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .feature-grid,
  .grid-3,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid rgba(216, 224, 234, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(7, 21, 34, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a {
    flex: 1 0 auto;
    justify-content: center;
    min-width: 92px;
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
  }

  .sidebar-install {
    margin-top: 0;
  }

  .app-sidebar .brand {
    min-height: 72px;
    padding: 0;
  }

  .app-sidebar .brand img {
    width: 178px;
    max-height: 76px;
  }

  .role-badge {
    display: none;
  }

  .app-main {
    padding-bottom: 104px;
  }

  .screen {
    padding-bottom: 112px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    scroll-margin-bottom: 132px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .app-topbar,
  .driver-callout,
  .site-footer,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a,
  .hero-actions a,
  .topbar-actions .ghost-button {
    flex: 1 1 auto;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }

  .hero-panel {
    min-height: 360px;
  }

  .mini-map {
    min-height: 220px;
  }

  .benefit-grid,
  .feature-grid,
  .grid-2,
  .grid-3,
  .metric-grid,
  .quote-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .app-main,
  .app-sidebar {
    padding: 14px;
  }

  .app-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .debt-panel,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .sidebar-install {
    min-height: 40px;
    padding: 0 10px;
    white-space: nowrap;
  }
}
