/* The see-it page: one screen at a time, phone first. */
main { max-width: 560px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gut); max-width: 560px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 70%; font-size: 1.25rem; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
body[data-full] .top { display: none; }
.to-site { font-weight: 700; font-size: 0.92rem; color: var(--muted); text-decoration: none; padding: 0.5rem 0 0.5rem 0.5rem; white-space: nowrap; }
.to-site:hover { color: var(--ink); }

.screen { display: none; min-height: calc(100svh - 58px); padding-bottom: 1.5rem; }
.screen[data-active] { display: block; animation: up 0.28s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.head { display: grid; gap: 0.85rem; padding: 0.6rem var(--gut) 0; }
.head .chips { margin-top: 0.2rem; }

/* ---- 1. how to take it ---- */
.tips { list-style: none; display: grid; gap: 12px; padding: 1.4rem 12px 0; }
.tip { display: grid; grid-template-columns: 92px 1fr; gap: 0.9rem; align-items: center; padding: 14px; border: 2.5px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.tip p { font-size: 0.98rem; line-height: 1.38; margin-top: 0.35rem; }
.tip-h { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 66%; font-size: 1.55rem; line-height: 0.95; text-transform: uppercase; }
.art { width: 92px; height: 92px; }
.art .you { transform-origin: 22px 96px; animation: pulse 1.6s ease-in-out infinite; }
.plan { width: 100%; height: auto; margin-top: 0.2rem; }
.plan .you { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-in-out infinite; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0 !important; font-size: 0.9rem !important; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.dot.best { background: var(--accent); }
.dot.also { background: var(--bg); }
@keyframes pulse { 50% { transform: scale(1.25); } }
.tip-ex { grid-template-columns: 1fr; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0.3rem; }
.ex { position: relative; overflow: hidden; border: 2.5px solid var(--ink); border-radius: 12px; aspect-ratio: 9 / 16; }
.ex img { width: 100%; height: 100%; object-fit: cover; }
.ex figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 0.4rem 0.55rem; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.85rem; line-height: 1.15; }
.ex.good figcaption b { color: var(--accent); }
.ex.bad img { filter: saturate(0.55) brightness(0.9); }
.ex.bad figcaption b { color: #ff8a73; }
.ex.bad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 2px), color-mix(in srgb, var(--bad) 85%, transparent) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); pointer-events: none; }

.dock { position: sticky; bottom: 0; z-index: 5; margin-top: 1.2rem; padding: 1.6rem var(--gut) calc(12px + var(--safe-b)); background: linear-gradient(to bottom, transparent, var(--bg) 28%); }
.dock-in { display: grid; justify-items: center; gap: 0.3rem; }
body:not([data-camera='guide']) [data-dock='guide'],
body:not([data-camera='phone']) [data-dock='phone'],
body[data-desk] [data-dock='guide'], body[data-desk] [data-dock='phone'],
body:not([data-desk]) [data-dock='desk'] { display: none; }
[data-dock='desk'] .fine { text-align: center; margin-top: 0.6rem; }

