:root {
  --bg: #F5F1E8;
  --bg-2: #ECE5D6;
  --card: #FFFDF8;
  --ink: #1D2A23;
  --muted: #5F6C66;
  --line: #E1D8C6;
  --sage: #5F8F6C;
  --sage-soft: #DCE8DC;
  --clay: #C25E36;
  --tint-s: 32%;
  --tint-l: 90%;
  --shadow: 0 1px 2px rgba(30, 45, 35, .05), 0 12px 30px -14px rgba(30, 45, 35, .22);
  --shadow-lg: 0 30px 60px -24px rgba(20, 35, 25, .35);
  --r: 24px;
  --hdr: 68px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101612; --bg-2: #161E19; --card: #18211C; --ink: #EDF2EC; --muted: #9AA8A0; --line: #27332C;
    --sage: #8DBE99; --sage-soft: #1E2C23; --clay: #E58460; --tint-s: 18%; --tint-l: 16%;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101612; --bg-2: #161E19; --card: #18211C; --ink: #EDF2EC; --muted: #9AA8A0; --line: #27332C;
  --sage: #8DBE99; --sage-soft: #1E2C23; --clay: #E58460; --tint-s: 18%; --tint-l: 16%;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
em { font-style: italic; color: var(--sage); }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--sage); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  transition: transform .15s, background-color .2s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn:active { transform: scale(.92); }

/* the stick figures */
.fig { display: block; width: 100%; height: 100%; overflow: visible; }
.fig path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fig .far path { stroke: var(--sage); }
.fig circle { fill: var(--ink); }
.fig .mat { stroke: color-mix(in srgb, var(--clay) 55%, transparent); stroke-width: 3; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--hdr);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-color: var(--line); }
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: italic 1.9rem/1 var(--serif); }
.logo b { font-weight: 400; color: var(--sage); }
.logo-mark { width: 34px; height: 34px; }
.logo-mark path { fill: var(--sage); }
.logo-mark .logo-line { fill: none; stroke: var(--clay); stroke-width: 2.5; stroke-linecap: round; }
.nav { display: flex; gap: 4px; }
.nav a, .mobile-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg-2); }
.top-actions { display: flex; gap: 8px; }
.menu-btn { display: none; }
.mobile-nav {
  position: absolute; top: var(--hdr); left: 0; right: 0; display: grid; gap: 2px; padding: 8px 16px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mobile-nav a { padding: 12px 14px; font-size: 1.05rem; }
.moon { display: none; }
:root[data-theme="dark"] .sun { display: none; }
:root[data-theme="dark"] .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: none; }
  :root:not([data-theme="light"]) .moon { display: block; }
}
.preload .topbar, .preload .hero-in { visibility: hidden; }

