/* Car lease dealbook — web */
:root {
  --navy: #1f4e79;
  --navy-dark: #163a5c;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #d8dee6;
  --accent: #0d5cab;
  --success: #0d6e4d;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(31, 78, 121, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Consolas", "Cascadia Mono", ui-monospace, monospace;
  /* Header logo: left bar — horizontal mark (sized to sit beside right-aligned actions) */
  --header-logo-max-h: 5.5rem;
  --header-logo-max-w: 36rem;
  /* Tight space between logo and button row */
  --header-logo-nav-gap: 4px;
  /* Nav chip row (tall enough for larger buttons / text) */
  --header-nav-strip-height: 2.9rem;
  /* Masthead: lighter medium blue, multi-stop gradient */
  --header-blue-sky: rgba(210, 236, 255, 0.42);
  --header-blue-a: #7bb8eb;
  --header-blue-b: #5aa0df;
  --header-blue-c: #4289d2;
  --header-blue-d: #3578c4;
  --header-blue-border: #2e6daa;
  --header-nav-text: rgba(252, 252, 255, 0.98);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.app-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ——— Site header / nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 125% 160% at 48% -24%, var(--header-blue-sky) 0%, rgba(210, 236, 255, 0.08) 38%, transparent 58%),
    linear-gradient(
      161deg,
      var(--header-blue-a) 0%,
      var(--header-blue-b) 26%,
      var(--header-blue-c) 56%,
      var(--header-blue-d) 100%
    );
  border-bottom: 1px solid var(--header-blue-border);
  box-shadow: 0 3px 20px rgba(40, 100, 160, 0.38);
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  overflow: visible;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: center;
  justify-content: flex-start;
  gap: var(--header-logo-nav-gap);
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  /* Lets logo max-width use 100cqi (same as % of this bar, without stretching the link) */
  container-type: inline-size;
  container-name: site-header;
}
/* Top bar: logo left, Login / Register / PayPal / Menu on the right */
.site-header__top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 20px 0 0;
  border-bottom: 0;
  margin: 0;
  line-height: 0;
}
.site-header__top-spacer {
  display: none;
}
.site-header__top .site-header__home {
  flex: 0 1 auto;
  min-width: 0;
  justify-self: unset;
  align-self: center;
}
.site-header__top-trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem 0.4rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  max-width: 100%;
}
.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  min-width: 0;
}
.site-header__auth {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, #f4f6f8 0%, #e2e6eb 100%);
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.site-header__auth:hover {
  text-decoration: none;
  background: #fff;
  color: var(--navy-dark);
}
.site-header__auth--current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy-dark);
  pointer-events: none;
  cursor: default;
}
.site-header__auth--current:hover {
  color: #fff;
  background: var(--navy);
}
.site-header__purchase {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  min-width: 0;
  justify-content: flex-end;
}
.site-header__home {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  width: fit-content;
  max-width: min(var(--header-logo-max-w), 100%);
  line-height: 0;
  margin: 0;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.site-header__home:hover,
.site-header__home:focus {
  text-decoration: none;
}
.site-header__home .brand-logo,
.site-header__brand {
  display: block;
  margin: 0;
  padding: 0;
  height: auto;
  width: auto;
  max-width: min(var(--header-logo-max-w), 100%);
  max-width: min(var(--header-logo-max-w), 100cqi);
  max-height: var(--header-logo-max-h);
  object-fit: contain;
  line-height: 0;
}
.site-header__toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, #f4f6f8 0%, #e2e6eb 100%);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
}
.site-header__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(230, 244, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
  min-height: var(--header-nav-strip-height);
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.site-nav__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.2rem 0.25rem;
  margin: 0;
  padding: 0;
  min-height: var(--header-nav-strip-height);
}
.site-nav__list--primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.22rem 0.25rem;
  flex: 0 1 auto;
  min-width: 0;
}
.site-nav__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.3rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.site-nav__price {
  font-size: 0.84rem;
  color: var(--header-nav-text);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.site-nav__price strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}
