:root {
  --bg: #0e1b17; --s1: #16271f; --s2: #1f372d; --ink: #f4f0e6; --mute: #9fb3a9;
  --lime: #d6f25c; --coral: #ff7b54; --dark: #12201a; --line: rgba(255,255,255,.1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.45; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body.noscroll { overflow: hidden; }
.disp { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
h1, h2, h3, p { margin: 0; }
.mute { color: var(--mute); }
.small { font-size: .85rem; }

main { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: calc(env(safe-area-inset-top) + 20px) 20px 130px; }
.screen { animation: in .4s cubic-bezier(.2,.8,.2,1); }
@keyframes in { from { opacity: 0; transform: translateY(16px); } }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } }

/* buttons */
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; border-radius: 999px; background: var(--lime); color: var(--dark); font-weight: 700; font-size: 1.05rem; transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.sm { width: auto; min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn[disabled] { opacity: .35; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--s1); display: grid; place-items: center; flex: none; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--s1); border: 1.5px solid transparent; font-size: .95rem; white-space: nowrap; }
.pill[aria-pressed="true"] { background: var(--lime); color: var(--dark); font-weight: 600; }

/* top bar */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; min-height: 46px; }
.top h2 { font-size: 1.5rem; }

/* tiles for choices */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid1 { display: grid; gap: 12px; }
.tile { text-align: left; background: var(--s1); border: 2px solid transparent; border-radius: 20px; padding: 18px; min-height: 76px; font-size: 1.05rem; font-weight: 500; transition: .15s; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile[aria-pressed="true"] { border-color: var(--lime); background: var(--s2); }
.tile[aria-pressed="true"]::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312201a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* onboarding */
.ob { min-height: calc(100vh - 150px); display: flex; flex-direction: column; animation: slide .35s cubic-bezier(.2,.8,.2,1); }
.ob h1 { font-size: 2.5rem; margin: 18px 0 12px; }
.ob .lead { color: var(--mute); margin-bottom: 26px; }
.ob .foot { margin-top: auto; padding-top: 24px; position: sticky; bottom: 20px; }
.segs { display: flex; gap: 5px; flex: 1; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; display: block; }
.segs i.on { background: var(--lime); }
.field { width: 100%; font: inherit; font-size: 1.6rem; font-weight: 600; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--line); padding: 10px 0; border-radius: 0; }
.field:focus { outline: 0; border-color: var(--lime); }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--s1); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; min-height: 48px; }
.build li { list-style: none; opacity: 0; animation: in .5s forwards; padding: 10px 0; display: flex; gap: 12px; align-items: center; }
.build li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); flex: none; }
.build ul { padding: 0; margin: 30px 0; }

/* home */
.hello { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hello small { color: var(--mute); display: block; }
.hello strong { font-size: 1.15rem; }
.hero { position: relative; overflow: hidden; background: var(--lime); color: var(--dark); border-radius: 30px; padding: 24px; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; text-align: left; width: 100%; }
.hero .k { font-weight: 600; font-size: .9rem; opacity: .7; }
.hero h2 { font-size: 2.3rem; margin-top: 8px; max-width: 12ch; }
.hero .wave { position: absolute; right: -30px; top: 120px; width: 230px; opacity: .2; }
.hero .row { display: flex; align-items: flex-end; justify-content: space-between; position: relative; }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; transition: transform .15s; }
.play:active { transform: scale(.92); }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 14px; }
.sec h3 { font-size: 1.3rem; }
.week { display: flex; justify-content: space-between; background: var(--s1); border-radius: 24px; padding: 16px 18px; align-items: center; gap: 14px; }
.week { flex-wrap: wrap; justify-content: flex-start; }
.days { display: flex; gap: 6px; flex: 1 1 100%; justify-content: space-between; margin-top: 6px; }
.day { text-align: center; font-size: .72rem; color: var(--mute); }
.day i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); margin: 5px auto 0; }
.day.on i { background: var(--lime); border-color: var(--lime); }
.day.now i { border-color: var(--ink); }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rt { position: relative; overflow: hidden; flex: 0 0 150px; height: 190px; scroll-snap-align: start; border-radius: 24px; padding: 16px; background: var(--tone); color: var(--dark); display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.grid2 .rt { flex: initial; height: 175px; }
.rt .m { font-size: 2.4rem; }
.rt .m small { font-size: .9rem; font-weight: 600; margin-left: 2px; }
.rt b { font-size: 1.02rem; line-height: 1.15; }
.rt .wave { position: absolute; right: -14px; top: 10px; width: 110px; opacity: .2; }
.rt .star { position: absolute; right: 12px; top: 12px; font-size: 1.1rem; }
.rt.add { background: transparent; border: 2px dashed var(--line); color: var(--ink); align-items: flex-start; justify-content: center; gap: 6px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--s1); border-radius: 18px; padding: 12px 14px 12px 18px; margin-bottom: 14px; font-size: .92rem; }

