*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--canvas);color:var(--ink);font:var(--text-body)/var(--leading-body) system-ui,-apple-system,sans-serif;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main,header,footer{width:100%;max-width:var(--container);margin:0 auto;padding:var(--space-16)}
main{flex:1 0 auto;padding-bottom:var(--space-32)}
h1,h2,h3{font-family:Georgia,serif;margin:0 0 var(--space-12)}
h1{font-size:var(--text-display);line-height:var(--leading-display)}
h2{font-size:var(--text-title);line-height:var(--leading-title)}
h3,h4{font-size:var(--text-subhead);line-height:var(--leading-subhead)}
h3{margin-bottom:var(--space-12)}
h4{margin:var(--space-16) 0 var(--space-8)}
p{margin:0 0 var(--space-12)}
header,nav{display:flex;gap:var(--space-8) var(--space-16);align-items:center;flex-wrap:wrap}
header{justify-content:space-between}
a{color:inherit}
nav a{padding:var(--space-12);min-height:48px;display:inline-flex;align-items:center}
main>section{margin:var(--section-gap) 0 0}
main>:first-child{margin-block-start:0}
.card{padding:var(--card-inset);background:var(--surface);border:1px solid var(--soft);border-radius:var(--radius-card);min-width:0}
.hero{display:grid;gap:var(--space-12)}
.hero>*{min-width:0}
.grid,.pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12)}
.cards{display:grid;gap:var(--space-16)}
.cards>*{min-width:0}
.wide{grid-column:1/-1}
button,.button,input[type=text],input[type=email]{font:inherit;min-height:52px;padding:var(--space-12) var(--space-16);border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink)}
input[type=text],input[type=email]{padding:var(--space-12)}
button,.button{cursor:pointer;text-align:center;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
button:hover,.button:hover{background:var(--sel)}
button:disabled{cursor:not-allowed;opacity:.55}
.primary{background:var(--ink);color:#fff}
.primary:hover{background:#28553f}
.full{width:100%}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.small,figcaption{font-size:var(--text-small);line-height:var(--leading-small);color:var(--muted)}
.badge{color:var(--cran);font-weight:700;font-size:var(--text-small);line-height:var(--leading-small)}
img{display:block;width:100%;height:auto;border-radius:var(--radius-control)}
figure{margin:0;min-width:0}
fieldset{border:0;padding:0;margin:var(--space-24) 0;min-width:0}
legend{font-weight:700;margin-bottom:var(--space-12);padding:0}
input[type=text],input[type=email]{width:100%}
.note{background:var(--sel);border-radius:var(--radius-control);padding:var(--space-12) var(--space-16)}
.faq,.legal,#rules>p,footer p{max-inline-size:var(--measure);margin-inline-start:0}
.faq h3{margin:var(--space-24) 0 var(--space-8)}
.faq p{margin:0}
.legal h2{margin-top:var(--space-48)}
.legal h3{margin-top:var(--space-24)}
.legal table{border-collapse:collapse;max-width:100%;margin-bottom:var(--space-16)}
.legal th,.legal td{border:1px solid var(--line);padding:var(--space-8) var(--space-12);text-align:left}
footer{border-top:1px solid var(--soft);padding-bottom:var(--space-48)}
h1,h2,h3,h4,legend,p,label,button,a,summary,li,td,th{overflow-wrap:anywhere}
[hidden]{display:none!important}
.hero-example{margin:var(--space-16) 0 0}
.ba-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-8)}
.ba{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:var(--radius-control);background:var(--soft);margin:0}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:0}
.hero-example .tag{position:absolute;background:rgb(255 255 255 / 92%);color:#1f2d24;font-weight:700;font-size:var(--text-small);line-height:var(--leading-small);padding:var(--space-4) var(--space-12);border-radius:var(--radius-pill);box-shadow:var(--shadow-tag)}
.ba .tag{left:var(--space-8);top:var(--space-8)}
.hero-example figcaption{margin-top:var(--space-4)}
.qr-block{display:none}
.brand{text-decoration:none;display:inline-block;padding:var(--space-12) 0}
.skip{position:absolute;left:-999px}
.skip:focus{left:var(--space-8);top:var(--space-8);background:var(--surface);padding:var(--space-12);z-index:9}
#prices .cards>.card{display:flex;flex-direction:column}
#prices .cards>.card>button{margin-top:auto}
@media(min-width:600px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* credits pill: phone = left of the burger, desktop = after the links */
.credits-pill{display:inline-flex;align-items:center;min-height:48px;padding:0 var(--space-12);border:2px solid var(--ink);border-radius:var(--radius-pill);background:var(--sel);color:var(--ink);font-size:var(--text-small);line-height:var(--leading-small);font-weight:700;text-decoration:none;white-space:nowrap;margin-left:auto;order:3}
.credits-pill:not([href]){border-color:var(--soft)}
.credits-pill[href]{background:var(--ink);color:#fff}
.return-banner{display:none;position:sticky;top:0;z-index:30;align-items:center;gap:var(--space-12);padding:var(--space-12) var(--space-16);background:var(--ink);color:#fff}
.ec-return .return-banner{display:flex}
.return-banner .spinner{width:24px;height:24px;border-width:3px;margin:0;border-color:rgb(255 255 255 / 35%);border-top-color:#fff;flex:none}
/* burger menu on phones; desktop shows links in a row */
.burger{display:none}
@media(max-width:768px){
header{position:relative;flex-wrap:nowrap;padding-top:var(--space-8);padding-bottom:var(--space-8)}
.credits-pill{order:0;padding:0 var(--space-8)}
main{padding-top:var(--space-8)}
.burger{display:inline-flex;flex-direction:column;justify-content:center;align-items:stretch;gap:var(--space-4);width:48px;height:48px;padding:var(--space-12);background:none;border:2px solid var(--ink);border-radius:var(--radius-control);cursor:pointer}
.burger span{display:block;height:2px;background:var(--ink);border-radius:2px}
header nav{display:none;position:absolute;right:var(--space-16);top:100%;z-index:20;flex-direction:column;align-items:stretch;gap:0;background:var(--surface);border:1px solid var(--soft);border-radius:var(--radius-control);box-shadow:var(--shadow-menu);min-width:200px;padding:var(--space-4)}
header nav.open{display:flex}
/* compact hero on phones so the photo actions start on the first screen */
.hero .badge{display:none}
.hero h1{margin-bottom:var(--space-8)}
.hero>div>p{margin-bottom:0}
.hero-example{margin-top:var(--space-12);max-width:560px;margin-left:auto;margin-right:auto}
.hero-example figcaption{text-align:center}
#tool fieldset{margin:var(--space-12) 0}
}

/* My photos window (js/photos.js). Phone = full-height sheet; wider = centered box at --modal. */
html.modal-open,html.modal-open body{overflow:hidden}
.modal{position:fixed;inset:0;z-index:50;display:flex;align-items:stretch;justify-content:center;background:rgb(23 62 45 / 55%)}
.modal-box{display:flex;flex-direction:column;width:100%;max-width:var(--modal);background:var(--canvas);overflow:hidden;outline:none}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);padding:var(--space-8) var(--space-8) var(--space-8) var(--space-16);border-bottom:1px solid var(--soft);background:var(--surface)}
.modal-head h2{margin:0;font-size:var(--text-subhead);line-height:var(--leading-subhead)}
.modal-x{width:48px;height:48px;min-height:48px;padding:0;font-size:var(--text-title);line-height:var(--leading-title)}
.cam-video{display:block;width:100%;max-height:60dvh;background:var(--ink);border-radius:var(--radius-control);object-fit:contain}.cam-body .stack{margin-top:var(--space-16)}
.modal-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:var(--space-16);overscroll-behavior:contain;min-width:0}
.pm-sec{margin:0 0 var(--space-24);min-width:0}
.pm-sec h3{margin-bottom:var(--space-8)}
.pm-balance{font-size:var(--text-subhead);line-height:var(--leading-subhead);font-weight:700;margin-bottom:var(--space-4)}
.pm-sec .stack .btn{width:100%}
.pm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-8);margin-bottom:var(--space-12)}
.pm-thumb{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-4);padding:var(--space-4);min-height:48px;min-width:0}
.pm-thumb img{aspect-ratio:1;object-fit:cover}
.pm-view img{margin-bottom:var(--space-8)}
.pm-view .stack{margin-top:var(--space-8)}
@media(min-width:600px){
.modal{align-items:center;padding:var(--space-24)}
.modal-box{max-height:calc(100dvh - var(--space-48));border-radius:var(--radius-card);box-shadow:var(--shadow-menu)}
.pm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stack{display:flex;flex-direction:column;gap:var(--space-12);margin-bottom:var(--space-12)}
.row{display:flex;flex-wrap:wrap;gap:var(--space-12);margin-bottom:var(--space-12)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:var(--space-12) var(--space-16);border:2px solid var(--ink);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font:500 var(--text-body)/var(--leading-body) system-ui,sans-serif;text-align:center;text-decoration:none;cursor:pointer;-webkit-appearance:none;appearance:none}
.btn.primary{background:var(--ink);color:#fff;min-height:52px}
.btn.full{width:100%}
.btn[disabled]{opacity:.55;cursor:not-allowed}
input:focus-visible+*,.btn:focus-visible,.spot:focus-visible,input:focus-visible,summary:focus-visible,button:focus-visible,a:focus-visible,h3:focus-visible,input[type=file]:focus-visible+.btn,.visually-hidden:focus-visible+*,label.btn:focus-within{outline:3px solid var(--focus);outline-offset:3px}
input[type=text],input[type=email]{width:100%;min-height:48px;padding:var(--space-12);border:2px solid var(--line);border-radius:var(--radius-control);font:var(--text-body)/var(--leading-body) system-ui,sans-serif;margin:var(--space-4) 0 var(--space-8);background:var(--surface);color:var(--ink)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12);margin-bottom:var(--space-12)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-8);margin:var(--space-12) 0}
.grid3 button{min-height:48px}
/* Choice cards: 12px inset, 2px border in every state, 24px control track + 12px gap, 24px right reserve for the check */
.choice{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-8);position:relative;min-width:0;min-height:48px;padding:var(--space-12);border:2px solid var(--line);border-radius:var(--radius-card);background:var(--surface);cursor:pointer;overflow-wrap:anywhere;text-align:left;line-height:var(--leading-body)}
.choice.slim,.choice.wide{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:var(--space-12);align-items:start;justify-content:start;padding-right:var(--space-24);border-radius:var(--radius-control);margin-bottom:var(--space-12)}
.choice img{width:100%;height:auto;aspect-ratio:3/2;border-radius:var(--radius-control);display:block}
.choice input{width:24px;height:24px;margin:0;flex:none;align-self:start;accent-color:var(--ink)}
.choice:has(input:checked){background:var(--sel);border-color:var(--ink)}
.choice:has(input:checked)::after{content:"✓";position:absolute;right:var(--space-12);top:var(--space-12);font-size:var(--text-small);line-height:var(--leading-body);font-weight:700}
.choice:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.choice .name{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:var(--space-12);align-items:start;justify-content:start;padding-right:var(--space-24);line-height:var(--leading-body);text-align:left}
.badge{display:inline-block;font-size:var(--text-small);line-height:var(--leading-small);padding:0 var(--space-8);border-radius:var(--radius-control);background:var(--sel)}
.msg{padding:var(--space-12);border-radius:var(--radius-control);border:2px solid var(--line);margin:var(--space-12) 0}
.msg.error{border-color:var(--cran);color:var(--cran);background:var(--surface)}
.spot-wrap{max-width:100%}
.spot{position:relative;display:block;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;line-height:0;border-radius:var(--radius-control);overflow:hidden;cursor:crosshair}
.spot img{width:100%;height:auto;display:block;pointer-events:none}
/* Marker offsets center the circle and the 14px crosshair: documented geometry exception, not layout spacing */
.marker{position:absolute;width:48px;height:48px;margin:-24px 0 0 -24px;border:3px solid var(--cran);border-radius:50%;background:rgb(255 255 255 / 35%);pointer-events:none}
.marker i{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;background:
 linear-gradient(var(--cran),var(--cran)) center/2px 100% no-repeat,linear-gradient(var(--cran),var(--cran)) center/100% 2px no-repeat}
