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

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --blue-900: #082f49;
  --blue-800: #075985;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;
  --teal-600: #0891b2;
  --green: #059669;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dbeafe;
  --line-strong: #bae6fd;
  --focus: #0ea5e9;
  --shadow: 0 18px 48px rgba(8, 47, 73, 0.16);
  --shadow-soft: 0 10px 28px rgba(8, 47, 73, 0.1);
  --radius: 8px;
  --content: 1140px;
  --font-body-native: -apple-system-body, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display-native: -apple-system-headline, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body-rounded: -apple-system-body, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display-rounded: ui-rounded, "SF Pro Rounded", "SF Compact Rounded", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body-avenir: "Avenir Next", Avenir, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display-avenir: "Avenir Next", Avenir, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --typography-font-body: var(--font-body-rounded);
  --typography-font-display: var(--font-display-rounded);
}

html[data-font-option="native-sf"] {
  --typography-font-body: var(--font-body-native);
  --typography-font-display: var(--font-display-native);
}

html[data-font-option="sf-rounded"] {
  --typography-font-body: var(--font-body-rounded);
  --typography-font-display: var(--font-display-rounded);
}

html[data-font-option="avenir-next"] {
  --typography-font-body: var(--font-body-avenir);
  --typography-font-display: var(--font-display-avenir);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--blue-50);
  font-family: var(--typography-font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

a {
  color: var(--blue-800);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-600);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--ink);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-family: var(--typography-font-display);
  font-size: 1.14rem;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.66rem;
  color: var(--ink-soft);
  border-radius: 4px;
  font-family: var(--typography-font-display);
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-800);
  background: var(--blue-100);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(240, 249, 255, 1) 0%, rgba(224, 242, 254, 0.94) 56%, rgba(207, 250, 254, 0.78) 100%);
  border-bottom: 1px solid var(--line-strong);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 2rem));
  min-height: 40rem;
  margin: 0 auto;
  padding: 4rem 0 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 43rem;
}

.eyebrow,
.small-label {
  margin: 0 0 0.55rem;
  color: var(--blue-800);
  font-family: var(--typography-font-display);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.download-band h2 {
  margin: 0;
  font-family: var(--typography-font-display);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10ch;
  color: var(--blue-900);
  font-size: 3.05rem;
}

.hero-lede {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
}

.app-store-link img {
  width: 10.625rem;
  height: auto;
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  color: var(--blue-900);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  font-family: var(--typography-font-display);
  font-weight: 820;
  text-decoration: none;
  transition: transform 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.route-link:hover {
  transform: translateY(-1px);
  color: var(--blue-700);
  border-color: #7dd3fc;
}

.route-link svg,
.feature-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.35rem 0 0;
}

.route-stats div {
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(186, 230, 253, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.route-stats dt {
  margin: 0;
  color: var(--blue-900);
  font-family: var(--typography-font-display);
  font-weight: 850;
}

.route-stats dd {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-device {
  margin: 0;
  justify-self: center;
  width: min(18rem, 72vw);
}

.iphone-frame {
  position: relative;
  display: block;
  aspect-ratio: 1470 / 3000;
  width: 100%;
  isolation: isolate;
}

.iphone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("assets/iphone-bezel-deep-blue.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 48px rgba(8, 47, 73, 0.18));
  pointer-events: none;
}

.iphone-screen {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  z-index: 1;
  width: 89.796%;
  height: 95.6%;
  object-fit: cover;
  background: #eef2f7;
  border-radius: 7.2% / 3.3%;
  clip-path: inset(0 round 7.2% / 3.3%);
}

.section {
  padding: 4rem 0;
}

section[id] {
  scroll-margin-top: 6rem;
}

.section-muted {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band {
  padding: 2.4rem 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 47, 73, 0.97), rgba(7, 89, 133, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 5.5rem, rgba(255, 255, 255, 0.08) 5.5rem 5.62rem);
}

.intro-band .eyebrow,
.download-band .eyebrow {
  color: #bae6fd;
}

.intro-grid,
.carplay-intro,
.one-way-grid,
.widgets-grid,
.support-grid,
.download-inner {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.intro-grid h2 {
  max-width: 14ch;
  font-size: 2rem;
}

.intro-grid p {
  margin: 0;
  color: #dbeafe;
  font-size: 1.04rem;
}

.section-heading {
  max-width: 45rem;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.download-band h2 {
  color: var(--blue-900);
  font-size: 2.16rem;
}

.section-heading p:not(.eyebrow) {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.journey-steps,
.feature-grid,
.value-compare,
.pricing-grid,
.carplay-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  align-items: start;
}

.journey-steps article,
.feature-card,
.screenshot-card,
.wide-shot,
.pricing-grid article,
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.journey-steps article {
  position: relative;
  min-height: 10.5rem;
  padding: 1rem;
  overflow: hidden;
}

.feature-card {
  padding: 0.95rem 1rem;
}

.journey-steps article::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 0.18rem;
  background: linear-gradient(90deg, var(--blue-600), transparent);
  border-radius: 999px;
}

.journey-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #ffffff;
  background: var(--blue-700);
  border-radius: 50%;
  font-weight: 850;
}

.journey-steps h3,
.feature-card h3,
.screenshot-card h3,
.pricing-grid h3,
.privacy-card h3 {
  margin: 0.8rem 0 0;
  font-family: var(--typography-font-display);
  font-size: 1.18rem;
  line-height: 1.2;
}

.journey-steps p,
.feature-card p,
.screenshot-card p:not(.small-label),
.pricing-grid p:not(.small-label),
.privacy-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  margin-top: 0.45rem;
}

.feature-card .feature-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  color: var(--teal-600);
  stroke-width: 1.8;
}

.value-compare {
  margin-top: 1rem;
}

.screenshot-card,
.wide-shot {
  overflow: hidden;
}

.screenshot-card > div {
  padding: 1rem;
}

.screenshot-card img,
.wide-shot img {
  width: 100%;
  background: #f5f7fb;
}

.wide-shot {
  margin: 1.25rem 0 0;
}

.wide-shot figcaption {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.one-way-grid {
  align-items: center;
}

.one-way-section .section-heading {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-soft);
  font-family: var(--typography-font-display);
  font-weight: 760;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.9rem;
  height: 0.55rem;
  border-left: 3px solid var(--teal-600);
  border-bottom: 3px solid var(--teal-600);
  transform: rotate(-45deg);
}

.one-way-shot {
  width: min(24rem, 100%);
  margin: 0;
  justify-self: center;
}

.one-way-shot img {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.one-way-shot figcaption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.screen-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phone-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 18rem);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
}

.phone-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.phone-strip figcaption,
.carplay-card figcaption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.carplay-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 1), rgba(7, 89, 133, 0.95) 48%, rgba(8, 145, 178, 0.9));
}

