/* Insole Studio.Scan shares Insole Studio green (the user's call, 2026-10-31); later family members get their own accents */
/* Insole Studio Scan: additions on top of the Insole Studio system (site.css). */
.brand .sub { font-weight: 750; color: var(--accent); }
:root[data-theme="light"] .brand .sub { color: var(--accent-text); }

/* ---------- phone mockup + scan screen (always dark, like the real app) */
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 11px; flex: none;
  background: linear-gradient(145deg, #3a3b3e, #151517 40%, #2a2b2e); box-shadow: 0 0 0 1.5px #4a4b4f inset, 0 40px 80px -30px rgba(0,0,0,.7); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; color: #f5f5f7;
  font-family: var(--font); container-type: inline-size; }
.scr-status { position: absolute; top: 5.4cqw; left: 9cqw; right: 9cqw; display: flex; justify-content: space-between; font-size: 4.4cqw; font-weight: 600; z-index: 2; }
.scr-top { position: absolute; top: 18cqw; left: 6.5cqw; right: 6.5cqw; display: flex; justify-content: space-between; align-items: center; font-size: 4.6cqw; z-index: 2; transition: opacity .4s; }
.scr-top .cancel { color: var(--accent); }
.scr-top .title { font-weight: 650; font-size: 5.2cqw; position: absolute; left: 50%; transform: translateX(-50%); }
.scr-top .side { color: #a1a1a6; font-size: 4.2cqw; }
.scr-ring { transition: opacity .4s; position: absolute; left: 50%; top: 40%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.scr-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scr-ring .tick { stroke: rgba(255,255,255,.55); stroke-width: 3.2; stroke-linecap: round; transition: stroke .25s; }
.scr-ring .tick.on { stroke: var(--accent); }
.scr-view { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; background: #222; }
.scr-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.scr-view .sweep { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 46%, rgba(159,204,59,.55) 50%, transparent 54%); mix-blend-mode: screen;
  animation: sweep 2.4s linear infinite; }
.scr-view .mesh { position: absolute; inset: 0; background-image: radial-gradient(rgba(159,204,59,.85) 1px, transparent 1.4px); background-size: 9px 9px;
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%); }
@keyframes sweep { from { transform: translateY(-50%); } to { transform: translateY(50%); } }
.scr-done { position: absolute; inset: 13%; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s; }
.scr-done svg { width: 34%; }
.scr-done circle { fill: none; stroke: var(--accent); stroke-width: 3; }
.scr-done path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s .15s; }
.scr-msg { position: absolute; left: 7cqw; right: 7cqw; top: 70%; text-align: center; font-size: 5.8cqw; transition: opacity .4s; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.scr-sub { display: block; margin-top: 2.6cqw; font-size: 4.3cqw; font-weight: 450; color: #a1a1a6; }
.scr-bottom { position: absolute; left: 0; right: 0; bottom: 9cqw; text-align: center; font-size: 4.3cqw; color: var(--accent); transition: opacity .4s; }
.scr-bottom .done-btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 650; border-radius: 4.6cqw; padding: 4cqw 0; width: 80%; font-size: 5cqw; }
.scr-home { position: absolute; left: 50%; bottom: 8px; width: 34%; height: 5px; margin-left: -17%; border-radius: 3px; background: rgba(255,255,255,.75); }
.scr-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 26px; text-align: center; gap: 14px;
  transition: opacity .4s; }
