/* The way in: signing in to the portal, and setting a password from an invite.
   The website's brown and blue on one side, the portal's light card on the
   other, so the step between the two looks like a step and not a different
   product. Shared by portal.html and welcome.html. */
.door{min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); background:#FAF7F2}

/* ── the brown side ── */
.door-side{position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; gap:40px;
           padding:clamp(28px,4vw,52px) clamp(24px,5vw,72px); color:#A2BCD6;
           background:radial-gradient(70% 55% at 85% 20%, rgba(63,110,150,.55) 0%, transparent 70%),
                      radial-gradient(60% 50% at 10% 95%, rgba(63,110,150,.35) 0%, transparent 70%),
                      linear-gradient(160deg, #4A3229 0%, #3E2821 45%, #2C1C17 100%)}
.door-wm{position:relative; z-index:1; display:inline-flex; align-items:baseline; align-self:flex-start; font-family:var(--wordmark, var(--display));
         font-weight:800; letter-spacing:-.035em; font-size:30px; color:#A2BCD6; text-decoration:none}
.door-wm .k{position:relative; z-index:0; display:inline-block; color:#8CC2F2; line-height:1; padding:.08em .2em .12em; margin-right:.1em; font-size:1.04em}
.door-wm .k::before{content:""; position:absolute; inset:-.02em 0 0; z-index:-1; border-radius:.26em; background:linear-gradient(160deg,#5A3D32,#2C1C17);
                    box-shadow:0 .05em .14em rgba(0,0,0,.35), inset 0 0 0 .02em rgba(162,188,214,.25)}
.door-say{position:relative; z-index:1; margin:0; max-width:13ch; font-family:var(--display); font-weight:800; letter-spacing:-.035em;
          line-height:1.04; font-size:clamp(36px,4.6vw,64px); color:#A2BCD6}
.door-say em{font-style:normal; color:#8CC2F2}
.door-foot{position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:8px 20px; font-family:var(--mono); font-size:10.5px;
           letter-spacing:.16em; text-transform:uppercase; color:rgba(162,188,214,.6)}
.door-foot a{color:inherit; text-decoration:none} .door-foot a:hover{color:#A2BCD6}
/* blue things drifting behind it, as on the website */
.door-float{position:absolute; inset:0; pointer-events:none}
.door-float i{position:absolute; display:block; border-radius:28%; border:1.5px solid rgba(140,194,242,.32); animation:doorbob 9s ease-in-out infinite}
.door-float i:nth-child(1){width:74px; height:74px; top:16%; right:12%; transform:rotate(18deg)}
.door-float i:nth-child(2){width:38px; height:38px; top:62%; right:30%; animation-duration:11s; animation-delay:-3s}
.door-float i:nth-child(3){width:120px; height:120px; bottom:-30px; right:-24px; border-color:rgba(140,194,242,.18); animation-duration:13s}
.door-float i:nth-child(4){width:14px; height:14px; top:38%; left:58%; border-radius:50%; border:0; background:rgba(140,194,242,.5); animation-duration:7s}
.door-float i:nth-child(5){width:260px; height:260px; top:-80px; right:-60px; border:0; border-radius:50%;
                           background:radial-gradient(circle, rgba(140,194,242,.28), transparent 65%); animation-duration:15s}
@keyframes doorbob{50%{translate:0 -14px; rotate:8deg}}
@media (prefers-reduced-motion:reduce){ .door-float i{animation:none} }

/* ── the light side ── */
.door-main{display:grid; place-items:center; padding:clamp(28px,5vw,60px) 20px;
           background:radial-gradient(60% 50% at 95% 0%, rgba(140,194,242,.32) 0%, transparent 70%),
                      radial-gradient(40% 40% at 0% 100%, rgba(162,188,214,.28) 0%, transparent 70%), #FAF7F2}
.door-card{width:100%; max-width:410px; background:#fff; border:1px solid rgba(63,110,150,.16); border-top:4px solid #2F5C82;
           border-radius:24px; padding:34px 32px 30px; box-shadow:0 30px 60px -40px rgba(47,92,130,.6)}
.door-label{display:inline-flex; align-items:center; gap:.8em; margin:0 0 12px; font-family:var(--mono); font-weight:600; font-size:10.5px;
            letter-spacing:.24em; text-transform:uppercase; color:#3F6E96}
.door-label::before{content:""; width:28px; height:1px; background:linear-gradient(90deg, transparent, #3F6E96)}
.door-card h1{margin:0; font-family:var(--display); font-weight:800; letter-spacing:-.03em; line-height:1.08; font-size:34px; color:#2F5C82}
.door-card h1 em{font-style:normal; color:#3E2821}
.door-card .lede{margin:8px 0 24px; font-size:14.5px; line-height:1.5; color:#6E5D53}
.door-card label{display:block; margin:0 0 6px; font-size:12.5px; font-weight:700; color:#3E2821}
.door-card .fwrap{margin-bottom:14px}
.door-card .in{width:100%; box-sizing:border-box; border-radius:12px; border:1px solid rgba(63,110,150,.24); background:#fff;
               padding:11px 13px; font-size:15px}
.door-card .in:hover{border-color:rgba(63,110,150,.42)}
.door-card .in:focus{outline:2px solid #8CC2F2; outline-offset:0; border-color:#3F6E96}
.door-card .btn{width:100%; justify-content:center; margin-top:8px; border-radius:99px; padding:13px 18px; font-size:15px; font-weight:700;
                background:#2F5C82; color:#fff}
.door-card .btn:hover{background:#264D6E}
.door-card .err{margin:0 0 16px; padding:10px 12px; border-radius:12px; background:#FBE8D6; color:#B4470A; font-size:13.5px; font-weight:600}
.door-card .ok{margin:0 0 16px; padding:10px 12px; border-radius:12px; background:#EAF2FA; color:#2F5C82; font-size:13.5px; font-weight:600}
.door-card label.door-remember{display:flex; align-items:center; gap:9px; margin:2px 0 6px; font-weight:600; color:#6E5D53; cursor:pointer}
.door-card .door-remember input{width:16px; height:16px; margin:0; accent-color:#2F5C82}
.door-card .door-code{font-family:var(--mono); font-size:20px; letter-spacing:.3em; text-align:center}
.door-card .door-aside{margin:20px 0 0; padding-top:16px; border-top:1px solid rgba(63,110,150,.14); font-size:13px; color:#6E5D53}
.door-card .door-aside a{color:#2F5C82; font-weight:700}

/* On a phone the brown side becomes a band across the top. */
@media (max-width:860px){
  .door{grid-template-columns:1fr; grid-template-rows:auto 1fr}
  .door-side{gap:18px; padding:22px 22px 30px}
  .door-wm{font-size:24px}
  .door-say{font-size:clamp(28px,8.4vw,40px); max-width:none}
  .door-foot{display:none}
  .door-float i:nth-child(1), .door-float i:nth-child(3){display:none}
  .door-main{place-items:start center; padding:24px 16px 40px}
  .door-card{padding:28px 22px 24px}
  .door-card h1{font-size:29px}
}

/* ── the welcome: the same door, with her app on the brown side ───────────
   portal.html's setup(). The phone is drawn from the business row and repaints
   as she chooses, so the brown side is a preview, not a picture. */
.su .door-side{justify-content:flex-start; gap:28px}
.su .door-main{place-items:start center; padding-top:clamp(28px,5vh,56px)}
.su-wrap{width:100%; max-width:560px}
.su .door-card{max-width:none}
.su-say{font-size:clamp(28px,3vw,42px); max-width:11ch; margin-top:auto}
.su-phone{position:relative; z-index:1; margin:0 auto; width:min(300px, 80%)}
.su-screen{position:relative; overflow:hidden; border-radius:34px; background:var(--paper, #FAF7F2);
           box-shadow:0 0 0 7px #16161a, 0 0 0 8px #3a3a40, 0 30px 60px -24px rgba(0,0,0,.6);
           min-height:470px; display:flex; flex-direction:column}
.su-screen .phead{--chrome-top:30px; padding-top:34px}
.su-screen .phead.hero.under{padding-top:0}
.su-screen .phead .qline p{font-size:13px}
.su-phone figcaption{margin-top:16px; text-align:center; font-family:var(--mono); font-size:10px;
                     letter-spacing:.2em; text-transform:uppercase; color:rgba(162,188,214,.7)}
.su-rows{padding:14px 14px 70px; display:grid; gap:8px; flex:1}
.su-msg{background:#fff; border-radius:14px; padding:10px 12px; font-size:12px; color:#3E2821;
        box-shadow:0 1px 0 rgba(0,0,0,.05); border-left:3px solid var(--azure, #2F5C82)}
.su-msg b{display:block; font-size:11px; color:var(--azure-ink, #2F5C82); margin-bottom:2px}
.su-habit{display:flex; align-items:center; gap:9px; background:#fff; border-radius:12px; padding:9px 11px;
          font-size:12px; color:#3E2821}
.su-habit i{width:16px; height:16px; border-radius:50%; border:1.5px solid var(--azure, #2F5C82); flex:none}
.su-habit.done i{background:var(--azure, #2F5C82)}
.su-tabs{position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:space-around;
         padding:8px 12px 14px; background:#fff; border-top:1px solid rgba(0,0,0,.06)}
.su-tabs span{width:18px; height:4px; border-radius:99px; background:rgba(62,40,33,.18)}
.su-tabs b{display:grid; place-items:center; width:40px; height:40px; border-radius:50%; margin-top:-22px;
           background:var(--bark, #3E2821); color:var(--on-bark, #fff); box-shadow:0 0 0 4px #fff}
.su-tabs b svg{width:20px; height:20px}

/* steps along the top */
.su-top{display:flex; align-items:center; gap:14px; margin:0 0 16px}
.su-steps{display:flex; gap:6px; list-style:none; margin:0; padding:0; flex:1; min-width:0}
.su-steps li{flex:1; min-width:0}
.su-steps button{width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:0;
                 background:none; border:0; cursor:pointer; font:inherit; text-align:left; color:#6E5D53}
.su-steps button::before{content:""; display:block; width:100%; height:4px; border-radius:99px; background:rgba(63,110,150,.18)}
.su-steps button.past::before{background:#8CC2F2}
.su-steps button[aria-current="true"]::before{background:#2F5C82}
.su-steps i{display:none}
.su-steps span{font-size:11px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
.su-steps button[aria-current="true"] span{color:#2F5C82}
.su-skip{background:none; border:0; padding:4px 2px; cursor:pointer; font:inherit; font-size:13px; font-weight:700;
         color:#3F6E96; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(63,110,150,.35)}
.su-skip:hover{color:#2F5C82; text-decoration-color:currentColor}
.su-top .su-skip{flex:none}

/* the card's insides */
.su-card h1{font-size:clamp(28px,3vw,36px)}
.su-q{margin:22px 0 2px; font-family:var(--display); font-size:18px; font-weight:800; color:#3E2821; letter-spacing:-.01em}
.su-hint{margin:4px 0 12px; font-size:13px; color:#6E5D53; line-height:1.5}
.su-chips{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px}
.su-chips button{border:1.5px solid rgba(63,110,150,.28); background:#fff; color:#3E2821; border-radius:99px;
                 padding:8px 14px; font:inherit; font-size:13.5px; font-weight:600; cursor:pointer}
.su-chips button:hover{border-color:#3F6E96}
.su-chips button[aria-pressed="true"]{background:#2F5C82; border-color:#2F5C82; color:#fff}
.su-chips button[aria-pressed="true"]::before{content:"✓ "}
.su-foot{display:flex; align-items:center; gap:14px; margin-top:26px; padding-top:18px; border-top:1px solid rgba(63,110,150,.14)}
.su-gap{flex:1}
.door-card .su-foot .btn{width:auto; margin:0; padding:12px 22px}
.door-card .su-foot .btn.line, .door-card .btn.line{background:#fff; color:#2F5C82; box-shadow:inset 0 0 0 1.5px rgba(63,110,150,.35)}
.door-card .btn.sm{width:auto; margin:0; padding:8px 14px; font-size:13px}

.su-swatches{display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 16px; align-items:center}
.su-swatches button{width:36px; height:36px; border-radius:12px; border:0; cursor:pointer;
                    box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.su-swatches button[aria-pressed="true"]{box-shadow:0 0 0 3px #fff, 0 0 0 5px #2F5C82}
.su-own{display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:#3E2821; cursor:pointer;
        padding-left:6px}
.su-own input{width:36px; height:36px; margin:0; padding:0; border:0; border-radius:12px; background:none; cursor:pointer}
.su-own input::-webkit-color-swatch-wrapper{padding:0}
.su-own input::-webkit-color-swatch{border:1px dashed rgba(63,110,150,.5); border-radius:12px}

.su-up{display:flex; gap:16px; align-items:center; padding:14px; border:1px solid rgba(63,110,150,.16);
       border-radius:16px; margin-bottom:12px; background:#FCFAF7}
.su-thumb{flex:none; width:96px; height:72px; border-radius:12px; overflow:hidden; display:grid; place-items:center;
          background:#EEF4FA; color:#3F6E96}
.su-thumb.logo{width:72px; background:#fff; box-shadow:inset 0 0 0 1px rgba(63,110,150,.16)}
.su-thumb img{width:100%; height:100%; object-fit:cover}
.su-thumb.logo img{object-fit:contain; padding:8px; box-sizing:border-box}
.su-thumb svg{width:28px; height:28px}
.su-uptext{display:flex; flex-direction:column; gap:3px; min-width:0}
.su-uptext b{font-size:14px; color:#3E2821}
.su-uptext > span{font-size:12.5px; color:#6E5D53; line-height:1.45}
.su-upbtns{display:flex; gap:12px; align-items:center; margin-top:6px}

.su-team{display:grid; gap:8px; margin:0 0 16px}
.su-person{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; background:#FCFAF7;
           border:1px solid rgba(63,110,150,.14)}
.su-person > span:nth-child(2){flex:1; min-width:0; display:flex; flex-direction:column}
.su-person b{font-size:13.5px; color:#3E2821}
.su-person small{font-size:12px; color:#6E5D53; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.su-add{display:grid; grid-template-columns:1fr 1fr; gap:0 12px; padding:16px; border-radius:16px;
        background:#EEF4FA; margin-bottom:8px}
.su-add .fwrap:nth-child(3){grid-column:1 / -1}
.su-add .btn{justify-self:start}
.su-card .statuscard{margin:0 0 14px; border-radius:14px}

.su-check{display:grid; gap:8px; margin:6px 0 0}
.su-check > div{display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:14px; background:#FCFAF7;
                border:1px solid rgba(63,110,150,.14); font-weight:700; font-size:14px; color:#3E2821}
.su-check i{width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:13px;
            background:#2F5C82; color:#fff; flex:none}
.su-check .su-todo i{background:none; box-shadow:inset 0 0 0 1.5px rgba(63,110,150,.4)}
.su-check .su-todo span{color:#6E5D53}
.su-check .su-skip{margin-left:auto}

/* On Today, until it is done or hidden. */
.su-remind{display:flex; align-items:center; gap:14px; padding:14px 16px; margin:0 0 22px; border-radius:18px;
           background:#fff; border:1px solid rgba(63,110,150,.16); border-left:4px solid #2F5C82;
           box-shadow:0 18px 40px -32px rgba(47,92,130,.7)}
.su-remind-k{flex:none; width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
             background:#2F5C82; color:#fff}
.su-remind-k svg{width:22px; height:22px}
.su-remind .t{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.su-remind .t b{font-size:14.5px; color:#3E2821}
.su-remind .t span{font-size:13px; color:#6E5D53}

@media (max-width:860px){
  .su .door-side{gap:16px}
  .su-say{display:none}
  .su:not(.su-live) .su-phone{display:none}
  .su-phone{width:min(210px, 62%)}
  .su-phone figcaption{margin-top:12px}
  .su-screen{min-height:340px; border-radius:26px}
  .su-steps span{display:none}
  .su-add{grid-template-columns:1fr}
  .su-foot{flex-wrap:wrap}
  .su-remind{flex-wrap:wrap}
  .su-remind .t{flex-basis:calc(100% - 54px)}
}

/* "Can see clients", in the welcome's team step (0059). */
.su-check-row{display:flex; gap:10px; align-items:flex-start; grid-column:1 / -1; font-size:12.5px;
              line-height:1.45; color:var(--ink-soft); cursor:pointer}
.su-check-row b{color:var(--ink)}
.su-check-row .switch{margin-top:1px}
