/* Phone shop site. Bright, clear shop-front: cobalt accent, graphite ink, light and dark themes. */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --ink: #131722; --muted: #5b6272; --line: #e1e4ea;
  --accent: #2f4bff; --accent-2: #6b3cff; --accent-ink: #ffffff; --accent-soft: #e8ecff;
  --good: #16703c; --warn: #9a5c00; --bad: #c0262d; --bad-soft: #fdecec; --good-soft: #e7f6ec;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1118; --surface: #161a24; --ink: #eef0f5; --muted: #a2a9ba; --line: #283042;
    --accent: #8394ff; --accent-2: #a98bff; --accent-ink: #0b0e16; --accent-soft: #1d2445;
    --good: #4cc27f; --warn: #e0a640; --bad: #ff7b7b; --bad-soft: #3a1618; --good-soft: #12301f; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mockbar { background: #fff4d6; color: #6b4700; font-size: 0.88rem; text-align: center; padding: 8px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; }
nav.main { margin-left: auto; display: flex; gap: 2px; }
nav.main a, .menu nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; min-width: 200px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.menu nav a { padding: 12px 14px; border-radius: 10px; }
.menu nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 820px) {
  nav.main { display: none; }
  .head-call { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 460px) { .head-call span { display: none; } .head-call { padding: 10px 14px; } }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 84px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 260px; margin-inline: auto; } }
.hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: var(--muted); margin-top: 18px; max-width: 36rem; }
.lead-sm { color: var(--muted); margin-top: 14px; max-width: 34rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.95rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { color: var(--good); }
.hero-phone { width: 100%; height: auto; }
.hero-phone .body { fill: var(--ink); }
.hero-phone .notch { fill: var(--ink); opacity: .85; }
.hero-phone .crack { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hero-phone .tick-bg { fill: #fff; }
.hero-phone .tick-mark { fill: none; stroke: var(--good); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hero-phone .tick { transform-origin: 160px 190px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone .crack { opacity: 1; stroke-dasharray: 200; stroke-dashoffset: 200; animation: crack 3.2s .3s ease forwards; }
  .hero-phone .tick { transform: scale(0); animation: pop .5s 2.6s cubic-bezier(.3,1.6,.6,1) forwards; }
  @keyframes crack { 0% { stroke-dashoffset: 200; opacity: .95; } 40% { stroke-dashoffset: 0; opacity: .95; } 75% { opacity: .95; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes pop { to { transform: scale(1); } }
}

/* Sections */
.band { padding-block: clamp(48px, 7vw, 88px); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 6px; max-width: 46rem; margin-bottom: 30px; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); background: radial-gradient(80% 120% at 85% 0%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.more { margin-top: 22px; }
.more a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.cards { display: grid; gap: 14px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; transition: border-color .2s ease, transform .2s ease; }
.band:not(.alt) .card { background: var(--surface); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 12px; }
.ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.card p { color: var(--muted); }
.card .meta { display: flex; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 0.9rem; }
.card .meta b { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .btn { margin-top: 22px; }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kinds li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (max-width: 460px) { .kinds li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.kinds p { color: var(--muted); font-size: 0.95rem; }
.kind { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.kind.new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.kind.refurb { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.kind.used { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.kind.swap { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .why { grid-template-columns: minmax(0, 1fr); } }
.why > div { display: grid; gap: 8px; align-content: start; }
.why .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--accent); line-height: 1; min-height: 34px; display: flex; align-items: center; }
.why p { color: var(--muted); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.steps p { color: var(--muted); }

.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .grades { grid-template-columns: minmax(0, 1fr); } }
.grade { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.grade .g { font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.grade p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: var(--good); flex: none; margin-top: 4px; }

/* Visit and contact */
.visit, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 820px) { .visit, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-content: start; }
.panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.addr { display: flex; gap: 10px; align-items: flex-start; }
.addr svg { color: var(--accent); flex: none; margin-top: 3px; }
.hours { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hours dt, .hours dd { margin: 0; }
.hours .today { color: var(--accent); font-weight: 700; }

/* Form */
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 1rem var(--body); padding: 10px 14px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); }
[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: 0.9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.notice.ok { background: var(--good-soft); }
.notice.bad { background: var(--bad-soft); }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice a { color: var(--ink); }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px 24px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid .logo { margin-bottom: 10px; }
.foot-h { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.foot-grid a { color: var(--ink); }
.foot-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* Scroll reveal (only when JS has started and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* ── Inside your phone: it comes apart as you scroll, and each repair lifts its own parts out ──
   JS sets --tilt (0→1: face-on to a 3D angle) and --spread (0→1: layers separate) on .explode, and marks the
   active chapter's layers .on (they slide out of the stack) and the rest .dim.
   Without JS, or with reduced motion, the phone shows fully apart and every chapter is readable. */
.explode { --tilt: 1; --spread: 0.9; padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 50% at 78% 30%, var(--accent-soft), transparent 70%), var(--bg); }
.explode-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.explode-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.step { display: grid; gap: 12px; padding: clamp(16px, 2.4vw, 24px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: opacity .4s ease, border-color .4s ease, box-shadow .4s ease; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
.step-intro { color: var(--muted); }
.step-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1040px) { .step-cols { grid-template-columns: minmax(0, 1fr); } }
.step h4 { margin: 0 0 8px; font: 700 .76rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.parts { margin: 0; display: grid; gap: 8px; }
.parts div { padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.parts dt { font-weight: 700; }
.parts dd { margin: 0; color: var(--muted); font-size: .93rem; }
.signs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.signs li { padding-left: 22px; position: relative; }
.signs li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.step-facts { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step-facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.step-facts dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step-facts dd { margin: 2px 0 0; font-weight: 700; }
@media (max-width: 460px) { .step-facts { grid-template-columns: minmax(0, 1fr); } }
.step-note { font-size: .9rem; color: var(--muted); }

.explode-stage { position: sticky; top: 90px; height: min(80vh, 720px); display: grid; place-items: center; perspective: 1600px; }
/* An upright phone facing you. As it opens (--spread), the screen layers turn see-through to show the inside,
   and the active repair's parts slide out to the right, fanned if there are several, each with a name tag. */
.phone3d { --w: min(19vw, 31vh, 260px); position: relative; width: var(--w); aspect-ratio: 1 / 2.05; transform-style: preserve-3d;
  transform: translateX(calc(var(--spread) * var(--w) * -0.66)) rotateY(calc(var(--tilt) * -12deg)); transition: transform .5s ease; }
.layer { --pop: 0; --i: 0; position: absolute; inset: 0; border-radius: 16% / 8%; transform-style: preserve-3d;
  transform: translate3d(calc(var(--pop) * var(--spread) * var(--w) * (1.14 + var(--i) * 0.2)), calc(var(--pop) * var(--spread) * var(--i) * var(--w) * 0.16), calc(var(--pop) * var(--i) * -24px));
  transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
  box-shadow: 0 16px 30px -16px rgba(10, 14, 40, .5); }
.layer.on { --pop: 1; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 65%, transparent)); z-index: 3; }
.layer.dim { opacity: .9; }
.layer.front.dim { opacity: calc(1 - var(--spread) * 0.9); }
.explode:not(.js-explode) .layer.front { opacity: .12; }
.tag { position: absolute; left: 0; top: 100%; margin-top: 10px; white-space: nowrap; font: 700 .8rem var(--body); color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease .25s, transform .35s ease .25s; pointer-events: none; }
.layer.on .tag { opacity: var(--spread); transform: none; }
.l-back    { background: linear-gradient(150deg, #3a4157, #1d2232); }
.l-coil, .l-port, .l-audio, .l-cam { background: transparent; box-shadow: none; }
.l-board   { inset: 5% 8% 8% 8%; border-radius: 10px; background: transparent; box-shadow: none; }
.l-battery { inset: 32% 13% 13% 30%; border-radius: 9px; background: linear-gradient(160deg, #40434c, #24262d); display: grid; place-items: center; }
.l-frame   { background: transparent; border: 7px solid #9aa3b5; box-shadow: none; }
.l-display { inset: 2.5%; border-radius: 13% / 6.5%; background: linear-gradient(160deg, #2f4bff, #6b3cff 60%, #c13cff); }
.l-touch   { inset: 2.5%; border-radius: 13% / 6.5%; box-shadow: none; border: 1px solid rgba(120, 140, 255, .8);
  background: repeating-linear-gradient(0deg, rgba(120,140,255,.45) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(120,140,255,.45) 0 1px, transparent 1px 10px), rgba(120,140,255,.08); }
.l-glass   { background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 45%, rgba(255,255,255,.2)); border: 1px solid rgba(255,255,255,.6); }
.l-cam .tag { top: 26%; } .l-port .tag, .l-audio .tag, .l-coil .tag { top: 100%; }
/* back */
.cam-ring { position: absolute; top: 4%; left: 7%; width: 42%; aspect-ratio: 1; border-radius: 26%; background: #2a3042; border: 2px solid #4b5570; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 8%; gap: 6%; }
.cam-ring i { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #10131d; border: 2px solid #4b5570; }
.back-logo { position: absolute; left: 50%; top: 55%; width: 16%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.12); }
/* wireless charging coil */
.coil { position: absolute; left: 50%; top: 56%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, #c98a3d 0 2px, #7a4d18 2px 4px); -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%); mask: radial-gradient(circle, transparent 34%, #000 35%);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
/* charging port, flex and microphone */
.usb { position: absolute; left: 50%; bottom: 2.5%; width: 22%; height: 5%; transform: translateX(-50%); border-radius: 6px; background: #d5d9e2; border: 2px solid #8b93a6; }
.flex { position: absolute; left: 22%; right: 22%; bottom: 6%; height: 16%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #e0a03a, #b97a1e); clip-path: polygon(38% 0, 62% 0, 62% 55%, 100% 55%, 100% 100%, 0 100%, 0 55%, 38% 55%); }
.mic { position: absolute; left: 24%; bottom: 3%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: #1b1f2a; border: 2px solid #8b93a6; }
/* speakers and vibration motor */
.earpiece { position: absolute; left: 50%; top: 3%; width: 26%; height: 2.6%; transform: translateX(-50%); border-radius: 99px; background: repeating-linear-gradient(90deg, #c7ccd8 0 2px, #5b6272 2px 4px); }
.loud { position: absolute; right: 12%; bottom: 4%; width: 26%; height: 9%; border-radius: 5px; background: #2a2f3c; border: 2px solid #8b93a6; background-image: radial-gradient(circle, #c7ccd8 1.2px, transparent 1.6px); background-size: 6px 6px; }
.taptic { position: absolute; left: 12%; bottom: 4%; width: 30%; height: 9%; border-radius: 5px; background: linear-gradient(180deg, #b9bfcc, #7d8596); border: 2px solid #5b6272; }
/* main board */
.l-board::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #0f6a4f, #0a4435); border-radius: 10px;
  clip-path: polygon(0 0, 100% 0, 100% 28%, 24% 28%, 24% 100%, 0 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.chip { position: absolute; background: #1b1f2a; border: 1px solid #586178; border-radius: 3px; }
.c1 { left: 52%; top: 5%; width: 36%; height: 15%; background: linear-gradient(135deg, #c8ccd6, #8d95a8); }
.c2 { left: 4%; top: 34%; width: 15%; height: 12%; } .c3 { left: 4%; top: 52%; width: 15%; height: 9%; } .c4 { left: 4%; top: 68%; width: 15%; height: 14%; }
.sim { position: absolute; left: 4%; top: 88%; width: 15%; height: 8%; border-radius: 3px; background: linear-gradient(135deg, #e6c36a, #b08a2c); }
.conn { position: absolute; height: 2.4%; width: 14%; background: #e0a03a; border-radius: 2px; }
.k1 { left: 30%; top: 22%; } .k2 { left: 70%; top: 22%; }
/* camera module */
.lens { position: absolute; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7f93c4, #0b0e18 62%); border: 3px solid #5b6272; box-shadow: 0 4px 8px -3px rgba(0,0,0,.6); }
.lens.a { left: 11%; top: 6.5%; width: 17%; } .lens.b { left: 30%; top: 6.5%; width: 17%; } .lens.c { left: 20.5%; top: 15.5%; width: 17%; }
.lens.f { left: 62%; top: 4%; width: 8%; border-width: 2px; }
/* battery */
.cell { text-align: center; color: #d8dbe3; font-size: .72rem; line-height: 1.3; }
.cell b { display: block; font-size: .8rem; } .cell em { font-style: normal; opacity: .7; }
.tab { position: absolute; bottom: -7%; width: 14%; height: 7%; background: #f1f1ee; border-radius: 0 0 4px 4px; }
.t1 { left: 16%; } .t2 { right: 16%; }
.bconn { position: absolute; top: -6%; left: 8%; width: 26%; height: 6%; background: #e0a03a; border-radius: 3px 3px 0 0; }
/* frame, display, glass */
.btn-side { position: absolute; width: 4px; background: #9aa3b5; border-radius: 2px; }
.b1 { left: -11px; top: 16%; height: 7%; } .b2 { left: -11px; top: 26%; height: 11%; } .b3 { right: -11px; top: 22%; height: 14%; }
.pix { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 40%), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); }
.dflex { position: absolute; left: 30%; bottom: -5%; width: 22%; height: 6%; background: #e0a03a; border-radius: 0 0 4px 4px; }
.l-glass .notch { position: absolute; top: 2.5%; left: 50%; width: 28%; height: 3%; transform: translateX(-50%); border-radius: 99px; background: #0d1020; }
.l-glass .crack { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.9); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; opacity: calc(1 - var(--spread)); }

@media (max-width: 820px) {
  .explode-grid { grid-template-columns: minmax(0, 1fr); }
  .explode-stage { order: -1; top: 66px; height: 43vh; z-index: 2; background: var(--bg); box-shadow: 0 14px 18px -10px var(--bg); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); overflow: hidden; align-items: start; padding-top: 2vh; }
  .phone3d { --w: min(31vw, 17.5vh); }
  .tag { font-size: .72rem; padding: 3px 8px; margin-top: 6px; }
}
/* With JS and motion allowed, chapters come into focus one at a time and each gets room to scroll past. */
@media (prefers-reduced-motion: no-preference) {
  .js-explode .step { margin-bottom: 30vh; opacity: .3; }
  .js-explode .step:last-child { margin-bottom: 8vh; }
  .js-explode .step.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 24px 50px -30px var(--accent); }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) { .js-explode .step { margin-bottom: 20vh; } }
@media (prefers-reduced-motion: reduce) { .layer { transition: none; } }

/* What we repair: iPhone and Samsung first, then tablets and other makes */
.devices { padding-block: 22px; background: var(--surface); border-block: 1px solid var(--line); }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .device-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .device-list { grid-template-columns: minmax(0, 1fr); } }
.device-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.device-list li.main { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.device-list svg { color: var(--accent); flex: none; }
.device-list strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.device-list span { color: var(--muted); font-size: .88rem; }
