/* =====================================================================
   welcome.css (2.17.0): the Welcome screen, calm modern edition.
   Same structure as the first design: logo with steaming cup, eyebrow,
   title, short lead, four feature cards, Get Started and a "don't show"
   checkbox. Hooks used by onboarding.js: #welcome, #welcomeStart,
   #welcomeSkip, #welcomeTitle and the .leaving class.
   ===================================================================== */
.no-welcome #welcome{display:none}
#welcome.welcome{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  padding:clamp(16px,4vh,40px) clamp(14px,4vw,32px);overflow:hidden;color:#e8eef4;
  background:radial-gradient(70% 55% at 50% 0%,rgba(160,189,210,.10),transparent 70%),
    radial-gradient(60% 50% at 50% 100%,rgba(232,196,138,.05),transparent 70%),#0a0e14;
  transition:opacity .7s cubic-bezier(.4,0,.2,1),transform .7s cubic-bezier(.4,0,.2,1)}
#welcome.welcome.leaving{opacity:0;transform:scale(1.02);pointer-events:none}

/* ---------- Card ---------- */
.wc-card{position:relative;width:min(100%,460px);max-height:100%;box-sizing:border-box;text-align:center;
  padding:clamp(22px,4vh,38px) clamp(20px,4vw,34px) clamp(18px,3vh,26px);border-radius:30px;
  background:linear-gradient(165deg,rgba(255,255,255,.07),rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 40px 90px -36px rgba(0,0,0,.85),0 0 0 1px rgba(160,189,210,.04),inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);
  animation:wcIn .8s cubic-bezier(.2,.7,.2,1) both}
@keyframes wcIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
.wc-card>*{animation:wcUp .7s cubic-bezier(.2,.7,.2,1) both}
.wc-card>:nth-child(1){animation-delay:.12s}.wc-card>:nth-child(2){animation-delay:.18s}
.wc-card>:nth-child(3){animation-delay:.24s}.wc-card>:nth-child(4){animation-delay:.3s}
.wc-card>:nth-child(5){animation-delay:.36s}.wc-card>:nth-child(6){animation-delay:.42s}
.wc-card>:nth-child(7){animation-delay:.48s}
@keyframes wcUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- Logo circle (steam is styled in design2.css) ---------- */
.w-logo{display:flex;align-items:center;justify-content:center;width:66px;height:66px;margin:0 auto 18px;border-radius:50%;
  box-sizing:border-box;color:#A0BDD2;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.14),rgba(255,255,255,.03) 70%);
  border:1px solid rgba(160,189,210,.25);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 26px -8px rgba(160,189,210,.45)}
.w-logo svg{width:38px;height:38px;display:block}

