/* CFB pages a client opens from her emails: her booking, the health form, the
   healing journey. Built on the booking sheet's parts (book.css) and themed per
   studio with the same --k-* tokens, so the whole journey is one look. */
.cp{--k-ink:#15100E;--k-paper:#FBF9F6;--k-plaster:#EDE8E2;--k-char:#1B1512;--k-sub:#5B4E46;--k-mute:#8A7D74;--k-acc:#962E36;--k-acc-soft:rgba(150,46,54,.08);--k-rose:#E7969A;--k-ivory:#F6F0E8;--k-disp:Georgia,serif;--k-text:system-ui,-apple-system,sans-serif;
  --k-line:rgba(27,21,18,.1);--k-ease:cubic-bezier(.22,1,.36,1);--k-g:20px;min-height:100svh;background:var(--k-paper);color:var(--k-char);font:400 16px/1.5 var(--k-text);-webkit-font-smoothing:antialiased}
/* resets carry no weight, so the sheet's own parts (book.css) keep their look */
:where(.cp) :where(*){box-sizing:border-box;margin:0;padding:0}
:where(.cp) :where(button,input,textarea,select){font:inherit;color:inherit}
:where(.cp) :where(button){background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
:where(.cp) :where(a){color:inherit;text-decoration:none}
.cp :focus-visible{outline:2px dashed var(--k-char);outline-offset:3px;border-radius:10px}
html,body{background:var(--k-paper,#FBF9F6)}

/* her photo, with the appointment as a ticket over it */
.cp-hero{position:relative;height:min(44svh,340px);background:var(--k-ink);color:var(--k-ivory);overflow:hidden}
.cp-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:cpimg 1.2s var(--k-ease) both}
@keyframes cpimg{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
.cp-hero .k-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(21,16,14,.55) 0%,rgba(21,16,14,.05) 36%,rgba(21,16,14,.3) 60%,rgba(21,16,14,.92) 100%)}
.cp-top{position:absolute;z-index:2;left:var(--k-g);right:var(--k-g);top:calc(16px + env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:12px}
.cp-wm{font-family:var(--k-disp);font-stretch:62.5%;font-weight:620;font-size:21px;letter-spacing:.06em;color:var(--k-ivory)}
.cp-state{height:28px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border-radius:999px;background:rgba(246,240,232,.16);font-size:12.5px;font-weight:600;letter-spacing:.02em}
.cp-state i{width:7px;height:7px;border-radius:50%;background:#8FD19E}
.cp-state.off i{background:var(--k-rose)}
.cp-state svg{width:14px;height:14px}
.cp-state.past i{background:rgba(246,240,232,.6)}
.cp-ticket{position:absolute;z-index:2;left:var(--k-g);right:var(--k-g);bottom:20px}
.cp-ticket small{display:block;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:rgba(246,240,232,.72)}
.cp-ticket h1{margin-top:6px;font-family:var(--k-disp);font-stretch:76%;font-style:italic;font-weight:420;font-size:38px;line-height:1;letter-spacing:-.01em;text-wrap:balance}
.cp-ticket .k-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.cp-ticket .k-meta span{height:28px;display:inline-flex;align-items:center;padding:0 11px;border-radius:999px;background:rgba(246,240,232,.16);font-size:13px;font-weight:500;animation:kpop .45s var(--k-ease) both}
.cp-ticket .k-meta span:nth-child(2){animation-delay:.06s}
.cp-ticket .k-meta span:nth-child(3){animation-delay:.12s}
.cp-ticket .k-meta span:nth-child(4){animation-delay:.18s}

.cp-main{max-width:620px;margin:0 auto;padding:26px var(--k-g) calc(60px + env(safe-area-inset-bottom))}
.cp-main > .k-q{font-size:34px}
.cp-sec{margin-top:30px;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--k-mute)}
.cp-note{margin-top:14px;font-size:13.5px;line-height:1.55;color:var(--k-sub)}

/* things she can do, as big rows */
.cp-acts{margin-top:12px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--k-line),0 18px 40px -32px rgba(21,16,14,.6);overflow:hidden}
.cp-act{display:grid;grid-template-columns:40px 1fr auto;gap:14px;align-items:center;width:100%;min-height:68px;padding:12px 16px;text-align:left;transition:background .2s}
.cp-act+.cp-act{border-top:1px solid var(--k-line)}
.cp-act:active{background:var(--k-acc-soft)}
.cp-act .ic{width:40px;height:40px;border-radius:12px;background:var(--k-plaster);display:grid;place-items:center;color:var(--k-acc)}
.cp-act .ic svg{width:19px;height:19px}
.cp-act b{display:block;font-weight:600;font-size:15.5px;line-height:1.25}
.cp-act small{display:block;margin-top:2px;font-size:13px;color:var(--k-sub);line-height:1.35}
.cp-act .chev{width:16px;height:16px;color:var(--k-mute)}
.cp-act.todo .ic{background:var(--k-acc);color:#fff}
.cp-act.done .ic{background:#E7F0E6;color:#2F5A31}
.cp-act[aria-disabled=true]{opacity:.55;cursor:default}

/* pre-care and other texts that open in place */
.cp-acc{margin-top:12px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--k-line)}
.cp-acc summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;font-weight:600;cursor:pointer}
.cp-acc summary::-webkit-details-marker{display:none}
.cp-acc summary svg{width:16px;height:16px;transition:transform .3s var(--k-ease)}
.cp-acc[open] summary svg{transform:rotate(180deg)}
.cp-acc .tx{padding:0 18px 18px;font-size:15px;line-height:1.6;color:var(--k-char)}
.cp-acc .tx p+p{margin-top:10px}

/* moving: the same day strip and times as the booking sheet */
.cp-move{margin-top:12px;padding:20px 18px 22px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--k-line);animation:kin .42s var(--k-ease) both}
.cp-move .k-days{margin:12px -18px 0;padding:4px 18px 8px}
.cp-move .k-month{margin-top:6px}
.cp-confirm{margin-top:18px}
.cp .k-tk .k-r span{flex:none;max-width:62%}
.cp-confirm .k-go{max-width:none;width:100%;margin-top:14px}
.cp-done{display:flex;gap:16px;align-items:center;margin-top:4px;padding:18px;border-radius:22px;background:var(--k-acc-soft);animation:kin .42s var(--k-ease) both}
.cp-done .k-ok{flex:none;width:56px;height:56px}
.cp-done .k-ok svg{width:26px;height:26px}
.cp-done b{display:block;font-family:var(--k-disp);font-stretch:76%;font-weight:430;font-size:24px;line-height:1.05}
.cp-done span{font-size:14px;color:var(--k-sub)}

