/* Brand layer for the Student Hub and the coach dashboard.
   Warm paper, ink type, an editorial serif, coral pills and a hand-drawn blue underline.
   Loaded after each page's own styles, so it only has to say what changes. */
:root{
  --paper:#fbf8f4;      /* page */
  --cream:#f5efe7;      /* soft panels, sidebar */
  --cream-2:#efe6db;    /* pressed / tracks */
  --ink:#17162b;        /* text, dark buttons */
  --ink-2:#4a4859;
  --muted:#76727f;
  --coral:#f4a07d;      /* primary action */
  --coral-2:#ee8d65;
  --coral-soft:#fde9df;
  --sky:#7cc6ea;        /* the underline, info */
  --sky-soft:#e4f3fb;
  --sky-ink:#1d6488;
  --sun:#f6d27a;
  --sun-soft:#fcf1d3;

  --bg:var(--paper); --panel:#ffffff; --sunk:var(--cream); --line:#ece4d9;
  --fg:var(--ink); --accent:var(--ink); --accent-ink:#ffffff; --accent-soft:var(--coral-soft);
  --good:#2c7a52; --good-soft:#e3f1e8; --warn:#93650a; --warn-soft:var(--sun-soft); --bad:#b3402e; --bad-soft:#fbe5df;
  --display:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --body:"Hanken Grotesk","Helvetica Neue",Arial,system-ui,sans-serif;
  --mono:var(--body);
  --r:22px; --r-sm:14px;
  --swoosh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 70 4, 160 2, 237 4' fill='none' stroke='%237cc6ea' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M24 18 C 90 13, 150 12, 205 13' fill='none' stroke='%237cc6ea' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html{background:var(--paper)}
body{background:var(--paper);color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 0}
h1,h2,h3,h4,legend{font-family:var(--display);font-weight:700;letter-spacing:-.02em;font-variation-settings:"SOFT" 50,"opsz" 96;color:var(--ink)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
::selection{background:var(--sun)}
a{color:var(--ink);text-decoration-thickness:1.5px;text-underline-offset:3px}

/* the signature: a hand-drawn double underline under page titles */
.swoosh,.view-head h2,.screen h1{position:relative;display:inline-block;padding-bottom:14px;align-self:flex-start}
.swoosh::after,.view-head h2::after,.screen h1::after{content:"";position:absolute;left:-2px;right:8%;bottom:0;height:14px;background:var(--swoosh) no-repeat center/100% 100%;pointer-events:none}
.view-head h2{font-size:44px;line-height:1.05}
.view-head p{font-size:18px;color:var(--ink-2);line-height:1.6}
.lite{font-family:var(--body);font-weight:300;letter-spacing:-.03em;display:block;font-variation-settings:normal}
.hello h2{font-size:52px}

/* buttons: coral pills, ink outline for secondary */
.btn{background:var(--coral);border:1.5px solid var(--coral);color:var(--ink);font-weight:600;letter-spacing:-.005em;padding:12px 24px;transition:background .15s,border-color .15s,transform .15s}
.btn:hover{background:var(--coral-2);border-color:var(--coral-2);filter:none}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:#fff}
.btn.small,.btn.sm{padding:8px 16px}
.btn{border-radius:999px}
.linkbtn{color:var(--ink);font-weight:600;text-decoration-thickness:1.5px}
.gbtn{border-color:var(--line);font-weight:600}
.gbtn:hover{border-color:var(--ink)}

/* surfaces */
.card{border:1px solid var(--line);border-radius:var(--r);padding:26px;box-shadow:none}
.field input,.field select,.field textarea,.composer textarea,.thread textarea,.search,.fb input{background:#fff;border:1.5px solid var(--line);border-radius:12px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--cream-2)}
.chip{font-weight:600;letter-spacing:.005em}
.chip.info{background:var(--sky-soft);color:var(--sky-ink)}
.tip{background:var(--sky-soft)}
.tip b{color:var(--sky-ink)}
.example,.warnbox{background:var(--sun-soft)}
details.more>summary{color:var(--ink)}
details.more>summary::before{background:var(--sun)}
.progress{background:var(--cream-2);height:8px}
.progress i{background:var(--ink)}
.steps i.on{background:var(--ink)}

/* sidebar */
.rail{background:var(--cream);border-right:0;padding:28px 16px}
.brand{gap:4px}
.brand .eyebrow{color:var(--muted);font-weight:500;font-size:13px}
.brand h1{font-size:23px;line-height:1.1;font-weight:700}
.nav .group{color:var(--muted);font-weight:500}
.nav button{font-weight:500;color:var(--ink-2);border-radius:12px}
.nav button svg{stroke:var(--ink-2);stroke-width:1.6}
.nav button:hover{background:rgba(23,22,43,.05)}
.nav button[aria-selected="true"]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 0 rgba(23,22,43,.04),0 2px 10px rgba(23,22,43,.05)}
.nav button[aria-selected="true"] svg{stroke:var(--ink)}
main{padding-block:44px 88px;padding-inline:48px}
.view{gap:26px}

/* home */
.next-card{background:var(--ink);color:#fbf8f4;border-radius:26px;padding:30px 32px;position:relative;overflow:hidden}
.next-card::before{content:"";position:absolute;right:-58px;top:-92px;width:132px;height:132px;border-radius:50%;background:var(--sun)}
.next-card>*{position:relative}
.next-card .k{color:#cfcad8;opacity:1;font-weight:500}
.next-card h3{font-size:28px;color:#fff;font-weight:600;max-width:30ch}
.next-card .btn{background:var(--coral);border-color:var(--coral);color:var(--ink)}
.next-card .btn:hover{background:#fff;border-color:#fff}
.next-card .progress{background:rgba(255,255,255,.18)}
.next-card .progress i{background:var(--coral)}
.action{background:var(--cream);border:0;border-radius:22px;padding:24px;gap:10px;transition:transform .15s,background .15s}
.action:hover{background:var(--cream-2);box-shadow:none;transform:translateY(-2px)}
.action .ic{width:46px;height:46px;border-radius:14px;background:#fff}
.action .ic svg{stroke:var(--ink);stroke-width:1.6}
.action:nth-child(3n+1) .ic{background:var(--coral-soft)}
.action:nth-child(3n+2) .ic{background:var(--sun-soft)}
.action:nth-child(3n) .ic{background:var(--sky-soft)}
.action b{font-family:var(--display);font-size:21px;font-weight:700;letter-spacing:-.015em;font-variation-settings:"SOFT" 50}
.action span{color:var(--ink-2);font-size:15px;line-height:1.5}

/* chat */
.msg.user .bubble{background:var(--ink);color:#fff}
.msg.bot .bubble{background:var(--cream)}
.starters button{border-color:var(--line);background:#fff}
.starters button:hover,.fb button.thumb:hover{border-color:var(--ink)}
.big{font-family:var(--display);font-weight:700}
.kpi,.ai{background:var(--cream)}

/* dashboard */
.db-next{background:var(--cream);border-radius:16px;padding:16px 18px}
.db-next .k{color:var(--muted);font-weight:500}
.db-next b{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.01em}
.alert{border-radius:16px;padding:14px 18px}
.alert.bad{border-left:0;background:var(--bad-soft)}
.alert.good{border-left:0;background:var(--good-soft)}
.callbar{background:var(--sun-soft);border:0;border-radius:16px;padding:14px 18px}
.msgs li{border-color:var(--line);border-radius:16px;padding:14px 16px}
.msgs li.unread{border-color:var(--sky);background:var(--sky-soft)}
.sec-h{font-size:24px}
.dsec>header h3{font-size:26px}
.dsec>header .n{font-variant-numeric:tabular-nums}
.item{border:1px solid var(--line);border-radius:16px;padding:16px 18px;transition:border-color .15s}
.item:hover{border-color:#ddd2c4}
.item.done{background:var(--cream);border-color:transparent}
.item.overdue{border-color:#e8b3a8;background:#fffaf8}
.item>input[type=checkbox]{accent-color:var(--ink)}
.item .t label{font-weight:600}
.item form.survey{background:var(--paper);border-radius:16px}
.thread{border-left-color:var(--sky)}
.thread .c.team .who{color:var(--sky-ink)}
.snap dd{font-family:var(--display);font-weight:600;font-size:18px;letter-spacing:-.01em}
.opt input{accent-color:var(--ink)}

/* sign-in */
.screen{background:var(--paper)}
.screen .card{border-radius:28px;padding:36px;max-width:480px}
.screen h1{font-size:38px;line-height:1.08}
.screen .chip.info{background:var(--cream);color:var(--ink-2)}

/* ---------- coach dashboard ---------- */
.top h1{font-family:var(--display);font-size:42px;font-weight:700;letter-spacing:-.02em;font-stretch:normal}
.top .eyebrow{font-family:var(--body);letter-spacing:0;text-transform:none;font-size:14px;color:var(--muted)}
.tabs{border-bottom:1px solid var(--line)}
.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.tile{background:var(--cream);border:0;border-radius:20px;padding:18px 20px}
.tile b{font-family:var(--display);font-weight:700;font-size:38px;letter-spacing:-.02em}
.tile.warn b{color:#b5562f}
.tablewrap{border-color:var(--line);border-radius:20px}
table th{font-family:var(--body)!important;letter-spacing:0!important;text-transform:none!important;font-size:13px!important;color:var(--muted)}
tbody tr:hover{background:var(--paper)}
.bar{background:var(--cream-2)}
.bar i{background:var(--ink)}
.pill.active{background:var(--good-soft);color:var(--good)}
.pill.stalled{background:var(--sun-soft);color:var(--warn)}
.pill.invited{background:var(--cream);color:var(--ink-2)}
.filters button{border-color:var(--line);background:#fff;border-radius:999px}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.ci{border-radius:14px}
.ci.over{background:#fffaf8;border-color:#e8b3a8}
.ci.done{background:var(--cream)}
.survey,.callcard{border-radius:20px}

@media (max-width:860px){
  .rail{padding:14px 16px}
  main{padding-inline:16px;padding-block:26px 64px}
  .view-head h2{font-size:34px}
  .hello h2{font-size:38px}
  .next-card{padding:24px}
  .next-card h3{font-size:23px}
  .next-card::before{width:96px;height:96px;right:-40px;top:-52px}
  .top h1{font-size:32px}
  .screen .card{padding:26px}
  .screen h1{font-size:31px}
}
@media (prefers-reduced-motion:reduce){.btn,.action,.item{transition:none}}
.top .eyebrow{display:block;margin-bottom:6px}
.top .btn{padding:8px 18px;font-size:15px}

/* ---------- program overview (first visit) ---------- */
body.gated .rail{display:none}
body.gated .app{grid-template-columns:minmax(0,1fr)}
.welcome{max-width:820px;gap:46px;padding-top:12px}
.wl-hero{display:flex;flex-direction:column;gap:20px}
.wl-eyebrow{font-size:14px;font-weight:600;color:var(--muted);display:inline-flex;align-items:center;gap:10px}
.wl-eyebrow::before{content:"";width:28px;height:2px;background:var(--coral);border-radius:2px}
.wl-hero h2{font-size:60px;line-height:1.02;letter-spacing:-.03em}
.wl-hero h2 .lite{margin-bottom:6px}
.wl-hero h2 .swoosh{display:inline;padding-bottom:0;background:var(--swoosh) no-repeat left bottom/100% 14px;padding-bottom:12px}
.wl-hero h2 .swoosh::after{display:none}
.wl-lead{margin:0;font-size:20px;line-height:1.6;color:var(--ink-2);max-width:58ch}
.wl-block{display:flex;flex-direction:column;gap:20px}
.wl-block>h3{font-size:30px}
.wl-path{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;position:relative}
.wl-path li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px;padding:16px 0;position:relative}
.wl-path li:not(:last-child)::before{content:"";position:absolute;left:25px;top:62px;bottom:-14px;border-left:2px dashed var(--cream-2)}
.wl-path .n{width:52px;height:52px;border-radius:50%;background:var(--cream);display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:22px;color:var(--ink)}
.wl-path b{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.015em;display:block;margin-top:4px}
.wl-path p{margin:4px 0 0;color:var(--ink-2);font-size:16.5px;line-height:1.6;max-width:56ch}
.wl-path li.hl .n{background:var(--coral);}
.wl-path li.hl>div{background:var(--coral-soft);border-radius:18px;padding:14px 18px;margin:-10px 0 -10px -6px}
.wl-quote{margin:0;background:var(--ink);color:#fff;border-radius:28px;padding:40px 44px;position:relative;overflow:hidden}
.wl-quote::after{content:"";position:absolute;right:-50px;bottom:-60px;width:160px;height:160px;border-radius:50%;background:var(--sun)}
.wl-quote p{margin:0;font-family:var(--display);font-size:32px;line-height:1.25;font-weight:600;letter-spacing:-.02em;max-width:24ch;position:relative;z-index:1;font-variation-settings:"SOFT" 50}
.wl-tips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wl-tips>div{background:var(--cream);border-radius:22px;padding:22px 24px;display:flex;flex-direction:column;gap:8px}
.wl-tips .ic{width:44px;height:44px;border-radius:14px;background:#fff;display:grid;place-items:center;margin-bottom:4px}
.wl-tips .ic svg{width:22px;height:22px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wl-tips b{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-.015em}
.wl-tips p{margin:0;color:var(--ink-2);font-size:15.5px;line-height:1.55}
.wl-sign{border-top:1px solid var(--line);padding-top:30px;display:flex;flex-direction:column;gap:4px}
.wl-sign p{margin:0;color:var(--ink-2);font-size:17px}
.wl-sign .sig{font-family:var(--display);font-style:italic;font-size:34px;color:var(--ink);font-weight:500;margin-top:6px;letter-spacing:-.01em}
.wl-sign .role{font-size:14px;color:var(--muted)}
.wl-cta{margin-top:26px;gap:18px}
.wl-cta .btn{padding:15px 30px;font-size:17px}

/* ---------- home ---------- */
.journey,.tools{display:flex;flex-direction:column;gap:16px}
.journey h3,.tools h3{font-size:24px}
.jr{list-style:none;margin:0;padding:22px 24px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;background:#fff;border:1px solid var(--line);border-radius:22px;position:relative}
.jr li{display:flex;flex-direction:column;gap:8px;position:relative;padding-right:8px}
.jr li:not(:last-child)::after{content:"";position:absolute;left:44px;right:4px;top:17px;border-top:2px dashed var(--cream-2)}
.jr li.done:not(:last-child)::after{border-top:2px solid var(--ink)}
.jr .dot{width:36px;height:36px;border-radius:50%;background:var(--cream);display:grid;place-items:center;font-weight:700;font-size:15px;color:var(--muted);position:relative;z-index:1}
.jr li.done .dot{background:var(--ink);color:#fff}
.jr li.now .dot{background:var(--coral);color:var(--ink);box-shadow:0 0 0 6px var(--coral-soft)}
.jr b{font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:-.01em;line-height:1.2;color:var(--ink-2)}
.jr li.now b,.jr li.done b{color:var(--ink)}
.jr .here{font-size:13px;font-weight:600;color:#b5562f}
.more-tools{display:flex;flex-wrap:wrap;gap:10px}
.more-tools button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:9px;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:500;font-size:15px;color:var(--ink)}
.more-tools button:hover{border-color:var(--ink)}
.more-tools button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.more-tools svg{width:18px;height:18px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.callnote{margin:0;font-size:15px;color:var(--ink-2);background:var(--sun-soft);border-radius:16px;padding:14px 18px}
.callnote b{color:var(--ink);margin-right:6px}

@media (max-width:860px){
  .welcome{gap:34px}
  .wl-hero h2{font-size:38px}
  .wl-lead{font-size:17px}
  .wl-block>h3{font-size:25px}
  .wl-quote{padding:28px 26px}
  .wl-quote p{font-size:24px}
  .wl-tips{grid-template-columns:minmax(0,1fr)}
  .wl-path li.hl>div{margin:-8px 0 -8px -4px}
  .jr{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px}
  .jr li{flex-direction:row;align-items:center;gap:12px}
  .jr li:not(:last-child)::after{left:17px;right:auto;top:40px;bottom:-14px;border-top:0;border-left:2px dashed var(--cream-2)}
  .jr li.done:not(:last-child)::after{border-top:0;border-left:2px solid var(--ink)}
  .jr .here{margin-left:auto}
}

/* =========================================================
   10k pass: identity, faces, calmer checklist, motion
   ========================================================= */
:root{ --ease:cubic-bezier(.2,.7,.2,1); --ease-out:cubic-bezier(.16,1,.3,1) }

/* brand mark */
.mark{width:36px;height:36px;flex:none;border-radius:10px}
.brand{flex-direction:row;align-items:center;gap:12px;padding:0 6px}
.brand>div{display:flex;flex-direction:column;gap:2px}
.brand h1{font-size:18px;line-height:1.1}
.brand .eyebrow{font-size:12.5px}

/* illustrated icons */
.ic .il,svg.il{width:30px!important;height:30px!important;stroke:none!important;fill:initial!important}
.action .ic,.wl-tips .ic{width:58px;height:58px;border-radius:16px;background:#fff!important}
.action .ic svg.il{width:38px!important;height:38px!important}
.wl-tips .ic svg.il{width:36px!important;height:36px!important}
.action:hover .ic svg.il{transform:rotate(-6deg) scale(1.06)}
.action .ic svg.il{transition:transform .35s var(--ease-out)}

/* avatars */
.av{width:30px;height:30px;border-radius:50%;flex:none;display:inline-grid;place-items:center;font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--ink);overflow:hidden;box-shadow:0 0 0 2px #fff}
.av.sm{width:24px;height:24px;font-size:10.5px}
.av.co{background:var(--coral)} .av.sk{background:var(--sky)} .av.su{background:var(--sun)} .av.cr{background:var(--cream-2)}
.av.ph img{width:100%;height:100%;object-fit:cover}
.av.mk{background:transparent;box-shadow:none} .av.mk svg{width:100%;height:100%}
.av-stack{display:inline-flex}
.av-stack .av{width:34px;height:34px;font-size:12.5px}
.av-stack .av+.av{margin-left:-9px}
.owner-line{display:flex;align-items:center;gap:12px;font-size:14.5px;color:var(--ink-2)}
.msgs .meta{gap:10px}
.thread .c .who{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--ink-2)}
.thread .c.team .who{color:var(--sky-ink)}
.thread .c p{margin:6px 0 0 32px}

/* loading */
.loader{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--muted);font-size:14px}
.loader .mark{width:52px;height:52px;animation:breathe 1.6s var(--ease) infinite alternate}
.skel-wrap{display:flex;flex-direction:column;gap:16px}
.skel{display:block;border-radius:20px;background:linear-gradient(100deg,var(--cream) 20%,#fbf6ef 45%,var(--cream) 70%) 0 0/300% 100%;animation:shimmer 1.4s linear infinite}

/* sign-in: split with founder photo */
.screen.split{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);place-items:stretch;padding:16px;gap:16px}
.screen.split .card{align-self:center;justify-self:center;border:0;background:transparent;padding:28px}
.sx-photo{position:relative;border-radius:30px;overflow:hidden;min-height:calc(100vh - 32px);background:var(--ink)}
.sx-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:40% 20%;animation:slowzoom 18s var(--ease) both}
.sx-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(23,22,43,0) 45%,rgba(23,22,43,.82) 100%)}
.sx-cap{position:absolute;left:36px;right:36px;bottom:34px;z-index:1;color:#fff;animation:rise .9s .25s var(--ease-out) both}
.sx-cap .q{margin:0;font-family:var(--display);font-weight:600;font-size:34px;line-height:1.15;letter-spacing:-.02em;max-width:18ch;font-variation-settings:"SOFT" 50}
.sx-cap .by{margin:12px 0 0;font-size:14px;color:#e8e2ef}
.brandline{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px}
.brandline .mark{width:30px;height:30px;border-radius:8px}

/* home: hero ring */
.home-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end}
.ring{position:relative;width:150px;display:flex;flex-direction:column;align-items:center;gap:6px}
.ring svg{width:132px;height:132px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:9}
.ring .trk{stroke:var(--cream-2)}
.ring .val{stroke:var(--coral);stroke-linecap:round;stroke-dasharray:326.73;stroke-dashoffset:326.73;transition:stroke-dashoffset 1.3s var(--ease-out)}
.ring-n{position:absolute;top:0;left:0;right:0;height:132px;display:flex;align-items:center;justify-content:center;gap:1px}
.ring-n b{font-family:var(--display);font-weight:700;font-size:40px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ring-n span{font-size:16px;font-weight:600;color:var(--muted);margin-top:10px}
.ring p{margin:0;font-size:13px;color:var(--muted);text-align:center}

/* welcome: founder portrait */
.wl-hero{position:relative;padding-right:300px;min-height:340px}
.wl-portrait{position:absolute;right:0;top:0;width:270px;margin:0;aspect-ratio:4/5;border-radius:150px 150px 28px 28px;overflow:hidden;background:var(--sun);animation:rise .9s .15s var(--ease-out) both}
.wl-portrait::before{content:"";position:absolute;inset:auto -30px -40px auto;width:140px;height:140px;border-radius:50%;background:var(--coral);opacity:.9}
.wl-portrait img{position:relative;width:100%;height:100%;object-fit:cover;object-position:30% 15%}
.sig-row{display:flex;align-items:center;gap:16px;margin-top:10px}
.sig-ph{width:64px;height:64px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 4px var(--sun-soft)}
.sig-row .sig{margin:0}

/* checklist: one open section at a time, quiet done rows */
#db-sections{gap:12px!important}
.dsec{background:#fff;border:1px solid var(--line);border-radius:22px;padding:0;gap:0;overflow:hidden;transition:border-color .2s,box-shadow .3s var(--ease)}
.dsec.current{border-color:#e9d7c8;box-shadow:0 10px 30px -18px rgba(23,22,43,.25)}
.dsec>header{display:block}
.sec-tg{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:18px 22px}
.sec-tg:focus-visible{outline:2px solid var(--ink);outline-offset:-4px;border-radius:22px}
.sec-tg:hover{background:var(--paper)}
.sec-num{width:36px;height:36px;border-radius:50%;background:var(--cream);display:grid;place-items:center;font-weight:700;font-size:15px;transition:background .3s,color .3s}
.dsec.complete .sec-num{background:var(--ink);color:#fff}
.dsec.current .sec-num{background:var(--coral)}
.sec-ttl{display:flex;flex-direction:column;gap:2px;min-width:0}
.sec-ttl h3{font-size:21px!important;line-height:1.2}
.sec-ttl .n{font-size:13.5px;color:var(--muted)}
.dsec.complete .sec-ttl h3{color:var(--ink-2)}
.chev{width:10px;height:10px;border-right:2px solid var(--ink-2);border-bottom:2px solid var(--ink-2);transform:rotate(45deg);margin:-4px 6px 0 4px;transition:transform .35s var(--ease-out)}
.dsec.open .chev{transform:rotate(-135deg);margin-top:4px}
.sec-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--ease-out)}
.dsec.open .sec-body{grid-template-rows:1fr}
.sec-inner{overflow:hidden;display:flex;flex-direction:column;gap:8px;padding:0 18px}
.dsec.open .sec-inner{padding:0 18px 18px}
.dsec.anim .sec-inner>.item,.view.enter .dsec.open .sec-inner>.item{animation:rise .5s var(--ease-out) both}
.dsec .sec-inner>.item:nth-child(2){animation-delay:.04s}.dsec .sec-inner>.item:nth-child(3){animation-delay:.08s}
.dsec .sec-inner>.item:nth-child(4){animation-delay:.12s}.dsec .sec-inner>.item:nth-child(5){animation-delay:.16s}
.item.done{background:transparent;border:0;border-radius:12px;padding:8px 14px}
.item.done .t label{font-weight:500;color:var(--muted);text-decoration-color:rgba(118,114,127,.5)}
.item.done .meta .chip{background:transparent;padding:0;color:var(--good);font-weight:500}
.item.done .linkbtn{font-size:13px;color:var(--muted)}
.item.just-done{animation:donepulse 1s var(--ease-out)}
.item.just-done>input{animation:tick .45s var(--ease-out)}
.item>input[type=checkbox]{transition:transform .2s var(--ease)}
.item>input[type=checkbox]:not(:disabled):hover{transform:scale(1.08)}
.spark{position:fixed;width:8px;height:8px;border-radius:2px;pointer-events:none;z-index:60}

/* motion: views ease in, pieces arrive in sequence */
.view.enter>*{animation:rise .6s var(--ease-out) both}
.view.enter>*:nth-child(2){animation-delay:.06s}.view.enter>*:nth-child(3){animation-delay:.12s}
.view.enter>*:nth-child(4){animation-delay:.18s}.view.enter>*:nth-child(5){animation-delay:.24s}
.view.enter>*:nth-child(6){animation-delay:.3s}.view.enter>*:nth-child(n+7){animation-delay:.34s}
.view.enter .actions>*{animation:rise .6s var(--ease-out) both}
.view.enter .actions>*:nth-child(2){animation-delay:.28s}.view.enter .actions>*:nth-child(3){animation-delay:.34s}
.view.enter .jr>li{animation:rise .55s var(--ease-out) both}
.view.enter .jr>li:nth-child(2){animation-delay:.22s}.view.enter .jr>li:nth-child(3){animation-delay:.28s}
.view.enter .jr>li:nth-child(4){animation-delay:.34s}.view.enter .jr>li:nth-child(5){animation-delay:.4s}
.jr li.now .dot{animation:halo 2.6s var(--ease) infinite}
.next-card::before{animation:breathe 7s ease-in-out infinite alternate}
.progress i{transition:width 1.1s var(--ease-out)}
.btn{transition:background .2s,border-color .2s,color .2s,transform .2s var(--ease),box-shadow .25s}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(23,22,43,.35)}
.btn:active{transform:translateY(0)}
.card,.action,.wl-tips>div,.tile{transition:transform .35s var(--ease-out),background .25s,box-shadow .35s}
.wl-tips>div:hover{transform:translateY(-3px)}
.nav button{transition:background .2s,color .2s}

@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes shimmer{to{background-position:-300% 0}}
@keyframes breathe{from{transform:scale(1)}to{transform:scale(1.08)}}
@keyframes slowzoom{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes halo{0%{box-shadow:0 0 0 0 rgba(244,160,125,.45)}70%{box-shadow:0 0 0 12px rgba(244,160,125,0)}100%{box-shadow:0 0 0 0 rgba(244,160,125,0)}}
@keyframes donepulse{0%{background:var(--good-soft)}100%{background:transparent}}
@keyframes tick{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:scale(1)}}

/* phone: app-style bottom bar */
.tabbar,.sheet,.sheet-bg{display:none}
@media (max-width:860px){
  .rail .nav,.rail .foot{display:none}
  .rail{padding:12px 16px;flex-direction:row;align-items:center;background:rgba(245,239,231,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px)}
  .brand .mark{width:30px;height:30px}
  .brand h1{font-size:16px}
  main{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
  .tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:40;background:rgba(23,22,43,.96);border-radius:22px;padding:8px 6px;box-shadow:0 18px 40px -16px rgba(23,22,43,.55);backdrop-filter:blur(10px)}
  .tabbar button{all:unset;cursor:pointer;position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 2px;border-radius:14px;color:#bdb8c8;font-size:11.5px;font-weight:600;transition:color .2s,background .25s}
  .tabbar button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tabbar button#more-btn svg{fill:currentColor;stroke:none}
  .tabbar button.on{color:#fff;background:rgba(255,255,255,.1)}
  .tabbar button.on svg{stroke:var(--coral)}
  .tabbar button:focus-visible{outline:2px solid var(--coral)}
  .tdot{position:absolute;top:5px;right:calc(50% - 16px);width:8px;height:8px;border-radius:50%;background:var(--coral)}
  .sheet-bg{display:block;position:fixed;inset:0;background:rgba(23,22,43,.35);z-index:41;opacity:0;transition:opacity .22s}
  .sheet-bg.open{opacity:1}
  .sheet{display:flex;flex-direction:column;gap:16px;position:fixed;left:0;right:0;bottom:0;z-index:42;background:var(--paper);border-radius:26px 26px 0 0;padding:12px 18px calc(26px + env(safe-area-inset-bottom,0px));transform:translateY(100%);transition:transform .32s var(--ease-out)}
  .sheet.open{transform:none}
  .sheet[hidden],.sheet-bg[hidden]{display:none!important}
  .grab{width:44px;height:5px;border-radius:5px;background:var(--cream-2);align-self:center}
  .sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .sheet-grid button{all:unset;cursor:pointer;background:var(--cream);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px;font-weight:600;font-size:15px}
  .sheet-grid svg{width:34px;height:34px}
  .sheet-links{display:flex;flex-wrap:wrap;gap:12px 20px;padding:4px 4px 0}
  body.gated .tabbar{display:none}
  .home-top{grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
  .ring{width:96px}.ring svg{width:88px;height:88px}.ring-n{height:88px}.ring-n b{font-size:26px}.ring-n span{font-size:12px;margin-top:6px}.ring p{font-size:11.5px}
  .screen.split{grid-template-columns:minmax(0,1fr);padding:10px;gap:0}
  .sx-photo{min-height:270px;border-radius:24px}
  .sx-cap{left:22px;right:22px;bottom:20px}.sx-cap .q{font-size:24px}
  .screen.split .card{padding:22px 8px}
  .wl-hero{padding-right:0;min-height:0}
  .wl-portrait{position:relative;width:150px;order:-1;border-radius:90px 90px 22px 22px}
  .sec-tg{padding:16px;gap:12px;grid-template-columns:auto minmax(0,1fr) auto}
  .sec-tg .chip{display:none}
  .sec-ttl h3{font-size:18px!important}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
/* coach dashboard identity */
.adm-brand{display:flex;align-items:center;gap:14px}
.adm-brand .mark{width:46px;height:46px;border-radius:12px}
.own{display:inline-flex;align-items:center;gap:8px}
.own .av,.mlist .av,.cm .av{width:24px;height:24px;font-size:10px;vertical-align:middle}
#detail{animation:rise .5s var(--ease-out) both}
tbody tr{transition:background .2s}
.tile{animation:rise .55s var(--ease-out) both}
.tile:nth-child(2){animation-delay:.05s}.tile:nth-child(3){animation-delay:.1s}.tile:nth-child(4){animation-delay:.15s}

/* ---------- home hero: headline + cut-out founder photo ---------- */
#view-home{gap:30px}
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:end;gap:10px;min-height:400px;margin-bottom:-34px}
.hero-txt{display:flex;flex-direction:column;gap:18px;padding-bottom:58px;position:relative;z-index:1}
.hero h2{font-size:56px;line-height:1.02;letter-spacing:-.03em}
.hero h2 .lite{margin-bottom:6px}
.swash{background:var(--swoosh) no-repeat left bottom/100% 14px;padding-bottom:12px}
.hero .wl-lead{font-size:18px;max-width:46ch}
.hero-ph{display:block;width:118%;max-width:none;height:auto;justify-self:end;margin-right:-6%;position:relative;
  -webkit-mask-image:linear-gradient(to bottom,#000 72%,transparent 100%),linear-gradient(to left,transparent 0,#000 9%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,#000 72%,transparent 100%),linear-gradient(to left,transparent 0,#000 9%);mask-composite:intersect;
  animation:herophoto 1.1s .1s var(--ease-out) both;pointer-events:none;user-select:none}
.hero::before{content:"";position:absolute;right:6%;bottom:60px;width:300px;height:300px;border-radius:50%;background:var(--sun);opacity:.55;z-index:-1;animation:rise 1s var(--ease-out) both}
.hero::after{content:"";position:absolute;right:-1%;top:44px;width:86px;height:86px;border-radius:50%;background:var(--sky-soft);z-index:-1}
@keyframes herophoto{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}

/* next-step card with the progress ring inside */
.next-card{grid-template-columns:auto minmax(0,1fr) auto;z-index:2}
.next-card .ring{width:96px}
.next-card .ring svg{width:96px;height:96px}
.next-card .ring .trk{stroke:rgba(255,255,255,.14)}
.next-card .ring-n{height:96px}
.next-card .ring-n b{font-size:28px;color:#fff}
.next-card .ring-n span{color:#cfcad8;font-size:13px;margin-top:6px}
.next-card .progress{display:none}

/* program overview, folded into Home */
.overview{background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden}
.ov-tg{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px}
.ov-tg:hover{background:var(--paper)}
.ov-tg:focus-visible{outline:2px solid var(--ink);outline-offset:-4px;border-radius:26px}
.ov-tg>span:first-child{display:flex;flex-direction:column;gap:2px}
.ov-k{font-size:13px;font-weight:600;color:var(--muted)}
.ov-tg b{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:-.02em}
.overview.open .chev{transform:rotate(-135deg);margin-top:4px}
.ov-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--ease-out)}
.overview.open .ov-body{grid-template-rows:1fr}
.ov-inner{overflow:hidden;display:flex;flex-direction:column;gap:40px;padding:0 26px}
.overview.open .ov-inner{padding:6px 26px 30px}
.ov-inner .wl-block>h3{font-size:24px}

@media (max-width:860px){
  .hero{grid-template-columns:minmax(0,1fr);min-height:0;margin-bottom:-22px}
  .hero-txt{padding-bottom:0;order:2}
  .hero-ph{order:1;width:100%;margin:0 auto -8px;max-width:420px;justify-self:center;
    -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}
  .hero::before{width:200px;height:200px;right:12%;top:40px;bottom:auto}
  .hero::after{display:none}
  .hero h2{font-size:36px}
  .hero .wl-lead{font-size:16.5px}
  .next-card{grid-template-columns:auto minmax(0,1fr)}
  .next-card .btn{grid-column:1/-1}
  .next-card .ring{width:72px}.next-card .ring svg{width:72px;height:72px}.next-card .ring-n{height:72px}.next-card .ring-n b{font-size:21px}
  .ov-tg{padding:18px}.ov-tg b{font-size:21px}
  .ov-inner,.overview.open .ov-inner{padding-left:18px;padding-right:18px}
}
.hero{isolation:isolate}
.ov-inner>.wl-block:first-child>h3{display:none}
