/* A product-first 3D tour. Without WebGL the complete story remains in flow. */
.ride-journey {
  --journey-header: 87px;
  --journey-height: max(580px, calc(100svh - var(--journey-header) - 32px));
  --journey-gutter: max(40px, calc((100% - 1248px) / 2));
  position: relative;
  color: var(--ink);
  background: #000;
  border-bottom: 1px solid #262626;
}
.app-preview-section { padding-block: 96px; }
.app-preview-title { margin: 0; font-family: var(--heading); font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1.07; letter-spacing: -.055em; }
.ride-journey .journey-sticky { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; padding: 58px var(--journey-gutter) 72px; }
.ride-journey .journey-copy { display: contents; }
.ride-journey .journey-chapter { min-width: 0; padding: 0; }
.ride-journey .journey-chapter[data-chapter="0"] { grid-area: 1 / 1; }
.ride-journey .journey-chapter:not([data-chapter="0"]) { align-self: start; padding-top: 32px; border-top: 1px solid var(--line); }
.ride-journey h1, .ride-journey .chapter-title { margin: 0; font-family: var(--heading); font-size: clamp(54px, 6.1vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -.065em; }
.ride-journey .chapter-title > span { color: var(--lime); }
.ride-journey .hero-eyebrow, .ride-journey .eyebrow { margin-bottom: 24px; color: var(--lime); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.ride-journey .hero-description, .ride-journey .chapter-description { max-width: 380px; margin: 25px 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.ride-journey .hero-actions { gap: 12px 18px; }
.ride-journey .hero-actions > .button { min-height: 52px; }
.ride-journey .hero-assurances { gap: 15px; font-size: 10px; }
.ride-journey .chapter-ride-rule { margin: 24px 0; padding: 13px 16px; border: 1px solid #303030; border-radius: 14px; background: #111; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ride-journey .chapter-ride-rule strong { color: var(--ink); font-weight: 700; }
.ride-journey .rule-reject { border-left: 3px solid var(--reject); }
.ride-journey .rule-reject strong { color: var(--reject); }
.ride-journey .rule-accept { border-left: 3px solid var(--success); }
.ride-journey .rule-accept strong { color: var(--success); }
.ride-journey .journey-stage { position: relative; grid-area: 1 / 2; width: 100%; height: 580px; min-width: 0; overflow: hidden; }
.ride-journey .journey-stage canvas { display: none; width: 100%; height: 100%; touch-action: pan-y; user-select: none; cursor: grab; }
.ride-journey .journey-stage canvas.is-dragging { cursor: grabbing; }
.ride-journey .journey-stage canvas:focus-visible { outline: 1px solid #c1ff0060; outline-offset: -8px; border-radius: 24px; }
.ride-journey .journey-fallback { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; padding: 20px; background: radial-gradient(ellipse, #c1ff0009, transparent 65%); }
.ride-journey .journey-fallback > p { max-width: 290px; margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.fallback-device { width: min(100%, 292px); padding: 25px 19px; border: 5px solid #303030; border-radius: 35px; background: #000; box-shadow: 10px 10px 0 -6px #62685e; transform: rotate(-5deg); }
.fallback-brand { display: flex; align-items: center; gap: 8px; }
.fallback-brand img { border-radius: 8px; }
.fallback-brand strong { font-size: 16px; letter-spacing: 2px; }
.fallback-brand > span { margin-left: auto; color: var(--lime); font-size: 9px; }
.fallback-device > p { margin: 18px 0; font-size: 11px; color: var(--muted); }
.fallback-performance { padding: 22px 18px; border-radius: 21px; background: var(--lime); color: #000; }
.fallback-performance > span { font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.fallback-performance > strong { display: block; margin-block: 15px; font-size: 40px; }
.fallback-performance small { font-size: 15px; }
.fallback-performance > p { margin: 0; font-size: 11px; }
.fallback-fares { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 14px; }
.fallback-fares > div { padding: 14px 9px; border: 1px solid var(--line); border-radius: 14px; background: #111; }
.fallback-fares span { display: block; color: var(--muted); font-size: 9px; }
.fallback-fares strong { font-size: 25px; color: var(--reject); }
.fallback-fares > div:last-child strong { color: var(--success); }
.fallback-service { padding: 10px; border-radius: 10px; background: #111; color: var(--lime); font-size: 10px; }
.fallback-service .status-dot { margin-right: 6px; }
.fallback-tabs { display: flex; justify-content: space-between; padding-top: 22px; color: var(--muted); font-size: 10px; }
.fallback-tabs > span { color: var(--lime); }
.ride-journey .journey-controls, .ride-journey .journey-progress, .ride-journey .journey-scene-label, .ride-journey .journey-instruction { display: none; }

/* Enhancement follows the first successful GPU render, never precedes it. */
.ride-journey[data-enhanced="true"] { height: 290vh; height: 290svh; min-height: calc(var(--journey-height) * 2.7); }
.ride-journey[data-enhanced="true"] .journey-sticky { position: sticky; top: var(--journey-header); display: block; height: var(--journey-height); padding: 0; isolation: isolate; }
.ride-journey[data-enhanced="true"] .journey-stage { position: absolute; top: 0; right: 0; bottom: 100px; width: 60%; height: auto; }
.ride-journey[data-enhanced="true"] .journey-stage canvas { display: block; }
.ride-journey[data-enhanced="true"] .journey-fallback { display: none; }
.ride-journey[data-enhanced="true"] .journey-copy { position: relative; z-index: 2; display: grid; align-items: center; height: calc(100% - 108px); padding-block: 46px; pointer-events: none; }
.ride-journey[data-enhanced="true"] .journey-chapter { grid-area: 1 / 1; align-self: center; width: 43%; max-width: 485px; padding: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 260ms ease, visibility 180ms; }
.ride-journey[data-enhanced="true"] .journey-chapter.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.ride-journey[data-enhanced="true"] .journey-scene-label { position: absolute; z-index: 3; top: 18px; right: var(--journey-gutter); display: flex; align-items: flex-end; flex-direction: column; gap: 5px; color: var(--muted); font-size: 7px; line-height: 1.5; letter-spacing: 1.2px; pointer-events: none; }
.ride-journey #journeyState { color: var(--lime); font-size: 9px; font-weight: 700; }
.ride-journey[data-enhanced="true"] .journey-instruction { position: absolute; bottom: 115px; right: var(--journey-gutter); z-index: 3; display: block; margin: 0; color: #a2a6a0; font-size: 9px; pointer-events: none; }
.ride-journey[data-enhanced="true"] .journey-controls { position: absolute; z-index: 4; bottom: 18px; left: var(--journey-gutter); right: var(--journey-gutter); display: grid; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.journey-control-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ride-journey .journey-pages { display: flex; gap: 6px; }
.ride-journey .journey-pages button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 17px; border: 1px solid #303030; border-radius: 12px; background: #111; color: #ddd; font-size: 11px; font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }
.ride-journey .journey-pages button > span { color: #999; font-size: 9px; }
.ride-journey .journey-pages button:hover { border-color: #636363; }
.ride-journey .journey-pages button[aria-current="step"] { border-color: var(--lime); background: var(--lime); color: #000; }
.ride-journey .journey-pages button[aria-current="step"] > span { color: #344500; }
.journey-camera-tools { display: flex; align-items: center; gap: 5px; }
.journey-camera-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; min-height: 42px; padding: 8px 11px; border: 1px solid #303030; border-radius: 11px; background: #111; color: #b4b8b0; font-size: 19px; }
.journey-camera-tools button:hover { color: var(--lime); border-color: #697437; }
.journey-camera-tools button > span { font-size: 10px; }
.journey-camera-tools .icon { width: 15px; height: 15px; }
.journey-timeline-row { display: flex; align-items: center; gap: 16px; }
.journey-timeline-row label { color: var(--muted); font-size: 8px; letter-spacing: 1.5px; white-space: nowrap; }
.journey-timeline-row input { flex: 1; min-width: 30px; height: 22px; margin: 0; accent-color: var(--lime); cursor: ew-resize; }
.ride-journey .journey-skip { padding-block: 3px; color: #a7a7a7; font-size: 10px; text-decoration: none; white-space: nowrap; }
.ride-journey .journey-skip:hover { color: var(--lime); }
.ride-journey[data-enhanced="true"] .journey-progress { position: absolute; z-index: 4; inset: auto 0 0; display: block; height: 2px; overflow: hidden; background: #171717; }
.ride-journey .journey-progress > span { display: block; width: 100%; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }

@media (max-width: 1180px) {
  .ride-journey { --journey-gutter: 32px; }
  .ride-journey .journey-sticky { gap: 32px; }
  .ride-journey .hero-actions { gap: 10px 14px; }
}
@media (max-width: 900px) {
  .ride-journey { --journey-header: 77px; }
  .ride-journey h1, .ride-journey .chapter-title { font-size: clamp(45px, 6.7vw, 60px); }
  .ride-journey .hero-description, .ride-journey .chapter-description { font-size: 13px; }
  .ride-journey[data-enhanced="true"] .journey-chapter { width: 45%; }
  .ride-journey .hero-eyebrow, .ride-journey .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .journey-camera-tools button > span { display: none; }
}
@media (min-width: 721px) and (max-height: 740px) {
  .ride-journey { --journey-height: max(400px, calc(100svh - var(--journey-header) - 32px)); }
  .ride-journey h1, .ride-journey .chapter-title { font-size: clamp(43px, 5.3vw, 65px); }
  .ride-journey .hero-description, .ride-journey .chapter-description { margin-block: 17px; font-size: 12px; }
  .ride-journey .hero-eyebrow, .ride-journey .eyebrow { margin-bottom: 17px; }
  .ride-journey .chapter-ride-rule { margin-block: 15px; padding-block: 8px; font-size: 10px; }
  .ride-journey[data-enhanced="true"] .journey-copy { padding-block: 22px; }
}
@media (max-width: 720px) {
  .ride-journey { --journey-header: 74px; --journey-gutter: 24px; --journey-height: max(440px, calc(100svh - var(--journey-header) - 33px)); }
  .ride-journey .journey-sticky { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 32px; }
  .ride-journey .journey-stage { grid-area: 2 / 1; height: 440px; }
  .ride-journey h1, .ride-journey .chapter-title { font-size: clamp(42px, 10.8vw, 54px); line-height: 1.05; letter-spacing: -.06em; }
  .ride-journey .hero-eyebrow, .ride-journey .eyebrow { margin-bottom: 13px; font-size: 8px; }
  .ride-journey .hero-description, .ride-journey .chapter-description { max-width: 420px; margin: 16px 0; font-size: 11.5px; line-height: 1.7; }
  .ride-journey .hero-actions { gap: 9px 13px; }
  .ride-journey .hero-actions > .button, .ride-journey .journey-chapter > .button { min-height: 43px; padding: 11px 13px; font-size: 10px; }
  .ride-journey .hero-assurances { font-size: 9px; }
  .ride-journey[data-enhanced="true"] .hero-assurances, .ride-journey[data-enhanced="true"] .chapter-ride-rule { display: none; }
  .ride-journey[data-enhanced="true"] .journey-copy { height: auto; align-items: start; padding-block: 20px 0; }
  .ride-journey[data-enhanced="true"] .journey-chapter { align-self: start; width: 100%; max-width: 540px; }
  .ride-journey[data-enhanced="true"] .journey-stage { inset: 253px 0 108px; width: 100%; height: auto; }
  .ride-journey[data-enhanced="true"] .journey-scene-label { display: none; }
  .ride-journey[data-enhanced="true"] .journey-instruction { right: var(--journey-gutter); bottom: 103px; font-size: 8px; }
  .ride-journey[data-enhanced="true"] .journey-controls { bottom: 13px; gap: 7px; padding-top: 10px; }
  .ride-journey .journey-pages { gap: 4px; }
  .ride-journey .journey-pages button { min-height: 37px; padding: 8px 11px; gap: 0; font-size: 10px; border-radius: 10px; }
  .ride-journey .journey-pages button > span { display: none; }
  .journey-camera-tools { gap: 4px; }
  .journey-camera-tools button { min-width: 32px; min-height: 37px; padding: 6px; border-radius: 10px; font-size: 17px; }
  .journey-control-row { gap: 8px; }
  .journey-timeline-row { gap: 10px; }
  .journey-timeline-row label { font-size: 7px; letter-spacing: .5px; }
  .ride-journey .journey-skip { font-size: 9px; }
}
@media (max-width: 400px) {
  .ride-journey { --journey-gutter: 20px; }
  .ride-journey .hero-actions { gap: 8px; }
  .ride-journey .hero-actions > .button { padding-inline: 11px; font-size: 9px; }
  .ride-journey .watch-link { font-size: 8px; gap: 5px; }
  .ride-journey .journey-pages button { padding-inline: 9px; }
  .ride-journey[data-enhanced="true"] .journey-stage { top: 255px; }
}
@media (max-width: 720px) and (max-height: 690px) {
  .ride-journey h1, .ride-journey .chapter-title { font-size: 39px; }
  .ride-journey[data-enhanced="true"] .hero-description, .ride-journey[data-enhanced="true"] .chapter-description { display: none; }
  .ride-journey[data-enhanced="true"] .hero-actions, .ride-journey[data-enhanced="true"] .journey-chapter > .button { margin-top: 14px; }
  .ride-journey[data-enhanced="true"] .journey-stage { top: 174px; }
  .ride-journey[data-enhanced="true"] .journey-instruction { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ride-journey *, .ride-journey *::before, .ride-journey *::after { transition: none !important; animation: none !important; }
}