.scr-intro img { width: 82%; border-radius: 18px; }
.scr-intro b { font-size: 6cqw; letter-spacing: -.015em; }
.scr-intro span { font-size: 4.4cqw; color: #a1a1a6; }
.phone-screen.done .scr-done { opacity: 1; transform: none; }
.phone-screen.done .scr-done path { stroke-dashoffset: 0; }
.phone-screen.done .scr-view { opacity: .0; }

/* ---------- hero */
.sc-hero { padding-top: clamp(40px, 7vw, 90px); overflow: hidden; }
.sc-hero-copy .lede { margin: 20px auto 0; max-width: 46ch; }
.sc-hero-copy .ctas { justify-content: center; margin-top: 26px; }
.sc-hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; }
.sc-film { margin: 0 -40px 40px 0; width: min(520px, 46vw); aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; position: relative; background: #111;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
/* the source film is a portrait shot pillar-boxed in 16:9: scale it so the picture fills the card */
.sc-film video, .way-media video { position: absolute; top: 50%; left: 50%; height: 106%; width: auto; max-width: none; transform: translate(-50.6%, -50%) scale(1.02); }
.sc-film figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; padding: 10px 16px; border-radius: 14px; font-size: 14px; color: #f5f5f7;
  background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-phone { position: relative; z-index: 2; width: min(300px, 28vw); }
@media (max-width: 734px) {
  .sc-hero-stage { flex-direction: column; align-items: center; }
  .sc-film { width: 100%; margin: 0; }
  .hero-phone { width: 62vw; margin-top: -26vw; }
}

/* ---------- four steps */
/* how it works: four cards on a track that fills as you scroll */
.how4 { --p: 0; list-style: none; padding: 0; margin: 84px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.how4::before, .how4::after { content: ""; position: absolute; top: -44px; left: 12.5%; height: 2px; border-radius: 1px; }
.how4::before { right: 12.5%; background: var(--rule); }
.how4::after { width: calc(75% * var(--p)); background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.how4 li { background: var(--tile); border-radius: var(--r-lg); padding: 14px 14px 26px; position: relative; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.how4 li > :not(.how-art):not(.n) { margin-inline: 10px; }
.how4 li:hover { transform: translateY(-4px); }
.how4 .n { position: absolute; z-index: 1; top: -59px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; background: var(--bg); color: var(--fg-3); box-shadow: 0 0 0 2px var(--rule); transition: background .4s, color .4s, box-shadow .4s; }
.how4 li.on .n { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.how4 p.how-step { margin: 20px 0 0; font-size: 13px; font-weight: 650; color: var(--accent-text); }
.how4 h3 { font-size: 22px; letter-spacing: -.02em; margin: 4px 0 8px; }
.how4 p { color: var(--fg-2); margin: 0; font-size: 15.5px; }
.how-art { height: 210px; border-radius: 20px; margin: 0; overflow: hidden; position: relative; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%), var(--tile-2); }
.art-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--glass); color: var(--fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--rule); transition: background .4s, color .4s; }
.art-chip.ok, .art-chip.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.art-chip.ok::after { content: " \2713"; }
/* step 1: sole inside a Face ID-style ring that fills */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.scan-mini { position: relative; width: 150px; height: 150px; margin-top: -18px; }
.scan-mini img { position: absolute; inset: 22px; width: 106px; height: 106px; border-radius: 50%; object-fit: cover; }
.scan-mini .tk { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(var(--fg-3) 0 2.5deg, transparent 2.5deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 62px, #000 63px, #000 74px, transparent 75px); mask: radial-gradient(circle, transparent 62px, #000 63px, #000 74px, transparent 75px); opacity: .55; }
.scan-mini .tk.g { opacity: 1; background: repeating-conic-gradient(var(--accent) 0 2.5deg, transparent 2.5deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 62px, #000 63px, #000 74px, transparent 75px), conic-gradient(#000 var(--a), transparent 0);
  -webkit-mask-composite: source-in; mask: radial-gradient(circle, transparent 62px, #000 63px, #000 74px, transparent 75px), conic-gradient(#000 var(--a), transparent 0);
  mask-composite: intersect; animation: ringfill 4.5s cubic-bezier(.5,0,.4,1) infinite; }
@keyframes ringfill { 0% { --a: 0deg; } 75%, 100% { --a: 360deg; } }
.how-scan .art-chip { animation: chipdone 4.5s infinite; }
@keyframes chipdone { 0%, 74% { background: var(--glass); color: var(--fg); } 78%, 100% { background: var(--accent); color: var(--accent-ink); } }
@media (max-width: 1000px) {
  .how4 { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .how4::before, .how4::after { display: none; }
  .how4 .n { top: 24px; left: 24px; transform: none; width: 28px; height: 28px; font-size: 13px; }
}
@media (max-width: 560px) { .how4 { grid-template-columns: 1fr; } .how-art { height: 220px; } }
@media (prefers-reduced-motion: reduce) { .scan-mini .tk.g { animation: none; --a: 360deg; } .how-scan .art-chip { animation: none; } .how4 li:hover { transform: none; } }
.ring-mini { width: 120px; height: 120px; border-radius: 50%;
  background: repeating-conic-gradient(var(--accent) 0 3deg, transparent 3deg 9deg); -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px, #000 60px, transparent 61px);
  mask: radial-gradient(circle, transparent 50px, #000 51px, #000 60px, transparent 61px); animation: spinfill 4s linear infinite; }
@keyframes spinfill { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.mini-cloud { width: 100%; height: 100%; }
/* step 3: the AI asks, you answer, it's confirmed (6 s loop) */
.hf { display: grid; justify-items: center; gap: 10px; font-size: 13px; }
.hf-orb { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1f2a14, #050705 70%);
  box-shadow: 0 0 22px rgba(159,204,59,.35), inset 0 0 8px rgba(255,255,255,.14); }
.hf-orb i { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(6px); mix-blend-mode: screen; animation: orb 2.8s ease-in-out infinite; }
.hf-orb i:nth-child(1) { background: var(--accent); left: 0; top: 10%; }
.hf-orb i:nth-child(2) { background: #3fd0b4; right: -5%; top: 25%; animation-delay: -.9s; }
.hf-orb i:nth-child(3) { background: #e9ff8c; left: 20%; bottom: -10%; animation-delay: -1.8s; }
.hf-bub { padding: 7px 13px; border-radius: 999px; background: var(--pill-bg); color: var(--fg); animation: hfIn 6s ease infinite; }
.hf-ok { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; animation: hfIn2 6s ease infinite; }
.hf-ok i { width: 5px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
@keyframes hfIn { 0%, 4% { opacity: 0; transform: translateY(6px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hfIn2 { 0%, 34% { opacity: 0; transform: translateY(6px) scale(.96); } 44%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hf-orb i, .hf-bub, .hf-ok { animation: none; } }
.how-order img { width: 96%; height: auto; margin-top: -26px; }
@media (max-width: 1000px) { .how4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how4 { grid-template-columns: 1fr; } }

/* ---------- the scan: copy scrolls, phone pinned */
.scanstory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: calc(var(--wide) + 44px); margin-inline: auto;
  padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
.ss-pin { display: contents; }
.ss-copy { grid-column: 1; padding-block: 12vh 30vh; }
.ss-step { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .25; transition: opacity .5s; }
.ss-step.on { opacity: 1; }
.ss-step p:not(.eyebrow) { color: var(--fg-2); font-size: clamp(17px, 1.5vw, 20px); margin: 16px 0 0; }
.ss-step p b { color: var(--fg); font-weight: 600; }
.ss-stage { grid-column: 2; grid-row: 1; position: sticky; top: 52px; height: calc(100svh - 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.ss-phone { width: min(320px, 26vw, 44svh); }
.ss-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ss-chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--tile); font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.ss-chips li i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ss-chips li b { color: var(--fg); font-weight: 600; }
@media (max-width: 834px) {
  .scanstory { grid-template-columns: minmax(0, 1fr); }
  .ss-stage { grid-column: 1; grid-row: 1; z-index: 2; height: 58svh; background: var(--bg); margin-inline: -22px; padding-top: 10px; gap: 10px; }
  .ss-phone { width: min(230px, 36svh); }
  .ss-copy { grid-row: 2; padding-block: 2vh 20vh; }
  .ss-step { min-height: 55svh; justify-content: flex-start; padding-top: 4vh; }
}

/* ---------- cleanup 3D */
.cu-ui { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 48px; }
.cu-view { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: radial-gradient(80% 70% at 50% 55%, var(--tile-2), var(--tile) 75%); overflow: hidden; }
.cu-view canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.cu-hint { position: absolute; top: 14px; left: 0; right: 0; text-align: center; margin: 0; pointer-events: none; }
.cu-dims { position: absolute; inset: 0; pointer-events: none; }
.cu-dims span { position: absolute; transform: translate(-50%, -50%); padding: 5px 11px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--rule); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity .35s; }
.cu-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tile); }
.cu-tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--fg-2); font-size: 15px; font-weight: 560; cursor: pointer; }
.cu-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.cu-text { margin-top: 26px; min-height: 9.5em; }
.cu-text p { color: var(--fg-2); margin: 10px 0 0; }
.cu-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cu-steps li { font-size: 13px; color: var(--fg-2); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 834px) { .cu-ui { grid-template-columns: minmax(0, 1fr); } .cu-tabs { display: flex; } .cu-tabs button { flex: 1; padding: 0 8px; font-size: 14px; } }

/* ---------- report */
.report { margin-top: 44px; background: var(--bg); border-radius: 32px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 0 0 1px var(--rule); }
.rp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 6px 18px; font-size: 14px; color: var(--fg-2); }
.rp-head b { color: var(--fg); font-size: 17px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.rp-card { background: var(--tile); border-radius: 22px; padding: 22px; }
.rp-card h3 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
.rp-feet { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rp-prints { width: 100%; max-width: 260px; }
.rp-prints .fp, .rp-prints circle { fill: url(#pg); }
.rp-lr { display: flex; justify-content: space-around; width: 100%; max-width: 260px; font-size: 13px; color: var(--fg-3); margin-top: 6px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-table th, .rp-table td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.rp-table td { text-align: right; } .rp-table thead th { color: var(--fg-3); font-weight: 500; font-size: 13px; text-align: right; }
.rp-table tbody th { color: var(--fg-2); font-weight: 500; }
.rp-table tr:last-child th, .rp-table tr:last-child td { border-bottom: 0; }
.rp-arch svg { width: 100%; height: auto; }
.rp-arch .ax { stroke: var(--rule); stroke-width: 1.5; }
.rp-arch .curve { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.rp-arch .band { fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-dasharray: 4 5; }
.rp-arch text { fill: var(--fg-3); font-size: 11px; font-family: var(--font); }
.rp-sum ul { margin: 0; padding-left: 1.1em; color: var(--fg-2); font-size: 15px; }
.rp-sum li + li { margin-top: 8px; }
.rp-sum b { color: var(--fg); }
@media (max-width: 900px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } .rp-feet { grid-row: auto; } }

/* ---------- AI form */
.ai-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ai-legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--fg-2); font-size: 15px; }
.ai-legend li { display: flex; align-items: center; gap: 10px; }
.ai-legend b { color: var(--fg); font-weight: 600; }
.ai-legend i, .af-row::before, .af-q::before { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k-scan, [data-src="scan"]::before { background: var(--accent); }
.k-ai, [data-src="ai"]::before { background: #6aa8ff; }
.k-you, [data-src="you"]::before { background: #ffb340; }
.aiform { background: var(--tile); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.af-top { display: flex; justify-content: space-between; font-size: 15px; } .af-top span { color: var(--fg-2); font-size: 13px; }
.af-progress { height: 4px; border-radius: 2px; background: var(--rule); margin: 12px 0 6px; overflow: hidden; }
.af-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.aiform fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.aiform legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); margin-bottom: 4px; }
.af-row, .af-q { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.af-row::before, .af-q::before { content: ""; }
.af-row span, .af-q > span { color: var(--fg-2); flex: none; width: 9.5em; }
.af-row output { margin-left: auto; text-align: right; font-weight: 560; color: var(--fg); min-height: 1.3em; font-variant-numeric: tabular-nums; }
.af-row output.typing::after { content: "▍"; color: var(--accent); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.af-q { flex-wrap: wrap; } .af-q > span { width: auto; flex: 1 1 100%; padding-left: 0; }
.af-q::before { position: relative; top: 0; }
.af-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.af-chips button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--tile-2); color: var(--fg); font-size: 14px; cursor: pointer; }
.af-chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.af-colors button { width: 36px; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.af-colors button[aria-pressed="true"] { background: var(--c); box-shadow: 0 0 0 2px var(--tile), 0 0 0 4px var(--accent); }
.af-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 14px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.af-confirm input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
@media (max-width: 900px) { .ai-split { grid-template-columns: minmax(0, 1fr); } .af-row span { width: 7.5em; } }

/* ---------- recommendation */
.rec { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--bg); border-radius: 32px; padding: clamp(18px, 3vw, 36px); box-shadow: 0 0 0 1px var(--rule); }
.rec-art { border-radius: 24px; background: radial-gradient(80% 70% at 50% 55%, var(--tile-2), var(--tile) 75%); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.rec-art img { width: 100%; height: 100%; object-fit: contain; }
.rec-tag { display: inline-block; font-size: 13px; font-weight: 650; color: var(--accent-ink); background: var(--accent); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.rec-spec { color: var(--fg-2); margin: 8px 0 0; }
.rec-why { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rec-why li { padding-left: 26px; position: relative; color: var(--fg-2); }
.rec-why li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.rec-why b { color: var(--fg); }
.rec-alt { margin-top: 16px; }
.rec .ctas { margin-top: 22px; }
@media (max-width: 834px) { .rec { grid-template-columns: minmax(0, 1fr); } }

/* ---------- handoff flow */
.flow { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; counter-reset: f; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 26px; height: 2px; background: linear-gradient(90deg, var(--accent) var(--flow, 0%), var(--rule) var(--flow, 0%)); }
.flow li { position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg-2); }
.flow .fi { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); font-weight: 700; color: var(--fg); margin-bottom: 12px;
  box-shadow: 0 0 0 6px var(--bg); transition: background .4s, color .4s; }
.flow li.on .fi { background: var(--accent); color: var(--accent-ink); }
.flow b { color: var(--fg); font-size: 17px; letter-spacing: -.015em; }
@media (max-width: 834px) {
  .flow { grid-template-columns: 1fr; gap: 22px; padding-left: 0; }
  .flow::before { left: 25px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent) var(--flow, 0%), var(--rule) var(--flow, 0%)); }
  .flow li { padding-left: 70px; min-height: 52px; justify-content: center; } .flow .fi { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- two ways */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.way { background: var(--bg); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.way-media { aspect-ratio: 3 / 2; position: relative; overflow: hidden; background: #111; }
.way-media img { width: 100%; height: 100%; object-fit: cover; }
.way-media video { height: 152%; transform: translate(-50.6%, -46%); }
.way-body { padding: 24px 28px 30px; }
.way-body ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--fg-2); }
.way-body li + li { margin-top: 8px; }
@media (max-width: 834px) { .ways { grid-template-columns: 1fr; } }
/* video tutorial links */
.tut { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--tile-2); color: var(--fg); transition: background .2s; }
.tut:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, var(--tile-2)); }
.tut-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #111; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut-play { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .2s; }
.tut-play::after { content: ""; position: absolute; left: 14px; top: 11px; border: solid transparent; border-width: 7px 0 7px 11px; border-left-color: var(--accent-ink); }
.tut:hover .tut-play { transform: scale(1.08); }
.tut-txt { display: grid; gap: 2px; }
.tut-txt b { font-size: 16px; font-weight: 650; }
.tut-txt small { font-size: 13.5px; color: var(--fg-2); }
.tut-dlg { width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: #0d0d0f; color: #f5f5f7; overflow: hidden; }
.tut-dlg::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tut-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; }
.tut-head h3 { margin: 0; font-size: 16px; }
.tut-head .icon-btn { color: #f5f5f7; }
.tut-dlg video { display: block; width: 100%; max-height: 78vh; background: #000; }

/* ---------- checklist */
.checks { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.checks svg { width: 40px; height: 40px; color: var(--accent); }
.checks h3 { font-size: 19px; margin: 12px 0 4px; letter-spacing: -.015em; }
.checks p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
@media (max-width: 834px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* ---------- timeline */
.timeline { list-style: none; padding: 0; margin: 44px 0 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--accent); }
.timeline li:nth-child(-n+4)::before { background: var(--accent); }
.timeline .when { font-size: 13px; font-weight: 650; color: var(--accent-text); }
.timeline h3 { font-size: 21px; margin: 4px 0 4px; letter-spacing: -.02em; }
.timeline p { margin: 0; color: var(--fg-2); }

/* ---------- devices / privacy */
.plist { margin: 12px 0 0; padding-left: 1.1em; color: var(--fg-2); }
.plist li + li { margin-top: 8px; }
.plist b { color: var(--fg); }
.tile.s6 p { margin-top: 12px; }

/* ---------- notify */
.notify { display: flex; gap: 10px; justify-content: center; margin: 28px auto 0; max-width: 460px; flex-wrap: wrap; }
.notify input { flex: 1 1 240px; min-height: 48px; border-radius: 999px; border: 1px solid var(--rule); background: var(--tile); color: var(--fg); font: inherit; font-size: 17px; padding: 0 20px; }
.notify input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.notify .btn { min-height: 48px; }

/* light theme: keep dark product stage cards soft */
:root[data-theme="light"] .how4 li, :root[data-theme="light"] .rp-card, :root[data-theme="light"] .aiform { box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
:root[data-theme="light"] .cu-view, :root[data-theme="light"] .rec-art { background: radial-gradient(80% 70% at 50% 55%, #ffffff, #eef0ee 80%); }

.exp-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.exp-media { position: sticky; top: 90px; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.exp-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 834px) { .exp-split { grid-template-columns: minmax(0, 1fr); } .exp-media { position: static; aspect-ratio: 3 / 2; } }
.af-q::before { display: none; }
.af-q > span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ffb340; margin-right: 10px; vertical-align: 0; }

/* mobile tightening */
@media (max-width: 520px) {
  .brand { font-size: 19px; }
  .pnav .wrap { gap: 6px; }
}
@media (max-width: 834px) {
  .ss-stage { height: 52svh; }
  .ss-phone { width: min(190px, 30svh); }
  .ss-chips li { padding: 6px 11px 6px 8px; font-size: 12px; }
}
.scr-status .bat { display: inline-flex; gap: 4px; align-items: center; }
.scr-status .bat i { display: inline-block; width: 6.4cqw; height: 3.1cqw; border-radius: 1cqw; box-shadow: inset 0 0 0 1px #f5f5f7; position: relative; }
.scr-status .bat i::after { content: ""; position: absolute; inset: 0.6cqw; right: 1.6cqw; background: #f5f5f7; border-radius: .4cqw; }
@media (max-width: 834px) {
  .ss-step { min-height: 64svh; justify-content: flex-end; padding: 0 0 6vh; }
  .cu-tabs button { font-size: 13px; white-space: nowrap; padding: 0 6px; }
}

/* report: scanned feet as point images */
.rp-feet { gap: 12px; justify-content: flex-start; }
.rp-views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tile-2); align-self: center; }
.rp-views button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2); font-size: 13px; font-weight: 560; cursor: pointer; }
.rp-views button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
#rpCanvas { width: 100%; aspect-ratio: 4 / 5; display: block; }
.rp-scale { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--fg-3); width: 100%; max-width: 260px; }
.rp-scale i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #f0ffb8, #9fcc3b 35%, #4a7a1e 70%, #22331a); }

/* ---------- AI conversation */
.ai-head { max-width: 820px; }
#ai .ai-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); margin-top: 44px; align-items: start; }
.ai-phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; position: sticky; top: 80px; }
.ai-phone { width: min(330px, 100%); }
.ai-note { text-align: center; max-width: 30ch; margin: 0; }
.chat { display: flex; flex-direction: column; }
.chat-head { margin-top: 15cqw; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; flex: none; }
.chat-head b { font-size: 4.8cqw; }
.chat-head span { font-size: 3.8cqw; color: #a1a1a6; }
/* Siri-style orb: three soft blobs swirling inside a glass sphere */
.orb { position: relative; width: 22cqw; height: 22cqw; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1f2a14, #050705 70%);
  box-shadow: 0 0 6cqw rgba(159,204,59,.35), inset 0 0 3cqw rgba(255,255,255,.12); transition: transform .4s, box-shadow .4s; }
.orb i { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(3cqw); mix-blend-mode: screen; animation: orb 5s ease-in-out infinite; }
.orb i:nth-child(1) { background: var(--accent); left: 0; top: 10%; }
.orb i:nth-child(2) { background: #3fd0b4; right: -5%; top: 25%; animation-delay: -1.6s; animation-duration: 6s; }
.orb i:nth-child(3) { background: #e9ff8c; left: 20%; bottom: -10%; animation-delay: -3s; animation-duration: 4.4s; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(18%, -12%) scale(1.15); } 66% { transform: translate(-14%, 14%) scale(.9); } }
.orb.speaking { transform: scale(1.12); box-shadow: 0 0 10cqw rgba(159,204,59,.55), inset 0 0 3cqw rgba(255,255,255,.16); }
.orb.speaking i { animation-duration: 1.6s; }
.chat-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.4cqw; padding: 4cqw 5cqw 3cqw;
  -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.msg { max-width: 82%; padding: 2.6cqw 3.6cqw; border-radius: 4.8cqw; font-size: 4.1cqw; line-height: 1.35; animation: msgIn .35s ease; }
.msg.ai { align-self: flex-start; background: #1f2023; color: #f5f5f7; border-bottom-left-radius: 1.4cqw; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 1.4cqw; font-weight: 520; }
.msg.typing { display: inline-flex; gap: 1.2cqw; padding: 3.4cqw 4cqw; }
.msg.typing i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #a1a1a6; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-25%); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-bar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2cqw; padding: 2cqw 0 12cqw; font-size: 3.8cqw; color: var(--accent); }
.wave { display: flex; align-items: center; gap: 1.2cqw; height: 9cqw; }
.wave i { width: 1.3cqw; height: 20%; border-radius: 1cqw; background: #f5f5f7; opacity: .35; transition: height .15s, opacity .3s; }
.wave.on i { opacity: 1; animation: wv .9s ease-in-out infinite; }
.wave.on i:nth-child(2n) { animation-delay: -.3s; } .wave.on i:nth-child(3n) { animation-delay: -.55s; } .wave.on i:nth-child(5n) { animation-delay: -.15s; }
@keyframes wv { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.af-row.fresh output { color: var(--accent-text); transition: color 1.2s; }
@media (max-width: 900px) { #ai .ai-split { grid-template-columns: minmax(0, 1fr); } .ai-phone-col { position: static; } .ai-phone { width: min(280px, 76vw); } }

/* ---------- rhythm: less air between modules (site.css default is 80-160px) */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec.tight { padding-block: clamp(40px, 6vw, 72px); }
.report { margin-top: 32px; }
.ways { margin-top: 32px; }
@media (max-width: 640px) {
  .sec { padding-block: 52px; }
  .sec.tight { padding-block: 36px; }
  .report { margin-top: 24px; border-radius: 26px; }
}
/* gradient headlines: give descenders room so background-clip doesn't cut them */
.grad { padding-bottom: .12em; }

/* ---------- report: more green, easier to skim */
.report { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg) 260px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, var(--rule)); }
.rp-head { align-items: center; }
.rp-head b { margin-right: auto; }
.rp-ok { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px; font-weight: 600; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); }
.rp-ok i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); position: relative; }
.rp-ok i::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 7px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rp-when { font-size: 13px; }
.rp-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.rp-card h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.rp-table td { color: var(--fg); font-weight: 650; font-size: 16px; }
.rp-table tbody th { color: var(--fg-2); }
.rp-table thead th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 650; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); font-weight: 650; font-size: 13px; }
.rp-arch .area { fill: url(#archFill); }
.rp-arch text.you { fill: var(--accent-text); font-weight: 650; font-size: 12px; }
.rp-sum ul.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 7.5px; top: 5px; width: 4px; height: 8px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks li + li { margin-top: 12px; }
:root[data-theme="light"] .rp-card { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 24px -16px rgba(60,90,10,.25); }
@media (max-width: 640px) { .rp-when { width: 100%; } .rp-card { padding: 18px; } }

/* ---------- footnotes */
.foot .notes { padding-bottom: 22px; }
.notes-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin: 4px 0 14px; }
.foot .notes ol.notes-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 44px; }
.foot .notes .notes-list li + li { margin-top: 0; }
.notes-list li { display: flex; gap: 12px; align-items: flex-start; }
.notes-list .nn { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: -1px;
  font-size: 11px; font-weight: 700; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.notes-list p { margin: 0; max-width: 66ch; line-height: 1.6; }
.notes-list b { color: var(--fg-2); font-weight: 650; }
.notes-legal { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 11.5px; line-height: 1.6; max-width: 120ch; }
@media (max-width: 760px) { .foot .notes ol.notes-list { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* photo walkthrough tutorial (story style) */
.tut-show { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; background: #000; overflow: hidden; }
.ts-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.ts-stage img.on { opacity: 1; animation: kb 5s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.ts-bars { position: absolute; z-index: 2; top: 12px; left: 14px; right: 14px; display: flex; gap: 6px; }
.ts-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.ts-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.ts-bars i.done b { width: 100%; }
.ts-bars i.on b { animation: tsbar var(--d) linear forwards; }
@keyframes tsbar { to { width: 100%; } }
.ts-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px clamp(16px, 4vw, 40px) clamp(16px, 3vw, 30px);
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: clamp(15px, 2.2vw, 22px); font-weight: 560; line-height: 1.35; }
.ts-cap span { display: block; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ts-again { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 640px) { .tut-show { aspect-ratio: 4 / 5; } }
.rp-sum { grid-column: span 2; }
.rp-sum ul.ticks { columns: 2; column-gap: 36px; }
.ticks li { break-inside: avoid; margin-bottom: 12px; }
.ticks li + li { margin-top: 0; }
@media (max-width: 900px) { .rp-sum { grid-column: auto; } }
@media (max-width: 560px) { .rp-sum ul.ticks { columns: 1; } }
.notes-legal { max-width: none; }
.pill { white-space: nowrap; }
@media (max-width: 560px) {
  .rp-table { font-size: 14px; } .rp-table td { font-size: 15px; }
  .rp-table tbody th { white-space: nowrap; padding-right: 8px; }
  .pill { padding: 3px 8px; font-size: 12px; }
}

/* ---------- AI scan check: pass vs needs another try */
.qc { margin-top: clamp(40px, 6vw, 72px); }
.qc-head { max-width: 760px; }
.qc-head .h3 { margin: 6px 0 10px; }
.qc-head p:last-child { color: var(--fg-2); margin: 0; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.qc-card { --c: var(--accent); --ct: var(--accent-text); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--tile); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.qc-card.retry { --c: #ffb340; --ct: #ffb340; }
:root[data-theme="light"] .qc-card.retry { --ct: #a85f00; }
.qc-art { position: relative; min-height: 230px; background: radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--c) 12%, transparent), transparent 75%), var(--tile-2); overflow: hidden; }
.qc-scan { position: absolute; inset: 0; width: 100%; height: 100%; }
.qc-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; color: var(--fg-3); }
.qc-miss { position: absolute; left: 47%; top: 70%; transform: translate(-50%, 0); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--c); color: #1a1000; opacity: 0; }
.qc-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--c); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--c) 55%, transparent); opacity: 0; }
.qc-body { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.qc-verdict { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ct); }
.qc-verdict i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); position: relative; }
.ok .qc-verdict i::after { content: ""; position: absolute; left: 8.5px; top: 5px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.retry .qc-verdict i::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2.5px solid #1a1000; border-top-color: transparent; }
.qc-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.qc-list li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--rule); color: var(--fg-2); }
.qc-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.qc-list li.n::before { background: #ffb340; }
.qc-list b { margin-left: auto; color: var(--fg); font-weight: 650; }
.qc-list li.n b { color: var(--ct); }
.qc-next { margin: 14px 0 0; font-size: 14px; color: var(--fg); font-weight: 560; }
/* the inspection plays once when the card comes into view */
.qc-card .qc-verdict, .qc-card .qc-list li, .qc-card .qc-next { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.qc-card.in .qc-sweep { animation: qcsweep 1.6s cubic-bezier(.5,0,.5,1) .2s both; }
.qc-card.in .qc-miss { animation: qcpop .4s ease 1.7s both; }
.qc-card.in .qc-verdict, .qc-card.in .qc-list li, .qc-card.in .qc-next { opacity: 1; transform: none; }
.qc-card.in .qc-list li:nth-child(1) { transition-delay: 1.8s; } .qc-card.in .qc-list li:nth-child(2) { transition-delay: 1.9s; }
.qc-card.in .qc-list li:nth-child(3) { transition-delay: 2s; } .qc-card.in .qc-list li:nth-child(4) { transition-delay: 2.1s; }
.qc-card.in .qc-verdict { transition-delay: 2.3s; } .qc-card.in .qc-next { transition-delay: 2.5s; }
.qc-card.retry.in .qc-sweep { animation-delay: .5s; }
@keyframes qcsweep { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 3px); opacity: 0; } }
@keyframes qcpop { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 1100px) { .qc-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .qc-card { grid-template-columns: 1fr; } .qc-art { min-height: 190px; } }
@media (prefers-reduced-motion: reduce) { .qc-card .qc-verdict, .qc-card .qc-list li, .qc-card .qc-next { opacity: 1; transform: none; transition: none; } .qc-miss { opacity: 1; } }

/* ---------- .Scan brand pieces */
.brand .lockup { display: block; height: 19px; width: auto; color: var(--fg); }
.brand .ldot-c { fill: var(--accent); }
@media (max-width: 520px) { .brand .lockup { height: 16px; } }
/* the landing dot: headline periods are Scan Amber and drop in last with a small bounce */
.ldot { color: var(--accent); -webkit-text-fill-color: var(--accent); display: inline-block; }
.rv:not(.in) .ldot { opacity: 0; transform: translateY(-.7em); }
.rv.in .ldot { animation: dotland .62s cubic-bezier(.34, 1.56, .64, 1) .32s both; }
@keyframes dotland { 0% { opacity: 0; transform: translateY(-.7em); } 55% { opacity: 1; } 70% { transform: translateY(.05em) scale(1.12, .82); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv:not(.in) .ldot, .rv.in .ldot { opacity: 1; transform: none; animation: none; } }

/* ---------- film at the top: Data becomes an object */
.film-top { padding: 16px 0 8px; background: var(--bg); }
.ft-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; }
.ft-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-sound { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: rgba(20,20,22,.62); color: #f5f5f7; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255,255,255,.14); transition: background .2s; }
.ft-sound:hover { background: rgba(40,40,44,.75); }
.ft-sound svg { width: 18px; height: 18px; }
.ft-sound[aria-pressed="false"] .w { opacity: .35; }
.ft-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding: 16px 6px 0; }
.ft-cap h2 { margin: 0; font-size: clamp(19px, 2vw, 24px); letter-spacing: -.02em; font-weight: 650; }
.ft-cap p { margin: 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 640px) { .ft-frame { border-radius: 18px; } .ft-sound { right: 10px; bottom: 10px; min-height: 36px; font-size: 13px; } .ft-cap { padding-top: 12px; } }

/* ---------- One of One film */
.film-sec { background: #000; color: #f5f5f7; --fg: #f5f5f7; --fg-2: #a1a1a6; }
.oo-frame { position: relative; margin: 32px 0 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.oo-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.oo-play { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 10px; border: 0; border-radius: 999px; background: rgba(245,245,247,.94); color: #000; font: inherit; font-weight: 650; font-size: 16px; cursor: pointer; transition: transform .2s; }
.oo-play:hover { transform: scale(1.04); }
.oo-play i { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); position: relative; }
.oo-play i::after { content: ""; position: absolute; left: 16px; top: 12px; border: solid transparent; border-width: 8px 0 8px 12px; border-left-color: var(--accent-ink); }
.oo-play b { font-weight: 500; color: #6e6e73; font-variant-numeric: tabular-nums; }
.oo-frame.playing .oo-play { display: none; }
@media (max-width: 640px) { .oo-frame { border-radius: 18px; } }

/* the 3D scan stage is always dark, like the app and the film */
.cu-view, :root[data-theme="light"] .cu-view { background: #000; }
.cu-view .cu-hint { color: #8a8a8f; }

/* scan check + report feet: renders of the 3D scan model (build/render_feet.py) */
.qc-art { container-type: size; }
.qc-fig { position: absolute; left: 50%; top: 54%; width: min(90cqw, 76cqh * 1.6533); aspect-ratio: 1113 / 673; transform: translate(-50%, -50%); }
.qc-fig img { width: 100%; height: 100%; display: block; }
.qc-ring { position: absolute; left: 44.5%; top: 70%; width: 46%; height: 30%; transform: translate(-50%, -50%); border: 2px dashed var(--c); border-radius: 50%; opacity: 0; }
.qc-card.in .qc-ring { animation: qcpop .4s ease 1.6s both; }
.qc-fig .qc-miss { left: 44.5%; top: calc(70% - 15% - 30px); }
@media (prefers-reduced-motion: reduce) { .qc-ring { opacity: 1; } }
/* the scans always sit on dark, like the app, the film and the 3D stage */
.rp-feet, :root[data-theme="light"] .rp-feet { --tile-2: #1d1d20; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #8a8a8f; --bg: #000; background: #111113; color: var(--fg); }
.qc-art, :root[data-theme="light"] .qc-art { background: radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--c) 14%, transparent), transparent 75%), #0d0d0f; }
.qc-art .qc-tag { color: #8a8a8f; }

/* ---------- report, part 2 */
.rp-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; }
.rp-note { margin: -4px 0 10px; color: var(--fg-3); }
.rp-fit { margin: 0; }
.rp-fit > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.rp-fit > div:last-child { border-bottom: 0; }
.rp-fit dt { color: var(--fg-2); font-size: 14px; padding-top: 1px; }
.rp-fit dd { margin: 0; display: grid; gap: 2px; }
.rp-fit dd b { font-size: 15.5px; font-weight: 650; }
.rp-fit dd span { font-size: 13.5px; color: var(--accent-text); }
.rp-rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rp-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 650; color: var(--accent-text); }
.rp-name { margin: 0 !important; font-size: 26px !important; letter-spacing: -.02em; }
.rp-name::before { display: none !important; }
.rp-spec { margin: 6px 0 0; font-size: 14.5px; color: var(--fg-2); }
.rp-price { margin: 4px 0 0; font-size: 15px; font-weight: 650; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.rp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rp-shots figure { margin: 0; display: flex; flex-direction: column; }
.rp-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: radial-gradient(80% 70% at 50% 55%, #26262a, #111113 75%); }
.rp-shots figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.rp-shots figcaption b { display: block; color: var(--fg); font-size: 14.5px; margin-bottom: 2px; }
.rp-next { grid-column: 1 / -1; }
.rp-next > p { margin: 0; color: var(--fg-2); max-width: 70ch; }
/* a film behind a button: nothing on the page until it is pressed, then it plays in the shared video dialog */
.watch-btn { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px;
  background: var(--tile-2); color: var(--fg); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; transition: transform .2s; }
.watch-btn:hover { transform: scale(1.03); }
.watch-btn i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); position: relative; }
.watch-btn i::after { content: ""; position: absolute; left: 13px; top: 10px; border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: var(--accent-ink); }
.watch-btn b { font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.rp-steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rp-steps li { counter-increment: s; position: relative; padding: 14px 14px 16px; border-radius: 18px; background: var(--tile-2); display: grid; gap: 4px; }
.rp-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); margin-bottom: 6px; }
.rp-steps b { font-size: 15px; }
.rp-steps span { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
@media (max-width: 1000px) { .rp-more { grid-template-columns: minmax(0, 1fr); } .rp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rp-shots { grid-template-columns: minmax(0, 1fr); } .rp-shots img { aspect-ratio: 16 / 10; } .rp-steps { grid-template-columns: minmax(0, 1fr); } }

.rp-film { margin: 28px 0 0; }
/* report part 2: three full-width bands (based on you, recommendation, what happens next) */
.rp-more { grid-template-columns: minmax(0, 1fr); }
.rp-fit { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 6px; }
.rp-fit > div, .rp-fit > div:last-child { display: block; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--tile-2); }
.rp-fit dt { font-size: 13px; margin-bottom: 4px; }
.rp-fit dd b { font-size: 17px; }
.rp-shots img { aspect-ratio: 16 / 10; }
.oo-play span { white-space: nowrap; }
@media (max-width: 640px) {
  .oo-play { left: 10px; bottom: 10px; gap: 8px; padding: 5px 12px 5px 5px; font-size: 13px; }
  .oo-play i { width: 30px; height: 30px; }
  .oo-play i::after { left: 12px; top: 8px; border-width: 7px 0 7px 10px; }
}
