
/* Cheip OS site. The page is the phone's own wallpaper: the teal waves of
   the Cheip home flow out of the phone and fill the screen. One family (the
   system's font, Google Sans Flex). Dark and immersive at the top, light
   where there is reading to do (devices, installer). */
:root {
  --deep: #062126;
  --deep2: #0b3135;
  --sea: #1d5a55;
  --wave: #3e8f80;
  --foam: #9fe0cf;
  --mist: #d9efe8;
  --star: #a8c7fa;
  --paper: #eaf3ef;
  --paper2: #dde9e4;
  --ink: #0b2420;
  --ink2: #48605a;
  --line: #c2d4cd;
  --ok: #17803f;
  --wip: #9a5a00;
  --plan: #5a6c66;
  --bmc: #ffdd00;
  --font: "Google Sans Flex", system-ui, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --w: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 18px/1.55 var(--font); font-variation-settings: "ROND" 40; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--w), 100% - 48px); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; font-variation-settings: "ROND" 100, "opsz" 144; letter-spacing: -0.03em; }
h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.04em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }

/* ---------- header, over the waves ---------- */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--mist); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; font-variation-settings: "ROND" 100; }
.brand svg { width: 28px; height: 28px; }
header nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
header nav a { text-decoration: none; opacity: .8; }
header nav a:hover { opacity: 1; }
.site-tools { display: flex; gap: 6px; }
.tool { font: 600 13px var(--font); color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; height: 34px; min-width: 34px; padding: 0 10px; cursor: pointer; display: grid; place-items: center; opacity: .75; }
.tool .i { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 760px) { header nav a:not(.go) { display: none; } header .wrap { gap: 14px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px; font: 650 17px var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn.foam { background: var(--foam); color: var(--deep); }
.btn.foam:hover { background: #fff; }
.btn.ghost { color: var(--mist); box-shadow: inset 0 0 0 1.5px rgba(217, 239, 232, .55); background: none; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn.solid, .btn.fill { background: var(--ink); color: var(--paper); }
.btn.solid:hover, .btn.fill:hover { background: var(--sea); }
.btn.tonal { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.locked { opacity: .45; }
.btn[disabled] { opacity: .4; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero: the wallpaper, full screen ---------- */
.hero { position: relative; min-height: 100svh; background: linear-gradient(180deg, var(--deep) 0%, var(--deep2) 55%, var(--sea) 100%); color: var(--mist); overflow: hidden; display: flex; align-items: center; }
.hero .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; min-height: 300px; }
.hero .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(60px, 10.4vw, 168px); line-height: .9; letter-spacing: -0.055em; font-variation-settings: "ROND" 100, "opsz" 144, "wght" 760; color: #e9fbf5; }
.hero h1 span { display: block; }
.hero .sub { margin: 34px 0 36px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; max-width: 50ch; color: rgba(217, 239, 232, .85); }
.hero .fine { margin-top: 20px; font-size: 15px; color: rgba(217, 239, 232, .6); }
@media (max-width: 900px) { .hero .inner { grid-template-columns: 1fr; padding-top: 104px; } }


 /* the Lumia 735 as it is: a polycarbonate shell in its colour wrapping a
   black glass front (only a thin band of colour shows at the sides), the
   earpiece slit, the front camera on the right; where the maker's name was
   there is a small Cheip star */
.lumia { --c: #45b649; position: relative; width: 240px; aspect-ratio: 68.7 / 134.7; border-radius: 9% / 4.6%; background: var(--c); padding: 2.1%; box-shadow: inset 0 0 0 1px #ffffff40, inset -4px -6px 14px #00000022, 0 40px 70px -20px rgba(0, 0, 0, .55); }
.lumia.orange { --c: #f26b21; } .lumia.white { --c: #f4f6f5; } .lumia.grey { --c: #3e4247; }
.lumia .glass { position: relative; width: 100%; height: 100%; border-radius: 8% / 4.1%; background: linear-gradient(160deg, #26282b, #0b0c0d 55%); overflow: hidden; }
.lumia .glass::before { content: ""; position: absolute; left: 50%; top: 4.2%; width: 24%; height: .9%; transform: translateX(-50%); border-radius: 9px; background: #3a3d41; box-shadow: inset 0 1px 1px #000; }
.lumia .glass::after { content: ""; position: absolute; left: 78%; top: 3.6%; width: 3.4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a5a, #0a0c0e 70%); }
.lumia .logo { position: absolute; left: 50%; top: 7.4%; width: 6%; transform: translateX(-50%); fill: #6d7378; }
.lumia .screen { position: absolute; left: 4.4%; right: 4.4%; top: 11.6%; bottom: 10.4%; overflow: hidden; background: #000; border-radius: 1px; }
.lumia .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .6s var(--ease); }
.lumia .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, #ffffff1c 0%, transparent 36%); pointer-events: none; z-index: 3; }
.lumia .boot { position: absolute; inset: 0; display: grid; place-items: center; background: #000; transition: opacity .6s var(--ease); z-index: 2; }
.lumia .boot svg { width: 34%; fill: var(--star); transform: scale(0); }
.lumia.on .boot svg { animation: bloom 1.4s var(--ease) forwards; }
.lumia.lit .boot { opacity: 0; pointer-events: none; }
@keyframes bloom { 0% { transform: scale(0) rotate(-90deg); } 50% { transform: scale(1) rotate(0); } 100% { transform: scale(.9) rotate(110deg); } }
@media (prefers-reduced-motion: reduce) { .lumia .boot { display: none; } }
/* three Lumias in the hero, the green one in front switching on */
.trio { position: relative; width: clamp(300px, 34vw, 470px); aspect-ratio: 1 / 1.25; }
.trio .lumia { position: absolute; width: 56%; }
.trio .lumia.white { left: 0; top: 10%; transform: rotate(-9deg); }
.trio .lumia.orange { right: 0; top: 6%; transform: rotate(8deg); }
.trio .lumia.green { left: 22%; top: 0; z-index: 2; }
@media (max-width: 900px) { .trio { justify-self: center; width: min(86vw, 380px); } }

/* ---------- the tour: the phone stays, the screen changes ---------- */
.tour { background: var(--sea); color: var(--mist); position: relative; }
.tour .grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; }
.tour .chapters { padding: 10vh 0 20vh; }
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30ch; }
.chapter h2 { color: #e9fbf5; }
.chapter p { margin-top: 22px; font-size: 20px; line-height: 1.5; color: rgba(217, 239, 232, .82); max-width: 40ch; }
.tour .stick { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; align-items: center; }
.tour .lumia { width: clamp(240px, 22vw, 300px); }
.tour .lumia .screen img { opacity: 0; }
.tour .lumia .screen img.on, .tour .lumia .screen img:first-child { opacity: 1; }
@media (max-width: 860px) {
  .tour .grid { grid-template-columns: 1fr; gap: 0; }
  .tour .stick { display: none; }
  .chapter { min-height: 0; padding: 56px 0; max-width: none; }
  .chapter .pic { display: block; }
  .chapter p { font-size: 18px; }
}
.chapter .pic { display: none; width: 62%; max-width: 280px; margin-top: 32px; border-radius: 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.tour-end { display: block; width: 100%; height: 120px; background: var(--sea); }

/* ---------- light part ---------- */
section { padding: 112px 0; }
section + section { border-top: 1px solid var(--line); }
.lede { margin-top: 22px; font-size: clamp(19px, 1.5vw, 21px); color: var(--ink2); max-width: 58ch; }
@media (max-width: 860px) { section { padding: 76px 0; } }

/* devices: names and where each one is */
.devs { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1.5px solid var(--ink); }
.devs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2vw, 26px); font-weight: 650; font-variation-settings: "ROND" 100; letter-spacing: -0.01em; }
.devs li.ready::before { content: ""; width: 18px; height: 18px; margin-right: 14px; flex: none; background: var(--wave); -webkit-mask: url("img/star.svg") center / contain no-repeat; mask: url("img/star.svg") center / contain no-repeat; }
.devs li span.name { flex: 1; }
.state { flex: none; font-size: 14px; font-weight: 650; letter-spacing: 0; padding: 5px 13px; border-radius: 999px; white-space: nowrap; font-variation-settings: "ROND" 40; }
.state.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.state.wip { color: var(--wip); background: color-mix(in srgb, var(--wip) 13%, transparent); }
.state.plan { color: var(--plan); background: color-mix(in srgb, var(--plan) 12%, transparent); }
.devnote { margin-top: 28px; color: var(--ink2); max-width: 62ch; }
.ways { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1.5px solid var(--ink); }
.ways a { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ways b { font-size: clamp(20px, 2vw, 26px); font-weight: 650; font-variation-settings: "ROND" 100; letter-spacing: -0.01em; }
.ways span { color: var(--ink2); align-self: center; }
.ways a:hover b, .ways a:focus-visible b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 640px) { .ways a { grid-template-columns: 1fr; } }

/* what works today */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.works h3 { font-size: 17px; font-weight: 650; color: var(--ink2); margin-bottom: 12px; font-variation-settings: "ROND" 40; letter-spacing: 0; }
.works ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.works li { padding: 9px 0; break-inside: avoid; display: flex; gap: 10px; align-items: baseline; }
.works .y li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.works .n li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--wip); transform: translateY(-1px); }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; gap: 28px; } }

/* shop, coffee, footer */
.shop { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.price { font-size: clamp(56px, 7vw, 96px); font-weight: 700; letter-spacing: -0.05em; font-variation-settings: "ROND" 100; line-height: 1; }
.sdpick { display: flex; gap: 8px; margin: 26px 0; }
.sdpick button { font: 650 15px var(--font); padding: 10px 16px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: none; color: var(--ink); cursor: pointer; }
.sdpick button.on { box-shadow: none; background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .shop { grid-template-columns: 1fr; } }
.coffee { background: var(--bmc); color: #1b1b1b; text-align: center; padding: 128px 0; border: 0 !important; }
.coffee h2 { margin: 0 auto; max-width: 16ch; }
.coffee p { margin: 22px auto 42px; max-width: 46ch; font-size: 19px; }
.bmc { display: inline-flex; align-items: center; gap: 14px; background: #1b1b1b; color: #fff; text-decoration: none; font: 700 25px var(--font); padding: 24px 44px; border-radius: 999px; font-variation-settings: "ROND" 100; transition: transform .2s var(--ease); }
.bmc:hover { transform: scale(1.04); }
.bmc svg { width: 32px; height: 32px; fill: var(--bmc); }
footer { background: var(--deep); color: rgba(217, 239, 232, .7); padding: 64px 0 80px; font-size: 15px; }
footer p + p { margin-top: 10px; }
footer .brand { color: var(--mist); margin-bottom: 20px; }

/* ---------- installer (markup driven by app.js) ---------- */
.installer { margin-top: 48px; }
.phone-status { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 26px; background: var(--paper2); position: sticky; top: 14px; z-index: 5; }
.phone-status .big-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; background: var(--plan); }
.phone-status[data-kind="ok"] .big-dot { background: var(--ok); }
.phone-status[data-kind="busy"] .big-dot { background: var(--wave); animation: pulse 1.2s infinite; }
.phone-status[data-kind="error"] .big-dot { background: #c5221f; }
@keyframes pulse { 50% { opacity: .35; } }
.ps-text { flex: 1; min-width: 0; }
.ps-text .t { font-weight: 650; font-size: 19px; }
.ps-text .h { color: var(--ink2); font-size: 15px; margin-top: 2px; }
.ps-bar, .bar { display: none; height: 6px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.ps-bar i, .bar i { display: block; height: 100%; width: 0; background: var(--sea); transition: width .3s; }
.ps-pct { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.model { margin: 32px 0; }
.model-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.model-pick button { font: 650 16px var(--font); text-align: left; padding: 14px 20px; border-radius: 18px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: none; color: var(--ink); cursor: pointer; }
.model-pick button small { display: block; font-weight: 400; font-size: 13px; color: var(--ink2); }
.model-pick button.on { box-shadow: inset 0 0 0 2px var(--ink); }
.model-note { margin-top: 12px; font-size: 15px; color: var(--ink2); }
.model-note[data-kind="ok"] { color: var(--ok); }
.model-note[data-kind="no"] { color: #c5221f; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.roadmap { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.roadmap a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.roadmap b { font-weight: 700; }
.roadmap em { font-style: normal; color: var(--ink2); font-size: 13px; }
.roadmap-note { font-size: 15px; color: var(--ink2); margin: 10px 0 0; }
.steps { margin-top: 40px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 19px; background: var(--ink); color: var(--paper); }
.step.done .num { background: var(--ok); }
.step .art { display: none; }
.step h3 { margin-bottom: 14px; }
.step ul, .step ol { padding-left: 20px; margin: 10px 0; }
.step li, .step p { max-width: 70ch; }
.step li { margin: 6px 0; }
.step p { margin: 10px 0; }
.need { display: grid; gap: 10px; margin: 16px 0; }
.need > div { display: flex; gap: 12px; }
.need b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.need strong { display: block; }
.note { font-size: 15px; color: var(--ink2); }
.warn { padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--wip) 13%, transparent); font-size: 15px; margin: 14px 0; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 650; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.usb { margin: 18px 0; padding: 20px; border-radius: 22px; background: var(--paper2); }
.usb .state { padding: 0; background: none; display: flex; gap: 10px; align-items: center; font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.usb .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--plan); }
.usb .dot.on { background: var(--ok); }
.log { white-space: pre-wrap; font: 13px/1.5 ui-monospace, monospace; max-height: 220px; overflow: auto; margin: 12px 0 0; color: var(--ink2); }
.log:empty { display: none; }
details { margin-top: 16px; }
summary { cursor: pointer; font-weight: 650; font-size: 15px; }
#devlist { display: none; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 12px; } }

dialog { border: 0; border-radius: 28px; padding: 28px; max-width: 460px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(6, 33, 38, .6); }
dialog h3 { margin-bottom: 8px; }
dialog label { display: block; font-size: 14px; font-weight: 650; margin-top: 12px; }
dialog input { display: block; width: 100%; margin-top: 6px; font: 16px var(--font); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.po-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.po-sub, .po-fine, .po-done { font-size: 14px; color: var(--ink2); margin: 8px 0; }
dialog .btns { margin-top: 18px; }

/* ---------- depth: phones with a real edge, tilted in space ---------- */
.lumia { --edge: color-mix(in srgb, var(--c) 70%, #000); }
.lumia.orange { --edge: #b44a12; } .lumia.white { --edge: #b9c0bd; } .lumia.grey { --edge: #2c3034; }
.deep { box-shadow: inset 0 0 0 1px #ffffff40, inset -6px -8px 18px #00000026, 1px 1px 0 var(--edge), 2px 2px 0 var(--edge), 3px 3px 0 var(--edge), 4px 4px 0 var(--edge), 5px 5px 0 var(--edge), 6px 6px 0 var(--edge), 7px 7px 0 var(--edge), 30px 50px 70px -20px rgba(0, 0, 0, .6); }
.trio { perspective: 1400px; --rx: 0deg; --ry: 0deg; }
.trio .stage3 { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-16deg + var(--ry))); transition: transform .5s var(--ease); }
.trio .lumia.white { transform: translateZ(-90px) rotate(-9deg); }
.trio .lumia.orange { transform: translateZ(-60px) rotate(8deg); }
.trio .lumia.green { transform: translateZ(40px); }

/* ---------- wallpapers: a ring of phones turning slowly ---------- */
.walls { background: linear-gradient(180deg, var(--sea), var(--deep) 70%); color: var(--mist); padding: 120px 0 140px; overflow: hidden; text-align: center; border: 0 !important; }
.walls h2 { color: #e9fbf5; margin: 0 auto; max-width: 18ch; }
.walls .lede { color: rgba(217, 239, 232, .8); margin: 22px auto 0; }
.ring-wrap { perspective: 1600px; height: clamp(420px, 46vw, 600px); margin-top: 56px; position: relative; }
.ring { position: absolute; left: 50%; top: 8%; width: 0; height: 0; transform-style: preserve-3d; animation: spin 46s linear infinite; }
.ring .lumia { position: absolute; width: clamp(150px, 15vw, 210px); left: calc(clamp(150px, 15vw, 210px) / -2); transform: rotateY(calc(var(--i) * 360deg / 9)) translateZ(clamp(320px, 34vw, 520px)); backface-visibility: hidden; }
.ring-wrap:hover .ring { animation-play-state: paused; }
@keyframes spin { to { transform: rotateY(-360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }
@media (max-width: 700px) { .ring .lumia { transform: rotateY(calc(var(--i) * 360deg / 9)) translateZ(260px); } }

/* ---------- apps: Android and Linux, side by side, tilted ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.apps .pair { position: relative; height: clamp(440px, 44vw, 560px); perspective: 1400px; }
.apps .pair .lumia { position: absolute; width: clamp(190px, 19vw, 250px); top: 0; }
.apps .pair .lumia:first-child { left: 4%; transform: rotateY(22deg) rotateZ(-4deg); }
.apps .pair .lumia:last-child { right: 4%; top: 12%; transform: rotateY(-22deg) rotateZ(4deg); }
.apps ul { list-style: none; padding: 0; margin: 28px 0 0; }
.apps li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.apps li b { display: block; font-size: 19px; font-variation-settings: "ROND" 100; }
.apps li span { color: var(--ink2); }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } .apps .pair { order: -1; height: 420px; } .apps .pair .lumia { width: 170px; } }

/* ---------- shop: the phone itself, turning, in the colour you pick ---------- */
.shop3 { background: radial-gradient(120% 90% at 70% 40%, #17463f 0%, var(--deep) 65%); color: var(--mist); border: 0 !important; overflow: hidden; }
.shop3 .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.shop3 h2 { color: #e9fbf5; }
.shop3 .lede { color: rgba(217, 239, 232, .8); }
.spin3 { perspective: 1500px; height: clamp(460px, 48vw, 620px); display: grid; place-items: center; }
.phone3 { --c: #45b649; position: relative; width: clamp(220px, 21vw, 290px); aspect-ratio: 68.7 / 134.7; transform-style: preserve-3d; animation: turn 14s cubic-bezier(.45, 0, .55, 1) infinite; }
.spin3:hover .phone3 { animation-play-state: paused; }
.phone3 .face { position: absolute; inset: 0; backface-visibility: hidden; }
.phone3 .face.front { transform: translateZ(5px); }
.phone3 .face.front.lumia { width: 100%; padding: 2.1%; }
.phone3 .face.back { transform: rotateY(180deg) translateZ(5px); border-radius: 9% / 4.6%; background: var(--c); box-shadow: inset 0 0 0 1px #ffffff40, inset 14px 10px 30px rgba(255, 255, 255, .16), inset -10px -14px 30px rgba(0, 0, 0, .16); transition: background .4s; }
.phone3 .cam { position: absolute; left: 50%; top: 13%; width: 21%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #24323b 22%, #0c1013 38%, #1d2124 44%, #050607 62%, #2c3034 66%, #111 72%); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.phone3 .flash { position: absolute; left: 31%; top: 16.6%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffbe6, #cfc7a0 70%); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .2); }
.phone3 .mic { position: absolute; left: 21%; top: 17.4%; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.phone3 .zeiss { position: absolute; left: 66%; top: 14%; font: 700 7px/1 var(--font); letter-spacing: .5px; color: rgba(0, 0, 0, .35); writing-mode: vertical-rl; transform: rotate(180deg); }
.phone3 .face.back .mark { position: absolute; left: 50%; top: 46%; width: 9%; transform: translateX(-50%); fill: rgba(0, 0, 0, .22); }
.phone3 .grille { position: absolute; left: 76%; top: 86%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .45) 28%, transparent 32%) 0 0 / 22% 22%; opacity: .8; }
.phone3 .side { position: absolute; top: 3%; bottom: 3%; width: 10px; left: calc(50% - 5px); background: var(--c); filter: brightness(.75); transition: background .4s; }
.phone3 .side.l { transform: rotateY(90deg) translateZ(calc(clamp(220px, 21vw, 290px) / -2 + 3px)); }
.phone3 .side.r { transform: rotateY(90deg) translateZ(calc(clamp(220px, 21vw, 290px) / 2 - 3px)); }
@keyframes turn { 0%, 12% { transform: rotateY(-24deg) rotateX(6deg); } 50%, 62% { transform: rotateY(204deg) rotateX(6deg); } 100% { transform: rotateY(336deg) rotateX(6deg); } }
@media (prefers-reduced-motion: reduce) { .phone3 { animation: none; transform: rotateY(-20deg); } }
.colors { display: flex; gap: 12px; margin-top: 26px; }
.colors button { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.colors button.on { box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px var(--foam); }
.shop3 .sdpick button { color: var(--mist); box-shadow: inset 0 0 0 1.5px rgba(217, 239, 232, .4); }
.shop3 .sdpick button.on { background: var(--foam); color: var(--deep); box-shadow: none; }
.shop3 .price { color: #e9fbf5; margin-top: 30px; }
.shop3 .note { color: rgba(217, 239, 232, .7); }
.shop3 .btn.solid { background: var(--foam); color: var(--deep); margin-top: 26px; }
@media (max-width: 860px) { .shop3 .wrap { grid-template-columns: 1fr; } .spin3 { order: -1; height: 460px; } }

/* ---------- 3D phones (phones3d.js) ---------- */
.c3 { position: relative; }
.c3 canvas { display: block; width: 100%; height: 100%; }
.c-hero { width: 100%; height: min(78vh, 720px); min-height: 460px; }
.c-tour { width: min(34vw, 460px); height: 92vh; }
.c-ring { width: 100%; height: clamp(420px, 52vw, 640px); margin-top: 24px; }
.c-apps { height: clamp(460px, 46vw, 620px); }
.c-shop { height: clamp(480px, 50vw, 660px); cursor: grab; }
.c-shop:active { cursor: grabbing; }
.drag-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 14px; color: rgba(217, 239, 232, .55); }
@media (min-width: 901px) { .hero .inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .c-hero { height: 520px; min-height: 0; } .c-apps { order: -1; height: 440px; } .c-shop { height: 480px; order: -1; } .c-ring { height: 440px; } }
