/* v22: in-flow sticky header, no lower overlay. Legacy engine nodes remain hidden. */
:root{--header-height:108px}
html{scroll-padding-top:calc(var(--header-height) + 16px)}
body{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
.header,.show-form .header{position:sticky;top:0;z-index:100;width:100%;max-width:none;height:auto;min-height:88px;margin:0;padding:calc(8px + env(safe-area-inset-top)) max(16px,calc((100vw - 1200px)/2)) 8px;display:grid;grid-template-columns:110px minmax(0,600px);justify-content:space-between;align-items:center;gap:20px;background:#fff7e9f5;border-bottom:1px solid #d5deea;box-shadow:0 3px 14px #173b730b;backdrop-filter:blur(12px);overflow:visible}
.header{--brand-width:110px;--brand-height:64px}.header .brand{width:var(--brand-width);height:var(--brand-height);min-width:0;margin:0}.header .brand img{width:100%;height:100%;object-fit:contain}
.header-nav,#motion-toggle,.mobile-create,#player-expand,.dock-create{display:none!important}
.header .permanent-player,.show-form .header .permanent-player{position:relative!important;inset:auto!important;transform:none!important;width:100%;max-width:none;margin:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;z-index:auto}
.header .sample-player-inner{width:100%;max-width:none;margin:0;padding:0}
.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{display:grid;grid-template-columns:40px minmax(0,1fr) auto 44px;grid-template-rows:auto;gap:8px;padding:0;align-items:center;position:relative}
.header .permanent-player .player-cover{display:block;width:40px;height:40px;border-radius:12px;grid-column:auto;grid-row:auto}
.header .permanent-player .player-identity{grid-column:auto;grid-row:auto;min-width:0}.header .player-eyebrow{display:none}.header .permanent-player .player-identity strong{font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header .permanent-player .player-identity #player-style{font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header .permanent-player .player-mini-actions{display:flex!important;gap:2px;grid-column:auto;grid-row:auto}
.header .permanent-player .player-icon,.header .permanent-player #player-prev,.header .permanent-player #player-next,.header .permanent-player #player-play,.header .permanent-player #volume-toggle{display:flex!important;position:static;width:44px;height:44px;min-width:44px;min-height:44px;grid-column:auto;grid-row:auto;border:0;border-radius:50%;align-items:center;justify-content:center;background:#e8f3f8;color:#173b73;padding:11px;touch-action:manipulation}
.header .permanent-player #player-play{background:#173b73;color:#fffdf7}.header .permanent-player #volume-toggle[aria-expanded=true]{background:#f6c95c}.header .permanent-player .player-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.header #player-details{display:none!important}
.header #volume-popover{position:absolute;top:calc(100% + 12px);right:0;width:min(300px,calc(100vw - 32px));padding:16px;background:#fffdf7;border:1px solid #cbd7e6;border-radius:18px;box-shadow:0 10px 30px #173b7326;z-index:101}.header #volume-popover[hidden]{display:none!important}
.header .player-volume{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;align-items:center;margin:0;padding:0}.header #player-mute{grid-row:1/3}.header .player-volume label{font-size:13px;font-weight:700;display:flex;justify-content:space-between}.header #player-volume{grid-column:2;width:100%;min-height:32px;margin:0;accent-color:#173b73}
.header button:focus-visible,.header a:focus-visible,.header input:focus-visible{outline:3px solid #173b73;outline-offset:3px}
.show-form .field input,.show-form .field textarea,.show-form .option,.show-form .wizard-actions button,.show-form .error,.section-block{scroll-margin-top:calc(var(--header-height) + 18px);scroll-margin-bottom:24px}.show-form .studio{padding-bottom:24px}.show-form .wizard-actions{padding-bottom:env(safe-area-inset-bottom);position:static}
.new-hero .new-cta,.price-copy .new-cta{font-size:clamp(20px,2vw,24px);font-weight:900;min-height:64px;line-height:1.15;gap:16px}.new-cta>span[aria-hidden]{display:flex;align-items:center;justify-content:center;flex:none}.new-cta>span svg{width:28px;height:28px;display:block}.show-form #next svg{stroke-width:3}
@keyframes brand-float-visible{0%,100%{transform:translateY(4px) rotate(-3deg)}50%{transform:translateY(-9px) rotate(3deg)}}
.loose-3d,.process-3d,.faq-3d,.sample-invitation>img,.hero-3d,.price-card>img,.show-form .stage-art:before,.show-form .stage-art:after{animation-name:brand-float-visible;animation-duration:5.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}.process-grid li:nth-child(2) .process-3d,.loose-note{animation-delay:-2s}.faq-3d,.show-form .stage-art:after{animation-delay:-3.2s}.hero-3d{animation-duration:7s}.decor-offscreen,.decor-offscreen:before,.decor-offscreen:after,.decor-suspended .hero-3d,.decor-suspended .price-card>img{animation-play-state:paused!important}
@media(max-width:650px){.header,.show-form .header{grid-template-columns:var(--brand-width) minmax(0,1fr);gap:12px;min-height:94px;padding:calc(7px + env(safe-area-inset-top)) 12px 7px}.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:28px 44px;gap:0 4px}.header .permanent-player .player-cover{display:none}.header .permanent-player .player-identity{grid-column:1/3;grid-row:1}.header .permanent-player .player-identity strong{font-size:12px}.header .permanent-player #player-style{display:none}.header .permanent-player .player-mini-actions{grid-column:1;grid-row:2;justify-content:flex-end;gap:0}.header .permanent-player #volume-toggle{grid-column:2;grid-row:2}.header #volume-popover{top:calc(100% + 10px)}.new-hero .new-cta,.price-copy .new-cta{font-size:22px}.show-form .studio{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.loose-3d,.process-3d,.faq-3d,.sample-invitation>img,.hero-3d,.price-card>img,.show-form .stage-art:before,.show-form .stage-art:after{animation:none!important;transition:none!important}}
.header .header-status{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:280px){.header,.show-form .header{grid-template-columns:minmax(0,1fr);gap:2px}.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:minmax(0,1fr) 44px}.header .permanent-player .player-mini-actions{justify-content:center}.new-hero .new-cta,.price-copy .new-cta{font-size:18px;padding-inline:12px}}
.skip{z-index:200!important}
.header .sample-player-inner{overflow:visible}
/* Noticeable entrance motion, then rest: no endless motion without a local pause control. */
.loose-3d,.process-3d,.faq-3d,.sample-invitation>img,.hero-3d,.price-card>img,.show-form .stage-art:before,.show-form .stage-art:after{animation-duration:4.8s;animation-iteration-count:1;animation-delay:0s;animation-fill-mode:both}
html{scroll-padding-bottom:24px}
.show-form #next svg path{stroke-width:3}
.header .header-status.is-error{position:static!important;width:auto;height:auto;padding:7px 10px;margin:0 0 6px;overflow:visible;clip:auto;white-space:normal;border:1px solid #e6bdb3;border-radius:10px;color:#8b291f;background:#fff0e9;font-size:12px;line-height:1.35}
/* v23: one cream surface; song and playback share one horizontal rhythm. */
.header .sample-player-inner,.header .permanent-player .sample-player-inner{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible}
.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{min-height:56px;background:transparent;border:0;box-shadow:none}
.header .permanent-player .player-identity strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;text-overflow:ellipsis;line-height:1.3;max-height:2.6em;overflow-wrap:anywhere;margin:0}
.header,.show-form .header{background:#fff7e9;box-shadow:none;border-bottom:1px solid #e7dfd2}
.new-hero{margin-top:18px}
@media(max-width:650px){
 .header,.show-form .header{grid-template-columns:var(--brand-width) minmax(0,1fr);gap:12px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;min-height:80px}
 
 .header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:minmax(0,1fr) 88px 44px;grid-template-rows:auto;gap:4px;min-height:52px;align-items:center}
 .header .permanent-player .player-identity{grid-column:1;grid-row:1;align-self:center;min-width:0;padding:0 2px 0 0}
 .header .permanent-player .player-identity strong{font-size:12px;line-height:1.3;font-weight:800}
 .header .permanent-player .player-mini-actions{grid-column:2;grid-row:1;gap:0;justify-content:center}
 .header .permanent-player #player-prev{display:none!important}
 .header .permanent-player #volume-toggle{grid-column:3;grid-row:1}
 .header .permanent-player #player-next,.header .permanent-player #volume-toggle{background:transparent}
 .header .permanent-player #volume-toggle[aria-expanded=true]{background:#f6c95c}
 .header #volume-popover{top:calc(100% + 14px)}
 .new-hero{margin:16px 12px 0}
 .show-form .studio{margin-top:16px}
}
@media(max-width:280px){
 .header,.show-form .header{grid-template-columns:minmax(0,1fr);gap:4px}
 
 .header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px}
 .header .permanent-player #player-next{display:none!important}
 .header .permanent-player .player-mini-actions{grid-column:2}
 .header .permanent-player #volume-toggle{grid-column:3}
}
/* Narrow reflow/zoom exception: retain every action rather than shrink targets. */
@media(max-width:280px){.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto 44px;row-gap:6px}.header .permanent-player .player-identity{grid-column:1/3;grid-row:1}.header .permanent-player .player-mini-actions{grid-column:1;grid-row:2;justify-content:flex-start}.header .permanent-player #player-next{display:flex!important}.header .permanent-player #volume-toggle{grid-column:2;grid-row:2}}
/* Override legacy body:has(form) fixed-height rule, including error/safe-area reflow. */
.header,.show-form .header{height:auto!important}
/* v24: controls only, with previous restored at every width. Title retained for AT. */
.header .permanent-player .player-identity{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;grid-column:auto;grid-row:auto}
.header .permanent-player .player-cover{display:none!important}
.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:132px 44px;grid-template-rows:auto;gap:8px;justify-content:end;align-items:center;min-height:52px}
.header .permanent-player .player-mini-actions{grid-column:1;grid-row:1;gap:0;justify-content:center}
.header .permanent-player #player-prev,.header .permanent-player #player-next{display:flex!important;background:transparent}
.header .permanent-player #volume-toggle{grid-column:2;grid-row:1}
.new-hero h1{line-height:.97}
@media(max-width:220px){.header .permanent-player .player-mini,.show-form .header .permanent-player .player-mini{grid-template-columns:44px 44px;grid-template-rows:44px 44px;gap:4px;justify-content:center}.header .permanent-player .player-mini-actions{display:contents!important}.header .permanent-player #player-prev{grid-column:1;grid-row:1}.header .permanent-player #player-play{grid-column:2;grid-row:1}.header .permanent-player #player-next{grid-column:1;grid-row:2}.header .permanent-player #volume-toggle{grid-column:2;grid-row:2}}
/* v26: quiet form navigation, accessible metadata retained without a visible row. */
.show-form .wizard-top{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.show-form #leave{display:none!important}
.show-form .progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 18px;width:100%}
.show-form .progress-row[hidden]{display:none!important}
.show-form .progress-row .progress{width:100%;margin:0;height:5px;min-width:0}
.step-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;min-height:30px;background:#e8f3f8;border:1px solid #d5e3ed;border-radius:999px;font-size:12px;line-height:1;font-weight:750;color:#173b73;white-space:nowrap;cursor:default}
.new-hero .cta-caption{font-size:clamp(16px,1.6vw,19px);line-height:1.45;font-weight:650;margin:16px 0 12px;max-width:380px;color:#fff1df}
@media(max-width:650px){.show-form .progress-row{gap:10px;margin-bottom:18px}.step-pill{font-size:11px;padding:7px 10px}.new-hero .cta-caption{font-size:16px;margin:16px 0 10px;max-width:100%}}
/* Compact explicit consent; complete scope stays available in native details. */
.show-form .consent-panel,.show-form #step-content[data-step="6"] .consent-panel{padding:16px!important}
.show-form .consent-panel .consent-check{padding:12px 0!important;margin:0;border-top:0;font-size:14px;line-height:1.45}
.show-form .consent-panel .consent-check+.consent-check{border-top:1px solid #d5deea}
.consent-details{margin-top:6px;border-top:1px solid #d5deea;padding-top:4px}
.consent-details summary{min-height:44px;display:list-item;padding:12px 0;cursor:pointer;color:#173b73;font-size:13px;font-weight:700;line-height:1.4;list-style-position:inside}
.consent-details summary:focus-visible{outline:3px solid #173b73;outline-offset:3px;border-radius:5px}
.show-form .consent-details p{font-size:13px;line-height:1.55;margin:10px 0;color:#4a5c76}
/* Four age options now form an even 2x2 grid; retire former fifth-option span. */
.show-form .age-choices .option:last-child{grid-column:auto}
/* v32: frosted cream header. Opaque fallback, no geometry or player changes. */
.header,.show-form .header{background:#fff7e9!important;-webkit-backdrop-filter:none;backdrop-filter:none}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
 .header,.show-form .header{background:rgba(255,247,233,.82)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
}
@media(prefers-reduced-transparency:reduce){
 .header,.show-form .header{background:#fff7e9!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* v33: a single logo size source per viewport, independent of page/step. */
@media(max-width:650px){.header{--brand-width:76px;--brand-height:52px}}
@media(max-width:280px){.header{--brand-height:36px}.header .brand{justify-self:start}}
@media(min-width:281px) and (max-width:295px){.header,.show-form .header{grid-template-columns:minmax(0,1fr);gap:4px}}
