/* Daltona landing page. The app's dark ground, its small corner radii and its lens:
   a thin bright rim, a dark hairline outside it, a soft dropped shadow, a shade inside the edge. */
:root{color-scheme:dark;--bg:#161616;--paper:#222;--ink:#EDEDED;--ink2:#A6A6A6;--line:#383838;--accent:#86AEF5}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif}
a{color:inherit}
a:focus-visible,button:focus-visible,.divider:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Phone first: words, then the photo edge to edge, then the controls under the thumb. */
.page{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "stage" "controls" "foot"}
.top,.controls,.foot{width:100%;max-width:680px;margin:0 auto;padding-left:16px;padding-right:16px}
.top{grid-area:top;padding-top:16px;padding-bottom:10px}
.brand{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:1.05rem;font-weight:700;letter-spacing:-.01em}
.brand svg{width:22px;height:22px;flex:none}
h1{margin:0 0 14px;font-size:clamp(1.7rem,7.6vw,2.5rem);line-height:1.08;font-weight:750;letter-spacing:-.025em;text-wrap:balance}
.nb{white-space:nowrap}
.lead{margin:-6px 0 14px;font-size:1.05rem;color:var(--ink2)}
.store{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:0 24px;border-radius:8px;background:#fff;color:#111;font-size:1.06rem;font-weight:700;text-decoration:none}
.store svg{width:19px;height:19px;flex:none}
.store:hover{background:#DADADA}
h2{margin:18px 0 0;font-size:1.12rem;font-weight:700;letter-spacing:-.01em}

.stage{grid-area:stage;position:relative;overflow:hidden;width:100%;aspect-ratio:var(--ar,1);min-height:220px;max-height:52vh;max-height:52svh;background:#000;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.stage img,.stage canvas{position:absolute;top:0;left:0;width:100%;height:100%;display:block}
.stage img{object-fit:cover}
.stage canvas{pointer-events:none}
.stage:not(.on) canvas,.stage:not(.on) .lens,.stage:not(.on) .divider{visibility:hidden}
.lens{position:absolute;top:0;left:0;width:150px;height:150px;margin:0;padding:0;border:3.5px solid rgba(255,255,255,.96);border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 44%),radial-gradient(closest-side,rgba(0,0,0,0) calc(100% - 16px),rgba(0,0,0,.26));box-shadow:0 0 0 1px rgba(0,0,0,.38),0 8px 30px rgba(0,0,0,.5);color:inherit;cursor:grab;touch-action:none;will-change:transform;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
.dragging,.dragging .lens{cursor:grabbing}
.split{cursor:ew-resize}
.divider{position:absolute;top:0;bottom:0;left:-22px;width:44px;cursor:ew-resize;touch-action:none;will-change:transform}
.divider:before{content:"";position:absolute;top:0;bottom:0;left:21px;width:2px;background:rgba(255,255,255,.96);box-shadow:0 0 0 1px rgba(0,0,0,.38)}
.knob{position:absolute;top:50%;left:0;width:44px;height:44px;margin-top:-22px;border-radius:50%;background:#fff;color:#111;box-shadow:0 0 0 1px rgba(0,0,0,.38),0 4px 14px rgba(0,0,0,.5);display:grid;place-items:center}
.knob svg{width:22px;height:22px}
.chip{position:absolute;margin:0;padding:7px 10px;border-radius:6px;background:rgba(17,17,17,.74);color:#fff;font-size:.8rem;line-height:1.25;pointer-events:none;max-width:calc(100% - 24px)}
.caption{left:12px;bottom:12px}
.caption b{display:block;font-size:.95rem}
.split .caption{left:auto;right:12px;text-align:right}
.original{left:12px;bottom:12px;font-weight:700;font-size:.95rem}
.hint{top:12px;right:12px;white-space:nowrap;font-weight:600}
.page:not(.js) .hint,.split .hint{display:none}
.drop{position:absolute;top:0;left:0;right:0;bottom:0;display:none;place-items:center;background:rgba(17,17,17,.78);border:2px dashed #fff;font-size:1.3rem;font-weight:700;pointer-events:none}
.dropping .drop{display:grid}

.controls{grid-area:controls;display:grid;gap:14px;padding-top:14px;padding-bottom:4px;container-type:inline-size}
fieldset{min-width:0;margin:0;padding:0;border:0}
legend{padding:0;margin:0 0 6px;font-size:.84rem;color:var(--ink2)}
.opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.two .opts{grid-template-columns:repeat(2,minmax(0,1fr))}
.opt{position:relative;display:block}
.opt input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.opt span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:100%;min-height:48px;padding:7px 3px;border:1px solid var(--line);border-radius:6px;background:var(--paper);text-align:center;font-size:.86rem;font-weight:650;line-height:1.15}
.opt b{display:flex;flex-direction:column;gap:3px;font-weight:inherit}
.opt small{font-size:.7rem;font-weight:400;color:var(--ink2)}
.opt i{flex:none;width:22px;height:22px;border-radius:50%;background:var(--line);box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
/* Vision types: two by two with the dot beside the name where it is narrow, four across where there is room. */
.vision .opts{grid-template-columns:repeat(2,minmax(0,1fr))}
.vision .opt span{flex-direction:row;justify-content:flex-start;gap:10px;min-height:52px;padding:7px 12px;text-align:left}
@container (min-width:364px){
.vision .opts{grid-template-columns:repeat(4,minmax(0,1fr))}
.vision .opt span{flex-direction:column;justify-content:center;gap:6px;padding:9px 3px;text-align:center}
.vision .opt b{align-items:center}
}
.opt input:checked+span{background:var(--ink);border-color:var(--ink);color:#111}
.opt input:checked+span small{color:#3d3d3d}
.opt input:checked+span i{box-shadow:0 0 0 1.5px #111}
.opt input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
fieldset:disabled .opt span{opacity:.38}
fieldset:disabled .opt input{cursor:default}
.note{margin:6px 0 0;font-size:.8rem;color:var(--ink2)}
.pick{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;border:1.5px solid var(--ink);border-radius:6px;font-size:.95rem;font-weight:700;text-align:center;cursor:pointer}
.pick input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;font-size:0}
.pick:hover{background:var(--paper)}
.pick:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.private{margin:0;font-size:.86rem;color:var(--ink2)}
.private button{margin:0 0 0 6px;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:650;text-decoration:underline;cursor:pointer}
.status{margin:0;min-height:1.2em;font-size:.86rem;color:var(--ink)}
.foot{grid-area:foot;padding-top:10px;padding-bottom:36px;font-size:.86rem;color:var(--ink2)}
.foot p{margin:0 0 8px}
.foot a{color:var(--ink);font-weight:600}

@media(min-width:600px){
.top{padding-top:28px}
.stage{max-height:60vh;max-height:60svh}
}

/* Laptop: the photo fills the left of the window from edge to edge; everything else is beside it. */
@media(min-width:960px){
.page{grid-template-columns:minmax(0,1.3fr) minmax(400px,.7fr);grid-template-rows:auto auto 1fr;grid-template-areas:"stage top" "stage controls" "stage foot";min-height:100vh}
.stage{position:sticky;top:0;height:100vh;height:100svh;max-height:none;aspect-ratio:auto}
.top,.controls,.foot{max-width:560px;margin:0;padding-left:40px;padding-right:40px}
.top{padding-top:32px}
h1{font-size:clamp(2.1rem,3.1vw,3rem);margin-bottom:20px}
.lead{font-size:1.15rem;margin:-10px 0 20px}
.store{display:inline-flex}
h2{margin-top:26px;font-size:1.25rem}
.foot{padding-bottom:24px}
.caption{left:20px;bottom:20px}
.split .caption{right:20px}
.original{left:20px;bottom:20px}
.hint{top:20px;right:20px}
}

/* The 404 page. */
.lost{min-height:100vh;display:grid;place-content:center;justify-items:start;gap:14px;padding:24px}
.lost h1{margin:0}
.lost p{margin:0;color:var(--ink2)}