a.site-nav__paypal,
button.site-nav__paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  min-height: 2.05rem;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  background: #0070ba;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.01em;
  line-height: 1.1;
  border: 1px solid #005a9e;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  box-sizing: border-box;
}
a.site-nav__paypal:hover,
button.site-nav__paypal:hover {
  background: #005ea6;
  color: #fff;
  text-decoration: none;
}
a.site-nav__paypal:focus-visible,
button.site-nav__paypal:focus-visible {
  outline: 2px solid #ffc439;
  outline-offset: 2px;
}
/* Nav as buttons (chips) */
.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.6rem;
  min-height: 2.05rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(31, 78, 121, 0.07);
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.site-nav__link:hover {
  background: #e8eef5;
  border-color: #c2cedd;
  text-decoration: none;
  color: var(--navy-dark);
  box-shadow: 0 1px 3px rgba(31, 78, 121, 0.1);
}
.site-nav__link--current {
  background: var(--navy);
  border-color: var(--navy-dark);
  color: #fff;
  box-shadow: 0 1px 3px rgba(22, 58, 92, 0.25);
  pointer-events: none;
  cursor: default;
}
.site-nav__link--current:hover {
  background: var(--navy);
  border-color: var(--navy-dark);
  color: #fff;
  box-shadow: 0 1px 3px rgba(22, 58, 92, 0.25);
}
a.site-nav__link--cta {
  color: #fff;
  background: var(--accent);
  border-color: #0a4a8a;
  box-shadow: 0 1px 2px rgba(13, 92, 171, 0.3);
}
a.site-nav__link--cta:hover {
  color: #fff;
  background: #0b4f9a;
  border-color: #083c72;
  text-decoration: none;
}
.site-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 46rem) {
  .site-header {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .site-header__inner {
    padding: 0 0.5rem;
    height: auto;
  }
  .site-header__top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    max-height: none;
  }
  .site-header__top-spacer {
    display: none;
  }
  .site-header__top .site-header__home {
    align-self: center;
  }
  .site-header__top-trail {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    gap: 0.25rem 0.35rem;
  }
  .site-header__actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
  .site-header__purchase {
    flex-wrap: wrap;
  }
  .site-header__auth {
    font-size: 0.8rem;
    padding: 0.26rem 0.45rem;
  }
  .site-header__home {
    margin-top: 0;
  }
  .site-header__toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .site-nav--open {
    display: flex;
  }
  .site-nav__row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.25rem;
    min-height: 0;
  }
  .site-nav__list--primary {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
  }
  .site-nav__list--primary li {
    width: 100%;
  }
  .site-nav__end {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.2rem 0 0.05rem;
    margin-top: 0.08rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .site-nav__link {
    display: flex;
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  a.site-nav__paypal,
  button.site-nav__paypal {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    min-height: 2.05rem;
  }
}

/* Simple inner pages (buy, faq, login) */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.page h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.page__lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  clip: auto;
  overflow: visible;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Site footer */
.site-footer {
  flex-shrink: 0;
  background: #e8eaee;
  border-top: 1px solid #cdd6e0;
  padding: 1.4rem 1.25rem 1.5rem;
  margin-top: auto;
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.site-footer__disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 auto 0.9rem;
  max-width: 40rem;
  line-height: 1.45;
}
.site-footer__links {
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.site-footer__links a {
  color: var(--navy);
}
.site-footer__links a:hover {
  color: var(--accent);
}
.site-footer__copy {
  font-size: 0.75rem;
  color: #7a7a7a;
  margin: 0;
}

/* Inner pages: wider layout for buy calc */
.page--wide {
  max-width: 900px;
}
.page--faq {
  max-width: 40rem;
}
.page__after {
  margin: 2rem 0 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

/* FAQ (definition list) */
dl.faq {
  margin: 0;
}
dl.faq dt {
  font-weight: 700;
  color: var(--navy);
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
dl.faq dt:first-of-type {
  margin-top: 0;
}
dl.faq dd {
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--text);
  line-height: 1.55;
}
dl.faq dd:last-of-type {
  margin-bottom: 0;
}

/* Buy calculator */
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3a3a3a;
  cursor: pointer;
  margin: 0;
}
.field--check input {
  width: auto;
  min-width: 1rem;
  margin-top: 0.2rem;
  cursor: pointer;
}
.buy-calc {
  margin-bottom: 1.25rem;
}
.buy-result {
  margin-top: 0;
}
.buy-result__dl {
  margin: 0;
  padding: 0;
}
.buy-result__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.buy-result__row:last-child {
  border-bottom: none;
}
.buy-result__row--wide {
  grid-template-columns: 1fr;
}
.buy-result__row--hero {
  font-size: 1.1rem;
}
.buy-result__row--hero dt,
.buy-result__row--hero dd {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.buy-result__dl dt {
  font-weight: 600;
  color: #555;
  margin: 0;
}
.buy-result__dl dd {
  margin: 0;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.95em;
  text-align: right;
  color: #111;
}
.buy-result__fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.4;
}
.buy-result__note {
  font-size: 0.86rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}
.buy-result__muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.login-card__h {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 1rem;
  font-weight: 700;
}
.login-card__note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.75rem 0 1rem;
}
.login-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ——— Landing ——— */
.landing {
  /* Do not force full viewport height — that creates a huge empty block under the header */
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1.15rem 2.5rem;
  background: linear-gradient(165deg, #e8eef5 0%, var(--bg) 45%, #e3ebf2 100%);
}

.landing__hero {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
}
.landing__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.landing__hero h1 {
  font-size: clamp(1.45rem, 3.3vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.landing__deck {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}
.landing__deck strong {
  color: #3a3a3a;
}
.landing__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 1.6rem 0 0;
}
.landing__cta .btn--primary {
  min-width: 10.5rem;
}
a.landing__cta-buy {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--accent);
}
a.landing__cta-buy:hover {
  color: var(--navy-dark);
}
.landing__content {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.landing__section {
  margin-bottom: 2rem;
}
.landing__section:last-of-type {
  margin-bottom: 0;
}
.landing__section h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.landing__subh {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin: 1.1rem 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.landing__section p {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
}
.landing__list {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.25rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.landing__list li {
  margin: 0.45rem 0;
}
.landing__list li::marker {
  color: var(--accent);
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 0 auto 1rem;
  background: transparent;
}
/* Masthead (site header only): cap height so the bar is not a half-screen white strip */
.brand-logo--hero {
  max-width: min(var(--header-logo-max-w), 100%);
  max-height: var(--header-logo-max-h);
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-header__home .brand-logo.brand-logo--hero {
  margin: 0 auto;
  max-width: min(var(--header-logo-max-w), 100%);
  max-width: min(var(--header-logo-max-w), 100cqi);
  max-height: var(--header-logo-max-h);
  transform-origin: center center;
  transform: perspective(920px) rotateX(11deg) rotateY(-13deg) translateZ(4px);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
  will-change: transform;
  filter:
    drop-shadow(-1px -2px 0 rgba(255, 255, 255, 0.38))
    drop-shadow(-2px -1px 1px rgba(255, 255, 255, 0.22))
    drop-shadow(6px 10px 16px rgba(0, 20, 50, 0.42))
    drop-shadow(2px 4px 6px rgba(0, 40, 90, 0.28));
}
.site-header__home:hover .brand-logo.brand-logo--hero,
.site-header__home:focus-visible .brand-logo.brand-logo--hero {
  transform: perspective(920px) rotateX(8deg) rotateY(-10deg) translateZ(14px);
  filter:
    drop-shadow(-2px -2px 0 rgba(255, 255, 255, 0.45))
    drop-shadow(-2px -1px 1px rgba(255, 255, 255, 0.28))
    drop-shadow(8px 14px 22px rgba(0, 18, 45, 0.48))
    drop-shadow(3px 6px 10px rgba(0, 45, 100, 0.32));
}
@media (prefers-reduced-motion: reduce) {
  .site-header__home .brand-logo.brand-logo--hero,
  .site-header__home:hover .brand-logo.brand-logo--hero,
  .site-header__home:focus-visible .brand-logo.brand-logo--hero {
    transform: perspective(920px) rotateX(11deg) rotateY(-13deg) translateZ(4px);
    transition: none;
    filter:
      drop-shadow(-1px -2px 0 rgba(255, 255, 255, 0.38))
      drop-shadow(-2px -1px 1px rgba(255, 255, 255, 0.22))
      drop-shadow(6px 10px 16px rgba(0, 20, 50, 0.42))
      drop-shadow(2px 4px 6px rgba(0, 40, 90, 0.28));
  }
}
@media (max-width: 46rem) {
  .site-header__home .brand-logo.brand-logo--hero {
    transform: perspective(980px) rotateX(8deg) rotateY(-10deg) translateZ(2px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover:not(:disabled) {
  background: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(31, 78, 121, 0.25);
}
.btn--secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn--secondary:hover:not(:disabled) {
  background: #f0f4f8;
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
}
.btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Quick tools — notepad strip, torn bottom (no full workbook) */
.tools-rip {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 3px 6px rgba(31, 78, 121, 0.1));
}
.tools-rip__paper {
  background: linear-gradient(180deg, #fffdf9 0%, #efe4d8 100%);
  border: 1px solid #b9a08c;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 1.25rem 1.35rem 1.6rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 97%,
    98% 99%,
    96% 97%,
    93% 99%,
    91% 97%,
    88% 99%,
    85% 97%,
    82% 99%,
    79% 97%,
    76% 99%,
    73% 97%,
    70% 99%,
    67% 97%,
    64% 99%,
    61% 97%,
    58% 99%,
    55% 97%,
    52% 99%,
    49% 97%,
    46% 99%,
    43% 97%,
    40% 99%,
    37% 97%,
    34% 99%,
    31% 97%,
    28% 99%,
    25% 97%,
    22% 99%,
    19% 97%,
    16% 99%,
    13% 97%,
    10% 99%,
    7% 97%,
    4% 99%,
    2% 97%,
    0% 98%,
    0% 0%
  );
}
.tools-rip__h {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.tools-rip__lede {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 1.1rem;
  line-height: 1.52;
}
.tools-rip__lede strong {
  color: var(--navy);
}
.tools-rip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.tools-rip__lease-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 2.8rem;
  line-height: 1.2;
  padding: 0.55rem 1.15rem;
}
.tools-rip__lease-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.tools-rip__kbd {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
@media (max-width: 32rem) {
  .tools-rip__row {
    flex-direction: column;
    align-items: stretch;
  }
  .tools-rip__lease-btn {
    width: 100%;
  }
}

.landing__footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.45;
}

/* ——— Wizard ——— */
.wizard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.wizard__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wizard__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}
.wizard__product {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.step-dot b {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e0e6ed;
  color: var(--muted);
  border: 2px solid #e0e6ed;
}
.step-dot--active b {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.step-dot--done b {
  background: #d4e8e0;
  color: var(--success);
  border-color: #8fc9a8;
}
.steps__sep {
  color: #ccc;
  user-select: none;
}

.paper {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 2rem;
  min-height: 12rem;
}

.paper h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.paper .lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 52em;
}

.wizard__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.wizard__nav--right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.25rem;
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(13, 92, 171, 0.25);
  border-color: var(--accent);
}
.field--full {
  grid-column: 1 / -1;
}
.zip-lookup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.zip-lookup-row input {
  max-width: 9rem;
  width: 100%;
  flex: 1 1 7rem;
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Checklist table */
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.c-table th,
.c-table td {
  text-align: left;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
.c-table th {
  background: #e8f0f8;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
}
.c-table tr:nth-child(even) td {
  background: #fafbfc;
}
.c-table .cell-item {
  max-width: 20rem;
}
.c-table input {
  width: 100%;
  font: inherit;
  border: 1px solid #ccd4dc;
  border-radius: 4px;
  padding: 0.35rem 0.4rem;
}
.section-pill {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  margin: 1.25rem 0 0.5rem;
}

/* ——— Lease document (on-screen + print) ——— */
#lease-doc {
  font-family: var(--font);
  color: #222;
  max-width: 8.25in;
  margin: 0 auto;
  padding: 0.08in 0.32in 0.28in;
  background: #fff;
  font-size: 8pt;
  line-height: 1.28;
  position: relative;
  /* visible: overflow:hidden clipped bottom of raster for html2pdf/html2canvas */
  overflow: visible;
  isolation: isolate;
}

/* Logo watermark behind summary text */
#lease-doc .lease-doc__wm {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#lease-doc .lease-doc__wm img {
  width: min(86%, 6.75in);
  max-height: none;
  height: auto;
  object-fit: contain;
  opacity: 0.11;
  filter: grayscale(25%);
}

#lease-doc .lease-doc__body {
  position: relative;
  z-index: 1;
}

.lease-doc__title {
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.28rem;
  letter-spacing: 0.02em;
}
.lease-doc__sub {
  text-align: center;
  font-size: 7.5pt;
  color: #666;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}
.lease-doc__date {
  text-align: center;
  font-size: 7.5pt;
  color: #666;
  margin: 0 0 0.38rem;
}
.lease-doc__line {
  border: none;
  border-top: 1px solid #1f4e79;
  margin: 0.28rem 0 0.38rem;
}

.lease-h2 {
  background: var(--navy);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.32rem;
  margin: 0.42rem 0 0;
  border-radius: 2px 2px 0 0;
  line-height: 1.25;
}

.lease-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-size: 8.5pt;
  border: 1px solid #ccc;
  border-top: none;
  margin-bottom: 0.1rem;
}
.lease-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
  border-bottom: 1px solid #e0e0e0;
}
.lease-row:last-child {
  border-bottom: none;
}
.lease-cell {
  border-right: 1px solid #e8e8e8;
  padding: 0.16rem 0.38rem;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}
.lease-row .lease-cell:nth-child(2) {
  border-right: none;
}
.lease-k {
  color: #444;
  font-size: 6.85pt;
  line-height: 1.2;
}
.lease-v {
  font-weight: 600;
  color: #111;
  font-family: var(--mono);
  font-size: 8pt;
  margin-top: 0.06rem;
  word-break: break-word;
  /* Avoid last digits (e.g. .99) clipped in grid/pdf raster */
  white-space: normal;
}
.lease-amount {
  font-size: 9pt;
  font-weight: 700;
  color: var(--navy);
}
.lease-footnote {
  font-size: 6.75pt;
  color: #666;
  font-style: italic;
  margin: 0.35rem 0 0.2rem;
  line-height: 1.3;
}
.lease-sig {
  font-size: 8pt;
  margin-top: 0.38rem;
  padding-top: 0.28rem;
  border-top: 1px solid #ccc;
  color: #333;
}

/* ——— Modal ——— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 50, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s;
}
.modal-backdrop[hidden] {
  display: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  max-width: 24rem;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.modal p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal__row .btn {
  flex: 1;
  min-width: 8rem;
}
.modal--wide {
  max-width: 34rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#dealer-list-body {
  min-height: 2rem;
  margin: 0 0 0.5rem;
}
.dealer-modal__ol {
  margin: 0;
  padding-left: 1.25rem;
  max-height: min(50vh, 24rem);
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text, #1a1a1a);
}
.dealer-modal__item {
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border, #c9d0d8);
}
.dealer-modal__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dealer-modal__addr {
  color: var(--muted);
  font-size: 0.9em;
}
.dealer-modal__links {
  font-size: 0.9em;
  margin: 0.35rem 0 0;
  display: block;
}
.dealer-modal__weblink {
  font-weight: 600;
}
.dealer-modal__weblink--search {
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  text-decoration: underline dotted;
}
.dealer-modal__weblink--search:hover,
.dealer-modal__weblink--search:focus {
  text-decoration: underline;
}
.dealer-modal__pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  border: 1px solid rgba(31, 78, 121, 0.45);
  border-radius: 3px;
  padding: 0.08rem 0.38rem;
  margin-right: 0.35rem;
  vertical-align: 0.12em;
  line-height: 1.2;
}
.dealer-modal__pill--soft {
  font-weight: 650;
  color: #3d5a73;
  border-color: rgba(61, 90, 115, 0.4);
}

.dealer-modal__workstrip {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.75rem;
  background: var(--card-bg, #f4f6f8);
  border: 1px solid var(--border, #c9d0d8);
  border-radius: 8px;
  color: var(--text, #1a1a1a);
}
.dealer-modal__workstrip__line {
  margin: 0.35rem 0 0;
}
.dealer-modal__workstrip__line:first-child {
  margin-top: 0;
}
.dealer-modal__workstrip--muted {
  color: var(--muted);
  font-size: 0.95em;
}

.dealer-modal__nourl {
  color: var(--muted);
  font-size: 0.92em;
}
.dealer-modal__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dealer-modal__status--err {
  color: #a31;
}

/* ——— "Find your dealer" standalone page ——— */
.page--find-dealer {
  max-width: 880px;
}
.finddealer-form {
  margin: 0 0 1.5rem;
  padding: 1rem 1rem 0.75rem;
  background: var(--card-bg, #f4f6f8);
  border: 1px solid var(--border, #c9d0d8);
  border-radius: 10px;
}
.finddealer-form__grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(7rem, 0.6fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
}
.finddealer-form__submit {
  margin: 0;
}
.finddealer-form__submit .btn {
  width: 100%;
  min-height: 2.6rem;
}
@media (max-width: 36rem) {
  .finddealer-form__grid {
    grid-template-columns: 1fr;
  }
}
.finddealer-results {
  margin: 0.5rem 0 0;
}
.finddealer-results__h {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0.25rem 0 0.6rem;
}
.finddealer-results__after {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }
  .no-print,
  .modal-backdrop,
  .wizard__topbar,
  .wizard__nav,
  #view-landing {
    display: none !important;
  }
  #view-wizard {
    display: block !important;
  }
  #step-2 {
    display: none !important;
  }
  #step-3 {
    display: block !important;
  }
  body {
    background: #fff;
  }
  .wizard {
    max-width: none;
    padding: 0;
  }
  .paper {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  #lease-doc {
    max-width: none;
    box-shadow: none;
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 0.06in 0.12in 0.2in;
    font-size: 7.5pt;
  }
  #lease-doc .lease-doc__wm img {
    opacity: 0.1;
  }
  #lease-doc .lease-doc__body {
    page-break-inside: avoid;
  }
}