.carplay-section .eyebrow {
  color: #bae6fd;
}

.carplay-section h2 {
  color: #ffffff;
}

.carplay-intro {
  margin-bottom: 1.5rem;
}

.carplay-intro p {
  margin: 0;
  color: #dbeafe;
}

.carplay-card {
  margin: 0;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(186, 230, 253, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.24);
}

.carplay-card img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.carplay-card figcaption {
  color: #dbeafe;
}

.widget-showcase {
  width: min(18rem, 78vw);
  margin: 0;
  justify-self: center;
}

.pricing-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.pricing-grid article {
  min-height: 10rem;
  padding: 1rem;
}

.featured-plan {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
}

.download-band {
  padding: 3rem 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(3, 105, 161, 0.96), rgba(8, 145, 178, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 4rem, rgba(255, 255, 255, 0.1) 4rem 4.1rem);
}

.download-band h2 {
  color: #ffffff;
}

.support-section {
  background: var(--surface-soft);
}

.support-grid p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.9rem;
  color: var(--blue-800);
  font-family: var(--typography-font-display);
  font-weight: 820;
}

.privacy-card {
  padding: 1rem;
}

.site-footer {
  color: #ffffff;
  background: var(--blue-900);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.94rem;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 47.9375rem) {
  .header-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0 0.65rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 2.75rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-size: 0.88rem;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 1.35rem 0 1.2rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.12rem;
  }

  .hero-lede {
    max-width: min(100%, 14rem);
    margin-top: 0.8rem;
    line-height: 1.5;
    font-size: 1rem;
  }

  .cta-row {
    max-width: min(100%, 14rem);
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .app-store-link img {
    width: 9.35rem;
  }

  .route-link {
    max-width: 100%;
    padding: 0 0.75rem;
    line-height: 1.2;
    white-space: normal;
  }

  .route-stats {
    display: none;
  }

  .hero-device {
    position: absolute;
    z-index: 1;
    right: -7rem;
    bottom: -7.5rem;
    width: 13rem;
    opacity: 1;
  }

  .hero-device img {
    border-radius: 0;
  }

  section[id] {
    scroll-margin-top: 9.5rem;
  }
}

@media (min-width: 38rem) {
  .route-stats,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 48rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
    min-height: 42rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .section {
    padding: 5rem 0;
  }

  .intro-grid,
  .carplay-intro,
  .one-way-grid,
  .widgets-grid,
  .support-grid,
  .download-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

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

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

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

  .section-heading h2,
  .download-band h2 {
    font-size: 2.55rem;
  }

  .intro-grid h2 {
    font-size: 2.45rem;
  }

  .phone-strip {
    grid-auto-columns: minmax(17rem, 20rem);
  }

  .one-way-shot {
    width: min(26rem, 100%);
    justify-self: end;
  }

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

  .carplay-card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 14rem;
    min-height: 35rem;
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-device {
    width: 14rem;
  }
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 25rem);
  }

  .hero h1 {
    font-size: 5rem;
  }

  .hero-lede {
    font-size: 1.15rem;
  }

  .phone-strip {
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .phone-strip figure {
    width: min(100%, 19.5rem);
  }

  .phone-strip figure:nth-child(2) {
    justify-self: center;
  }

  .phone-strip figure:nth-child(3) {
    justify-self: end;
  }

  .carplay-grid {
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
  }

  .carplay-card-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
