/* AR and VR page. Loaded after styles.css. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.tv-hero { padding: 150px 0 64px; background: #fff; }
.tv-h { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 5.8vw, 88px); line-height: .98; letter-spacing: -.04em; margin-top: 18px; max-width: 15ch; }
.tv-lead { margin-top: 24px; max-width: 680px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }

/* hero cards, one per demo */
.xr-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.xr-card { display: block; text-decoration: none; color: var(--ink); }
.xr-card-img { display: block; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #eef0f5; }
.xr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.xr-card:hover .xr-card-img img { transform: scale(1.04); }
.xr-card-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 0; }
.xr-card-t b { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.xr-card-t span { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 14.5px; font-weight: 600; color: var(--blue-d); }

/* sections */
.tv-sec { padding: 88px 0; scroll-margin-top: 70px; }
.tv-sec + .tv-sec { border-top: 1px solid var(--line); }
.tv-h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin-top: 10px; }
.tv-p { margin-top: 16px; max-width: 600px; font-size: 18.5px; line-height: 1.58; color: var(--ink-2); }
.tv-cap { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.fact h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.fact p { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }

/* the grey stage both viewers sit on */
.stage { position: relative; border-radius: 28px; background: #eef0f5; overflow: hidden; }
.hint { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink-2); box-shadow: 0 1px 3px rgba(10,14,39,.14); transition: opacity .4s; }
.hint svg { color: var(--blue-d); flex: none; }
.hint.gone { opacity: 0; }

/* 3D product view */
.pv3 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "demo intro" "demo facts"; column-gap: 72px; row-gap: 0; }
.pv3.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "intro demo" "facts demo"; }
.pv3-demo { grid-area: demo; align-self: center; }
.pv3-intro { grid-area: intro; align-self: end; }
.pv3-facts { grid-area: facts; align-self: start; }
.stage-mv { aspect-ratio: 1 / 1; max-height: 680px; }
.stage-mv.stage-wide { aspect-ratio: 4 / 3; }

