/* The full-width product scene. Shared page and payment styles stay in styles.css. */
:root { background: #fafbf9; }
.landing-page {
  --paper: #fafbf9;
  --ink: #20241f;
  --muted: #697066;
  --glass: rgba(255, 255, 255, .64);
  --glass-edge: rgba(255, 255, 255, .94);
  --button-radius: 12px;
  background: var(--paper);
}

.landing-page .button,
.landing-page .play-effect,
.landing-page .looks button { border-radius: var(--button-radius); }

/* A single floating navigation surface, with a solid fallback behind the blur. */
.landing-page .site-header {
  top: 14px;
  margin-top: 14px;
  padding-inline: 18px;
}
.landing-page .site-header.scrolled { background: none; box-shadow: none; backdrop-filter: none; }
.landing-page .nav {
  width: min(1100px, 100%);
  height: 62px;
  padding: 0 12px 0 20px;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: #f3f5f0e8;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #27331f09, 0 8px 30px -16px #28351e33;
}
.landing-page .nav .brand { font-size: 20px; }
.landing-page .nav .brand img { width: 30px; height: 30px; }
.landing-page .nav-links { gap: 28px; }

/* The headline and the hardware share the same background. */
.landing-page .hero { padding-top: 45px; }
.landing-page .hero-copy { position: relative; z-index: 2; padding: 0 0 10px; text-align: center; }
.landing-page h1 { font-size: clamp(48px, 6.1vw, 82px); font-weight: 650; line-height: 1.04; letter-spacing: -.058em; }
.landing-page .hero-bottom { margin-top: 25px; }
.landing-page .hero-actions { justify-content: center; gap: 26px; }
.landing-page .hero-actions .button { min-height: 48px; padding: 14px 22px; }
.landing-page .compatibility { justify-content: center; margin-top: 13px; }
.landing-page .demo-story {
  --demo-top: 90px;
  --demo-height: max(560px, min(860px, calc(100svh - 100px)));
  margin: 0 auto;
  width: min(1600px, 100%);
}
.landing-page .experience {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.landing-page .experience-wash {
  inset: 8% -10% 0;
  opacity: .7;
  background: radial-gradient(ellipse at 35% 64%, #e4edd58a, transparent 48%), radial-gradient(ellipse at 65% 60%, #dce8f28c, transparent 46%);
  mask-image: linear-gradient(transparent, #000 35%, #000 72%, transparent);
}
.landing-page .stage { inset: -12px 0 115px; }
.landing-page .model-fallback { top: 0; left: 5%; width: 90%; height: 100%; }
.landing-page .stage canvas { transition-duration: .45s; }
/* The entrance drives opacity and the hinge on the same, visibility-aware clock. */
.landing-page .experience[data-entering="true"] .stage canvas { transition: none; }
/* Only show the poster if the live preview cannot start. */
.landing-page .model-fallback { opacity: 0; }
.landing-page .experience[data-state="unavailable"] .model-fallback { opacity: 1; }

/* One glass dock contains all demo controls. No controls overlap the screen. */
.demo-dock {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 22px;
  width: min(690px, calc(100% - 40px));
  padding: 12px 18px;
  transform: translateX(-50%);
  border: 1px solid var(--glass-edge);
  border-radius: 25px;
  background: #f0f4ecef;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #a4b0a31a, 0 0 0 1px #5164480c, 0 14px 40px -18px #36432b3d;
}
.landing-page .preset-panel {
  position: static;
  display: flex;
  align-items: center;
  gap: 20px;
  width: auto;
  padding: 0 0 11px;
  transform: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}
.landing-page .panel-title { flex: 0 0 auto; gap: 12px; padding: 0; border: 0; }
.landing-page .panel-title > span { font-size: 0; gap: 0; }
.landing-page .panel-title img { width: 25px; height: 25px; }
.landing-page .panel-actions { gap: 10px; }
.landing-page .play-effect { width: 36px; height: 36px; border-color: #ffffffd9; background: #ffffff9c; box-shadow: 0 1px 3px #33442a12; }
.landing-page .play-effect:hover:not(:disabled) { background: #fff; }
.landing-page .preset-panel > .panel-label { display: none; }
.landing-page .looks { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; }
.landing-page .looks button { justify-content: center; gap: 6px; padding: 7px 6px; min-height: 38px; white-space: nowrap; }
.landing-page .looks button[aria-pressed="true"] { background: #ffffffc7; border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 2px 7px #34482b12; }
.landing-page .looks button > span:nth-child(2) { font-size: 11px; }
.landing-page .look-orb { width: 20px; height: 20px; border-radius: 50%; }
.landing-page .look-check { display: none; }
.landing-page .demo-controls {
  position: static;
  width: auto;
  gap: 24px;
  padding: 9px 0 0;
  transform: none;
  border: 0;
  border-top: 1px solid #697c5720;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.landing-page .slider-wrap { padding: 0; }
.landing-page .range-labels { font-size: 9px; }
.landing-page .preview-message, .landing-page .noscript-message { left: 50%; bottom: 155px; max-width: none; transform: translateX(-50%); text-align: center; white-space: nowrap; }

/* Material falls back to an opaque surface when backdrop blur is unavailable. */
@supports (backdrop-filter: blur(1px)) {
  .landing-page .nav, .demo-dock {
    background: linear-gradient(135deg, #ffffffb8, #f4f7f18c);
    backdrop-filter: blur(26px) saturate(1.4);
    -webkit-backdrop-filter: blur(26px) saturate(1.4);
  }
}

@media (max-width: 760px) {
  .landing-page .site-header { top: 10px; margin-top: 10px; padding-inline: 12px; }
  .landing-page .nav { height: 58px; padding-inline: 14px 9px; border-radius: 19px; }
  .landing-page .nav-links { gap: 20px; }
  .landing-page .nav .brand { font-size: 18px; }
  .landing-page .nav .brand img { width: 27px; height: 27px; }
  .landing-page .hero { padding-top: 36px; }
  .landing-page .hero-copy { padding: 0 0 18px; }
  .landing-page h1 { font-size: clamp(40px, 7.6vw, 57px); letter-spacing: -.055em; }
  .landing-page .hero-bottom { margin-top: 22px; }
  .landing-page .hero-actions { gap: 18px; }
  .landing-page .hero-actions .button { min-height: 46px; font-size: 12px; padding: 13px 17px; }
  .landing-page .demo-story { --demo-top: 80px; --demo-height: max(490px, min(620px, calc(100svh - 94px))); }
  .landing-page .stage { inset: -16px 0 177px; }
  .demo-dock { width: min(460px, calc(100% - 32px)); bottom: 22px; padding: 12px; border-radius: 23px; }
  .landing-page .preset-panel { display: grid; gap: 9px; padding-bottom: 10px; }
  .landing-page .panel-title { width: 100%; }
  .landing-page .panel-title > span { gap: 7px; font-size: 12px; }
  .landing-page .panel-title img { width: 22px; height: 22px; }
  .landing-page .play-effect { width: 32px; height: 32px; }
  .landing-page .looks button { flex-direction: row; gap: 6px; padding: 7px 3px; }
  .landing-page .looks button > span:nth-child(2) { font-size: 10px; }
  .landing-page .look-orb { width: 17px; height: 17px; border-radius: 50%; }
  .landing-page .demo-controls { gap: 15px; padding-top: 9px; }
  .landing-page .preview-message, .landing-page .noscript-message { bottom: 210px; }
}

@media (max-height: 559px) {
  .landing-page .demo-story { --demo-height: 620px; }
}

@media (prefers-reduced-transparency: reduce) {
  .landing-page .nav, .demo-dock { background: #f3f5ef; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