/* ---------- Type ---------- */
.w-eyebrow{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#A0BDD2}
#welcomeTitle{margin:0 0 10px;font-size:clamp(30px,5.4vh,42px);line-height:1.06;font-weight:800;letter-spacing:-.03em;
  background:linear-gradient(180deg,#ffffff,#cfe0ec);-webkit-background-clip:text;background-clip:text;color:transparent}
.w-lead{margin:0 auto;max-width:38ch;font-size:clamp(13.5px,2vh,15.5px);line-height:1.6;color:rgba(232,238,244,.62)}

/* ---------- Feature cards ---------- */
.w-features{list-style:none;margin:clamp(16px,3vh,26px) 0 clamp(16px,3vh,24px);padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}
.w-features li{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;box-sizing:border-box;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);
  transition:transform .25s var(--ft-ease,ease),border-color .25s,background .25s}
.w-features li:hover{transform:translateY(-2px);border-color:rgba(160,189,210,.3);background:rgba(255,255,255,.055)}
.w-features .ic{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#A0BDD2;background:rgba(160,189,210,.10)}
.w-features .ic .i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.w-features strong{display:block;font-size:13.5px;font-weight:700;color:#eef3f7}
.w-features small{display:block;margin-top:1px;font-size:12px;color:rgba(232,238,244,.5)}

/* ---------- CTA ---------- */
.w-btn{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;
  border:0;border-radius:18px;cursor:pointer;font:inherit;font-size:16px;font-weight:800;letter-spacing:.01em;color:#0d1318;
  background:linear-gradient(135deg,#e4eef6 0%,#A0BDD2 100%);
  box-shadow:0 14px 36px -14px rgba(160,189,210,.7),inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .3s var(--ft-ease,ease),box-shadow .35s var(--ft-ease,ease)}
.w-btn .i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.w-btn::after{content:'';position:absolute;inset:0;transform:translateX(-120%);transition:transform .7s;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%)}
.w-btn:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 20px 44px -14px rgba(160,189,210,.85),inset 0 1px 0 rgba(255,255,255,.4)}
.w-btn:hover::after{transform:translateX(120%)}
.w-btn:hover .i{transform:translateX(3px)}
.w-btn:active{transform:scale(.985)}
.w-btn:focus-visible{outline:2px solid #e4eef6;outline-offset:4px}

/* ---------- Checkbox (custom) ---------- */
.w-skip{position:relative;display:inline-flex;align-items:center;gap:10px;margin-top:16px;cursor:pointer;user-select:none;
  font-size:13px;font-weight:600;color:rgba(232,238,244,.55);transition:color .2s}
.w-skip:hover{color:#e8eef4}
.w-skip input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.w-check{flex:none;width:20px;height:20px;border-radius:7px;display:grid;place-items:center;box-sizing:border-box;
  border:1.5px solid rgba(160,189,210,.4);background:rgba(255,255,255,.04);transition:background .25s,border-color .25s,box-shadow .25s}
.w-check svg{width:12px;height:12px;fill:none;stroke:#0d1318;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:18;stroke-dashoffset:18;transition:stroke-dashoffset .3s ease .05s}
.w-skip:hover .w-check{border-color:rgba(160,189,210,.75)}
.w-skip input:checked + .w-check{background:linear-gradient(135deg,#e4eef6,#A0BDD2);border-color:transparent;box-shadow:0 0 14px -3px rgba(160,189,210,.6)}
.w-skip input:checked + .w-check svg{stroke-dashoffset:0}
.w-skip input:focus-visible + .w-check{outline:2px solid #A0BDD2;outline-offset:3px}

/* ---------- Smaller screens ---------- */
@media (max-height:700px){.w-lead{display:none}.w-features{margin:14px 0 14px}}
@media (max-width:460px){.w-features{grid-template-columns:1fr}.w-features small{display:none}}
body.welcome-open #navToggle{display:none!important}
@media (prefers-reduced-motion:reduce){.wc-card,.wc-card>*,.w-btn::after{animation:none;transition:none}}

/* ---------- Feature icon animations: each one matches its feature ---------- */
.w-features .ic .i{overflow:visible}
/* 1. Smart timer: the hand sways like a clock ticking */
.w-features li:nth-child(1) .i{transform-origin:12px 12px;animation:fTick 2.4s ease-in-out infinite}
@keyframes fTick{0%,100%{transform:rotate(0)}20%{transform:rotate(-9deg)}40%{transform:rotate(7deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(2deg)}}
/* 2. Calm sounds: rain falls from the cloud */
.w-features li:nth-child(2) .i path:nth-child(2){stroke-dasharray:2 6;animation:fRain 1.4s linear infinite}
.w-features li:nth-child(2) .i path:nth-child(3){stroke-dasharray:2 6;animation:fRain 1.4s linear infinite .45s}
@keyframes fRain{from{stroke-dashoffset:8}to{stroke-dashoffset:-8}}
.w-features li:nth-child(2) .i{animation:fBob 3.6s ease-in-out infinite}
@keyframes fBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
/* 3. Streaks: bars rise and fall like a growing streak */
.w-features li:nth-child(3) .i path:nth-child(n+2){transform-box:fill-box;transform-origin:50% 100%;animation:fBars 2.2s ease-in-out infinite}
.w-features li:nth-child(3) .i path:nth-child(3){animation-delay:.25s}
.w-features li:nth-child(3) .i path:nth-child(4){animation-delay:.5s}
@keyframes fBars{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}
/* 4. Cloud sync: the cloud floats and gently pulses */
.w-features li:nth-child(4) .i{animation:fFloat 3.2s ease-in-out infinite}
@keyframes fFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@media (prefers-reduced-motion:reduce){.w-features .ic .i,.w-features .ic .i *{animation:none!important}}