/* team journey */
.joincard, .jmini { display: block; width: 100%; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 18px; margin-top: 24px; }
.joincard b, .jmini b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.jmini { background: var(--s2); border-color: transparent; }
.jcard { background: var(--coral); color: var(--dark); border-radius: 30px; padding: 22px; margin-bottom: 14px; }
.jtop { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; opacity: .75; }
.jkm { font-size: 3rem; margin: 2px 0 6px; }
.jkm small { font-size: 1rem; font-weight: 600; opacity: .7; }
.jbar { position: relative; height: 10px; border-radius: 5px; background: rgba(0,0,0,.16); margin: 14px 0 10px; }
.jmini .jbar { background: var(--s1); }
.jbar b { display: block; height: 100%; border-radius: 5px; background: var(--dark); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.jmini .jbar b { background: var(--lime); }
.jbar i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.25); transform: translate(-50%,-50%); }
.jmini .jbar i { background: var(--s1); box-shadow: 0 0 0 2px var(--s2); }
.jbar i.on { background: var(--dark); }
.jmini .jbar i.on { background: var(--lime); }
.jnext { font-size: .92rem; font-weight: 500; margin: 0; }
.jmini .jnext { color: var(--mute); }

/* videos */
.seg2 { display: flex; gap: 4px; background: var(--s1); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg2 button { flex: 1; min-height: 44px; border-radius: 999px; color: var(--mute); font-size: .95rem; font-weight: 500; }
.seg2 button[aria-pressed="true"] { background: var(--lime); color: var(--dark); font-weight: 700; }
.vc { background: var(--s1); border-radius: 24px; overflow: hidden; margin-bottom: 14px; }
.vthumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--s2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.vplay { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(14,27,23,.72); display: grid; place-items: center; color: var(--lime); }
.vplay svg { width: 26px; height: 26px; margin-left: 3px; }
.vlen { position: absolute; right: 10px; bottom: 10px; background: rgba(14,27,23,.85); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.vmeta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.vmeta b { font-size: 1.05rem; line-height: 1.25; }
.vmeta .pill { margin-top: 10px; background: var(--s2); border-color: var(--line); }
.vmeta .pill[disabled] { opacity: .5; }
.watch { display: flex; gap: 12px; align-items: center; background: var(--s2); border-radius: 18px; padding: 10px; margin-bottom: 16px; color: inherit; text-decoration: none; }
.watch img { width: 104px; height: 59px; object-fit: cover; border-radius: 12px; flex: none; background: var(--s1); }

/* tab bar */
#tabs { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px); max-width: 496px; margin: 0 auto; display: flex; background: rgba(22,39,31,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 28px; padding: 6px; z-index: 10; }
#tabs[hidden] { display: none; }
#tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 22px; color: var(--mute); font-size: .68rem; font-weight: 500; }
#tabs button.on { color: var(--dark); background: var(--lime); }
#tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* bottom sheet */
.back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; animation: fade .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 86vh; overflow: auto; background: var(--s1); border-radius: 30px 30px 0 0; padding: 14px 22px calc(env(safe-area-inset-bottom) + 24px); z-index: 21; animation: up .35s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 18px; }
.sheet ol { padding: 0; margin: 16px 0 22px; list-style: none; counter-reset: n; }
.sheet li { counter-increment: n; display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.sheet li::before { content: counter(n); color: var(--lime); font-weight: 700; width: 18px; flex: none; }
.sheet li span { margin-left: auto; color: var(--mute); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* session */
.sess { position: fixed; inset: 0; z-index: 30; background: var(--tone); color: var(--dark); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 14px) 22px calc(env(safe-area-inset-bottom) + 26px); animation: fade .4s; overflow: hidden; }
.sess .segs { flex: none; }
.sess .segs i { background: rgba(0,0,0,.14); }
.sess .segs i.on, .sess .segs i b { background: var(--dark); }
.sess .segs i b { position: absolute; inset: 0 auto 0 0; display: block; transition: width 1s linear; }
.s-top { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; font-weight: 600; }
.s-top .x { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.1); font-size: 1.1rem; }
.s-mid { position: relative; flex: none; height: 270px; display: grid; place-items: center; margin-top: 4px; }
.breath { position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.3); animation: breath 6s ease-in-out infinite; }
.sess.paused .breath { animation-play-state: paused; }
@keyframes breath { 50% { transform: scale(.78); } }
.ring { position: absolute; width: 230px; height: 230px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .t { stroke: rgba(0,0,0,.12); }
.ring .p { stroke: var(--dark); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
#s-num { font-size: 5.2rem; position: relative; }
.s-step { font-size: 2rem; text-align: center; margin-top: 18px; min-height: 4.4em; }
.s-next { text-align: center; opacity: .65; font-size: .92rem; margin-top: -8px; }
.s-ctl { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 22px; }
.s-ctl .sb { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.1); display: grid; place-items: center; }
.s-ctl .pb { width: 88px; height: 88px; border-radius: 50%; background: var(--dark); color: var(--lime); display: grid; place-items: center; }
.s-ctl svg { width: 28px; height: 28px; fill: currentColor; }
.fin { display: flex; flex-direction: column; min-height: calc(100vh - 150px); justify-content: center; text-align: center; gap: 14px; }
.fin .big { font-size: 6rem; color: var(--lime); }

/* forms and chat */
.card { background: var(--s1); border-radius: 24px; padding: 18px; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card .lbl { margin: 14px 0 8px; font-size: .88rem; color: var(--mute); }
.lrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.walkhero { background: var(--coral); color: var(--dark); border-radius: 30px; padding: 24px; margin-bottom: 14px; }
.walkhero h2 { font-size: 2.6rem; margin: 6px 0; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.b { max-width: 86%; padding: 12px 16px; border-radius: 20px; background: var(--s1); align-self: flex-start; border-bottom-left-radius: 6px; }
.b.me { align-self: flex-end; background: var(--lime); color: var(--dark); border-radius: 20px; border-bottom-right-radius: 6px; }
.b .btn { margin-top: 10px; min-height: 44px; font-size: .92rem; }
.chatbar { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 84px); display: flex; gap: 8px; background: var(--bg); padding: 8px 0; }
.chatbar .input { border-radius: 999px; }
.chatbar .btn { width: 52px; min-height: 52px; padding: 0; flex: none; }
.dots3 span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--mute); animation: bl 1s infinite; }
.dots3 span:nth-child(2) { animation-delay: .15s; } .dots3 span:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 50% { opacity: .2; transform: translateY(-3px); } }
.planday { margin-bottom: 18px; }
.planday strong { display: block; margin-bottom: 8px; }
.planday .rail { margin: 0 -20px; }
.stepedit { display: flex; align-items: center; gap: 8px; background: var(--s1); border-radius: 18px; padding: 12px 14px; margin-bottom: 8px; }
.stepedit .nm { flex: 1; font-size: .95rem; }
.stepedit button { width: 36px; height: 36px; border-radius: 50%; background: var(--s2); flex: none; }

/* splash */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .55s, transform .55s; }
#splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
#splash svg { width: 210px; overflow: visible; }
#splash path { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s .25s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wm { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 3.2rem; letter-spacing: -.03em; margin-top: 22px; display: flex; }
.wm span { opacity: 0; display: inline-block; animation: rise .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1s + var(--i) * .06s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; } }
.tg { color: var(--mute); margin-top: 8px; opacity: 0; animation: rise .6s 1.6s forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
