@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url(fonts/cormorant-garamond-latin-300-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url(fonts/inter-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format('woff2')}

*{box-sizing:border-box;margin:0;padding:0}
:root{
  --sage:#7a9e7e;--sage-dark:#5f8463;--sage-light:#c8dcc9;--sage-pale:#eef4ee;
  --warm:#f5efe6;--cream:#faf7f2;--text:#2d3a2d;--muted:#5f725f;
  --gold:#a8864a;--card:#fff;--line:#e8ede8;--radius:16px;
  --serif:'Cormorant Garamond',Georgia,serif;--sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
body{font-family:var(--sans);background:var(--cream);color:var(--text);min-height:100vh;overflow-x:hidden}
button{font:inherit}
:focus-visible{outline:2px solid var(--sage);outline-offset:3px}

/* SCREENS */
.screen{display:none;min-height:100vh;flex-direction:column;align-items:center;justify-content:center;padding:4rem 1.25rem 2.5rem;text-align:center;animation:fadeIn .8s ease}
.screen.active{display:flex}
@keyframes fadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* LANDING */
#landing{background:linear-gradient(160deg,#eef4ee 0%,#faf7f2 60%,#f5efe6 100%);position:relative}
.mango-logo{font-family:var(--serif);font-size:4.5rem;font-weight:300;color:var(--sage);letter-spacing:.08em;margin-bottom:.3rem}
.tagline{font-family:var(--serif);font-size:1.25rem;font-style:italic;color:var(--muted);margin-bottom:3rem;font-weight:300}
.breath-ring{width:140px;height:140px;border-radius:50%;border:1.5px solid var(--sage-light);display:flex;align-items:center;justify-content:center;margin:0 auto 3rem;position:relative;animation:breathe 10s ease-in-out infinite}
.breath-ring::before{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--sage-pale);animation:breathe 10s ease-in-out infinite .3s}
.breath-inner{width:80px;height:80px;border-radius:50%;background:var(--sage-pale);border:1px solid var(--sage-light);display:flex;align-items:center;justify-content:center;font-size:1.8rem}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
.breath-hint{font-size:.78rem;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;margin-bottom:2.5rem}
.site-foot{margin-top:3.5rem;font-size:.74rem;color:var(--muted);line-height:1.8;max-width:30rem}

/* BUTTONS */
.btn{display:inline-block;padding:.85rem 2.5rem;border-radius:50px;border:none;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .25s;letter-spacing:.02em}
.btn-primary{background:var(--sage);color:#fff}
.btn-primary:hover{background:var(--sage-dark);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--sage-dark);border:1.5px solid var(--sage-light)}
.btn-ghost:hover{background:var(--sage-pale)}
.skip-btn{margin-top:.6rem;font-size:.85rem}

/* STEP HEADER */
.step-label{font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem;font-weight:500}
.step-label.small{margin:0 0 .8rem}
.step-title{font-family:var(--serif);font-size:2.2rem;font-weight:300;color:var(--text);margin-bottom:.6rem;line-height:1.2;max-width:34rem}
.step-sub{font-size:.9rem;color:var(--muted);margin-bottom:2rem;line-height:1.6;max-width:32rem}

/* CHIPS */
.chips{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;margin-bottom:2rem;max-width:36rem}
.chip{padding:.55rem 1.2rem;border-radius:50px;border:1.5px solid var(--sage-light);background:#fff;color:var(--muted);font-size:.88rem;cursor:pointer;transition:all .2s}
.chip:hover{border-color:var(--sage);color:var(--sage-dark)}
.chip.selected{background:var(--sage);color:#fff;border-color:var(--sage)}

/* BODY GRID */
.body-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;width:100%;max-width:360px;margin:0 auto 2rem}
.body-part{padding:.6rem .4rem;border-radius:12px;border:1.5px solid var(--sage-light);background:#fff;color:var(--muted);font-size:.8rem;cursor:pointer;transition:all .2s;text-align:center;line-height:1.3}
.body-part:hover{border-color:var(--sage);color:var(--sage-dark)}
.body-part.selected{background:var(--sage);color:#fff;border-color:var(--sage)}
.body-icon{font-size:1.2rem;display:block;margin-bottom:.2rem}

/* NAV DOTS */
.nav-dots{display:flex;gap:8px;margin-bottom:2rem;justify-content:center}
.dot{width:6px;height:6px;border-radius:50%;background:var(--sage-light)}
.dot.active{background:var(--sage);width:20px;border-radius:3px}

/* BACK */
.back-btn{position:fixed;top:1.2rem;left:1.2rem;background:#fff;border:1px solid var(--line);border-radius:50px;padding:.4rem 1rem;font-size:.8rem;color:var(--muted);cursor:pointer;z-index:10;display:none}
.back-btn.visible{display:block}

/* RESULT */
#result-screen{justify-content:flex-start;text-align:left}
.result-wrap{width:100%;max-width:640px}
.result-header{text-align:center;margin-bottom:2rem;display:flex;flex-direction:column;align-items:center}
.result-header .step-title{font-size:2rem}
.result-header .step-sub{margin-bottom:.8rem}
.flow-meta{font-size:.78rem;color:var(--gold);letter-spacing:.08em;text-transform:uppercase;margin-bottom:1.5rem;font-weight:500}

.section-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.5rem;margin-bottom:1rem}
.section-card h3{font-family:var(--serif);font-size:1.35rem;font-weight:400;color:var(--sage-dark);margin-bottom:.8rem;display:flex;align-items:center;gap:.5rem}
.section-card p{font-size:.88rem;color:var(--muted);line-height:1.75}

.phase-label{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:500;margin:1rem 0 .2rem}
.phase-label:first-of-type{margin-top:0}
.pose-item{padding:.8rem 0;border-bottom:1px solid #f0f4f0;display:grid;grid-template-columns:1.8rem 1fr;gap:.2rem .6rem}
.pose-item:last-child{border-bottom:none}
.pose-item>:not(.pose-num){grid-column:2}
.pose-num{grid-column:1;grid-row:1 / span 5;font-family:var(--serif);font-size:1.3rem;color:var(--sage-light);line-height:1.1}
.pose-name{font-weight:500;color:var(--text);font-size:.92rem}
.pose-name em{font-family:var(--serif);font-style:italic;font-weight:400;color:var(--muted);font-size:1rem}
.pose-duration{font-size:.75rem;color:var(--gold);font-weight:500;letter-spacing:.05em}
.pose-desc{font-size:.84rem;color:var(--muted);line-height:1.65}
.pose-why{font-size:.8rem;color:var(--sage-dark);line-height:1.5}
.tags{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.3rem}
.tag{font-size:.68rem;padding:.15rem .55rem;border-radius:50px;background:var(--sage-pale);color:var(--sage-dark)}

/* BREATHING */
.breath-widget{display:flex;flex-direction:column;align-items:center;padding:1rem 0 .3rem}
.breath-phase{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:.8rem;min-height:1em}
.breath-circle-big{width:120px;height:120px;border-radius:50%;background:var(--sage-pale);border:2px solid var(--sage-light);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.breath-timer{font-size:1.8rem;font-weight:300;color:var(--sage-dark);font-family:var(--serif)}
.breath-btn{font-size:.82rem;padding:.5rem 1.5rem;margin-top:.4rem}

.result-actions{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin-top:1.5rem}
.reset-btn{font-size:.82rem;color:var(--muted);cursor:pointer;padding:.8rem;background:none;border:none}
.reset-btn:hover{color:var(--sage-dark)}

/* PLAYER */
.player{position:fixed;inset:0;background:linear-gradient(160deg,#eef4ee 0%,#faf7f2 60%,#f5efe6 100%);z-index:20;overflow-y:auto;animation:fadeIn .5s ease}
.player[hidden]{display:none}
.player-inner{min-height:100%;max-width:560px;margin:0 auto;padding:3.5rem 1.25rem 2rem;display:flex;flex-direction:column;align-items:center;text-align:center}
.player-close{position:fixed;top:1rem;right:1rem;width:2.4rem;height:2.4rem;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer}
.player-progress{width:100%;height:4px;background:var(--sage-pale);border-radius:2px;margin-bottom:2rem;overflow:hidden}
.player-bar{height:100%;width:0;background:var(--sage);transition:width .4s}
.player-name{font-family:var(--serif);font-size:2.3rem;font-weight:300;line-height:1.15}
.player-sanskrit{font-family:var(--serif);font-style:italic;color:var(--muted);font-size:1.15rem;margin:.2rem 0 1.5rem;min-height:1.2em}
.player-ring{position:relative;width:170px;height:170px;margin-bottom:1.5rem}
.player-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-track{fill:var(--sage-pale);stroke:var(--sage-light);stroke-width:3}
.ring-fill{fill:none;stroke:var(--sage);stroke-width:4;stroke-linecap:round;stroke-dasharray:339.3;stroke-dashoffset:0;transition:stroke-dashoffset 1s linear}
.player-time{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:2.4rem;color:var(--sage-dark)}
.player-how{font-size:.95rem;line-height:1.75;color:var(--text);margin-bottom:1rem;max-width:30rem}
.player-next{font-size:.8rem;color:var(--muted);margin-bottom:1.8rem;min-height:1em}
.player-controls{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center}
.player-controls .btn{padding:.7rem 1.6rem}
.sound-toggle{margin-top:1.4rem;font-size:.78rem;color:var(--muted);display:flex;gap:.4rem;align-items:center;cursor:pointer}
.sound-toggle input{accent-color:var(--sage)}

/* LANDING LOGO */
.logo-yogi{width:62px;height:62px;fill:none;stroke:var(--sage-dark);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.logo-yogi circle{fill:var(--sage-dark);stroke:none}

/* POSE TIMER */
.pose-timer{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .6rem;margin:.35rem 0 .15rem}
.timer-btn{font:500 .78rem var(--sans);color:var(--sage-dark);background:#fff;border:1.5px solid var(--sage-light);border-radius:50px;padding:.35rem .95rem;cursor:pointer;font-variant-numeric:tabular-nums;transition:all .2s}
.timer-btn:hover{background:var(--sage-pale)}
.pose-timer.counting .timer-btn{background:var(--gold);border-color:var(--gold);color:#fff}
.pose-timer.running .timer-btn{background:var(--sage);border-color:var(--sage);color:#fff}
.timer-reset{font-size:.74rem;color:var(--muted);background:none;border:none;cursor:pointer;text-decoration:underline}
.timer-bar{flex-basis:100%;height:3px;border-radius:2px;background:var(--sage-pale);overflow:hidden}
.timer-bar span{display:block;height:100%;width:0;background:var(--sage);transition:width 1s linear}

/* POSE FIGURES */
.pose-item.has-art{grid-template-columns:1.8rem 1fr 9.5rem}
.pose-art{grid-column:3!important;grid-row:1 / span 6;align-self:start;background:var(--sage-pale);border-radius:12px;padding:.25rem;aspect-ratio:4 / 3}
.pose-art svg,.player-art svg{display:block;width:100%;height:100%}
.fig-limb,.fig-far{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.4}
.fig-limb{stroke:var(--sage-dark)}
.fig-far{stroke:var(--sage-light)}
.fig-head{fill:var(--sage-dark)}
.fig-floor{stroke:var(--sage-light);stroke-width:1.6;stroke-linecap:round}
.fig-mat{fill:none;stroke:var(--sage-light);stroke-width:1.2;stroke-dasharray:3 3}
.fig-prop{fill:var(--gold);opacity:.55}
.player-art{width:200px;aspect-ratio:4 / 3;margin:-.6rem 0 1rem;background:rgba(255,255,255,.6);border-radius:14px}
.player-art:empty{display:none}
.player-safety{margin-top:.9rem;font-size:.74rem;color:var(--muted)}

/* SAFETY NOTE */
.disclaimer{margin-top:1.5rem;padding:1.1rem 1.3rem;border:1px solid #ecdcc0;background:#fbf6ee;border-radius:var(--radius);font-size:.8rem;color:var(--muted);line-height:1.7}
.disclaimer p+p{margin-top:.5rem}
.disclaimer-title{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:500}

@media (max-width:420px){
  .pose-item.has-art{grid-template-columns:1.6rem 1fr 5.6rem}
  .mango-logo{font-size:3.6rem}
  .step-title{font-size:1.85rem}
  .section-card{padding:1.2rem 1.1rem}
  .player-name{font-size:1.9rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before{animation:none!important;transition:none!important}
}
