@font-face{font-family:"Kristina Script";src:url("assets/great-vibes-v6.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{--ink:#f7f0e6;--muted:#d2c7b9;--line:rgba(239,222,199,.36);--gutter:clamp(16px,4vw,64px);--page-width:1420px;--text-shadow:0 1px 4px #0008,0 3px 14px #0006;--ease:ease-in-out}
*{box-sizing:border-box}
html{height:100%;overflow:hidden;background:#211b16;color:var(--ink);font-family:Arial,Helvetica,sans-serif}
body{position:fixed;left:0;right:0;top:var(--app-top,0px);margin:0;height:var(--app-height,100dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;text-shadow:var(--text-shadow)}
button,a,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait}a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
header,main,footer{width:100%;max-width:var(--page-width);min-width:0;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
header{padding-top:24px;padding-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:block;min-width:0;white-space:nowrap;font-family:"Kristina Script",cursive;line-height:1.1;opacity:0;transition:opacity 1s var(--ease)}
.brand-name{display:block;font-size:clamp(27px,4vw,44px);padding-top:2px;padding-bottom:3px}.brand-given{color:#f5ead8}.brand-family{color:#d8b986;margin-left:.12em}.brand-tagline{display:block;font-size:clamp(16px,2vw,22px);color:#e2c99e;line-height:1.2}
body.type-ready .brand{opacity:1}body.type-fallback .brand{font-family:Georgia,serif}body.type-fallback .brand-name{font-size:18px}body.type-fallback .brand-tagline{font-size:12px}
.quiet{border:0;background:transparent;padding:10px 0;font-size:13px}#home{flex-shrink:0;white-space:nowrap}.home-icon{font-size:23px;margin-right:6px;vertical-align:middle}
main{min-height:0;height:100%;display:grid;align-items:center;padding-top:16px;padding-bottom:16px;transition:opacity .7s var(--ease)}main.screen-exiting{opacity:0}
.intro{width:100%;max-width:min(560px,44vw);min-height:0;margin:0;align-self:center}.eyebrow{font-size:11px;letter-spacing:3px;text-transform:uppercase;color:var(--muted);margin-bottom:18px}
h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(26px,calc(14px + 3vw),56px);line-height:1.06;letter-spacing:-1.5px;text-wrap:balance;margin:0 0 24px}
#intro-copy,.welcome-copy{font-size:clamp(12px,1.4vw,16px);line-height:1.6;color:#eee4d8;margin:0;white-space:pre-line;max-width:440px}.welcome-copy{display:none}.author{display:none}
.welcome-actions{display:flex;flex-direction:column;gap:5px;margin-top:28px;max-width:390px}#begin{display:flex;align-items:center;justify-content:space-between;font-size:15px;gap:12px}#resume{font-size:12px;text-align:center;text-decoration:underline;text-underline-offset:4px;color:var(--muted);min-height:35px}#resume:disabled{opacity:.45;cursor:default}
#welcome-status{font-size:11px;line-height:1.5;white-space:pre-line;color:var(--muted);text-align:center;margin:0}#welcome-status:empty{display:none}
body[data-view="welcome"] #home,body[data-view="welcome"] .form-card,body[data-view="form"] .intro{display:none}
.scenery,.shade,.welcome-scenery{position:fixed;inset:0;pointer-events:none}.scenery{z-index:-3;overflow:hidden;background:#211b16}.scene{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity 2.2s var(--ease);will-change:opacity}.scene.active{opacity:1}
.shade{z-index:-2;background:linear-gradient(90deg,#140f0b99,#140f0b44 48%,#140f0b55),linear-gradient(0deg,#140f0b88,transparent 35%,#140f0b33);transition:opacity 1.6s var(--ease)}
.welcome-scenery{z-index:-2;opacity:0;background:#19120d;transition:opacity 1.6s var(--ease)}.welcome-scenery img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center}.welcome-scenery::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#100c09cc,#100c0966 35%,transparent 65%),linear-gradient(0deg,#100c0955,transparent 35%)}body[data-view="welcome"] .welcome-scenery{opacity:1}body[data-view="welcome"] .shade{opacity:0}
.form-card{width:100%;max-width:590px;height:min(660px,100%);min-height:0;justify-self:center;display:flex;flex-direction:column;padding:26px 28px 20px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(135deg,#2f251c8c,#1e1a1675);box-shadow:0 24px 80px #0004;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--muted);font-size:11px;letter-spacing:1px;text-transform:uppercase}.progress{height:2px;background:#f3e6d51b;margin:14px 0 24px;overflow:hidden}.progress span{display:block;height:100%;background:#c5ae8c;width:0;transition:width .8s var(--ease)}.card-top,.progress,.actions,.save-link,#status{flex-shrink:0}
#question-form,#question-slot{display:flex;flex-direction:column;flex:1;min-height:0}#question-form{outline:none}.field{margin-bottom:20px}.field:last-child{margin-bottom:0}label,legend{font-size:15px;line-height:1.5;color:var(--ink)}label{display:block;margin-bottom:10px}fieldset{min-width:0;padding:0;margin:0;border:0}legend{margin-bottom:10px}
input[type=text],textarea{width:100%;border:1px solid #efe0cb70;border-radius:15px;background:#120e0b21;color:var(--ink);padding:12px 15px;outline:0;font-size:16px;line-height:1.5;transition:border-color .25s,background .25s;caret-color:#e1cfb3}textarea{flex:1;min-height:64px;resize:none}input:focus,textarea:focus{border-color:#f6dfb8;background:#211b1640}
.choice{display:flex;align-items:center;gap:13px;min-height:46px;margin:8px 0 0;padding:11px 15px;border:1px solid #efe0cb6b;border-radius:28px;cursor:pointer;background:transparent;transition:border-color .25s,background .25s}.choice:has(input:checked){border-color:#f5e8d2;background:#e8d7ba13}.choice input{appearance:none;width:18px;height:18px;flex:0 0 18px;margin:0;border:1px solid #ebddc3aa;border-radius:50%;position:relative}.choice input:checked:after{content:'';position:absolute;inset:4px;border-radius:50%;background:#efdfc4}.choice span{font-size:14px}
.question-heading{font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,2.3vw,24px);line-height:1.28;font-weight:400;margin:0 0 18px;white-space:pre-line;letter-spacing:-.35px;flex-shrink:0}.actions{display:flex;gap:12px;margin-top:20px}.outline{border:1px solid #ead9bd9e;border-radius:40px;background:transparent;min-height:50px;padding:12px 20px;transition:border-color .25s,background .25s;white-space:nowrap}.outline:hover{background:#e8d7ba0c;border-color:#f6ecd9}.next{flex:1;display:flex;justify-content:space-between;align-items:center;gap:14px}.back{font-size:13px;color:var(--muted)}.back:disabled{opacity:.35;cursor:default}
.save-link{display:block;margin:16px auto 0;background:transparent;border:0;border-bottom:1px solid #ded2bf77;padding:0 0 3px;font-size:11px;color:var(--muted);min-height:22px}#status{min-height:16px;margin-top:8px;text-align:center;font-size:11px;color:var(--muted);line-height:1.5;white-space:pre-line}
.review{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px}.review-item{padding:12px 0;border-bottom:1px solid var(--line)}.review-item h3{font-size:13px;line-height:1.5;font-weight:400;margin:0 0 8px}.review-item p{font-size:13px;line-height:1.5;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.review-note{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 16px;white-space:pre-line;flex-shrink:0}
.card-top,#question-form,#save,#status{opacity:1;transition:opacity .7s var(--ease)}.form-card.step-exiting .card-top,.form-card.step-exiting #question-form,.form-card.step-exiting #save,.form-card.step-exiting #status{opacity:0}
footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:max(14px,env(safe-area-inset-bottom));font-size:9px;color:#d7cdbba6;letter-spacing:.4px}.scene-dots{display:flex;gap:9px}.scene-dots i{width:5px;height:5px;border-radius:50%;background:#f7ead540;transition:background 1s,box-shadow 1s}.scene-dots i.active{background:#f2d8b1;box-shadow:0 0 12px #f2d8b177}
@media(max-width:850px){
 header{min-height:72px;padding-top:8px;padding-bottom:8px;gap:8px}main{padding-top:7px;padding-bottom:5px}footer{padding-top:6px;padding-bottom:max(8px,env(safe-area-inset-bottom));font-size:8px}footer>span:last-child{display:none}
 .intro{height:100%;max-width:none;display:flex;flex-direction:column;align-self:stretch}.eyebrow,#intro-copy{display:none}h1{line-height:1.07;letter-spacing:-1px;max-width:440px;margin:3px 0 12px}.welcome-copy{display:block;line-height:1.45;max-width:440px}.author{display:block;flex:1;min-height:0}.author p{display:none}.welcome-actions{width:100%;max-width:none;margin-top:8px;gap:3px}#begin{min-height:48px}#resume{min-height:35px}
 .welcome-scenery img{inset:64px 0 0;height:calc(100% - 64px);object-position:center top;mask-image:linear-gradient(180deg,transparent,#000 12%);-webkit-mask-image:linear-gradient(180deg,transparent,#000 12%)}.welcome-scenery::after{background:linear-gradient(180deg,#100c0966,transparent 40%,transparent 66%,#100c0999)}.scene{object-position:45% center}.shade{background:linear-gradient(180deg,#16100bbb,#16100b63 55%,#16100b99)}
 .form-card{height:100%;max-width:none;border-radius:26px}.quiet{font-size:11px}.home-icon{margin-right:5px}.back{font-size:12px}

}
@media(max-width:850px),(max-height:720px){
 .form-card{padding:16px 17px 10px}.card-top{font-size:10px}.progress{margin:10px 0 15px}.question-heading{font-size:20px;line-height:1.25;margin-bottom:12px}.field{margin-bottom:15px}.field label{font-size:14px;margin-bottom:9px}input[type=text]{height:44px;padding:10px 14px;line-height:1.4}textarea{padding:12px 14px;line-height:1.45}legend{font-size:14px;line-height:1.4;margin-bottom:8px}.choice{min-height:44px;padding:10px 13px;margin-top:8px}.choice span{font-size:13px}.actions{margin-top:14px;gap:10px}.outline{min-height:46px;padding:11px 18px}.save-link{margin-top:10px;min-height:22px;font-size:10px}#status{min-height:14px;margin-top:6px;font-size:10px}.review-note{font-size:12px;margin-bottom:12px}
}
@media(min-width:851px) and (max-height:720px){header{padding-top:14px;padding-bottom:10px}main{padding-top:10px;padding-bottom:10px}h1{margin-bottom:18px}.eyebrow{margin-bottom:12px}.welcome-actions{margin-top:20px}}
@media(max-width:350px){.home-text{display:none}.home-icon{font-size:23px;margin-right:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Preserve the original label text while giving examples a secondary voice */
.question-primary{display:block}
.question-detail{display:block;font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:8px}
@media(min-width:851px){.question-detail{font-size:14px}}

.designer-contacts{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.5;margin-top:5px}.designer-contacts[hidden]{display:none}.designer-contacts a{border-bottom:1px solid var(--line);padding:3px 0}.designer-contacts a:hover{color:#f5ead8}

/* The keyboard changes the usable frame, never the background or document scroll */
@media(max-width:850px){
 body.keyboard-open{grid-template-rows:minmax(0,1fr)}
 body.keyboard-open header,body.keyboard-open footer,body.keyboard-open .save-link,body.keyboard-open #status{display:none}
 body.keyboard-open .scenery,body.keyboard-open .shade{bottom:auto;height:var(--scene-height,100vh)}
 body.keyboard-open main{padding-top:6px;padding-bottom:6px}
 body.keyboard-open .form-card{padding:12px 16px;max-height:100%}
 body.keyboard-open .card-top,body.keyboard-open .progress{display:none}
 body.keyboard-open #question-slot{overflow:auto;overscroll-behavior:contain;scroll-padding:4px;-webkit-overflow-scrolling:touch}
 body.keyboard-open .question-heading{font-size:18px;margin-bottom:10px;flex-shrink:1;min-height:24px;max-height:44%;overflow:auto;overscroll-behavior:contain}
 body.keyboard-open .question-detail{font-size:12px;line-height:1.4;margin-top:5px}
 body.keyboard-open textarea{flex:1 0 88px;min-height:88px;max-height:180px}
 body.keyboard-open .field{flex-shrink:0;margin-bottom:12px}
 body.keyboard-open .actions{flex-shrink:0;margin-top:10px}
 body.keyboard-open .outline{min-height:44px;padding:10px 16px}
}
/* Smart form: one bounded question, independent actions and two text levels */
#question-slot{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px;flex-shrink:1}
#question-slot>*{flex-shrink:0}#question-slot>textarea{flex:1;min-height:88px}
.options{display:grid;gap:6px}.options .choice{margin:0;border-radius:18px;padding:9px 13px;min-height:42px}
.choice input[type=checkbox]{border-radius:4px}.choice input[type=checkbox]:checked:after{border-radius:1px}
.question-context{font-size:12px;color:#dcc6a3;margin-bottom:12px;letter-spacing:.7px}
.question-detail{font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.5;letter-spacing:0;color:var(--muted);white-space:pre-line;margin:0 0 14px}
.why{font-size:12px;line-height:1.55;color:#e1d5c3;border-left:1px solid #d1b58990;padding:6px 0 6px 13px;margin-top:15px;white-space:pre-line}.why strong{font-size:11px;font-weight:400;letter-spacing:.7px;text-transform:uppercase}.why p{margin:5px 0 0}
.unknown-button{align-self:flex-start;font-size:12px;line-height:1.5;text-align:left;text-decoration:underline;text-underline-offset:4px;margin-top:8px;padding:6px 0}.unknown-button.selected{color:#ead3ab}
.branch-button{width:100%;white-space:normal;text-align:left;font-size:15px;min-height:50px;margin:10px 0}
.consent{border:0;padding-left:0;border-radius:0;align-items:flex-start}.consent span{font-size:12px;line-height:1.5}.consent input{margin-top:3px}
.legal-link{font-size:12px;text-decoration:underline;text-underline-offset:3px;margin:8px 0}.reference-input{width:100%;font-size:13px;min-height:45px}
.review-section{font:400 19px/1.3 Georgia,serif;margin:24px 0 10px}.review h4{font-size:13px;font-weight:400;color:#e2c99e}
#question-slot .review{flex-shrink:0;overflow:visible}#question-slot .review-note{flex-shrink:0}
.form-card.step-exiting #question-form,.form-card #question-form,.card-top,#save,#status{transition-duration:.35s}
@media(max-width:850px){.options .choice{min-height:40px;padding:8px 12px}.question-context{font-size:11px;margin-bottom:8px}.question-detail{font-size:12px}.why{font-size:11px}}
@media(prefers-reduced-motion:reduce){.form-card #question-form{transition:none}}

[hidden]{display:none!important}

.card-top{min-height:24px;line-height:1.4}#step-count{white-space:nowrap}

.next{min-width:0;white-space:normal;text-align:left}#next{font-size:14px}