.hidden {
  display: none !important;
}

/* Login / auth status */
.auth-msg {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid var(--border, #c9d0d8);
  background: #f4f6f8;
  color: var(--text, #1a1a1a);
}
.auth-msg--info {
  border-color: #8eb4d3;
  background: #e8f2fa;
  color: #0b3a5c;
}
.auth-msg--error {
  border-color: #e0a4a0;
  background: #fdf2f0;
  color: #5c0b0b;
}
.auth-msg--success {
  border-color: #8fc9a0;
  background: #f0f9f1;
  color: #0b3c16;
}

.login-setup__steps {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.5;
  color: var(--muted, #3d4a57);
  font-size: 0.95rem;
}
.login-setup__steps li {
  margin: 0.4rem 0;
}

/* NHTSA picker */
.nhtsa-pick__row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(8rem, 1.2fr) minmax(8rem, 1.2fr);
  gap: 0.6rem;
  align-items: end;
}
@media (max-width: 900px) {
  .nhtsa-pick__row {
    grid-template-columns: 1fr 1fr;
  }
  .nhtsa-pick__row .field:last-child {
    grid-column: 1 / -1;
  }
}
.nhtsa-pick select {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.45rem;
}
.nhtsa-pick__row2 {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}
.nhtsa-pick__trimline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.nhtsa-pick__trimline input,
.nhtsa-pick__trimline select {
  flex: 1 1 10rem;
  min-width: 0;
}
.nhtsa-pick__trimsel {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.nhtsa-pick__trimsel:focus {
  outline: 2px solid rgba(13, 92, 171, 0.25);
  border-color: var(--accent);
}
.nhtsa-pick__trimsel:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
.nhtsa-pick__trimline .btn {
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  min-height: 2.25rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* Incentive program type (Y/M/M + ZIP–aware list; $ still manual) */
.incentives-program-select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  margin-top: 0.2rem;
}
.incentives-program-select:focus {
  outline: 2px solid rgba(13, 92, 171, 0.25);
  border-color: var(--accent);
}
