:root {
  --ink: #111329;
  --muted: #6f7186;
  --line: #dedfe8;
  --surface: #f5f5f8;
  --white: #ffffff;
  --primary: #3732b8;
  --primary-dark: #25217f;
  --teal: #079d78;
  --teal-soft: #e4f5f0;
  --amber: #f1a11a;
  --amber-soft: #fff3df;
  --red: #e94e56;
  --shadow: 0 18px 50px rgba(24, 25, 55, 0.12);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--white); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.page-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled { color: var(--ink); background: rgba(255,255,255,0.97); box-shadow: 0 4px 18px rgba(20,20,42,.08); border-color: var(--line); }
.nav-shell { width: var(--shell); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 800; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 8px; background: var(--white); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:not(.button):hover { color: #9ddbd0; }
.site-header.scrolled .main-nav a:not(.button):hover { color: var(--primary); }
.nav-login { margin-left: 14px; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: currentColor; padding: 9px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--white);
  background: var(--primary);
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 10px 24px rgba(55,50,184,.24); }
.button-small { min-height: 40px; padding: 8px 16px; }
.button-light { color: var(--ink); border-color: var(--white); background: var(--white); }
.button-light:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.button-outline { color: var(--primary); background: transparent; }
.button-outline:hover { color: var(--white); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--primary); font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link-light { color: var(--white); }

.hero { position: relative; height: clamp(600px, 82svh, 780px); min-height: 600px; overflow: hidden; color: var(--white); background: #161833; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; opacity: .62; }
.hero-shade { position: absolute; inset: 0 42% 0 0; background: rgba(13, 15, 39, .9); }
.hero-content { position: relative; z-index: 2; height: 100%; padding-top: 130px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-content > * { max-width: 590px; }
.eyebrow { margin: 0 0 16px; color: #9ddbd0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dark { color: var(--primary); }
.hero h1 { margin: 0; font-size: clamp(66px, 8vw, 116px); line-height: .92; letter-spacing: 0; }
.hero-lead { margin: 24px 0 30px; color: #e3e3ec; font-size: clamp(20px, 2vw, 27px); line-height: 1.38; }
.hero-actions { display: flex; gap: 24px; align-items: center; }
.hero-proof { display: flex; gap: 22px; margin-top: 42px; color: #c7c8d6; font-size: 13px; font-weight: 650; }
.hero-proof span { padding-left: 16px; border-left: 2px solid var(--teal); }

.intro-band { padding: 78px 0; background: var(--teal-soft); border-bottom: 1px solid #cde8e1; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
h2 { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: 0; }
.intro-grid > p { margin: 0; color: #3d4b51; font-size: 20px; }

.audience-switch { padding: 105px 0; }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-lead { color: var(--muted); font-size: 19px; }
.segment-control { width: min(640px, 100%); margin: 0 auto 30px; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: #ececf2; border: 1px solid var(--line); border-radius: 6px; }
.segment-control button { min-height: 48px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.segment-control button[aria-selected="true"] { color: var(--white); background: var(--primary); }
.audience-panel { max-width: 900px; min-height: 160px; margin: auto; padding: 30px 34px; display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel-number { color: var(--teal); font-size: 30px; font-weight: 800; }
.audience-panel h3 { margin: 0 0 6px; font-size: 24px; }
.audience-panel p { margin: 0; color: var(--muted); }

.product-band { padding: 110px 0; background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.product-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.product-copy h2 { font-size: clamp(36px, 4vw, 52px); }
.feature-list { margin: 34px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--ink); }
.feature-list span { color: var(--muted); }
.desktop-showcase { position: relative; width: 880px; }
.desktop-showcase img { width: 100%; border: 10px solid #252638; border-radius: 8px; box-shadow: 0 28px 70px rgba(22, 24, 60, .2); }
.showcase-label { position: absolute; right: 20px; bottom: -42px; min-width: 240px; padding: 18px 22px; display: flex; flex-direction: column; background: var(--ink); color: var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.showcase-label span { color: #bfc0cf; font-size: 12px; text-transform: uppercase; }

.operations-section { padding: 110px 0 120px; }
.workflow { margin: 0 0 70px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-block: 1px solid var(--line); }
.workflow li { position: relative; padding: 28px 28px 34px; border-right: 1px solid var(--line); }
.workflow li:last-child { border-right: 0; }
.workflow span { color: var(--primary); font-size: 13px; font-weight: 800; }
.workflow strong { display: block; margin: 12px 0 4px; font-size: 22px; }
.workflow p { margin: 0; color: var(--muted); }
.phone-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.phone-strip figure { margin: 0; text-align: center; }
.phone-strip img { width: min(100%, 330px); max-height: 620px; margin: auto; object-fit: cover; object-position: top; border: 7px solid #1d1e2b; border-radius: 8px; box-shadow: var(--shadow); }
.phone-strip figcaption { margin-top: 16px; font-weight: 750; }

.driver-band { padding: 120px 0; color: var(--white); background: var(--ink); overflow: hidden; }
.driver-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.driver-copy > p:not(.eyebrow) { color: #c6c7d3; font-size: 19px; }
.driver-features { margin: 38px 0; border-top: 1px solid #35364e; }
.driver-features > div { display: grid; grid-template-columns: 38px 1fr; padding: 17px 0; border-bottom: 1px solid #35364e; }
.driver-features span { grid-row: 1 / 3; color: #84d3c4; font-size: 13px; font-weight: 800; }
.driver-features strong { font-size: 18px; }
.driver-features p { margin: 3px 0 0; color: #aaabba; }
.phone-gallery { position: relative; min-height: 690px; }
.phone { position: absolute; top: 30px; width: 280px; max-height: 650px; object-fit: cover; object-position: top; border: 6px solid #303147; border-radius: 8px; box-shadow: 0 25px 60px rgba(0,0,0,.4); }
.phone-front { z-index: 2; left: 50%; transform: translateX(-50%); top: 0; }
.phone-back { left: 0; transform: rotate(-3deg); opacity: .78; }
.phone-right { left: auto; right: 0; transform: rotate(3deg); }

.capabilities { padding: 115px 0; }
.capability-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability-column { padding: 34px; background: var(--white); }
.capability-column h3 { margin: 0 0 22px; font-size: 24px; }
.capability-column ul { margin: 0; padding: 0; list-style: none; }
.capability-column li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.capability-column b { color: var(--teal); font-size: 13px; text-transform: uppercase; }

.pricing-band { padding: 110px 0; background: var(--surface); border-block: 1px solid var(--line); }
.pricing-heading { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 48px; }
.pricing-heading > div:first-child { max-width: 760px; }
.billing-toggle { display: flex; padding: 4px; background: #e5e5ec; border-radius: 6px; }
.billing-toggle button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; }
.billing-toggle button.active { color: var(--ink); background: var(--white); box-shadow: 0 3px 12px rgba(20,20,40,.08); }
.billing-toggle span { color: var(--teal); font-size: 11px; font-weight: 800; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 32px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.price-card.featured { border: 2px solid var(--primary); }
.popular-label { position: absolute; top: -15px; right: 18px; padding: 6px 12px; color: var(--white); background: var(--primary); border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.plan-label { margin: 0; font-size: 22px; font-weight: 800; }
.price { display: flex; align-items: flex-start; margin: 22px 0 0; }
.price > span { margin-top: 9px; font-size: 20px; }
.price strong { font-size: 56px; line-height: 1; }
.price small { align-self: flex-end; margin: 0 0 7px 8px; color: var(--muted); }
.billing-note { margin: 8px 0 24px; color: var(--muted); font-size: 13px; }
.price-card > p { color: var(--muted); }
.price-card ul { flex: 1; margin: 20px 0 30px; padding: 0; list-style: none; }
.price-card li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.price-card li::before { content: "✓"; margin-left: -24px; margin-right: 10px; color: var(--teal); font-weight: 900; }
.pricing-footnote { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.records-band { padding: 115px 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: 100px; align-items: center; }
.records-image { height: 620px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.records-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.records-copy > p:not(.eyebrow) { color: var(--muted); font-size: 19px; }
.records-copy dl { margin-top: 36px; border-top: 1px solid var(--line); }
.records-copy dl div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.records-copy dt { font-weight: 800; }
.records-copy dd { margin: 4px 0 0; color: var(--muted); }

.faq-band { padding: 110px 0; background: var(--teal-soft); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.faq-list { border-top: 1px solid #bcded6; }
.faq-list details { border-bottom: 1px solid #bcded6; }
.faq-list summary { padding: 22px 42px 22px 0; font-size: 18px; font-weight: 750; cursor: pointer; }
.faq-list p { margin: -8px 0 24px; color: #455359; }

.final-cta { padding: 110px 0; color: var(--white); background: var(--primary); text-align: center; }
.final-cta .page-shell { max-width: 850px; }
.final-cta p:not(.eyebrow) { color: #deddf6; font-size: 20px; }
.final-cta .button { margin-top: 18px; }

.site-footer { padding: 70px 0 26px; color: #d5d5e0; background: #0d0e1e; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-brand { color: var(--white); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid strong { margin-bottom: 8px; color: var(--white); }
.footer-grid a:not(.brand) { color: #b6b7c5; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid #292a3c; color: #858697; font-size: 13px; }

@media (max-width: 1050px) {
  .main-nav { gap: 16px; }
  .main-nav > a:not(.button):not(.nav-login) { display: none; }
  .hero-shade { right: 28%; }
  .product-grid { grid-template-columns: 1fr; }
  .desktop-showcase { width: 110%; }
  .driver-grid { grid-template-columns: 1fr; }
  .phone-gallery { width: min(760px, 100%); margin: auto; }
  .records-band { gap: 50px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 620px); }
  .site-header { height: 64px; }
  .menu-button { display: block; }
  .main-nav { position: fixed; inset: 64px 0 auto; padding: 18px 20px 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; color: var(--ink); background: var(--white); box-shadow: 0 18px 30px rgba(20,20,40,.14); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.button):not(.nav-login) { display: block; }
  .main-nav a { padding: 13px 0; }
  .main-nav .button { margin-top: 10px; }
  .nav-login { margin-left: 0; }
  .hero { height: 82svh; min-height: 620px; }
  .hero-image { object-position: 62% center; opacity: .34; }
  .hero-shade { inset: 0; background: rgba(13,15,39,.78); }
  .hero-content { padding-top: 92px; justify-content: center; }
  .hero h1 { font-size: 64px; }
  .hero-lead { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-proof { gap: 12px; flex-direction: column; margin-top: 30px; }
  .intro-band, .audience-switch, .product-band, .operations-section, .driver-band, .capabilities, .pricing-band, .faq-band, .final-cta { padding-block: 76px; }
  .intro-grid, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-grid > p { font-size: 18px; }
  .audience-panel { grid-template-columns: 45px 1fr; padding: 24px 20px; }
  .audience-panel .text-link { grid-column: 2; }
  .feature-list li { grid-template-columns: 1fr; gap: 4px; }
  .desktop-showcase { width: 125%; }
  .showcase-label { right: 12%; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow li:nth-child(2) { border-right: 0; }
  .workflow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .phone-strip { grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
  .phone-strip img { border-width: 3px; max-height: 390px; }
  .phone-gallery { min-height: 510px; }
  .phone { width: 42%; max-height: 480px; }
  .capability-table, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-heading { align-items: flex-start; flex-direction: column; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; }
  .records-band { padding-block: 76px; grid-template-columns: 1fr; gap: 42px; }
  .records-image { height: 500px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 440px) {
  h2 { font-size: 36px; }
  .segment-control button { padding: 8px; font-size: 14px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow li:last-child { border-bottom: 0; }
  .phone-strip { width: 100%; transform: none; }
  .phone-gallery { min-height: 430px; }
  .phone { max-height: 420px; }
  .phone-front { width: 52%; }
  .capability-column { padding: 24px 18px; }
  .capability-column li { font-size: 14px; }
  .price-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