.cp-foot{margin-top:40px;padding-top:18px;border-top:1px solid var(--k-line);font-size:12.5px;line-height:1.6;color:var(--k-mute)}
.cp-foot a{text-decoration:underline;text-underline-offset:2px}

.cp-empty{min-height:100svh;display:grid;place-items:center;padding:40px var(--k-g);text-align:center}
.cp-empty .k-q{font-size:36px}
.cp-empty p{margin:12px auto 0;max-width:34ch;color:var(--k-sub)}

/* the health form: one card at a time */
.cp-form .k-qt{font-size:17px;margin-top:26px}
.cp-form .k-step > :first-child .k-qt,.cp-form .k-step > .k-qt:first-child{margin-top:20px}
.cp-form .k-pol + .k-pol{margin-top:10px}
.cp-form .k-qt small{display:block;margin-top:3px;font-weight:400;font-size:13.5px;color:var(--k-sub)}
.cp-form .k-seg button{min-height:52px}
.cp-form .k-f + .k-qt{margin-top:22px}
.cp-prog{display:flex;gap:4px;margin-top:18px}
.cp-prog i{flex:1;height:3px;border-radius:2px;background:var(--k-line)}
.cp-prog i.done{background:var(--k-acc)}
.cp-flag{margin-top:10px;padding:12px 14px;border-radius:16px;background:var(--k-acc-soft);font-size:14px;line-height:1.5}
.cp-bar{position:sticky;bottom:0;z-index:5;display:flex;gap:12px;align-items:center;margin:28px calc(var(--k-g) * -1) 0;padding:12px var(--k-g) calc(12px + env(safe-area-inset-bottom));background:var(--k-paper);border-top:1px solid var(--k-line)}
.cp-bar .k-go{max-width:none}

/* the healing journey */
.cp-days{display:flex;gap:8px;margin:14px calc(var(--k-g) * -1) 0;padding:4px var(--k-g) 8px;overflow-x:auto;scrollbar-width:none}
.cp-days::-webkit-scrollbar{display:none}
.cp-days a{flex:none;min-width:64px;height:64px;padding:0 10px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--k-line);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--k-mute)}
.cp-days a b{display:grid;place-items:center;height:26px;font-family:var(--k-disp);font-stretch:76%;font-weight:430;font-size:22px;letter-spacing:0;color:var(--k-char);text-transform:none}
.cp-days a b svg{width:20px;height:20px}
.cp-days a[aria-current=step]{background:var(--k-ink);color:rgba(246,240,232,.7);box-shadow:none}
.cp-days a[aria-current=step] b{color:var(--k-ivory)}
.cp-days a.today:not([aria-current]){box-shadow:inset 0 0 0 2px var(--k-acc)}
.cp-stage{margin-top:16px;padding:20px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--k-line);animation:kin .35s var(--k-ease) both}
.cp-stage h2{font-family:var(--k-disp);font-stretch:76%;font-weight:430;font-size:28px;line-height:1.05}
.cp-stage h2 em{font-style:italic;color:var(--k-acc)}
.cp-stage p{margin-top:10px;font-size:15px;line-height:1.6}
.cp-stage ul{margin-top:10px;padding-left:18px;font-size:15px;line-height:1.6}

@media (min-width:900px){
  .cp-wrap{display:grid;grid-template-columns:minmax(380px,44%) 1fr;min-height:100vh}
  .cp-hero{position:sticky;top:0;height:100vh}
  .cp-ticket h1{font-size:52px}
  .cp-main{padding:56px 48px 80px;max-width:640px;margin:0}
  .cp-main > .k-q{font-size:44px}
}
@media (prefers-reduced-motion:reduce){.cp *,.cp *::before,.cp *::after{animation:none!important;transition:none!important}}

/* Ic inside text links */
.k-month a svg{width:15px;height:15px}
