/* copied from Alexi-App-Marketing-v12/src/style.css: the rules the 3D views need */
.phone-view { position: relative; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.phone-view:active { cursor: grabbing; }
.phone-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.phone-view .ph-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; transition: opacity .28s linear; pointer-events: none; }
.phone-view.gl-on .ph-still { opacity: 0; }
.t.phone .phone-view { position: absolute; inset: 0; }
.cover .phone-view { position: absolute; inset: 0; }
.ring-stage { position: relative; height: clamp(440px, 46vw, 640px); }
.ring-stage .phone-view { position: absolute; inset: 0; }
.ring-stage .ring-cap { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 4; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--mut2); pointer-events: none; }
.ring-stage { background: radial-gradient(42% 52% at 50% 48%, rgba(130, 134, 146, .26), rgba(40, 42, 48, .08) 60%, transparent 80%), rgba(8, 8, 10, .6); }
.ch[data-acc] .t.phone, .ch[data-acc] .ai-phone, .ring-stage { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .3)), rgba(7, 7, 9, .7); }
.phone-view::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(86%, 600px); aspect-ratio: .8; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--a, 200, 204, 214), .62), rgba(var(--b, 120, 124, 136), .46) 38%, rgba(var(--b, 120, 124, 136), .16) 68%, transparent 100%); filter: blur(26px); animation: aura 7s ease-in-out infinite; }
.ring-stage .phone-view::before { aspect-ratio: 1; width: min(60%, 520px); }
@media (prefers-reduced-motion: reduce) { .phone-view::before { animation: none; } }
.ring-stage[data-fin="silver"] { --a: 226, 229, 236; --b: 150, 154, 164; }
.ring-stage[data-fin="gold"] { --a: 236, 182, 92; --b: 150, 98, 34; }
.ring-stage[data-fin="champagne"] { --a: 236, 196, 166; --b: 150, 108, 82; }
.ring-stage .phone-view canvas { transition: opacity .18s ease, filter .18s ease; }
.ring-stage .phone-view.swapping canvas { opacity: 0; filter: blur(6px); }
.ring-fin { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 5; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(14, 14, 17, .72); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ring-fin button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font: 500 13px/1 var(--sans); letter-spacing: .01em; color: var(--mut, rgba(255,255,255,.62)); transition: background .25s ease, color .25s ease; white-space: nowrap; }
.ring-fin button:hover { color: #fff; }
.ring-fin button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.ring-fin button:focus-visible { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; }
.ring-fin i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ring-fin [data-fin="black"] i { background: linear-gradient(135deg, #4a4a50, #121214); }
.ring-fin [data-fin="silver"] i { background: linear-gradient(135deg, #f4f4f2, #9fa1a6); }
.ring-fin [data-fin="gold"] i { background: linear-gradient(135deg, #f3cf86, #a8772c); }
.ring-fin [data-fin="champagne"] i { background: linear-gradient(135deg, #f1d6bf, #b48b6c); }
@media (max-width: 640px) { .ring-fin { bottom: 46px; gap: 2px; padding: 4px; max-width: calc(100% - 24px); } .ring-fin button { padding: 8px 10px; gap: 6px; font-size: 12px; } }
.hdial .phone-view { position: relative; min-height: 100%; }
.hdial .phone-view::before { width: min(70%, 560px); aspect-ratio: 1; }
@media (max-width: 860px) { .hdial .phone-view { height: clamp(320px, 92vw, 460px); min-height: 0; order: 2; } }
@media (max-width: 640px) { .hdial .phone-view { height: clamp(300px, 84vw, 400px); } }
.t-fx .phone-view { position: absolute; inset: 0; z-index: 1; }
.t-fx .phone-view::before { display: none; }
.hbento .hdial .phone-view { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 640px) { .t-fx .phone-view { order: 2; position: relative; inset: auto; height: clamp(280px, 82vw, 340px); } }
@media (max-width: 640px) { .t-fx .phone-view[data-fx="sleep"], .t-fx .phone-view[data-fx="temp"] { height: clamp(210px, 60vw, 250px); } }
.ringx { position: relative; margin-top: var(--gap); height: clamp(480px, 46vw, 660px); overflow: hidden;
  background: radial-gradient(46% 56% at 60% 50%, rgba(200, 204, 214, .16), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .35)), rgba(6, 6, 8, .8); }
.ringx .phone-view { position: absolute; inset: 0; }
.ringx .phone-view::before { display: none; }
.rx-copy { position: absolute; z-index: 3; left: clamp(22px, 3vw, 44px); top: clamp(22px, 3vw, 44px); pointer-events: none; }
.rx-copy .tl { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); display: flex; align-items: center; gap: 8px; }
.rx-copy .tl i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.rx-copy .h3 { margin-top: 14px; font-size: clamp(28px, 3vw, 44px); }
.rx-lab { position: absolute; z-index: 3; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 500 13px/1 var(--sans); color: #fff; background: rgba(12, 12, 14, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22);
  opacity: 0; transition: opacity .6s ease; will-change: transform; }
.rx-lab i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.rx-lab.on { opacity: 1; }
@media (max-width: 640px) { .ringx { height: clamp(460px, 120vw, 560px); } .rx-lab { font-size: 11.5px; padding: 6px 11px 6px 8px; } }
.sens .rx-lab i { background: rgb(var(--sc)); box-shadow: 0 0 10px rgb(var(--sc)); }
.sens .rx-lab[data-part="R22_LED_Emitter"] i { background: #8dff6a; box-shadow: 0 0 10px #59ff38; }
.rx-sub { margin-top: 14px; max-width: 300px; font: 400 15px/1.45 var(--sans); color: var(--mut); }
.sens .rx-copy, .ringx .rx-copy { max-width: min(340px, 40%); }
@media (max-width: 640px) { .sens .rx-copy, .ringx .rx-copy { max-width: none; right: 22px; } .rx-sub { font-size: 14px; } }
.ringx .rx-lab.lf { flex-direction: row-reverse; padding: 8px 10px 8px 14px; }
.ringx .rx-lab { transition: opacity .6s ease; }
.rx-lab .sh { display: none; }
@media (max-width: 640px) { .rx-lab .lg { display: none; } .rx-lab .sh { display: inline; } .ringx[data-focus="open"] { height: clamp(600px, 160vw, 700px); } }
.ringx, .sens, .ring-stage { background: radial-gradient(48% 58% at 60% 50%, rgba(58, 60, 66, .55), rgba(20, 21, 24, .9) 46%, #000 82%) !important; }
.ring-stage { background: radial-gradient(42% 56% at 50% 46%, rgba(58, 60, 66, .55), rgba(20, 21, 24, .9) 46%, #000 82%) !important; }
.sens .phone-view::before, .ringx .phone-view::before, .ring-stage .phone-view::before { display: none; }
.charge { position: relative; margin-top: var(--gap); height: clamp(500px, 46vw, 660px); overflow: hidden;
  background: radial-gradient(46% 58% at 64% 54%, rgba(58, 60, 66, .55), rgba(20, 21, 24, .9) 46%, #000 82%); }
.charge .phone-view { position: absolute; inset: 0; }
.charge .phone-view::before { display: none; }
.chg-ui { position: absolute; z-index: 3; right: clamp(22px, 3vw, 44px); bottom: clamp(22px, 3vw, 40px); display: grid; justify-items: end; gap: 10px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.chg-ui.on { opacity: 1; }
.chg-state { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.chg-ui b { font: 300 clamp(48px, 5.4vw, 80px)/.9 var(--num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #ffffff, #c9ccd3 70%, #8f939b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chg-ui b small { font-size: .4em; margin-left: .1em; }
.chg-bar { width: clamp(150px, 14vw, 210px); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.chg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8f939b, #ffffff); transform-origin: left; transform: scaleX(.18); }
@media (max-width: 900px) { .charge { height: clamp(520px, 140vw, 640px); } .charge .rx-copy { max-width: none; right: 22px; } }
.xrow .ring-stage { height: auto; min-height: clamp(520px, 46vw, 640px); }
.xrow .charge { margin-top: 0; height: auto; min-height: clamp(520px, 46vw, 640px); }
.xrow .charge .rx-copy { max-width: 70%; }
.ring-stage.four { --bg0: rgb(92, 95, 104); --bg1: rgb(16, 17, 20);   
  height: clamp(460px, 50vw, 720px); margin-bottom: var(--gap);
  transition: --bg0 .9s ease, --bg1 .9s ease;
  background: radial-gradient(62% 56% at 50% 47%, var(--bg0) 0%, color-mix(in srgb, var(--bg0) 84%, var(--bg1)) 18%, color-mix(in srgb, var(--bg0) 50%, var(--bg1)) 45%, color-mix(in srgb, var(--bg0) 16%, var(--bg1)) 72%, var(--bg1) 100%) !important; }
.ring-stage.four[data-fin="black"]     { --bg0: rgb(96, 97, 102);  --bg1: rgb(10, 10, 12); }
.ring-stage.four[data-fin="silver"]    { --bg0: rgb(214, 216, 220); --bg1: rgb(118, 120, 126); }
.ring-stage.four[data-fin="gold"]      { --bg0: rgb(214, 166, 96);  --bg1: rgb(96, 62, 26); }
.ring-stage.four[data-fin="champagne"] { --bg0: rgb(216, 184, 152); --bg1: rgb(104, 78, 58); }
.ring-stage.four .ph-still { object-fit: cover; }
.ring-stage.four.gl-done .ph-still, .ring-stage.four .phone-view.gl-on .ph-still { opacity: 0; }
.ring-stage.four .ring-cap { color: rgba(255, 255, 255, .72); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ring-stage.four[data-fin="silver"] .ring-cap, .ring-stage.four[data-fin="champagne"] .ring-cap, .ring-stage.four[data-fin="gold"] .ring-cap { color: rgba(20, 20, 24, .62); text-shadow: none; }
.ring-fin [data-fin="all"] i { background: conic-gradient(#121214 0 25%, #e9e9e6 0 50%, #e2b25f 0 75%, #e9c9a6 0); }
.xrow.solo .charge { min-height: clamp(460px, 40vw, 600px); }
@media (max-width: 900px) { .ring-stage.four { height: clamp(420px, 120vw, 560px); } }
.ring-zoom { position: absolute; right: 18px; top: 18px; z-index: 5; display: grid; gap: 6px; }
.ring-zoom button { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font: 400 20px/1 var(--sans); color: rgba(255, 255, 255, .86);
  background: rgba(14, 14, 17, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s ease, color .2s ease; }
.ring-zoom button:hover { background: rgba(30, 31, 36, .8); color: #fff; }
.ring-zoom button:focus-visible { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; }
.ring-stage.four .ring-cap::after { content: ' · pinch to zoom'; }
@media (max-width: 560px) { .ring-stage.four .ring-fin { flex-wrap: wrap; justify-content: center; width: calc(100% - 32px); max-width: 360px; border-radius: 22px; row-gap: 2px; bottom: 50px; } .ring-stage.four .ring-cap::after { content: ''; } }
.ringx[data-focus="open"] { background:
    radial-gradient(70% 22% at 55% 100%, rgba(150, 152, 158, .16), rgba(150, 152, 158, 0) 70%),
    radial-gradient(62% 70% at 58% 40%, #3b3c40 0%, #26272a 34%, #141416 64%, #070708 100%) !important; }

@media (prefers-reduced-motion: reduce) { .phone-view .ph-still, .ringx .rx-lab, .bx .rx-lab { transition: none !important; } }