/* ---- 2. camera ---- */
.cam { position: fixed; inset: 0; z-index: 50; min-height: 0; padding: 0; background: #000; color: #fff; --barh: calc(126px + var(--safe-b)); }
.cam-box { position: absolute; left: 50%; top: calc((100% - var(--barh)) / 2); transform: translate(-50%, -50%); width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.cam-box video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.guide { position: absolute; inset: 0; pointer-events: none; }
.guide .split { position: absolute; left: 0; right: 0; top: 46%; border-top: 2px dashed rgb(255 255 255 / 0.85); filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5)); }
.zone { position: absolute; left: 12px; padding: 0.3rem 0.6rem; border-radius: 99px; background: rgb(0 0 0 / 0.45); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.z-house { top: calc(46% - 2.3rem); }
.z-house::after { content: ' ↑'; }
.z-garden { top: calc(46% + 0.7rem); }
.z-garden::after { content: ' ↓'; }
.level { position: absolute; left: 50%; top: 46%; width: 120px; height: 0; transform: translate(-50%, -50%); }
.level i { position: absolute; left: 0; right: 0; top: -2px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px rgb(0 0 0 / 0.45); transform: rotate(var(--tilt, 0deg)); transition: background 0.15s; }
.level span { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 0.15rem 0.5rem; border-radius: 99px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 0.75rem; opacity: 0; transition: opacity 0.15s; }
.level[data-ok] i { background: var(--accent); }
.level[data-ok] span { opacity: 1; }
.level[data-off] { display: none; }
.cam-x { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgb(0 0 0 / 0.5); color: #fff; font-size: 1.2rem; z-index: 2; }
.cam-hint { position: absolute; top: max(16px, calc(env(safe-area-inset-top) + 4px)); left: 50%; transform: translateX(-50%); z-index: 2; padding: 0.5rem 0.9rem; border-radius: 99px; background: rgb(0 0 0 / 0.55); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--barh); padding-bottom: var(--safe-b); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.shutter i { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); transition: transform 0.1s; }
.shutter:active i { transform: scale(0.88); }
.cam-side { display: grid; justify-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; color: #fff; }
.cam-side svg { width: 30px; height: 30px; }
.cam-fail { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; background: var(--bg); color: var(--ink); }
.flash { position: fixed; inset: 0; z-index: 60; background: #fff; animation: flash 0.35s ease-out forwards; pointer-events: none; }
@keyframes flash { to { opacity: 0; } }

/* ---- 3. review ---- */
.review { position: fixed; inset: 0; z-index: 50; min-height: 0; padding: 0; background: #000; }
.review-pic { position: absolute; inset: 0 0 calc(150px + var(--safe-b)); display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px 0; }
.review-pic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.dock-dark { position: absolute; left: 0; right: 0; bottom: 0; background: none; }
.dock-dark .link { color: #fff; }

/* ---- 4-6. working on it ---- */
.stage { position: relative; padding: 1.3rem 12px 0; }
.work { width: min(100%, calc(56svh * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); box-shadow: 0 0 18px 6px color-mix(in srgb, var(--accent) 70%, transparent); animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: calc(100% - 3px); } }
.scan img { filter: saturate(0.85); }
.guy-tape { position: absolute; right: 6px; bottom: -26px; width: 132px; pointer-events: none; }
[data-screen='checking'] .caption { top: 12px; bottom: auto; }
.dim img { filter: saturate(0.5) brightness(0.8); }
.build img { filter: saturate(0.6) brightness(0.92); }
.shimmer { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.35) 50%, transparent 65%); background-size: 250% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.build .caption { display: flex; align-items: center; gap: 0.6rem; }
.build .caption::before { content: ''; width: 0.9em; height: 0.9em; flex: none; border: 2.5px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.road { position: relative; height: 104px; margin: 0.4rem 12px 0; }
.road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; border-block: 3px solid var(--ink); background: repeating-linear-gradient(90deg, var(--bg) 0 46px, var(--ink) 46px 49px); }
.walker { position: absolute; bottom: 15px; left: calc(var(--p, 0) * (100% - 112px)); height: 86px; width: auto; }
.walker[data-park] { left: calc(100% - 140px); }
.keep { padding: 0.9rem var(--gut) 0; text-align: center; font-size: 0.92rem; color: var(--muted); }
.keep .link { color: var(--ink); padding: 0.3rem; }

/* ---- 7. result ---- */
[data-screen='result'] .head { grid-template-columns: 1fr auto; align-items: end; }
[data-screen='result'] .head .kicker { grid-column: 1; }
[data-screen='result'] .head .h { grid-column: 1; }
.guy-thumbs { position: absolute; right: 14px; top: 6px; height: 104px; width: auto; pointer-events: none; }
[data-screen='result'] { position: relative; }
[data-screen='result'] .head { padding-right: 92px; }
.result-pic { padding: 1.2rem 12px 0; }
.result-pic .ba { width: min(100%, calc(70svh * 9 / 16)); }
.result-styles { justify-content: center; margin-top: 1rem; }
.result-actions { display: grid; gap: 0.75rem; padding: 1.4rem var(--gut) 0; justify-items: center; text-align: center; }
.result-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; width: 100%; }
.after-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.6rem; }
.ba-busy { position: absolute; left: 12px; right: 12px; bottom: 54px; z-index: 2; display: grid; gap: 0.45rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.95rem; }
.ba-busy i { display: block; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.ba-busy b { display: block; height: 100%; width: 0; background: var(--accent); }

@media (min-width: 700px) {
  :root { --gut: 28px; }
  .tips { padding-inline: 0; }
  .stage, .result-pic { padding-inline: 0; }
}

body[data-full] .proto { display: none; }

/* the bot check only shows itself when Cloudflare wants a tap */
.ts:empty { display: none; }
.ts { margin-bottom: 0.4rem; }
.ts-say { margin: 0 0 0.4rem; color: #fff; font-weight: 700; font-size: 0.95rem; text-align: center; }
body:not([data-ts-ask]) .ts-say { display: none; }
body[data-ts-ask] .review-pic { bottom: calc(250px + var(--safe-b)); }
[data-use]:disabled { opacity: 0.75; cursor: progress; }
.guy-stop { display: block; width: 200px; margin: 2rem auto 0; }
[data-screen='stop'] .dock-in { gap: 0.8rem; }
