/* Match every homepage module to the navigation showcase's content edges. */
:root {
  --site-content-width: 1200px;
  --site-section-width: 1272px;
  --site-gutter: 36px;
}

.hero,
.guidance-section,
.wrap-section,
.dashboard-section,
.closing,
footer {
  padding-inline: var(--site-gutter);
}

.guidance-section .sync-experience,
.wrap-workspace,
.native-carousel-shell,
.trip-experience,
.footer-inner {
  max-width: var(--site-content-width);
}

.charging-showcase,
.journeys.section-shell {
  width: 100%;
  max-width: var(--site-section-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.journeys .trip-records {
  max-width: none;
}

.sync-equals {
  gap: 8px;
}

.sync-equals > span {
  font-size: 16px;
  font-weight: bold;
}

/* Keep the navigation crop and screenshot dock at their native proportions. */
.sync-center-product [data-nav-screen="center"],
.sync-center-product canvas {
  aspect-ratio: 1000 / 595;
}

.sync-controls {
  width: min(100%, 1400px);
  gap: 16px;
}

.sync-controls button {
  min-height: 72px;
  padding: 18px 16px;
  font-size: clamp(15px, 1.2vw, 20px);
}

.sync-controls button span {
  font-size: 14px;
  margin-right: 2px;
}
.sync-source-note {
  margin: 16px 0 0;
  color: #c0d7e8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* iPhone 17 Pro in landscape: 150 × 71.9 mm black unibody, with the
   portrait right-side controls above and left-side controls below. */
.sync-hardware.iphone-frame {
  aspect-ratio: 150 / 71.9;
  border: 0.5px solid #666;
  border-radius: 8% / 17%;
  background: #111315;
  box-shadow: inset 0 0 0 1px #373c41, 0 14px 28px #18232e29;
}

.iphone-display {
  inset: 5px;
  border-radius: 7.1% / 15.5%;
  box-shadow: 0 0 0 2px #090c0e, inset 0 0 0 1px #252b30;
}

.iphone-island {
  left: 4.7%;
  width: 3.2%;
  height: 38%;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #3d464d80;
}

.iphone-island::after {
  top: 13%;
  left: 50%;
  width: 30%;
  height: auto;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.iphone-key {
  height: 3px;
  border-radius: 3px;
  background: #111315;
  box-shadow: inset 0 0 0 1px #373c41;
}

.iphone-side-button { top: -3px; left: 22%; width: 10%; }
.iphone-action { top: auto; bottom: -3px; left: 16%; width: 5%; }
.iphone-volume-up { top: auto; bottom: -3px; left: 27%; width: 7%; }
.iphone-volume-down { top: auto; bottom: -3px; left: 37%; width: 7%; }

.sync-phone-product [data-nav-screen="phone"] { container-type: inline-size; }
.sync-phone-product .sync-static-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.sync-phone-product .sync-static-frame.is-hidden { display: none; }
.sync-phone-product .sync-map-preview {
  position: absolute;
  z-index: 1;
  left: 6.1579%;
  top: 6.1503%;
  width: 54.2632%;
  height: 87.6993%;
  border-radius: 5.24% / 7.01%;
  object-fit: cover;
  object-position: center;
  background: #3c4b60;
  pointer-events: none;
}
.sync-phone-product .sync-phone-speed-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Center highlights on the recorded cards and the canvas drawing bounds.
   Include the border in the box so thicker strokes do not shift its center. */
.sync-experience .sync-product [data-nav-screen]::after {
  display: block;
  box-sizing: border-box;
  border-width: 3px;
  left: var(--focus-x);
  top: var(--focus-y);
  width: calc(var(--focus-width) + 8px);
  height: calc(var(--focus-height) + 8px);
  transform: translate(-50%, -50%);
  transition: left .2s, top .2s, width .2s, height .2s;
}
.sync-experience[data-focus="junction"] [data-nav-screen="phone"] {
  --focus-x: 77.7%; --focus-y: 34.8%;
  --focus-width: 28.6%; --focus-height: 57.2%;
}
.sync-experience[data-focus="lanes"] [data-nav-screen="phone"] {
  --focus-x: 77.7%; --focus-y: 80.45%;
  --focus-width: 32.2%; --focus-height: 26.9%;
}
.sync-experience[data-focus="hud"] [data-nav-screen="phone"] {
  --focus-x: 77.7%; --focus-y: 50%;
  --focus-width: 32.2%; --focus-height: 26.9%;
}
.sync-experience[data-focus="signal"] [data-nav-screen="phone"] {
  --focus-x: 96.5%; --focus-y: 50%;
  --focus-width: 5%; --focus-height: 88%;
}
.sync-experience[data-focus="junction"] [data-nav-screen="center"] {
  --focus-x: 50.7%; --focus-y: 23.52%;
  --focus-width: 20.89%; --focus-height: 30.08%;
}
.sync-experience[data-focus="lanes"] [data-nav-screen="center"] {
  --focus-x: 51%; --focus-y: 26.4%;
  --focus-width: 14%; --focus-height: 8%;
}
.sync-experience[data-focus="hud"] [data-nav-screen="center"] {
  --focus-x: 46.6%; --focus-y: 15.36%;
  --focus-width: 10%; --focus-height: 7.04%;
}
.sync-experience[data-focus="signal"] [data-nav-screen="center"] {
  --focus-x: 18.5%; --focus-y: 5.44%;
  --focus-width: 2.9%; --focus-height: 3.72%;
}
/* Hide the fixed iOS microphone indicator baked into the navigation recording. */
.sync-recording-indicator-mask {
  position: absolute;
  z-index: 2;
  left: 48.5%;
  top: 0;
  width: 3%;
  height: 5%;
  background: linear-gradient(90deg, #101d30, #111e31);
  pointer-events: none;
}
.sync-signal-off-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.sync-signal-off-left { clip-path: inset(0 94% 0 0); }
.sync-signal-off-right { clip-path: inset(0 0 0 94%); }
[data-focus="signal"] .sync-signal-off-mask { display: none; }

@media (max-width: 900px) {
  .sync-hardware.iphone-frame { border-radius: 8% / 17%; }
  .iphone-display { inset: 5px; border-radius: 7.1% / 15.5%; }
  .iphone-island { left: 4.7%; width: 3.2%; }
  .iphone-island::after { left: 50%; width: 30%; height: auto; }
}

@media (max-width: 700px) {
  :root { --site-gutter: 14px; }
  .sync-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 18px;
  }
  .sync-controls button {
    min-height: 44px;
    padding: 8px;
    font-size: 11px;
  }
  .sync-source-note { font-size: 11px; }
}

.closing {
  width: min(960px, calc(100% - 2 * var(--site-gutter)));
  margin: 0 auto 32px;
  padding: 22px 26px;
  border: 0.5px solid #b8dbf180;
  border-radius: 28px;
  background: #173e58;
  box-shadow: 0 18px 55px #071b2e55, inset 0 1px #ffffff24;
  text-align: left;
}

.closing > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
}

.closing img {
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 16px;
}

.closing h2 {
  grid-column: 2;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin: 0;
}

.closing .download-note {
  grid-column: 2;
  font-size: 13px;
  margin: 4px 0 0;
}

.closing .button {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-content: center;
  white-space: nowrap;
  gap: 10px;
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.closing .button:hover { background: #f0f0f0; }
.closing .button svg { width: 22px; height: 26px; flex-shrink: 0; fill: currentColor; }

@media (max-width: 700px) {
  .closing {
    width: calc(100% - 2 * var(--site-gutter));
    padding: 18px;
    border-radius: 22px;
  }

  .closing > div {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .closing img { width: 48px; height: 48px; border-radius: 12px; }
  .closing h2 { font-size: 18px; }
  .closing .download-note { font-size: 11px; margin: 0; }
  .closing .button {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 44px;
    margin-top: 8px;
  }
}

/* Keep the heading hierarchy consistent across all homepage modules. */
.section-heading > :is(h1, h2),
.charging-showcase .section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -1.3px;
}

.section-heading > :is(h1, h2) span {
  color: inherit;
}

.section-heading > p:last-child:not(.eyebrow),
.wrap-section .section-heading > p,
.guidance-section .section-heading > p {
  margin-top: 14px;
  color: var(--app-secondary);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .section-heading > :is(h1, h2),
  .charging-showcase .section-heading h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .section-heading > p:last-child:not(.eyebrow),
  .wrap-section .section-heading > p,
  .guidance-section .section-heading > p {
    margin-top: 12px;
    font-size: 16px;
  }
}