.marker.small{width:32px;height:32px;margin:-16px 0 0 -16px}
.toys{list-style:none;padding:0;margin:var(--space-12) 0;display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-12)}
.toys li{display:flex;flex-direction:column;gap:var(--space-8)}
.toys img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius-control)}
#result-img{width:100%;height:auto;display:block;border-radius:var(--radius-control);margin-bottom:var(--space-12);-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}
.spinner{width:40px;height:40px;border:4px solid var(--soft);border-top-color:var(--ink);border-radius:50%;animation:spin 1s linear infinite;margin:var(--space-16) 0}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none;border-top-color:var(--soft);border-left-color:var(--ink)}}
@media (min-width:900px){#tool .stack{flex-direction:row;flex-wrap:wrap}#tool .stack .btn{flex:1 1 180px}}

/* Direction D: photo-led hero, aligned upload ledge, quiet editorial continuation. */
body{font-family:var(--body-font)}h1,h2{font-family:var(--display-font);font-weight:600;letter-spacing:-.025em;text-wrap:balance}h3,h4{font-family:var(--body-font)}h1{font-size:var(--text-display);line-height:1}h2{font-size:var(--text-display);line-height:1.1}h3{font-size:var(--text-subhead)}p{max-width:var(--measure)}button,.btn,input[type=text],input[type=email]{font-family:var(--body-font)}button,.btn{padding:var(--space-12) var(--space-24)}.primary,.btn.primary{background:var(--ink);color:var(--cream)}.btn:hover,button:hover{background:var(--sel);color:var(--ink)}.btn.primary:hover{background:var(--red);color:var(--white)}
header{height:96px;padding:0 var(--space-24);flex-wrap:nowrap;position:relative;z-index:4}header nav{gap:0}header .brand{font-size:var(--text-subhead)}.logo-slot{width:160px;min-height:48px;display:inline-flex;align-items:center;white-space:nowrap}.credits-pill{order:0;margin:0}main{max-width:none;padding:0}main>section{margin:0;padding:var(--space-96) var(--space-24);max-width:var(--container);margin-inline:auto}footer{max-width:var(--container);padding:var(--space-48) var(--space-24)}footer nav{display:flex;flex-wrap:wrap}.home header{position:absolute;left:0;right:0;color:var(--cream)}.home header a:focus-visible{outline-color:var(--gold)}.home header .brand{background:var(--ink)}.home .burger{border-color:var(--cream)}.home .burger span{background:var(--cream)}
.scene{height:900px;position:relative;background:var(--ink);color:var(--cream)}.scene-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 80%;border-radius:0}.scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,hsl(150 25% 9%/0) 20%,var(--ink) 85%)}.hero-copy{position:absolute;z-index:1;left:auto;right:max(48px,calc((100vw - var(--content))/2));width:648px;top:var(--space-128);padding-top:var(--space-48)}.hero-copy h1{font-size:var(--text-hero);max-width:600px;line-height:1}.hero-copy p{font-size:var(--text-subhead);max-width:440px}.hero-copy .badge{background:none;color:var(--cream);padding:0}.upload-bar{position:absolute;z-index:2;right:max(48px,calc((100vw - var(--content))/2));bottom:var(--space-48);width:648px;background:var(--cream);color:var(--ink);padding:var(--space-24) var(--space-32);border-radius:var(--radius-pill);display:flex;align-items:center;gap:var(--space-16)}.upload-bar button{border-radius:var(--radius-pill);white-space:nowrap}.upload-bar p{font-size:var(--text-small);margin:0}.scene-caption{position:absolute;left:var(--space-48);bottom:var(--space-48);z-index:2;background:var(--ink);color:var(--cream);padding:var(--space-8) var(--space-16);font-size:var(--text-small)}
/* Align text to bar outer left, never inset the headline by its own padding. */
.workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:var(--space-64);align-items:start}.tool-intro{position:sticky;top:var(--space-32)}.hero-example{margin-top:var(--space-32)}#tool{border:0;background:var(--white);padding:var(--space-32);border-radius:var(--radius-card)}#tool h2{font-size:var(--text-title)}#tool fieldset{margin:var(--space-32) 0}#tool .stack{flex-direction:row;flex-wrap:wrap}#tool .stack>*{flex:1}#tool .choice{border-radius:var(--radius-control)}#tool .choice img{object-fit:contain}#tool .btn{font-weight:400}.grid2{gap:var(--space-12)}.pairs{gap:var(--space-24)}#examples .cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:var(--space-32)!important}#examples .cards img{aspect-ratio:3/2;object-fit:cover}#examples{border-top:1px solid var(--line)}.cards{gap:var(--space-32)}#how .cards:not(.two){display:block;max-width:var(--measure)}#how .cards:not(.two) article{display:grid;grid-template-columns:1fr 1.4fr;gap:var(--space-32);border-top:1px solid var(--line);padding:var(--space-24) 0}#how .two{margin-top:var(--space-48)!important}#how .two .card{border:0;padding:var(--space-32);background:var(--soft)}#prices{background:var(--ink);color:var(--cream);max-width:none}#prices>*{max-width:var(--content);margin-inline:auto}#prices .cards{margin-top:var(--space-32)}#prices .card{background:transparent;border-color:var(--line);color:var(--cream);padding:var(--space-32);border-radius:var(--radius-card)}#prices strong{font-size:var(--text-title)}#prices button{background:var(--cream);color:var(--ink)}#prices .small{color:var(--cream)}#prices :focus-visible{outline-color:var(--gold)}.faq{max-inline-size:var(--container)}.faq p{max-width:var(--measure)}.faq h3{margin-top:var(--space-32)}#rules{padding-top:0}.end-action{margin-top:var(--space-32)}.qr-block{display:block;border-top:1px solid var(--line);margin-top:var(--space-48);padding-top:var(--space-32)}#qr-code{width:160px;max-width:50%;background:var(--white);padding:var(--space-12)}#qr-code svg{display:block;width:100%;height:auto}.legal{max-inline-size:var(--container)}.legal h1{margin-bottom:var(--space-48)}.legal h3{margin-top:var(--space-32)}.legal table{width:auto}.legal p{max-width:var(--measure)}.state-links{display:flex;flex-wrap:wrap;gap:var(--space-16);margin-bottom:var(--space-32)}.state-links a{min-height:48px;display:inline-flex;align-items:center}.catalog article{border-top:1px solid var(--line);padding:var(--space-24) 0}.catalog h2{font-size:var(--text-title)}.modal-box{background:var(--cream)}.pm-sec{padding:var(--space-16) 0}.consent-panel{max-width:640px;padding:var(--space-32);background:var(--white);border-radius:var(--radius-card);margin-top:var(--space-32)}.consent-panel .row>*{flex:1}.marker{left:50%;top:65%}.toys button{width:100%}.spot{outline:1px solid var(--line)}
@media(max-width:768px){header{height:80px;padding:0 var(--space-24)}.logo-slot{width:128px}.burger{display:inline-flex;flex:none}header nav{background:var(--ink);color:var(--cream)}header nav.open{display:flex}main>section{padding:var(--space-48) var(--space-24)}.scene{height:844px}.hero-copy{left:var(--space-24);right:var(--space-24);width:auto;top:var(--space-128);padding:0}.hero-copy h1{max-width:360px}.hero-copy p{font-size:var(--text-body);max-width:310px}.hero-copy .badge{display:none}.scene-photo{object-position:30% 80%}.scene:after{background:linear-gradient(180deg,var(--ink) 0%,hsl(150 25% 9%/0) 65%,var(--ink) 100%)}.upload-bar{left:var(--space-24);right:var(--space-24);width:auto;bottom:var(--space-48);padding:var(--space-16);border-radius:var(--radius-card);display:block}.upload-bar button{width:100%;margin-bottom:var(--space-8)}.scene-caption{left:var(--space-24);bottom:var(--space-8);font-size:var(--text-small);padding:var(--space-4) var(--space-8)}.workbench{display:block}.tool-intro{position:static;margin-bottom:var(--space-32)}#tool{padding:var(--space-16)}#tool fieldset{margin:var(--space-24) 0}#examples .cards{grid-template-columns:1fr;gap:var(--space-32)}.pairs{gap:var(--space-12)}#how .cards:not(.two) article{display:block}#how .cards.two{grid-template-columns:1fr}#prices .cards{grid-template-columns:1fr}#prices .card{padding:var(--space-24)}.qr-block{display:none}.modal{padding:0}.modal-box{max-height:100dvh;height:100dvh;border-radius:0}.logo-slot{font-size:var(--text-subhead)}footer{padding:var(--space-32) var(--space-24)}}
@media(max-width:370px){.scene{height:740px}.hero-copy{top:var(--space-128)}.hero-copy h1{max-width:300px}}
/* Pass 2: keep the familiar elf visible above the phone action ledge. */
.scene{overflow:hidden}.scene-photo{transform:scale(1.15);transform-origin:30% 85%}
@media(max-width:768px){.scene-photo{transform:scale(1.45);transform-origin:31% 88%}}
/* Phone-specific second pass: words remain intact; radio tracks stay aligned. */
.choice,.choice .name,.grid3 button{overflow-wrap:normal;word-break:normal}.choice .name{padding-right:0;column-gap:var(--space-8)}.choice:has(input:checked)::after{display:none}.grid3 button{padding:var(--space-8)}.qr-block{display:flex;flex-direction:column;gap:var(--space-16)}.qr-block>div:last-child{order:-1}.qr-block h2{font-size:var(--text-title)}
@media(max-width:768px){#presets{grid-template-columns:1fr}.grid3 button{padding:var(--space-8) var(--space-4)}.qr-block{display:none}}
/* Final state review: action labels need full-width phone rows too. */
@media(max-width:768px){#tool .stack{flex-direction:column}#tool .stack>*{flex:auto;width:100%}button,.btn{overflow-wrap:normal;word-break:normal}}
/* Updated two-elf photo: reserve the full figures between copy and upload. */
@media(max-width:768px){.scene-photo{transform:none;top:0;height:660px;object-position:18% 100%}.hero-copy h1{font-size:64px;max-width:none}.hero-copy{top:112px}.scene:after{background:linear-gradient(180deg,var(--ink) 0%,hsl(150 25% 9%/.1) 35%,hsl(150 25% 9%/0) 65%,var(--ink) 82%)}}
@media(max-width:480px){.scene-photo{top:90px;height:520px}.hero-copy{top:104px}.hero-copy h1{font-size:48px;max-width:none}.scene:after{background:linear-gradient(180deg,var(--ink) 0%,hsl(150 25% 9%/.75) 26%,hsl(150 25% 9%/0) 40%,hsl(150 25% 9%/0) 68%,var(--ink) 78%)}}
@media(max-width:370px){.scene-photo{top:60px;height:450px}}

/* MVP-455: D continues as a sequence of photo spreads and forest/cream panels.
   Hero geometry deliberately inherited verbatim above. */
.home .workbench{display:block}
.home .tool-intro{position:static;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:var(--space-64);margin-bottom:var(--space-48)}
.home .tool-intro h2{max-width:12ch;margin:0}
.home .tool-intro .hero-example{margin:0}
.home #tool{border:1px solid var(--line);padding:var(--space-32);background:var(--soft)}
.home #tool>h2{font-size:var(--text-display);padding-bottom:var(--space-24);border-bottom:1px solid var(--line)}
.home #view-form{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-16) var(--space-48);align-items:start}
.home #view-form>fieldset{margin:0;padding-block:var(--space-24);border-bottom:1px solid var(--line)}
.home #step-photo,.home #step-spot,.home #step-style,.home #elig,.home #why-disabled,.home #make,.home #form-error{grid-column:1/-1}
.home #step-style .choice{display:inline-grid;margin-right:var(--space-16)}
.home #elig,.home #why-disabled{margin:0}
.home #examples{max-width:none;background:var(--ink);color:var(--cream);border:0;padding-inline:max(var(--space-24),calc((100vw - var(--content))/2))}
.home #examples h2{max-width:14ch;margin-bottom:var(--space-48)}
.home #examples figcaption{color:var(--cream);padding-top:var(--space-12)}
.home #examples .pairs{grid-template-columns:1fr 1.4fr;align-items:center;gap:var(--space-48)}
.home #examples img{border-radius:0}
.home #examples .cards{margin-top:var(--space-64)!important;gap:var(--space-32);align-items:start}
.home #examples .cards figure:nth-child(2){padding-top:var(--space-48)}
.home #examples .cards figure:nth-child(3){padding-top:var(--space-96)}
.home #how{display:grid;grid-template-columns:1fr 1.4fr;gap:var(--space-48)}
.home #how>h2{max-width:8ch}
.home #how .cards:not(.two){max-width:none}
.home #how .cards:not(.two) article{grid-template-columns:1fr;gap:var(--space-8)}
.home #how .cards article h3{margin:0}
.home #how .cards.two{grid-column:1/-1;margin-top:0!important;gap:var(--space-48)}
.home #how .cards.two .card{border-radius:0;border-top:1px solid var(--line);padding:var(--space-32) 0;background:none}
.home #how .cards.two h3{font-family:var(--display-font);font-size:var(--text-title);margin-bottom:var(--space-16)}
.home #how .qr-block{grid-column:2;margin-top:0}
.home #faq{display:grid;grid-template-columns:1fr 1.4fr;gap:var(--space-48)}
.home #faq{max-inline-size:var(--container);margin-inline:auto}
.home #faq>h2{max-width:9ch}
.home .faq-answers article{padding:var(--space-24) 0;border-top:1px solid var(--line)}
.home .faq-answers h3{margin:0 0 var(--space-12)}
.home #rules{max-width:none;background:var(--ink);color:var(--cream);padding:var(--space-64) max(var(--space-24),calc((100vw - var(--content))/2));display:grid;grid-template-columns:1fr 1.4fr;gap:var(--space-24) var(--space-48)}
.home #rules h2{max-width:9ch;grid-row:span 2}
.home #rules .end-action{margin:0}
.home #rules .primary{background:var(--cream);color:var(--ink)}
.home #rules :focus-visible{outline-color:var(--gold)}
@media(max-width:768px){
.home .tool-intro{display:block;margin-bottom:var(--space-32)}
.home .tool-intro h2{max-width:none;margin-bottom:var(--space-24)}
.home #tool{padding:var(--space-16)}
.home #tool>h2{font-size:var(--text-title)}
.home #view-form{display:block}
.home #view-form>fieldset{margin-bottom:var(--space-24);padding-block:var(--space-16)}
.home #step-style .choice{display:grid;margin-right:0}
.home #elig,.home #why-disabled{margin-bottom:var(--space-12)}
.home #examples h2{margin-bottom:var(--space-32)}
.home #examples .pairs{grid-template-columns:1fr;gap:var(--space-24)}
.home #examples .cards{margin-top:var(--space-32)!important}
.home #examples .cards figure:nth-child(n){padding-top:0}
.home #examples .cards figure{border-top:1px solid var(--line);padding-top:var(--space-24)}
.home #how,.home #faq,.home #rules{display:block}
.home #how>h2,.home #faq>h2,.home #rules h2{max-width:none;margin-bottom:var(--space-32)}
.home #how .cards.two{margin-top:var(--space-32)!important;gap:var(--space-24)}
.home #rules{padding-block:var(--space-48)}
.home #rules .end-action{margin-top:var(--space-24)}
/* Paid balance stays visible without squeezing the first-screen header. */
header:has(.credits-pill[aria-label^="Photos left"]){gap:var(--space-8)}
.credits-pill[aria-label^="Photos left"]{display:inline-flex;padding-inline:var(--space-8)}
header:has(.credits-pill[aria-label^="Photos left"]) .logo-slot{width:auto;font-size:var(--text-body)}
}


/* Second pass: each desktop decision occupies a complete row, avoiding an
   empty action column beneath the taller four-character chooser. */
@media(min-width:769px){
.home #step-char,.home #step-action{grid-column:1/-1}
.home #chars{grid-template-columns:repeat(4,minmax(0,1fr))}
.home #presets{grid-template-columns:repeat(3,minmax(0,1fr))}
.home #chars>.wide{grid-column:1/-1}
}

/* MVP-456: existing gold focus on the forest home header, including D1 menu. */
.home header button:focus-visible{outline-color:var(--gold);box-shadow:0 0 0 6px var(--ink)}
/* Compact visual choices: retain native radios, exact values and full labels. */
.home #presets{display:flex;flex-wrap:wrap;gap:var(--space-12)}
.home #presets .choice{padding:var(--space-12);border-radius:var(--radius-pill)}
.home #step-action>.choice{display:inline-grid;border-radius:var(--radius-pill)}
.home #step-style .choice,.home #step-spot .choice{border-radius:var(--radius-pill)}
@media(min-width:769px){
.home #chars{grid-template-columns:repeat(5,minmax(0,1fr))}
.home #chars>.wide{grid-column:auto;margin:0;align-content:center}
.home #chars .choice img{max-height:128px}
.home #chars .name{padding-right:0}
.home #chars .choice:has(input:checked)::after{top:var(--space-4);right:var(--space-4)}
}
@media(max-width:768px){
.home #presets .choice{width:100%}
}

/* MVP-468: phone corrections from Vitalii. Phone = max 768px; desktop stays as it was. */
/* Primary button: the generic button:hover rule turned the label dark on the green hover/pressed background. Label stays cream in every state. */
.primary:hover,.primary:focus,.primary:focus-visible,.primary:active,.btn.primary:focus,.btn.primary:focus-visible{background:var(--ink-hover);color:var(--cream)}
.btn.primary:hover,.btn.primary:active{color:var(--white)}
.btn.primary:hover{background:var(--red)}
.btn.primary:active{background:var(--ink)}
.primary:active{background:var(--ink);color:var(--cream)}
.home #rules .primary:hover,.home #rules .primary:focus,.home #rules .primary:active,#prices button:hover,#prices button:active{background:var(--cream);color:var(--ink)}
@media(max-width:768px){
/* 1. Hero headline fills the content column (two lines allowed); the photo moves down by the extra text height so the elves stay clear.
   --f/--s: headline/subtitle size from the column width. --pt: photo top per size band. Elf top is about 57vw below the photo top. */
.scene{--f:clamp(56px,calc((100vw - var(--space-48)) / 4.75),88px);--s:clamp(20px,calc((100vw - var(--space-48)) / 14),28px);--pt:0px;--d:max(0px,calc(104px + 2 * var(--f) + var(--space-8) + 2.8 * var(--s) + var(--space-32) - var(--pt) - 57vw));height:calc(844px + var(--d))}
.scene-photo{top:calc(var(--pt) + var(--d))}
.hero-copy h1{font-size:var(--f);line-height:1;max-width:none}
.hero-copy p{font-size:var(--s);line-height:1.4;max-width:none}
/* 3. Tap gap between the two photo actions */
.upload-bar button{margin-bottom:var(--hero-gap)}
.upload-bar button:last-of-type{margin-bottom:var(--space-8)}
#tool .stack{gap:var(--hero-gap)}
/* 4. Before/After pair uses the full content width, equal side margins */
.hero-example,.home .tool-intro .hero-example{max-width:none;width:100%;margin-inline:0}
/* 5. Step headings */
legend,h3{font-size:var(--text-step);line-height:var(--leading-subhead);font-weight:600}
legend{margin-bottom:var(--space-16)}
/* 6. Radio rows: whole label is the tap target, at least 56px high, 12px apart */
.choice{min-height:var(--tap-row);justify-content:center}
.choice.slim,.choice.wide{min-height:var(--tap-row);align-items:center}
.choice.slim,.choice.wide{margin-bottom:var(--space-12)}
.home #chars .name{min-height:calc(var(--tap-row) - var(--space-4));align-items:center}
.choice input{align-self:center}
.home #step-action>.choice{display:grid;width:100%}
.home #presets .choice{align-items:stretch}
.home #presets .name{align-items:center;column-gap:var(--space-12)}
.grid2,.home #presets,.row{gap:var(--space-12)}
}
@media(max-width:480px){.scene{--pt:90px}}
@media(max-width:370px){.scene{--pt:60px;height:calc(740px + var(--d))}}
/* MVP-478: SVG logo, square burger with X, header on the photo, upload panel on the first phone screen. */
.logo-slot{width:auto;min-height:0}.logo-slot img,.foot-logo img{width:auto;height:36px;border-radius:0}
.home header .brand{background:none}.hero-copy p{text-shadow:0 1px 8px hsl(150 25% 9%/.7)}
.foot-logo{display:block;width:max-content;margin-bottom:var(--space-4)}.foot-logo img{height:32px}
/* MVP-635: "by Prius Lab" is a small line under the logo on every page (it sat beside the logo, lower than it). */
.foot-by{display:block;font-size:var(--text-small);line-height:var(--leading-small);margin:0 0 var(--space-12)}
.burger,.burger:hover,.burger:active,.burger:focus,.burger[aria-expanded=true]{background:transparent;color:inherit;-webkit-tap-highlight-color:transparent}
@media(max-width:768px){
.burger{position:relative;display:inline-flex;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none;touch-action:manipulation}
.burger span{position:absolute;left:50%;top:50%;width:20px;height:2px;margin:-1px 0 0 -10px;transition:transform .2s,opacity .2s}
.burger span:nth-child(1){transform:translateY(-6px)}.burger span:nth-child(3){transform:translateY(6px)}
.burger[aria-expanded=true] span:nth-child(1){transform:rotate(45deg)}.burger[aria-expanded=true] span:nth-child(2){opacity:0}.burger[aria-expanded=true] span:nth-child(3){transform:rotate(-45deg)}
header{height:64px;padding:0 var(--space-16)}
.logo-slot img{height:30px}
header nav{right:var(--space-16)}
.home header{background:linear-gradient(180deg,hsl(150 25% 9%/.8),hsl(150 25% 9%/0))}
.scene{height:calc(100svh + 96px);min-height:640px}
@media(max-width:480px){.scene,.scene:is(*){--pt:0px;--d:0px}}
.scene-photo{transform:none;top:0;bottom:auto;height:calc(100svh - 96px);min-height:420px;object-position:0 0;-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
.scene:after{background:linear-gradient(180deg,hsl(150 25% 9%/.55) 0,hsl(150 25% 9%/.3) 190px,hsl(150 25% 9%/0) 300px)}
.hero-copy{left:var(--space-16);right:var(--space-16);top:56px}
.hero-copy h1{margin-bottom:var(--space-4)}
.hero-copy p{margin-bottom:0;font-size:calc(var(--s)*.9);line-height:1.25}
.hero-copy h1{font-size:calc(var(--f)*.88)}
.upload-bar{left:var(--space-16);right:var(--space-16);bottom:48px;padding:var(--space-12);background:hsl(45 35% 92%/.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.upload-bar p{margin:0}
.upload-bar button{margin-bottom:var(--hero-gap)}
.upload-bar button:last-of-type{margin-bottom:var(--space-8)}
.scene-caption{left:var(--space-16);bottom:var(--space-8)}
main>section{padding-inline:var(--space-16)}
}
/* MVP-480/499: long text with section pictures, version 2 tokens only */
.home .longtext{display:grid;grid-template-columns:1fr 1.4fr;gap:var(--space-48);align-items:start;padding-top:var(--space-48);border-top:1px solid var(--line)}
.home .longtext>h2{max-width:12ch;margin:0}
.lt-body{max-inline-size:var(--measure)}
.lt-body>h3{margin:var(--space-24) 0 var(--space-8)}
.lt-body>h3:first-child{margin-top:0}
.lt-body>p{margin:0 0 var(--space-16)}
.lt-unit{margin:0 0 var(--space-24)}
.lt-unit:last-child{margin-bottom:0}
.lt-pics{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-16);margin:var(--space-8) 0 0;scroll-margin-top:var(--space-24)}
.lt-pics img{display:block;width:100%;height:auto;aspect-ratio:4/3;border-radius:var(--radius-control)}
.lt-pics figcaption{margin-top:var(--space-8)}
.lt-note{grid-column:1/-1;margin:0}
.lt-text>p:last-child{margin-bottom:0}
@media(min-width:600px){.lt-pics{grid-template-columns:repeat(2,minmax(0,1fr))}.lt-pics:has(>figure:only-of-type){grid-template-columns:minmax(0,1fr)}}
@media(min-width:1024px){
.home .longtext{display:block}
.home .longtext>h2{max-width:none;margin:0 0 var(--space-32)}
.lt-body{max-inline-size:none}
.lt-unit{display:grid;grid-template-columns:minmax(0,var(--measure)) minmax(0,1fr);gap:var(--space-48);align-items:start;margin-bottom:var(--space-32)}
.lt-unit:last-child{margin-bottom:0}
.lt-pics{margin:0;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.lt-pics:has(>figure:only-of-type){grid-template-columns:minmax(0,480px)}
}
@media(max-width:1023px){.home .longtext{display:block}.home .longtext>h2{max-width:none;margin-bottom:var(--space-24)}.lt-body{max-inline-size:none}.lt-text{max-inline-size:var(--measure)}}

main>section.legal{margin-inline:auto;max-inline-size:var(--container);padding-inline:var(--space-24)}
/* MVP-492: one phone gutter (16, TOKENS.md) for header, content and footer; step numbers count only visible steps. */
#view-form{counter-reset:step}
#view-form>fieldset>legend::before{counter-increment:step;content:counter(step) ". "}
@media(max-width:768px){
header,footer,main>section,main>section.legal{padding-inline:var(--space-16)}
.home #examples,.home #rules{padding-inline:var(--space-16)}
.hero-copy,.upload-bar{left:var(--space-16);right:var(--space-16)}
.scene-caption{left:var(--space-16)}
}

/* MVP-497: "Your own elf" shares the character-card structure: top area the size of the picture, then radio + name. */
.choice.own .own-top{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/2;border-radius:var(--radius-control);background:var(--sel);color:var(--cran);font-weight:700;font-size:var(--text-small);line-height:var(--leading-small);text-align:center;padding:var(--space-8)}
@media(min-width:769px){.home #chars .choice.own .own-top{max-height:128px}}

/* MVP-509: approved purchase form (design MVP-505). One pattern: pack cards + one Buy button, in the packs view and in Prices. */
.pack-picker{margin:var(--space-16) 0}
.pack-options{border:0;padding:0;margin:0 0 var(--space-16);display:grid;grid-template-columns:1fr;gap:var(--space-8);min-width:0}
.pack-choice{display:grid;grid-template-columns:var(--space-24) minmax(0,1fr);gap:var(--space-12);align-items:center;padding:var(--space-12) var(--space-16);border:2px solid var(--line);border-radius:var(--radius-card);background:transparent;color:inherit;cursor:pointer;position:relative;min-height:var(--tap-row)}
.pack-choice input{margin:0;width:20px;height:20px;accent-color:var(--ink)}
.pack-choice:hover{background:var(--cream)}
.pack-choice:has(input:checked){border-color:var(--ink);background:var(--sel);box-shadow:inset 0 0 0 1px var(--ink)}
.pack-choice:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:var(--space-4)}
.pack-choice input:focus-visible{outline:0}
.pack-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 var(--space-8);align-items:center}
.pack-choice strong{font-family:var(--display-font);font-weight:600;font-size:var(--text-subhead);line-height:var(--leading-display)}
.pack-price{font-weight:600;white-space:nowrap}
.pack-choice .unit,.pack-choice .value{grid-column:1/-1;font-size:var(--text-small);line-height:var(--leading-small)}
.pack-choice .value{justify-self:start;margin-top:var(--space-4);padding:var(--space-4) var(--space-8);border-radius:var(--radius-control);background:var(--ink);color:var(--white)}
.pack-picker button.purchase-cta,:is(#tool,#prices) .pack-picker button.purchase-cta.primary{width:100%;min-height:52px;background:var(--red);border:1px solid var(--red);color:var(--white);font-weight:600;border-radius:var(--radius-control)}
:is(#tool,#prices) .pack-picker button.purchase-cta.primary:hover{background:hsl(352 64% 28%);border-color:hsl(352 64% 28%);color:var(--white)}
:is(#tool,#prices) .pack-picker button.purchase-cta.primary:disabled{background:var(--soft);border-color:var(--line);color:var(--ink);cursor:wait}
.pack-picker .pack-error{margin:var(--space-16) 0 0}
@media(min-width:769px){
.pack-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-16);margin-bottom:var(--space-24)}
.pack-choice{align-items:start;padding:var(--space-24) var(--space-16)}
.pack-choice input{margin-top:var(--space-4)}
.pack-details{display:block}
.pack-choice strong{display:block;font-size:var(--text-title)}
.pack-price{display:block;margin:var(--space-8) 0}
.pack-choice .value{display:inline-block;margin-top:var(--space-12)}
}
/* Prices section is dark: unchecked cards are outlined, checked card is the light selected tone. */
#prices .pack-picker{max-width:var(--content);margin-inline:auto}
#prices .pack-choice{border-color:var(--line);color:var(--cream)}
#prices .pack-choice:hover{background:var(--ink-hover)}
#prices .pack-choice:has(input:checked){background:var(--sel);color:var(--ink);border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
#prices .pack-choice .value{background:var(--gold);color:var(--ink)}
#prices .pack-choice:has(input:checked) .value{background:var(--ink);color:var(--white)}
#prices .pack-choice input{accent-color:var(--cream)}
#prices .pack-choice:has(input:checked) input{accent-color:var(--ink)}
#prices .pack-error{background:var(--surface)}
#prices .pack-picker button.purchase-cta.primary:disabled{background:var(--soft)}
.recovery{border-top:1px solid var(--soft);margin-top:var(--space-24);padding-top:var(--space-16)}
.recovery h4{margin-top:0}
.recovery label{display:block;font-size:var(--text-small);margin-bottom:var(--space-8)}
.recovery input[type=email]{width:100%;min-height:48px;border:1px solid var(--line);border-radius:var(--radius-control);padding:var(--space-12);background:var(--cream);color:var(--ink);font-size:var(--text-body)}
.recovery input[aria-invalid=true]{border-color:var(--red)}
.recovery-actions{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);margin-top:var(--space-12)}
.recovery-actions .text-link{display:inline-flex;align-items:center;min-height:48px;font-size:var(--text-small);color:inherit;text-underline-offset:var(--space-4);white-space:nowrap}
.recovery-actions .btn.secondary{min-height:48px;font-size:var(--text-small);padding:var(--space-8) var(--space-12);background:var(--sel);border-width:1px}
.recovery-actions .btn.secondary:disabled{background:var(--soft);cursor:wait}
#restore-msg.error{color:var(--red)}
@media(min-width:769px){.recovery{margin-top:var(--space-32);padding-top:var(--space-24)}.recovery-actions .btn.secondary{padding-inline:var(--space-16)}}
.pack-choice .unit{display:block}
/* MVP-513: purchase view matches the approved surface: white card, display-font heading, thin rule above recovery. */
.home #tool:has(#view-packs:not([hidden])){background:var(--white);border:0;border-radius:var(--radius-card);padding:var(--space-24)}
#tool:has(#view-packs:not([hidden])){position:relative}
#tool:has(#view-packs:not([hidden]))>h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#view-packs>h3{font-family:var(--display-font);font-weight:600;font-size:var(--text-title);line-height:var(--leading-display);letter-spacing:-.025em}
#view-packs .recovery{border-top:1px solid var(--soft)}
@media(min-width:769px){.home #tool:has(#view-packs:not([hidden])){padding:var(--space-48)}#view-packs>h3{font-size:var(--text-display)}}

/* MVP-515: desktop revision of the sections below the first screen (owner remarks 25 Nov). Phone layout (<=768) is untouched except the rule cards. */
.home .tool-intro h2 span{display:block;white-space:nowrap}
.rule-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12)}
.rule-card{display:flex;flex-direction:column;gap:var(--space-12);padding:var(--space-16);background:var(--white);color:var(--ink);border-radius:var(--radius-card);min-width:0}
.rule-card svg{flex:none;width:clamp(2rem,3vw,3rem);height:auto;color:var(--cran)}
.home #rules .rule-card p{margin:0;font-size:var(--text-subhead);line-height:var(--leading-subhead);overflow-wrap:break-word}
@media(max-width:370px){.rule-card{padding:var(--space-12)}.home #rules .rule-card p{font-size:var(--text-body)}}
@media(min-width:769px){
.home{--rev-gap:clamp(1.5rem,3vw,4rem)}
.home .tool-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:var(--rev-gap);align-items:center;margin-bottom:var(--rev-gap)}
.home .tool-intro h2{max-width:none;font-size:clamp(2.5rem,6vw,6.5rem);line-height:1.05}
.home .tool-intro .hero-example{width:100%;max-width:none;margin:0}
.home .tool-intro .ba-pair{gap:clamp(.5rem,1vw,1rem)}
.home #how{grid-template-columns:minmax(0,1fr);gap:var(--rev-gap)}
.home #how>h2{max-width:none;margin:0}
.home #how>.cards:not(.two){display:grid;max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:var(--rev-gap)}
.home #how>.cards:not(.two) article{border-top:1px solid var(--line);padding-top:var(--space-16)}
.home #how .cards.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rev-gap)}
.home #how .cards.two .card{padding:clamp(1.5rem,2.5vw,3rem) 0}
.home #how .qr-block{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:clamp(1.5rem,3vw,3rem);margin:0;padding:clamp(1.5rem,3vw,3rem);border:1px solid var(--line);border-radius:var(--radius-card);background:var(--white)}
.home #how .qr-block>div:last-child{order:0}
.home #how #qr-code{order:3;flex:none;width:clamp(9rem,13vw,12.5rem);max-width:none;padding:var(--space-8);margin:0;border:1px solid var(--soft)}
.home #how .qr-text{order:1;flex:0 1 var(--measure);min-width:0}
.home #how .qr-block h2{font-size:var(--text-title);margin:0 0 var(--space-8)}
.home #how .qr-block p.small{font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.5;margin:0}
.home #how .qr-arrow{order:2;flex:none;width:clamp(3.5rem,6vw,6rem);height:auto;color:var(--cran)}
.home #faq{grid-template-columns:minmax(0,1fr);gap:var(--rev-gap)}
.home #faq>h2{max-width:none;margin:0}
.home .faq-answers{columns:2;column-gap:var(--rev-gap)}
.home .faq-answers article{break-inside:avoid;padding-top:var(--space-16);padding-bottom:var(--space-16)}
.home #rules{display:block}
.home #rules h2{max-width:none;margin-bottom:var(--space-32)}
.rule-cards{gap:var(--rev-gap)}
.rule-card{padding:clamp(1.25rem,2vw,2rem);gap:var(--space-16)}
.home #rules .end-action{margin-top:var(--space-32)}
.home .longtext{display:block;gap:var(--rev-gap)}
.home .longtext>h2{max-width:none;margin:0 0 var(--space-24)}
.home .longtext .lt-body{max-inline-size:none}
.home .longtext .lt-body>p,.home .longtext .lt-body>h3{max-inline-size:var(--measure)}
.home .longtext .lt-unit{display:block}
.home .longtext .lt-unit:has(.lt-pics){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--rev-gap);align-items:start}
.home .longtext .lt-pics{margin:0;gap:clamp(.5rem,1vw,1rem);grid-template-columns:repeat(2,minmax(0,1fr))}
.home .longtext .lt-pics:has(>figure:only-of-type){grid-template-columns:minmax(0,1fr)}
}
@media(min-width:1100px){.rule-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* MVP-517: section surfaces as in the revised mockup (dark: first screen, How it works, footer; cream: examples, prices, rules; white card: FAQ). Forest panel = hsl(150 15% 18%). */
.home{--panel:hsl(150 15% 18%);--bleed:max(var(--space-16),calc((100vw - var(--content))/2))}
@media(max-width:768px){.home{--bleed:var(--space-16)}}
.home #examples{background:var(--cream);color:var(--ink);border-top:1px solid var(--line);padding-inline:var(--bleed)}
.home #examples figcaption{color:var(--ink)}
.home #how{max-width:none;background:var(--ink);color:var(--cream);padding-inline:var(--bleed)}
.home #how .small{color:var(--cream)}
.home #how .cards:not(.two) article h3{font-family:var(--display-font);font-weight:600;font-size:clamp(1.5rem,2.3vw,2rem);line-height:var(--leading-title);letter-spacing:-.02em;margin:0}
.home #how .cards.two .card{background:var(--panel);border:0;border-radius:var(--radius-card);padding:clamp(1.5rem,2.5vw,3rem)}
.home #how .badge{background:var(--cream);color:var(--ink)}
.home #how .qr-block{padding:clamp(1.5rem,2.5vw,3rem);background:var(--panel);border:0;border-radius:var(--radius-card);color:var(--cream);justify-content:flex-start}
.home #how .qr-text{flex:0 1 var(--measure)}
.home #how .qr-arrow{color:var(--gold);margin-inline:auto}
.home #how #qr-code{background:var(--white);border:0;border-radius:var(--radius-control);padding:var(--space-12)}
.home #how :focus-visible{outline-color:var(--gold)}
.home #prices{background:var(--cream);color:var(--ink);padding-inline:var(--bleed)}
.home #prices .card,.home #prices .small{color:var(--ink)}
.home #prices .pack-choice{background:var(--white);color:var(--ink);border-color:var(--line)}
.home #prices .pack-choice:hover{background:var(--sel)}
.home #prices .pack-choice:has(input:checked){background:var(--sel);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.home #prices .pack-choice input{accent-color:var(--ink)}
.home #prices :focus-visible{outline-color:var(--focus)}
.home #prices button:not(.purchase-cta){background:var(--white);color:var(--ink);border:2px solid var(--ink)}
.home #faq{width:min(var(--content),calc(100% - var(--space-32)));margin-inline:auto;padding:var(--space-32) var(--space-16);background:var(--white);border-radius:var(--radius-card)}
@media(min-width:769px){.home #faq{width:min(var(--content),calc(100% - var(--space-48)));padding:var(--space-64) var(--space-48)}}
.home #rules{background:var(--cream);color:var(--ink)}
.home #rules .rule-card{border:1px solid var(--line)}
.home #rules .primary,.home #rules .primary:hover,.home #rules .primary:focus,.home #rules .primary:active{background:var(--red);border:1px solid var(--red);color:var(--white);font-weight:600}
.home #rules .primary:hover,.home #rules .primary:active{background:hsl(352 64% 28%);border-color:hsl(352 64% 28%)}
.home #rules :focus-visible{outline-color:var(--focus)}
.home footer{max-width:none;background:var(--ink);color:var(--cream);border:0;padding-inline:var(--bleed)}
.home footer a{color:var(--cream)}
.home footer :focus-visible{outline-color:var(--gold)}

/* MVP-519: one pair of content guides for every home section and the header/footer. Guide = --bleed (16px gutter up to 1280px; centred 1232px content above). Surfaces still fill the width; the FAQ white card grows outward from the guides with a box-shadow spread, so its text sits on the same guides. */
.home{--card-out:min(var(--space-48),var(--bleed))}
.home header,.home footer,.home main>section,.home main>section#examples,.home main>section#how,.home main>section#prices,.home main>section#rules,.home main>section#faq,.home main>section.longtext,.home main>section.workbench{width:100%;max-width:none;margin-inline:0;padding-inline:var(--bleed)}
.home main>section#faq{width:100%;margin-block:var(--card-out);padding-block:var(--space-32);background:var(--white);border-radius:var(--radius-card);box-shadow:0 0 0 var(--card-out) var(--white);box-sizing:border-box}
@media(min-width:769px){.home main>section#faq{padding-block:var(--space-64)}}
.home main>section#faq>*{max-inline-size:var(--content)}

/* MVP-524: back controls are one text link; sticky header (solid; home is transparent only at the very top); window top bar stays (modal-head sits outside the scrolling modal-body). */
.text-link{display:inline-flex;align-items:center;justify-content:flex-start;min-height:48px;padding:0;border:0;background:none;font:inherit;font-size:var(--text-small);color:inherit;text-decoration:underline;text-underline-offset:var(--space-4);white-space:nowrap;cursor:pointer;width:auto}
#tool .stack>.text-link{width:auto;align-self:flex-start}
#pm-back{margin-bottom:var(--space-16)}
html{scroll-padding-top:calc(64px + var(--space-8))}
@media(min-width:769px){html{scroll-padding-top:calc(96px + var(--space-8))}}
header{position:sticky;top:0;z-index:40;background:var(--canvas)}
.home header{position:fixed;top:0;z-index:40;background:linear-gradient(180deg,hsl(150 25% 9%/.8),hsl(150 25% 9%/0))}
.home header.is-scrolled{background:var(--ink)}
/* Script-only focus targets (tabindex=-1 headings, messages) get focus for screen readers but draw no ring. */
:not(button,a,input,select,textarea,summary,label)[tabindex="-1"]:focus,:not(button,a,input,select,textarea,summary,label)[tabindex="-1"]:focus-visible{outline:none}
.photo-actions{display:flex;justify-content:flex-end;margin-bottom:var(--space-8)}

/* MVP-534: picture cards use the one card radius (picture clipped by the card); step 3 options share one text start. */
.home #chars .choice,.home #chars .choice.own{border-radius:var(--radius-card);overflow:hidden}
.home #chars .choice img,.home #chars .choice.own .own-top{border-radius:calc(var(--radius-card) - var(--space-12)) calc(var(--radius-card) - var(--space-12)) var(--radius-control) var(--radius-control)}
.home #step-action>.choice.wide{column-gap:var(--space-8);padding:var(--space-12)}
.home #presets .name,.home #step-action>.choice.wide{column-gap:var(--space-8)}

/* Extension welcome / goodbye pages (MVP-599) */
.ext-page{max-width:var(--content);margin-inline:auto;padding:var(--space-64) var(--space-24)}
.ext-hero{text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--space-16)}
.ext-hero h1{margin:0}.ext-hero p{margin:0}
.ext-pill{display:inline-flex;align-items:center;gap:var(--space-8);padding:var(--space-4) var(--space-16);border-radius:var(--radius-pill);background:var(--sel);color:var(--ink);font-size:var(--text-small)}
.ext-pill svg{width:16px;height:16px;flex:none}
.ext-steps{margin-top:var(--space-64)}
.ext-steps>h2{font-family:var(--body-font);font-size:var(--text-small);letter-spacing:.12em;text-transform:uppercase;text-align:center;margin:0 0 var(--space-32)}
.ext-cards{display:grid;grid-template-columns:1fr;gap:var(--space-32);max-width:960px;list-style:none;margin:0 auto;padding:0}
.ext-cards .card{position:relative;display:flex;flex-direction:column;gap:var(--space-12);padding:var(--space-24)}
.ext-cards img{width:100%;height:auto;border-radius:var(--radius-control);border:1px solid var(--soft)}
.ext-cards h3{margin:0}.ext-cards p{margin:0;color:hsl(150 10% 30%)}
.ext-num{width:36px;height:36px;border-radius:var(--radius-pill);background:var(--ink);color:var(--cream);display:inline-flex;align-items:center;justify-content:center;font-weight:600}
.ext-more{margin-top:var(--space-48);text-align:center}.ext-more p{margin-inline:auto}
.ext-form{max-width:640px;margin:var(--space-32) auto 0;display:flex;flex-direction:column;gap:var(--space-16)}
.ext-form textarea{font:inherit;width:100%;min-height:180px;padding:var(--space-16);border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);resize:vertical}
.ext-form textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.ext-form .btn{width:100%}
.ext-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ext-count,.ext-error{font-size:var(--text-small);margin:0;max-width:none}.ext-count{text-align:right}.ext-error{color:var(--red)}
@media(min-width:768px){.ext-page{padding-inline:var(--space-48)}}

/* "My photos" pill: last item of the menu group, home only, hidden until a photo is saved (js/nav.js). */
header nav .credits-pill{margin:0 0 0 var(--space-8);order:0;flex:none}
.home header nav .credits-pill{border-color:var(--cream)}
@media(max-width:768px){header nav .credits-pill{margin:var(--space-4);justify-content:center}}

/* MVP-631: /elf-letters/ (24 letters from Felix). Same tokens, card radius 16, control radius 8; sticky header offset comes from html{scroll-padding-top}. */
.letters{--bleed:max(var(--space-16),calc((100vw - var(--content))/2))}
.letters header,.letters footer,.letters main>section{width:100%;max-width:none;margin-inline:0;padding-inline:var(--bleed)}
.letters main>section{padding-block:var(--space-32)}
/* MVP-635: first screen = H1, first paragraph, two buttons and the day 12 photo; the day row sits right under it; guidance is below the letters. Same content guides as the home page (--bleed). */
.letters .letters-top{padding-top:var(--space-24);padding-bottom:var(--space-16);display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-16);align-items:center}
.letters h1{max-width:20ch;margin:0 0 var(--space-16);font-size:var(--text-display)}
.letters .hero-photo{margin:0}
.letters .hero-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-card);background:var(--soft)}
.letters .day-row{padding-block:var(--space-16)}
.letters .guide{border-top:1px solid var(--line)}
.letters .guide h2{font-size:var(--text-title);margin:var(--space-32) 0 var(--space-8);break-after:avoid}
.letters .guide h2:first-child{margin-top:0}
.letters .guide p{margin:0 0 var(--space-16)}
.letters .intro{max-width:var(--measure)}
.letters .intro p{margin:0 0 var(--space-16)}
.letters .day-note{margin:0 0 var(--space-16);max-width:var(--measure)}
.letters .disclaimer{margin:var(--space-24) 0 0;max-width:var(--measure)}
.letters .top-actions{display:flex;flex-wrap:wrap;gap:var(--space-12);margin:var(--space-16) 0 0;max-width:none}
.letters .top-actions .btn{flex:1 1 150px;text-align:center;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding-inline:var(--space-16)}
.letters .day-links div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--space-8);max-width:none;flex:1}
.letters .day-links a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:2px solid var(--ink);border-radius:var(--radius-control);color:var(--ink);text-decoration:none;font-weight:600;background:var(--white)}
.letters .day-links a:hover{background:var(--sel)}
.letters .day{border-top:1px solid var(--line);scroll-margin-top:var(--space-8)}
.letters .day h2{font-size:var(--text-title);margin:0 0 var(--space-8)}
.letters .setup{margin:0 0 var(--space-24);max-width:var(--measure)}
.letters .day-body{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-24);align-items:start}
.letters .note{margin:0;padding:var(--space-24);background:var(--white);border:1px solid var(--soft);border-radius:var(--radius-card);box-shadow:var(--shadow-tag);font-size:var(--text-subhead);line-height:var(--leading-body)}
.letters .note p{margin:0 0 var(--space-16);max-width:var(--measure)}
.letters .note p:last-child{margin-bottom:0}
.letters .letter-actions{display:flex;align-items:center;gap:var(--space-16);margin:var(--space-16) 0 0}
.letters .copy-status{margin:0}
.letters .shot{margin:0}
.letters .shot{order:-1}
.letters .shot img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-card);background:var(--soft)}
.letters .shot figcaption{margin-top:var(--space-8);font-size:var(--text-small)}
.letters .tool-block{margin-top:var(--space-32);max-width:var(--measure)}
.letters .tool-block h3{margin:0 0 var(--space-8);font-size:var(--text-subhead)}
.letters .tool-block p{margin:0}
.letters .day>#tool{margin-top:var(--space-24);scroll-margin-top:var(--space-8)}
.letters .tool-restore,.letters .tool-jump{margin:var(--space-16) 0 0}
.letters .letters-end{border-top:1px solid var(--line)}
.letters .blank{display:inline}
/* MVP-650: call-to-action banners between the days: dark --ink card, same width as the day rows (--bleed), phone = photo on top, full width. */
.letters .cta-banner{margin:var(--space-16) var(--bleed);display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-16);padding:var(--space-16);background:var(--ink);color:var(--cream);border-radius:var(--radius-card)}
.letters .cta-photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-control);background:var(--soft)}
.letters .cta-text{min-width:0}
.letters .cta-text p{margin:0 0 var(--space-12);max-width:var(--measure)}
.letters .cta-text .cta-h{font:700 var(--text-title)/1.15 Georgia,serif;margin-bottom:var(--space-8)}
.letters .cta-btn{background:var(--cream);color:var(--ink);border:0;font-weight:700;min-height:48px;padding:var(--space-12) var(--space-24);width:100%;box-sizing:border-box}
.letters .cta-btn:hover{background:var(--white)}
.letters .cta-banner :focus-visible{outline-color:var(--gold)}
@media(min-width:768px){
.letters .cta-banner{grid-template-columns:minmax(0,220px) minmax(0,1fr);align-items:center;gap:var(--space-24);padding:var(--space-24)}
.letters .cta-btn{width:auto}
}
@media(min-width:768px){
.letters .letters-top{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:var(--space-48);padding-top:var(--space-48);padding-bottom:var(--space-32)}
}
@media(min-width:900px){
.letters .day-links div{grid-template-columns:repeat(12,minmax(0,1fr))}
.letters .day-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-48)}
.letters .shot{order:0}
.letters .guide{column-count:2;column-gap:var(--space-48)}
.letters .guide h2:nth-of-type(2){break-before:column;margin-top:0}
}
@media print{
@page{margin:20mm}
header,footer,.skip,.return-banner,.cta-banner,.letters-top,.day-row,.guide,.letters-end,.setup,.day-note,.shot,.letter-actions,.tool-block,.tool-restore,.tool-jump,#tool,.day h2,noscript{display:none!important}
body.letters,.letters{background:#fff;color:#000;display:block;min-height:0}
.letters main,.letters main>section{max-width:none;margin:0;padding:0;border:0;display:block}
.letters .day{break-after:page;page-break-after:always;break-inside:avoid}
.letters #day-24{break-after:auto;page-break-after:auto}
.letters .day-body{display:block}
.letters .note{border:0;box-shadow:none;border-radius:0;padding:0;background:none;font-size:20pt;line-height:1.45;color:#000}
.letters .note p{margin:0 0 12pt;max-width:none}
.letters .blank{display:inline-block;min-width:7em;border-bottom:1.5pt solid #000;height:1em;vertical-align:baseline}
.letters .blank-text{display:none}
}
.letters .foot-logo{display:flex;align-items:center;min-height:48px}
