:root {
  --blue: #1246c8;
  --blue-deep: #0b2f94;
  --ink: #0a1633;
  --muted: #55627f;
  --tint: #eef3fd;
  --line: #d9e1f2;
  --white: #fff;
  --green: #12a150;
  --amber: #f2b300;
  --red: #e5383b;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.btn:active { transform: translateY(1px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--blue); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 30px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav__menu a:not(.btn):hover { color: var(--white); border-bottom-color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { background: var(--blue); color: var(--white); padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; margin-top: 24px; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__demo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.caption { font-size: 0.8rem; color: rgba(255,255,255,.7); text-align: center; max-width: 24em; }
.hero__copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy .lead { animation-delay: .1s; }
.hero__copy .hero__cta { animation-delay: .2s; }
.hero__demo .ride { animation: rise .8s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Ride card (recreates the on-screen grading card) */
.ride { --c: var(--green); background: #0b0d12; color: var(--white); border: 5px solid var(--c); border-radius: 26px; padding: 20px 22px 16px; width: 100%; max-width: 340px; box-shadow: 0 18px 50px rgba(5,20,70,.45); transition: border-color .3s, box-shadow .3s; }
.ride--good { --c: var(--green); }
.ride--avg { --c: var(--amber); }
.ride--bad { --c: var(--red); }
.ride__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ride__src { font-weight: 700; letter-spacing: .02em; }
.ride__nav { background: var(--white); color: #0b0d12; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.ride__tag { display: inline-block; background: var(--c); color: var(--white); font-weight: 700; font-size: .85rem; padding: 3px 12px; border-radius: 6px; }
.ride--avg .ride__tag { color: #1b1400; }
.ride__rates { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.ride__rates > div + div { border-left: 1px solid rgba(255,255,255,.2); padding-left: 20px; }
.ride__rates small { display: block; color: rgba(255,255,255,.65); font-size: .85rem; }
.ride__rates strong { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.ride__trip { border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 9px 14px; font-weight: 600; }
.ride__fare { display: flex; justify-content: space-between; color: rgba(255,255,255,.65); font-size: .9rem; margin-top: 14px; }

/* Proof */
.proof { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.proof__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; margin: 0; }
.proof__row > div { padding: 0 clamp(16px, 3vw, 40px); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.proof__row > div + div { border-left: 1px solid var(--line); }
.proof__row > div:first-child { padding-left: 0; }
.proof dt { color: var(--muted); font-size: .95rem; max-width: 22em; }
.proof dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.proof dd.big { font-size: clamp(3rem, 7vw, 5.2rem); color: var(--blue); font-weight: 800; }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tint { background: var(--tint); }
.grade { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.grade__text p { margin-top: 20px; color: var(--muted); max-width: 30em; }
.tabs { display: inline-flex; gap: 6px; margin-top: 28px; padding: 5px; background: var(--tint); border-radius: 999px; }
.tabs button { font: inherit; font-weight: 700; font-size: .95rem; padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.grade__note { color: var(--ink) !important; font-weight: 600; min-height: 3.4em; }
.grade__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: var(--blue); padding: clamp(16px, 3vw, 32px); border-radius: 28px; }
.grade__cards .ride { padding: 14px 14px 12px; border-width: 4px; border-radius: 20px; opacity: .55; transform: scale(.96); box-shadow: none; transition: opacity .3s, transform .3s, border-color .3s; }
.grade__cards .ride.is-active { opacity: 1; transform: scale(1); }
.grade__cards .ride__rates { margin: 12px 0; }
.grade__cards .ride__rates > div + div { padding-left: 10px; }
.grade__cards .ride__rates strong { font-size: 1.35rem; }
.grade__cards .ride__trip { font-size: .72rem; padding: 7px 8px; text-align: center; }
.grade__cards .ride__fare { font-size: .7rem; flex-direction: column; gap: 2px; }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { border-top: 3px solid var(--blue); padding-top: 20px; }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--muted); }
.why { margin-top: 64px; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; }

/* CTA */
.cta { background: var(--blue); color: var(--white); padding: clamp(56px, 9vw, 104px) 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 14em; }

/* Next */
.next { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.next p { margin-top: 18px; color: var(--muted); max-width: 26em; }
.next__list { list-style: none; margin: 0; padding: 0; }
.next__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.next__list li:first-child { border-top: 1px solid var(--line); }
.next__list p { grid-column: 1; margin: 0; max-width: none; }
.pill { grid-row: 1; grid-column: 2; align-self: start; font-size: .8rem; font-weight: 700; color: var(--blue); background: var(--tint); padding: 3px 12px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 20px 36px 20px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 36em; }

/* Footer */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.85); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 34px; width: auto; margin-bottom: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { color: inherit; text-decoration: none; width: fit-content; }
.footer nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { margin-top: 48px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.15); width: calc(100% - 2 * var(--pad)); padding-left: 0; padding-right: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .grade, .next, .faq { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .proof__row { grid-template-columns: 1fr; gap: 28px; }
  .proof__row > div, .proof__row > div + div { padding: 0; border: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div { grid-column: 1 / -1; }
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--blue); padding: 8px var(--pad) 24px; border-top: 1px solid rgba(255,255,255,.2); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__menu .btn { margin-top: 16px; }
}
@media (max-width: 520px) {
  .grade__cards { grid-template-columns: 1fr; }
  .grade__cards .ride { max-width: none; }
  .grade__cards .ride:not(.is-active) { display: none; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
