@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  --page: #f5f6f1;
  --white: #fff;
  --ink: #142a23;
  --muted: #4b5e54;
  --line: #dce4db;
  --green: #173e32;
  --leaf: #e3efac;
  --mint: #eaf3e7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, h4, p, ol { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #51795b; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--leaf); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: white;
}

.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fafbf7; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; font-size: 1.03rem; line-height: 1.05; }
.brand-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.brand-mark {
  flex: 0 0 40px;
  height: 40px;
  background: url("./assets/one-motor-icon.svg?v=transparent") center / contain no-repeat;
}
.header-inner nav { display: flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 750; }
.header-inner nav a { padding: .55rem .9rem; border-radius: 8px; text-decoration: none; color: var(--muted); }
.header-inner nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-inner nav a[aria-current="page"] { background: var(--mint); color: var(--green); }
.demo-pill, .term-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .42rem .72rem;
  border-radius: 100px;
  border: 1px solid #d5e2d4;
  background: #eef4eb;
  color: #34513e;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.demo-pill span { width: 7px; height: 7px; border-radius: 50%; background: #497d55; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: 392px;
  overflow: hidden;
  margin-top: 30px;
  background: var(--green);
  color: var(--white);
  border-radius: 22px;
}
.hero-content {
  z-index: 1;
  padding: clamp(30px, 4.4vw, 62px);
  align-self: center;
}
h1 { max-width: 12ch; font-size: clamp(2.5rem, 4.75vw, 4.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.068em; }
.hero-description { max-width: 33ch; margin: 19px 0 24px; color: #e1ede3; font-size: 1rem; line-height: 1.62; }
.hero-photo { position: relative; min-width: 0; min-height: 0; background: #486352; }
.hero-photo img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 48% 58%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #173e3240, transparent 28%); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: .64rem 1rem;
  text-decoration: none;
  text-align: center;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.35;
  transition: background-color .15s ease, border-color .15s ease;
}
.button-light { background: var(--leaf); color: #183a2b; }
.button-light:hover { background: #f0f7ca; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: #245440; }
.button-secondary { border-color: #91aa98; background: transparent; color: var(--green); }
.button-secondary:hover { background: var(--mint); border-color: #698d73; }

#compare, #guide { scroll-margin-top: 24px; }
.section-heading { padding-bottom: 19px; margin-top: 38px; }
.section-heading h2 { font-size: clamp(1.65rem, 2.75vw, 2.22rem); letter-spacing: -.055em; font-weight: 800; }
.section-heading p { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 19px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.provider-card { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: clamp(17px, 2.6vw, 28px); }
.provider-card p { color: var(--muted); line-height: 1.55; }
.provider-card .button { margin-top: auto; }
.profile-card, .comparison-card { padding: 24px; }
h3 { font-size: 1.23rem; letter-spacing: -.035em; font-weight: 800; }
.profile-card label { display: block; margin: 20px 0 7px; font-size: .87rem; font-weight: 800; }
.profile-card select {
  width: 100%;
  min-height: 47px;
  appearance: none;
  color: var(--ink);
  background: linear-gradient(45deg, transparent 49%, var(--green) 51%) right 19px center / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 49%, var(--green) 51%) right 13px center / 6px 6px no-repeat,
    #fff;
  border: 1px solid #b9c8bd;
  border-radius: 8px;
  padding: .55rem 2.3rem .55rem .8rem;
  font-size: .94rem;
  font-weight: 700;
}
.driver-case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 109px;
  margin: 13px 0 18px;
  padding: .85rem;
  background: #f2f5ee;
  border: 1px solid #e7ede4;
  border-radius: 9px;
}
.case-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #e2eddf; color: #395d45; }
.case-icon::before { content: ""; position: absolute; width: 17px; height: 8px; top: 15px; border: 1.5px solid currentColor; border-radius: 3px 3px 2px 2px; }
.case-icon::after { content: ""; position: absolute; width: 10px; height: 6px; top: 11px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.case-icon span { position: absolute; top: 22px; width: 13px; height: 3px; border-inline: 2px solid currentColor; }
.driver-case strong, #profile-location { display: block; }
.driver-case strong { font-size: .9rem; line-height: 1.35; }
#profile-location, #profile-description, .profile-note { font-size: .83rem; line-height: 1.5; color: var(--muted); }
#profile-description { grid-column: 1 / -1; }
.profile-card .button { width: 100%; }
.profile-note { margin-top: 12px; }
.comparison-heading { display: flex; align-items: start; justify-content: space-between; gap: .7rem; margin-bottom: 17px; }
.comparison-heading p { margin-top: 4px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote { padding: 16px; border: 1px solid #e1e8df; border-radius: 10px; background: #f6f8f4; }
.quote-offer { background: var(--mint); border-color: #cbdcc9; }
.quote h4 { color: #365146; font-size: .86rem; font-weight: 800; }
.quote-price { margin: 2px 0 5px; line-height: 1.18; font-size: .81rem; color: var(--muted); }
.quote-price strong { color: var(--ink); font-size: clamp(1.65rem, 3.3vw, 2.35rem); letter-spacing: -.06em; font-weight: 800; }
.quote-total { font-size: .86rem; font-weight: 750; }
.quote-due { margin-top: 3px; font-size: .82rem; color: var(--muted); }
.comparison-summary { margin: 15px 0 14px; padding: 9px 12px; border-left: 3px solid #7a9c77; background: #f4f7f0; border-radius: 0 6px 6px 0; color: #354b3f; font-size: .86rem; line-height: 1.5; }
.coverage-note { padding-bottom: .35rem; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.coverage-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: .86rem; line-height: 1.4; }
.coverage-table th, .coverage-table td { border-bottom: 1px solid #e4eae3; padding: .62rem .45rem .62rem 0; overflow-wrap: anywhere; }
.coverage-table thead { color: var(--muted); }
.coverage-table thead th:first-child { width: 45%; }
.coverage-table tbody th { font-weight: 750; }
.changed { display: inline-block; background: #f7edce; color: #634b15; font-size: .7rem; font-weight: 800; border-radius: 4px; padding: .06rem .28rem; }
.comparison-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 12px; margin-top: 17px; }
.comparison-actions p { color: var(--muted); font-size: .8rem; }

.guide-card { padding-inline: 24px; }
details + details { border-top: 1px solid #e4eae3; }
summary { padding-block: .9rem; font-weight: 800; }
details p { color: var(--muted); margin: -.15rem 0 .9rem 1rem; max-width: 72ch; line-height: 1.55; }
.guide-source { display: inline-block; margin: .35rem 0 1rem; color: var(--green); text-underline-offset: 4px; font-size: .85rem; font-weight: 800; }

dialog {
  width: min(515px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 90px #0f241e38;
  color: var(--ink);
}
dialog::backdrop { background: #162e26b8; }
dialog h2 { font-size: 1.8rem; letter-spacing: -.05em; margin-bottom: .4rem; }
dialog p, dialog li { line-height: 1.55; }
.dialog-caption { margin: 0 2rem .45rem 0; color: var(--muted); font-size: .82rem; font-weight: 800; }
dialog ol { padding-left: 1.3rem; margin: .8rem 0; }
dialog li + li { margin-top: .45rem; }
.dialog-notice { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.close-dialog { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 7px; background: var(--mint); color: var(--green); font-size: 1.3rem; line-height: 1; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 40px); }
  .hero { min-height: 355px; }
  .hero-content { padding: 32px; }
  .workspace { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 13px; }
  .profile-card, .comparison-card { padding: 17px; }
}
@media (max-width: 670px) {
  .provider-grid { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 32px); }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: .45rem .7rem;
    padding-top: .65rem;
  }
  .header-inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    padding-bottom: .5rem;
  }
  .header-inner nav a { padding-inline: .35rem; }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
    border-radius: 15px;
  }
  .hero-content { padding: 26px 22px; }
  .hero-photo { min-height: 185px; }
  .hero-description { margin: 13px 0 17px; }
  .workspace { grid-template-columns: 1fr; }
  .section-heading { margin-top: 26px; padding-bottom: 14px; }
  .comparison-heading { flex-wrap: wrap; }
  .quote { padding: 12px; }
  .coverage-table { font-size: .78rem; }
  .guide-card { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
