/* Product screens rebuilt in HTML/CSS ("HUDs"), scaled to fit, with numbered highlight spots.
   Each .hud is laid out at a fixed design width (data-scale on .hud-stage) and scaled down by JS. */
.hud-stage { position: relative; width: 100%; }
.hud { --hs: #FFFFFF; --hs2: #F4F2EE; --hink: #1B1815; --hmut: #7A726A; --hline: #E6E1DA; --hbrand: #F0532A;
  position: relative; background: #EEECE8; color: var(--hink); font-family: var(--font-ui); border-radius: 22px; overflow: visible;
  transform-origin: top left; box-shadow: 0 40px 80px -36px rgba(40, 20, 5, .55), 0 0 0 1px rgba(0, 0, 0, .06); }
.hud * { box-sizing: border-box; }
.hud h3, .hud h4 { letter-spacing: -0.02em; margin: 0; }

/* icons drawn with CSS so the screens need no images */
.ic { width: 34px; height: 34px; border-radius: 11px; background: var(--hs2); display: inline-block; position: relative; flex: none; }
.ic::after { content: ""; position: absolute; inset: 9px; border: 2px solid currentColor; border-radius: 4px; opacity: .8; }
.ic.on, .h-app.on .ic { background: var(--hbrand); color: #fff; }
.ic-cloud::after { border-radius: 10px 10px 6px 6px; inset: 11px 8px; }
.ic-sheet::after { background: linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat; }
.ic-photo::after { border-radius: 3px; background: radial-gradient(circle at 30% 35%, currentColor 2px, transparent 3px); }
.ic-lock::after { inset: 13px 10px 8px; border-radius: 3px; }
.ic-ai::after { border: 0; inset: 8px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* home */
.hud-home { width: 1100px; }
.h-top { display: flex; align-items: center; gap: 22px; padding: 14px 22px; border-bottom: 1px solid var(--hline); }
.h-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.h-brand em { font-style: normal; font-family: var(--font-mono); font-weight: 400; color: var(--hmut); font-size: 13px; }
.h-helix { width: 34px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #F0532A, #FFB199, #F0532A); }
.h-tabs { display: flex; gap: 4px; background: var(--hs2); border-radius: 99px; padding: 4px; font-size: 13px; font-weight: 600; color: var(--hmut); }
.h-tabs > * { padding: 6px 14px; border-radius: 99px; }
.h-tabs b { background: var(--hs); color: var(--hink); }
.h-av { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--hbrand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.h-body { padding: 30px 60px 34px; }
.h-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.h-hello h3 { font-size: 40px; font-weight: 600; }
.h-hello p { color: var(--hmut); font-size: 14px; margin: 6px 0 0; }
.h-store { background: var(--hs); border-radius: 16px; padding: 14px 16px; width: 330px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.h-row { display: flex; gap: 6px; align-items: baseline; } .h-row span:first-child { margin-right: auto; } .h-row span:last-child { color: var(--hmut); }
.h-bar { height: 8px; border-radius: 99px; background: var(--hs2); overflow: hidden; }
.h-bar i { display: block; height: 100%; width: var(--w); background: var(--hbrand); border-radius: 99px; animation: grow 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { width: 0; } }
.h-store small { color: var(--hmut); }
.h-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hmut); margin: 26px 0 10px; }
.h-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.h-app { background: var(--hs); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; border: 1.5px solid transparent; transition: transform .2s, border-color .2s; }
.h-app .ic { margin-bottom: 10px; }
.h-app b { font-size: 15px; }
.h-app span { color: var(--hmut); }
.h-app.on:hover { transform: translateY(-3px); border-color: var(--hbrand); }
.h-recent { background: var(--hs); border-radius: 16px; padding: 2px 16px; font-size: 14px; }
.h-recent div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hline); font-weight: 500; }
.h-recent div:last-child { border: 0; }
.h-recent .ic { width: 28px; height: 28px; } .h-recent .ic::after { inset: 7px; }
.h-recent span { margin-left: auto; color: var(--hmut); font-weight: 400; font-size: 13px; }

/* docs */
.hud-doc { width: 760px; padding-bottom: 26px; }
.d-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.d-top b { display: block; font-size: 15px; }
.saved { font-size: 12px; color: var(--hmut); } .saved::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #217A4A; margin-right: 6px; }
.d-people { margin-left: auto; display: flex; }
.d-people i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; border: 2px solid #EEECE8; margin-left: -6px; }
.d-share { background: var(--hbrand); color: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.d-tools { margin: 0 auto 14px; width: fit-content; display: flex; gap: 2px; background: var(--hs); border-radius: 12px; padding: 4px; box-shadow: 0 0 0 1px var(--hline); }
.d-tools > * { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 14px; padding: 0 6px; }
.d-tools em { font-style: normal; background: var(--hs2); font-size: 12.5px; font-weight: 500; }
.d-tools .on { background: #FDEBE4; color: #CC3F19; }
.d-page { background: var(--hs); margin: 0 60px; border-radius: 6px; min-height: 330px; padding: 44px 56px; font-family: "Source Serif 4", Georgia, serif; font-size: 16px; line-height: 1.65; box-shadow: 0 20px 40px -30px rgba(40, 20, 5, .5); }
.d-page h4 { font-family: var(--font-ui); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.d-page p { margin: 0 0 10px; }
.d-page ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.d-page li { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.d-page li::before { content: ""; width: 15px; height: 15px; border: 1.5px solid #B9B0A6; border-radius: 4px; flex: none; }
.d-page li.chk::before { background: var(--hbrand); border-color: var(--hbrand); box-shadow: inset 0 0 0 3px #fff; }
.caret { position: relative; display: inline-block; width: 2px; height: 20px; background: var(--c); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.caret em { position: absolute; bottom: 100%; left: -2px; background: var(--c); color: #fff; font: 600 10.5px/1 var(--font-ui); font-style: normal; padding: 3px 5px; border-radius: 5px 5px 5px 0; white-space: nowrap; }
@keyframes blink { 50% { opacity: .2; } }

/* pairing */
.hud-pair { width: 640px; padding: 26px; background: #fff; }
.hud-pair h4 { font-size: 21px; margin-bottom: 18px; }
.p-body { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; }
.p-qr { width: 190px; height: 190px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 0 0 1px var(--hline); }
.p-qr svg { width: 100%; height: 100%; display: block; }
.hud-pair ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.p-status { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; background: #E1F1E7; color: #217A4A; font-weight: 600; font-size: 14px; padding: 11px 14px; border-radius: 12px; }
.p-status i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; flex: none; }
.p-status.ok i { animation: none; border-color: currentColor; background: currentColor; box-shadow: inset 0 0 0 3px #E1F1E7; }
.p-status span { transition: opacity .3s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* storage */
.hud-store { width: 640px; padding: 24px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hud-store h4 { grid-column: 1 / -1; font-size: 20px; margin-bottom: 4px; }
.lv { border: 1.5px solid var(--hline); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.lv.on { border-color: var(--hbrand); background: #FDEBE4; }
.lv .big { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.lv .tag { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--hs2); color: var(--hmut); border-radius: 99px; padding: 3px 10px; }
.lv .tag.good { background: #E1F1E7; color: #217A4A; }
.diag { grid-column: 1 / -1; display: flex; gap: 12px; background: var(--hs2); border-radius: 14px; padding: 14px; }
.diag div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.diag small { font-family: var(--font-mono); font-size: 11px; color: var(--hmut); }
.diag i { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; border-radius: 8px; padding: 6px 10px; animation: copyin 4s ease-in-out infinite; }
.diag div:last-child i { animation-delay: .5s; }
.f0 { background: #F0532A; } .f1 { background: #2F7D6D; } .f2 { background: #3D63C9; }
@keyframes copyin { 0%, 15% { opacity: .25; transform: translateX(-6px); } 35%, 100% { opacity: 1; transform: none; } }

/* highlight spots */
.spot { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; border-radius: 50%; background: var(--hbrand, #F0532A); color: #fff; font: 700 14px/1 var(--font-ui); cursor: pointer; box-shadow: 0 6px 16px -4px rgba(240, 83, 42, .7); }
.spot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #F0532A; animation: pulse 2.2s ease-out infinite; }
.spot span { position: relative; }
.spot { transform: scale(var(--inv, 1)); transition: transform .15s; }
.spot:hover, .spot:focus-visible, .spot[aria-expanded="true"] { transform: scale(calc(var(--inv, 1) * 1.15)); }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.tipbox { position: absolute; z-index: 50; max-width: 270px; background: #1B1815; color: #fff; font-size: 14px; line-height: 1.45; padding: 12px 14px; border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .spot::before, .caret, .h-bar i, .diag i, .p-status i { animation: none !important; } }

/* Pieces of each screen arrive one by one when the screen scrolls into view. */
.hud { transition: opacity .5s ease, box-shadow .8s ease; }
.js .hud-stage:not(.in) .hud { opacity: 0; box-shadow: none; }
.js .hud-stage .pc { opacity: 0; }
.js .hud-stage.in .pc { animation: pcin .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(150ms + var(--i, 0) * 70ms); }
.js .hud-stage .spot { opacity: 0; }
.js .hud-stage.in .spot { animation: spotin .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(400ms + var(--n, 0) * 140ms + var(--pcs, 8) * 70ms); }
@keyframes pcin { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spotin { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(var(--inv, 1)); } }
@media (prefers-reduced-motion: reduce) {
  .js .hud-stage .pc, .js .hud-stage .spot, .js .hud-stage:not(.in) .hud { opacity: 1; animation: none !important; }
}
