/* Seven concise stories. Illustrations stay inside a padded, predictable canvas. */
html.welcome-open,html.welcome-open body{overflow:hidden;overscroll-behavior:none}
.welcome-dialog{width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #e3e6dc;border-radius:28px;background:#f7f7f2;color:#252b28;overflow:hidden;box-shadow:0 24px 100px #20252022}
.welcome-dialog::backdrop{background:#252b2877;backdrop-filter:blur(7px)}
.welcome-shell{height:min(820px,calc(100dvh - 34px));min-height:0;display:flex;flex-direction:column;padding:24px 30px 26px;--story-art-height:230px}
.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0}
.welcome-brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:650;letter-spacing:-.7px}
.welcome-top button{min-height:44px;padding:8px 0 8px 16px;color:#626d63;font-size:13px}
.welcome-progress{display:flex;gap:5px;flex-shrink:0;margin:16px 0 0}
.welcome-progress>span{flex:1;height:3px;border-radius:5px;background:#e1e4db}
.welcome-progress>span.complete{background:#8170ce}
.welcome-progress>span[aria-current]{background:#6553d9}
.welcome-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px 3px 20px}
.welcome-content>*{flex-shrink:0}
.welcome-art{height:var(--story-art-height);width:100%;display:flex;align-items:center;justify-content:center;margin:0 0 26px;isolation:isolate}
.story-visual{display:block;max-width:360px;width:100%;height:100%;overflow:visible;font-family:inherit}
.story-visual:not(.story-visual-gift){animation:story-enter .38s ease-out both}
.welcome-story-copy{padding:0 1px}
.welcome-eyebrow{font-size:10px;font-weight:650;letter-spacing:1.3px;line-height:1.5;color:#737c70;margin:0 0 11px}
.welcome-content h2{font-size:32px;font-weight:600;letter-spacing:-1.05px;line-height:1.16;text-wrap:balance;margin:0 0 16px;outline:none}
#welcome-title:focus,#welcome-title:focus-visible{outline:none;box-shadow:none}
.welcome-copy{font-size:14px;line-height:1.7;color:#626d63;margin:0;text-wrap:pretty}
.welcome-language-label{margin:22px 0 8px;font-size:12px;font-weight:550}
.welcome-content select{min-height:50px;padding:12px 14px;border-radius:12px;font-size:16px}
.welcome-actions{display:flex;flex-shrink:0;gap:11px;padding-top:12px;background:#f7f7f2}
.welcome-actions>button{min-height:50px;padding:13px 20px;border-radius:13px;font-size:15px;font-weight:550;line-height:1.4}
.welcome-back{min-width:88px;border:1px solid #dce0d5;background:#fff}
.welcome-next{flex:1;background:#6553d9;color:#fff}
.welcome-next:hover{background:#5846ca}
.welcome-actions button:disabled,.welcome-top button:disabled{opacity:.55;cursor:wait}
.welcome-error{flex-shrink:0;font-size:12px;line-height:1.6;color:#9a4b42;margin:0;padding:8px 0}
.welcome-research{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:19px;padding:10px 12px;border:1px solid #dce5d4;border-radius:12px;background:#edf2e8;color:#536e49;font-size:11px;line-height:1.6;text-decoration:none}
.welcome-research>span:first-of-type{flex:1}
.welcome-research svg,.welcome-plan h3 svg{width:17px;height:17px;flex-shrink:0;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.welcome-art-pricing{height:130px;margin-bottom:19px}
.welcome-step-pricing h2{font-size:29px;margin-bottom:0}
.welcome-step-pricing .welcome-copy{font-size:13px}
.welcome-plans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:20px}
.welcome-plan{min-width:0;padding:16px 14px;border-radius:17px;border:1px solid #dfe6d6;background:#edf2e7}
.welcome-plan-ai{border-color:#e0d9f0;background:#eeebf9}
.welcome-plan h3{display:flex;align-items:center;gap:7px;margin:0 0 14px;color:#536e49;font-size:14px;font-weight:600;letter-spacing:-.2px;line-height:1.4}
.welcome-plan-ai h3{color:#6553b3}
.welcome-plan ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.welcome-plan li{font-size:12px;line-height:1.5;color:#52604d;overflow-wrap:normal}
.welcome-plan-ai li{color:#625578}
.plan-spark{font-size:18px;font-weight:450;line-height:1}
.welcome-plan-note{font-size:12px;line-height:1.65;color:#737c70;margin:15px 0 0}
.welcome-art-gift{height:250px;margin-bottom:24px}
.welcome-step-gift h2{color:#5b48bd}
.welcome-gift-guide p{margin:0 0 14px}
.welcome-gift-guide p:last-child{margin-bottom:0}
.welcome-gift-guide strong{font-weight:600;color:#252b28}
.gift-lid{transform-origin:180px 115px;transform:translate(-42px,-50px) rotate(-18deg);animation:gift-open 1.35s cubic-bezier(.22,.7,.24,1) both}
.gift-credit{transform-origin:180px 86px;transform:translate(7px,-8px);animation:gift-credit 1s .3s cubic-bezier(.18,.8,.3,1.15) both}
.gift-confetti>:not([transform]){transform-box:fill-box;transform-origin:center;animation:gift-confetti 1.5s .3s ease-out both}
.gift-confetti .confetti-b{animation-delay:.4s}
.gift-confetti .confetti-c{animation-delay:.5s}
.gift-confetti .confetti-d{animation-delay:.6s}
.story-wave rect{transform-box:fill-box;transform-origin:center;animation:story-wave 1.1s ease-in-out 2}
.story-wave rect:nth-child(3n){animation-delay:.13s}
.story-wave rect:nth-child(3n+1){animation-delay:.25s}
@keyframes story-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes gift-open{0%,18%{transform:translate(0,0) rotate(0)}34%{transform:translate(0,-8px) rotate(4deg)}100%{transform:translate(-42px,-50px) rotate(-18deg)}}
@keyframes gift-credit{0%,12%{opacity:0;transform:translate(0,35px) scale(.65)}70%{opacity:1;transform:translate(7px,-13px) scale(1.04)}100%{opacity:1;transform:translate(7px,-8px) scale(1)}}
@keyframes gift-confetti{0%{opacity:0;transform:translateY(28px) scale(.4) rotate(-30deg)}38%{opacity:1}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes story-wave{0%,100%{transform:scaleY(.8);opacity:.65}50%{transform:scaleY(1);opacity:1}}
.interface-settings label{max-width:360px;margin-bottom:0}
.interface-settings select{min-height:48px}
.interface-settings p{max-width:550px}
.interface-settings .language-save-status{font-size:11px;margin:10px 0 0;min-height:16px;color:#626d63}
@media(max-width:560px){
 .welcome-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .welcome-shell{height:100%;padding:max(18px,env(safe-area-inset-top)) 22px max(18px,env(safe-area-inset-bottom));--story-art-height:215px}
 .welcome-content{padding-top:17px}
 .welcome-content h2{font-size:30px}
 .welcome-art{margin-bottom:24px}
 .welcome-copy{font-size:14px}
 .welcome-art-pricing{height:106px;margin-bottom:18px}
 .welcome-art-gift{height:230px}
}
@media(max-width:360px){
 .welcome-shell{padding-left:18px;padding-right:18px}
 .welcome-content h2{font-size:27px}
 .welcome-copy{font-size:13px}
 .welcome-plans{gap:9px}
 .welcome-plan{padding:14px 11px}
 .welcome-plan h3{font-size:13px;gap:5px}
 .welcome-plan li{font-size:11.5px}
 .welcome-back{min-width:82px}
}
@media(max-height:720px){
 .welcome-shell{--story-art-height:180px}
 .welcome-content{padding-top:13px}
 .welcome-art{margin-bottom:18px}
 .welcome-content h2{font-size:28px;margin-bottom:13px}
 .welcome-copy{font-size:13px;line-height:1.65}
 .welcome-art-pricing{height:85px;margin-bottom:15px}
 .welcome-art-gift{height:190px}
 .welcome-plans{margin-top:15px}
}
@media(max-height:610px){
 .welcome-shell{--story-art-height:145px;padding-top:14px;padding-bottom:14px}
 .welcome-progress{margin-top:11px}
 .welcome-content h2{font-size:26px}
 .welcome-art{margin-bottom:16px}
 .welcome-art-pricing{height:65px;margin-bottom:13px}
 .welcome-art-gift{height:165px}
 .welcome-actions>button{min-height:46px;padding-top:11px;padding-bottom:11px}
}
@media(prefers-reduced-motion:reduce){
 .story-visual,.story-visual *{animation:none!important}
}