/* hero */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.b1 { width: 420px; height: 420px; right: -80px; top: -60px; background: var(--sage-soft); }
.b2 { width: 360px; height: 360px; left: -120px; bottom: -120px; background: color-mix(in srgb, var(--clay) 18%, transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.hero-title { margin: 18px 0 20px; font-size: clamp(3rem, 6.4vw + .4rem, 6rem); line-height: .98; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { max-width: 32em; font-size: 1.125rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-art { display: grid; justify-items: center; gap: 18px; }
.orb { position: relative; width: min(420px, 82vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; }
.r3 { inset: 0; background: color-mix(in srgb, var(--sage) 10%, transparent); }
.r2 { inset: 12%; background: color-mix(in srgb, var(--sage) 16%, transparent); }
.r1 { inset: 24%; background: color-mix(in srgb, var(--sage) 24%, transparent); }
.orb-core {
  position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; padding: 6% 7% 8%;
  background: var(--card); box-shadow: var(--shadow-lg);
}
.orb-label { font: italic 1.6rem/1 var(--serif); color: var(--muted); min-height: 1em; }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.benefit { padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.b-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: var(--sage-soft); font-size: 1.3rem; }
.benefit p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* sections */
.section { padding-top: 110px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-title { margin-top: 10px; font-size: clamp(2.6rem, 5vw, 4rem); }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 1rem; }
.level-switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.level-switch button { padding: 0 16px; min-height: 40px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.level-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: .9rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.result-count { margin: 22px 0 14px; color: var(--muted); font-size: .92rem; }

/* pose cards */
.pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pose-card {
  --h: 140;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.pose-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pose-media { aspect-ratio: 5 / 4; padding: 12% 14% 8%; background: hsl(var(--h) var(--tint-s) var(--tint-l)); }
.pose-card .fig { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.pose-card:hover .fig { transform: scale(1.05); }
.pose-body { padding: 16px 18px 18px; }
.pose-body .sk { font: italic 1rem/1.2 var(--serif); color: var(--clay); }
.pose-body h3 { margin-top: 2px; font-size: 1.1rem; }
.pose-link { text-decoration: none; }
.pose-link::after { content: ''; position: absolute; inset: 0; }
.pose-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: .75rem; font-weight: 600; color: var(--muted); }
.tag.lvl { background: var(--sage-soft); color: var(--sage); }

.empty { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--muted); text-align: center; }

/* breathing */
.breath-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px; }
.breath-tabs::-webkit-scrollbar { display: none; }
.b-tab {
  flex: none; display: grid; gap: 0; padding: 10px 18px; border-radius: 18px; text-align: left;
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .2s, background-color .2s;
}
.b-tab b { font-size: .95rem; }
.b-tab small { color: var(--muted); font-size: .78rem; }
.b-tab[aria-selected="true"] { border-color: var(--sage); background: var(--sage-soft); }

.breath-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.breath-player {
  display: grid; justify-items: center; align-content: center; gap: 22px; padding: 36px 24px;
  border-radius: 32px; background: var(--card); box-shadow: var(--shadow);
}
.b-orb-wrap { position: relative; width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.b-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sage) 55%, #fff), var(--sage) 70%);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--sage) 14%, transparent), 0 30px 60px -20px color-mix(in srgb, var(--sage) 70%, transparent);
  transform: scale(.55);
  transition-property: transform; transition-timing-function: ease-in-out;
}
.b-center { position: relative; display: grid; justify-items: center; color: #fff; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .15); }
.b-center b { font: italic 2.2rem/1 var(--serif); }
.b-center span { font-weight: 700; font-size: 1rem; opacity: .9; }
.b-controls { display: flex; align-items: center; gap: 16px; }
.b-rounds { color: var(--muted); font-weight: 600; font-size: .9rem; }
.breath-info { padding: 32px; border-radius: 32px; border: 1px solid var(--line); }
.breath-info h3 { font: 400 2.2rem/1.05 var(--serif); }
.breath-info .sk { font: italic 1.1rem var(--serif); color: var(--clay); }
.breath-info .about { margin-top: 12px; color: var(--muted); }
.pattern { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pattern span { padding: 6px 12px; border-radius: 12px; background: var(--bg-2); font-weight: 600; font-size: .85rem; }
.breath-info ol { margin: 20px 0 0; padding-left: 20px; }
.breath-info li { margin: 6px 0; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--clay) 12%, transparent); font-size: .9rem; }

/* routines */
.routine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.routine {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.routine-top { display: flex; justify-content: space-between; align-items: center; }
.r-mood { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sage-soft); font-size: 1.5rem; }
.r-time { font: italic 1.8rem/1 var(--serif); }
.r-time small { font: 600 .8rem var(--sans); color: var(--muted); }
.routine h3 { margin-top: 6px; font: 400 1.9rem/1.05 var(--serif); }
.routine p { color: var(--muted); font-size: .95rem; }
.r-figs { display: flex; gap: 4px; margin: 8px 0 6px; }
.r-figs span { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: var(--bg-2); }
.r-figs .fig path { stroke-width: 7; }
.r-figs .fig .mat { display: none; }
.r-figs .more { display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.routine .btn { margin-top: auto; align-self: flex-start; }

/* styles */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.style-card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); transition: background-color .25s, border-color .25s; }
.style-card:hover { background: var(--card); border-color: transparent; box-shadow: var(--shadow); }
.style-card .s-head { display: flex; justify-content: space-between; align-items: center; }
.style-card .s-icon { font-size: 1.6rem; }
.style-card .pace { padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: .75rem; font-weight: 700; }
.style-card h3 { margin-top: 16px; font: 400 2rem/1 var(--serif); }
.style-card p { margin-top: 8px; color: var(--muted); }

/* tips */
.tips { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tip-list { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 14px; }
.tip-list li { counter-increment: t; position: relative; padding-left: 52px; color: var(--muted); }
.tip-list li::before {
  content: counter(t); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--sage); color: var(--sage); font: italic 1.2rem var(--serif);
}
.tip-list b { color: var(--ink); }

/* faq */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 1.8rem/1 var(--serif); color: var(--sage); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }

.footer { margin-top: 110px; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.footer p { max-width: 560px; color: var(--muted); font-size: .88rem; }

/* pose sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, .5); backdrop-filter: blur(4px); }
.sheet-panel {
  --h: 140;
  position: relative; width: min(980px, 100%); height: 94dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .sheet { align-items: center; }
  .sheet-panel { height: min(90dvh, 900px); border-radius: 28px; }
}
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.d-top { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding: 48px 40px 36px; background: hsl(var(--h) var(--tint-s) var(--tint-l)); }
.d-fig { aspect-ratio: 1; padding: 12%; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-lg); }
.d-top .sk { font: italic 1.3rem var(--serif); color: var(--clay); }
.d-top h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.d-top .about { margin-top: 12px; max-width: 34em; color: var(--muted); font-size: 1.05rem; }
.d-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.d-facts span { padding: 7px 14px; border-radius: 999px; background: var(--card); font-size: .85rem; font-weight: 600; }
.d-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 36px 40px 48px; }
.d-body h3 { margin-bottom: 14px; font: 400 1.9rem/1 var(--serif); }
.d-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.d-steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.d-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -3px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: italic 1.15rem var(--serif);
}
.d-side { display: grid; gap: 16px; align-content: start; }
.d-card { padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.d-card h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.d-card ul { margin: 0; padding-left: 18px; }
.d-card li { margin: 4px 0; }
.d-card.warn { background: color-mix(in srgb, var(--clay) 11%, var(--card)); }
.d-card.warn h4 { color: var(--clay); }

/* practice mode — calm dark screen */
.practice {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: radial-gradient(120% 80% at 50% 20%, #1D2C23, #0E1511 70%); color: #EDF2EC;
  --ink: #EDF2EC; --sage: #8DBE99; --card: #1A251F; --line: #2C3A32; --bg-2: #24312A; --clay: #E58460; --muted: #9AA8A0;
}
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.p-title { text-align: center; min-width: 0; }
.p-title small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.p-title b { display: block; font: italic 1.3rem/1.1 var(--serif); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-total { width: 44px; text-align: right; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-progress { height: 3px; margin: 0 16px; border-radius: 2px; background: var(--line); overflow: hidden; }
.p-progress span { display: block; height: 100%; width: 0; background: var(--sage); transition: width .4s; }
.p-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 24px; text-align: center; overflow-y: auto; }
.p-fig-wrap { position: relative; width: min(300px, 62vw, 38dvh); aspect-ratio: 1; margin-bottom: 8px; }
.p-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.p-ring circle { fill: none; stroke-width: 3; }
.p-ring-bg { stroke: var(--line); }
.p-ring-fg { stroke: var(--sage); stroke-linecap: round; stroke-dasharray: 351.86; stroke-dashoffset: 0; }
.p-fig { position: absolute; inset: 8%; padding: 9%; border-radius: 50%; background: var(--card); }
.p-time { font: 700 1.1rem var(--sans); font-variant-numeric: tabular-nums; color: var(--sage); }
.p-name { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.p-sub { font: italic 1.15rem var(--serif); color: var(--clay); }
.p-cue { max-width: 32em; margin-top: 8px; color: var(--muted); }
.p-next { text-align: center; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.p-controls { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 14px 16px 22px; }
.icon-btn.big { width: 56px; height: 56px; }
.play-btn {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: var(--sage); color: #0E1511; box-shadow: 0 10px 30px -10px var(--sage);
  transition: transform .15s;
}
.play-btn:active { transform: scale(.94); }
.play-btn .i-play { display: none; }
.practice.paused .play-btn .i-play { display: block; }
.practice.paused .play-btn .i-pause { display: none; }
.p-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center;
  background: radial-gradient(120% 80% at 50% 30%, #1D2C23, #0E1511 70%);
}
.p-done-icon { font-size: 4rem; }
.p-done h2 { font-size: 4rem; }
.p-done p { color: var(--muted); max-width: 26em; margin-bottom: 12px; }
.practice .btn-primary { background: var(--sage); color: #0E1511; }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* tablet */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-art { order: -1; }
  .orb { width: min(340px, 78vw); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .breath-box { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: 1fr; gap: 24px; }
  .d-top { grid-template-columns: 200px 1fr; padding: 48px 28px 28px; }
  .d-body { grid-template-columns: 1fr; padding: 28px; }
}

/* phones */
@media (max-width: 600px) {
  :root { --hdr: 60px; }
  .logo { font-size: 1.7rem; }
  .orb { width: min(260px, 70vw); }
  .orb-label { font-size: 1.35rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta .btn { flex: 1; }
  .benefits { gap: 12px; }
  .benefit { padding: 18px; }
  .benefit p { font-size: .88rem; }
  .section { padding-top: 80px; }
  .level-switch { width: 100%; }
  .level-switch button { flex: 1; padding: 0 8px; }
  .pose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pose-body { padding: 12px 12px 14px; }
  .pose-body h3 { font-size: .98rem; }
  .pose-meta .tag:not(.lvl) { display: none; }
  .breath-player, .breath-info { padding: 24px 18px; border-radius: 26px; }
  .routine-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: 1fr; }
  .d-top { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 56px 18px 24px; gap: 18px; }
  .d-fig { width: 180px; }
  .d-facts { justify-content: center; }
  .d-body { padding: 24px 18px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
