.welcome-page{min-height:100vh;display:flex;flex-direction:column}.welcome-page main{flex:1;width:min(1040px,100%);margin:0 auto;padding:0 20px 40px}.welcome-page.rtl{direction:rtl}
.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.66)}.welcome-top .brand{margin:0}.welcome-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.welcome-lang select{border:1px solid #e5eae4;border-radius:9px;padding:8px 10px;background:#fff;color:var(--ink);max-width:190px}
.welcome-hero{text-align:center;padding:64px 0 36px}.welcome-hero h1{font:800 clamp(34px,6vw,54px)/1.1 var(--display);letter-spacing:-1.5px;margin:12px 0 16px}.welcome-lead{max-width:620px;margin:0 auto 26px;color:#5f6f65;font-size:18px;line-height:1.6}
.welcome-cta{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.welcome-cta .button{font-size:15px;padding:13px 22px}
.welcome-section{padding:28px 0}.welcome-section h2{font:800 26px var(--display);letter-spacing:-.6px;margin:0 0 16px;text-align:center}
.welcome-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.welcome-step{padding:22px}.welcome-step h3{margin:12px 0 6px}.welcome-step p{margin:0;color:#6b7a70;font-size:14px;line-height:1.6}
.welcome-step-num{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--mint);color:var(--green-dark);font-weight:800}
.welcome-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:12px}.welcome-plans .plan-item{background:#fff;padding:18px}.welcome-plans .plan-item strong{font-size:20px}.welcome-plans .plan-item strong span{font-size:13px;font-weight:600}
.welcome-section .muted{text-align:center;margin:6px auto}
.welcome-auth h2{font:800 24px var(--display);margin:10px 0 14px}.welcome-auth .account-actions .button{flex:1 1 160px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding-inline:12px}.welcome-auth form .button{width:100%;margin-top:4px}.welcome-auth [hidden]{display:none!important}
.welcome-or{text-align:center;color:var(--muted);font-size:13px;margin:14px 0 0}
.welcome-auth-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}.link-button{border:0;background:none;padding:0;color:var(--green);font-weight:700;font-size:13px;text-decoration:underline}
#auth-message{margin-top:12px;min-height:1em}
@media (max-width:560px){.welcome-top{padding:14px 16px}.welcome-top-actions{width:100%}.welcome-lang{flex:1 1 100%}.welcome-lang select{width:100%;max-width:none}.welcome-top-actions .button{flex:1}.welcome-hero{padding:40px 0 24px}.welcome-page main{padding:0 16px 32px}}
.welcome-plans .plan-features{margin:6px 0 0;padding:0 0 0 16px;display:grid;gap:3px;color:#6b7a70;font-size:12px}.welcome-page.rtl .plan-features{padding:0 16px 0 0}
.welcome-plans{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.welcome-plans .plan-item{padding:26px 24px;gap:12px;border-radius:18px;min-height:260px}@media (max-width:560px){.welcome-plans .plan-item{min-height:0}}.welcome-plans .plan-item b{font-size:18px}.welcome-plans .plan-item strong{font-size:26px}.welcome-plans .plan-item small{font-size:13px}.welcome-plans .plan-features{font-size:14px;gap:6px;margin-top:8px}
.welcome-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.welcome-plans .plan-item{padding:32px 30px;gap:14px;border-radius:20px;min-height:320px}.welcome-plans .plan-item b{font-size:22px}.welcome-plans .plan-item strong{font-size:32px}.welcome-plans .plan-item small{font-size:14px}.welcome-plans .plan-features{font-size:16px;line-height:1.45;gap:9px;margin-top:10px}
.welcome-steps{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.welcome-step{padding:34px 30px;border-radius:20px;min-height:250px}.welcome-step h3{font-size:22px;margin:18px 0 10px}.welcome-step p{font-size:16px;line-height:1.65}.welcome-step-num{width:46px;height:46px;font-size:20px}
@media (max-width:720px){.welcome-plans{grid-template-columns:1fr}.welcome-plans .plan-item,.welcome-step{min-height:0;padding:26px 22px}}
.welcome-plans .plan-item small,.welcome-plans .plan-item small span{font-size:15px}.welcome-step p{font-size:17px}
/* "Get started free": squash on press, spring rebound on release, ripple from the click point, spring-in signup dialog. */
.welcome-page{--cta-spring:cubic-bezier(.34,1.56,.64,1);--cta-spring:linear(0,0.079,0.26,0.478,0.686,0.857,0.982,1.061,1.099,1.108,1.098,1.078,1.054,1.032,1.014,1.001,0.993,0.989,0.988,0.99,0.992,0.994,0.997,0.999,1)}
.cta-motion{position:relative;overflow:hidden;transition:transform .5s var(--cta-spring),box-shadow .2s,background .15s}
.cta-motion:hover{transform:translateY(-2px);box-shadow:0 10px 24px #366f5d40}
.cta-motion.is-pressed{transform:scale(.95);transition-duration:.12s,.2s,.15s;box-shadow:0 2px 6px #366f5d30}
.cta-ripple{position:absolute;left:var(--x);top:var(--y);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:rgba(255,255,255,.45);pointer-events:none;transform:scale(0);animation:cta-ripple .65s ease-out forwards}
@keyframes cta-ripple{to{transform:scale(28);opacity:0}}
#auth-dialog[open]{animation:cta-dialog .45s var(--cta-spring) both}
#auth-dialog[open]::backdrop{animation:cta-backdrop .3s ease-out both}
@keyframes cta-dialog{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:none}}
@keyframes cta-backdrop{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.cta-motion,.cta-motion:hover,.cta-motion.is-pressed{transform:none;transition:none}.cta-ripple{display:none}#auth-dialog[open]{animation:cta-backdrop .2s ease-out both}#auth-dialog[open]::backdrop{animation:none}}
/* Animated hero (vanilla port of the 21st.dev "animated hero"): badge pill, rotating words with a spring slide, large centred actions. */
.welcome-page{--hero-spring:cubic-bezier(.3,1.3,.5,1);--hero-spring:linear(0,0.053,0.177,0.332,0.492,0.638,0.762,0.86,0.933,0.984,1.017,1.035,1.042,1.043,1.039,1.033,1.026,1.019,1.013,1.008,1.005,1.002,1,0.999,0.998,0.998,0.998,0.998,1)}
.welcome-hero{display:flex;flex-direction:column;align-items:center;gap:20px;padding:clamp(48px,9vw,112px) 16px clamp(40px,6vw,64px)}
.welcome-hero h1{max-width:42rem;margin:0;font-size:clamp(38px,7vw,68px);line-height:1.08;letter-spacing:-.05em;text-align:center}
.hero-rotator{position:relative;display:flex;width:100%;max-width:42rem;justify-content:center;overflow:hidden;margin-top:-8px;font-family:var(--display);font-size:clamp(30px,5.4vw,52px);font-weight:600;letter-spacing:-.04em;line-height:1.2;color:var(--green);text-align:center}
.hero-rotator-sizer{visibility:hidden}
.hero-rotator-word{position:absolute;top:0;left:0;right:0;opacity:0;transform:translateY(150px);transition:transform .8s ease-out,opacity .8s ease-out;transition:transform 1.4s var(--hero-spring),opacity 1.4s var(--hero-spring)}
.hero-rotator-word[data-pos="active"]{opacity:1;transform:none}
.hero-rotator-word[data-pos="above"]{transform:translateY(-150px)}
.welcome-hero .welcome-lead{max-width:42rem;margin:0;font-size:clamp(17px,2.2vw,20px);line-height:1.6;letter-spacing:-.01em}
.welcome-hero .welcome-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.welcome-hero .welcome-cta .button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;padding:0 32px;border-radius:6px;font-size:14px}
.welcome-hero .welcome-cta .button.subtle{border-color:#d9dfd7;background:#fff}
@media (prefers-reduced-motion:reduce){.hero-rotator{height:auto;flex-wrap:wrap;gap:0 .6em;margin-top:0;font-size:clamp(24px,4vw,34px)}.hero-rotator-sizer{display:none}.hero-rotator-word{position:static;width:auto;opacity:1;transform:none;transition:none}.hero-rotator-word[data-pos="above"]{transform:none}.hero-rotator-word:not(:last-child)::after{content:" ·";color:var(--muted)}}

/* The reference's soft waveform introduces the same visual language at every width. */
.welcome-wave{width:100%;max-width:620px;height:190px;display:grid;place-items:center;background:#e2efe7;border-radius:20px;padding:35px 12%;color:#568a75}
.welcome-wave svg{width:100%;height:100%;overflow:visible}.welcome-wave path{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round}
@media(max-width:560px){
 .welcome-hero{align-items:stretch;text-align:left;gap:14px;padding:28px 0 36px}
 .welcome-hero h1{text-align:left;font-size:38px;line-height:1.12;letter-spacing:-.04em}
 .welcome-hero .welcome-lead{font-size:16px;line-height:1.55}
 .welcome-wave{height:170px;margin-bottom:6px}
 .hero-rotator{justify-content:flex-start;text-align:left;font-size:25px}
 .welcome-hero .welcome-cta{display:flex;flex-direction:column-reverse;margin-top:8px}
 .welcome-hero .welcome-cta .button{width:100%;min-height:52px;border-radius:9px}
}

/* Decorative, independently moving bars, never presented as live audio. */
.welcome-wave line{stroke:currentColor;stroke-width:5;stroke-linecap:round;transform-box:fill-box;transform-origin:center;animation:welcome-wave-breathe var(--wave-duration,1.6s) ease-in-out var(--wave-delay,0s) infinite alternate}
@keyframes welcome-wave-breathe{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.welcome-wave line{animation:none;transform:none}}