/* try-on */
.stage-try { aspect-ratio: 16 / 10; }
.try-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4% 8% 18%; }
.try-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: none; }
.try-start { position: absolute; left: 0; right: 0; bottom: 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.try-start p { font-size: 14.5px; color: var(--ink-2); }
.try-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: none; align-items: center; justify-content: center; gap: 10px; z-index: 6; }
.cam-status { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 190px); margin: 0; padding: 8px 14px; border-radius: 18px; background: rgba(10,14,39,.78); color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.35; z-index: 7; }
.cam-status:empty { display: none; }
.ibtn.cam-stop { position: absolute; top: 14px; right: 14px; z-index: 7; display: none; }
.stage[data-state="running"] .ibtn.cam-stop, .stage[data-state="starting"] .ibtn.cam-stop { display: inline-flex; }
.stage-try[data-state="running"] .try-canvas, .stage-try[data-state="starting"] .try-canvas { display: block; }
.stage-try[data-state="running"] .try-poster, .stage-try[data-state="starting"] .try-poster { display: none; }
.stage-try[data-state="running"] .try-start, .stage-try[data-state="starting"] .try-start { display: none; }
.stage-try[data-state="running"] .try-bar { display: flex; }
.stage-try[data-state="starting"] { background: #1a1d2b; }
.swatches { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(10,14,39,.14); }
.swatches button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.swatches button[aria-pressed="true"] { background: var(--soft-2); }
.swatches i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw-t i { background: radial-gradient(circle at 35% 35%, #9a5a1c 0 25%, #3a1d0c 26% 50%, #7a4515 51% 70%, #24110a 71%); }
.sw-b i { background: #141414; } .sw-h i { background: #b77a35; }

/* brochure scan */
.stage-scan { aspect-ratio: 16 / 10; }
.scan-card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-view { position: absolute; inset: 0; overflow: hidden; display: none; background: #1a1d2b; isolation: isolate; z-index: 0; }
.stage-scan[data-state="running"] .scan-view, .stage-scan[data-state="starting"] .scan-view { display: block; }
.scan-view video, .scan-view canvas { max-width: none; }   /* the tracker sizes these itself */
.scan-act { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.scan-act .btn { height: 46px; }
model-viewer { display: block; position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--blue); outline: none; }
.mv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mv-hint { position: absolute; left: 16px; top: 16px; pointer-events: none; }
model-viewer:not(:defined) .mv-ar { display: none; }
.mv-ar { position: absolute; right: 16px; bottom: 16px; }
.mv-ar svg { flex: none; }
.qr { margin-top: 20px; display: flex; align-items: center; gap: 20px; padding: 16px 20px 16px 16px; border-radius: 20px; border: 1px solid var(--line); max-width: 560px; }
.qr[hidden] { display: none; }
.qr-code { flex: none; width: 104px; height: 104px; padding: 6px; background: #fff; border-radius: 10px; }
.qr-code svg { width: 100%; height: 100%; }
.qr p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.qr b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.facts { margin-top: 32px; display: grid; }
.facts .fact { padding: 20px 0; border-top: 1px solid var(--line); }

/* virtual tour */
.tv-tour { background: #fff; }
.tour-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.chips { display: flex; gap: 8px; flex: none; }
.chip { height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-tour { height: min(72vh, 700px); min-height: 420px; }
#pano { position: absolute; inset: 0; touch-action: pan-y; }
.tour-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; z-index: 5; }
.tour-btns { display: flex; gap: 8px; margin-left: auto; pointer-events: auto; }
.ibtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 1px 3px rgba(10,14,39,.14); transition: background .2s; }
.ibtn:hover { background: var(--blue-l); }
.ibtn[hidden] { display: none; }
.ibtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tv-tour.vr-on .vr-note { display: none; }
.tour-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }

/* pannellum, restyled to match the site */
#pano.pnlm-container { background: #eef0f5; font-family: var(--f-body); }
#pano .pnlm-load-box { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 6px 24px -8px rgba(10,14,39,.3); width: 220px; height: auto; margin: -40px 0 0 -110px; padding: 16px 18px; }
#pano .pnlm-load-box p { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
#pano .pnlm-lbox { display: none; }
#pano .pnlm-lbar { width: 100%; margin: 0; height: 6px; border: 0; border-radius: 6px; background: var(--soft-2); }
#pano .pnlm-lbar-fill { background: var(--blue); border-radius: 6px; }
#pano .pnlm-lmsg { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
#pano .pnlm-about-msg { display: none !important; }
#pano .pnlm-error-msg { background: #fff; color: var(--ink); border-radius: 16px; font-family: var(--f-body); }
.tour-hs { width: 56px; height: 56px; cursor: pointer; }
.tour-hs .hs-dot { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .25s var(--ease), background .2s, color .2s; }
.tour-hs:hover .hs-dot { transform: scale(1.08); background: var(--blue); color: #fff; }
.tour-hs .hs-lab { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(10,14,39,.82); color: #fff; font-size: 14px; font-weight: 600; pointer-events: none; }
.stage-tour:fullscreen { height: 100%; max-height: none; border-radius: 0; }
.stage-tour:-webkit-full-screen { height: 100%; max-height: none; border-radius: 0; }

/* price and questions */
.tv-price { background: var(--soft); }
.tv-price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.tv-price .cta2 { margin-top: 28px; }
.tv-more { margin-top: 22px; font-size: 16px; }
.tv-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-d); font-weight: 600; text-decoration: none; }
.tv-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tq-list { border-top: 1px solid var(--line); }
.tq { border-bottom: 1px solid var(--line); }
.tq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.tq summary::-webkit-details-marker { display: none; }
.tq summary h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.28; letter-spacing: -.01em; transition: color .2s; }
.tq summary:hover h3 { color: var(--blue-d); }
.tq-a { padding: 0 56px 26px 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 1000px) {
  .pv3, .pv3.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "demo" "facts"; row-gap: 32px; }
  .stage-mv { max-height: 560px; margin: 0 auto; }
  .tour-top { flex-direction: column; align-items: flex-start; }
  .tour-facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tv-price-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .xr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tv-hero { padding: 116px 0 44px; }
  .tv-sec { padding: 60px 0; }
  .xr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
  .xr-card:last-child { grid-column: span 2; }
  .xr-card:last-child .xr-card-img { aspect-ratio: 2 / 1; }
  .xr-card-img { border-radius: 18px; }
  .xr-card-t { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; }
  .xr-card-t b { font-size: 16px; }
  .stage-try { aspect-ratio: 4 / 5; }
  .try-poster { padding: 8% 6% 32%; }
  .stage-scan { aspect-ratio: 4 / 5; }
  .scan-card { object-fit: contain; background: #eef0f5; }
  .swatches button { padding: 0 8px 0 5px; font-size: 13px; }
  .cam-stop span { display: inline; }
  .ibtn.cam-stop { width: auto; padding: 0 14px 0 11px; }
  .cam-status { max-width: calc(100% - 170px); font-size: 13.5px; }
  .stage { border-radius: 22px; }
  .stage-tour { height: 66vh; min-height: 380px; }
  .tour-bar { left: 12px; right: 12px; bottom: 12px; }
  .ibtn span { display: none; }
  .ibtn { width: 40px; padding: 0; justify-content: center; }
  .hint { font-size: 14px; }
  .mv-hint { left: 12px; top: 12px; }
  .mv-ar { right: 12px; bottom: 12px; height: 42px; padding: 0 16px; font-size: 14.5px; }
  .tq-a { padding-right: 0; }
  .tv-price .cta2 .btn { flex: 1 1 auto; }
}
