/* School of Mental Fitness: Shapla & Forest. Mobile-first. */
:root {
	--bg: #F6F8F4;
	--surface: #FFFFFF;
	--ink: #14211C;
	--muted: #4A5A53;
	--primary: #0E5A43;
	--primary-d: #0A4733;
	--primary-soft: #E3EFE8;
	--accent: #C93D63;
	--accent-d: #AE2F52;
	--accent-soft: #FBE6EC;
	--reward: #F4B740;
	--reward-soft: #FDF1D6;
	--line: #DCE5DF;
	--font-head: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
	--font-body: "Hind Siliguri", system-ui, sans-serif;
	--r-sm: 10px;
	--r-md: 18px;
	--pill: 999px;
	--shadow: 0 6px 24px rgba(14, 90, 67, .09);
	--wrap: 1480px;
	--gut: 20px;
}

:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:where(body) { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 var(--font-body); }
:where(h1, h2, h3, h4) { font-family: var(--font-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
:where(p, ul, ol, dl, figure, blockquote) { margin: 0 0 1em; }
:where(img, svg) { max-width: 100%; height: auto; display: block; }
:where(a) { color: var(--primary); text-underline-offset: 3px; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(:focus-visible) { outline: 3px solid var(--reward); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text, .smf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.smf-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.smf-skip:focus { left: 8px; }
.smf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.smf-wrap--narrow { max-width: 780px; }
.smf-muted { color: var(--muted); }
.smf-tiny { font-size: 14px; color: var(--muted); line-height: 1.6; }
.smf-center { text-align: center; }
.smf-center .smf-plant { margin: 0 auto 16px; }
.smf-lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.smf-h2 { font-size: clamp(26px, 4.4vw, 38px); }
.smf-section { padding: 56px 0; }

/* Buttons and links */
.smf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--pill); border: 2px solid transparent; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; background: var(--surface); color: var(--ink); }
.smf-btn:active { transform: translateY(1px) scale(.99); }
.smf-btn--primary { background: var(--primary); color: #fff; }
.smf-btn--primary:hover { background: var(--primary-d); color: #fff; }
.smf-btn--accent { background: var(--accent); color: #fff; }
.smf-btn--accent:hover { background: var(--accent-d); color: #fff; }
.smf-btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.smf-btn--ghost:hover { background: var(--primary-soft); }
.smf-btn--light { background: #fff; color: var(--primary); }
.smf-btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.smf-btn--lg { min-height: 56px; padding: 12px 30px; font-size: 19px; }
.smf-btn[disabled] { opacity: .6; cursor: progress; }
.smf-link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.smf-link:hover { text-decoration: underline; }
.smf-link--strong { font-size: 18px; }
.smf-link--danger { color: #A3262F; }
.smf-xp-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill); background: var(--reward); color: #3B2A00; font: 700 13px/1.6 var(--font-body); vertical-align: middle; white-space: nowrap; }

/* Header */
.smf-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 244, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .smf-header { top: 0; }
@media (min-width: 783px) { .admin-bar .smf-header { top: 32px; } }
.smf-header__row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.smf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.smf-brand__text { display: none; line-height: 1.1; }
.smf-brand__text b { display: block; font: 700 18px/1.1 var(--font-head); color: var(--primary); }
.smf-brand__text small { font-size: 13px; color: var(--muted); }
.smf-brand--light .smf-brand__text b { color: #fff; }
.smf-brand--light .smf-brand__text small { color: #CFE3D9; }
.smf-nav { display: none; }
.smf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.smf-nav a { display: block; padding: 10px 12px; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.smf-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.smf-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.smf-help { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-d); font-weight: 600; font-size: 14px; text-decoration: none; }
.smf-help span { display: none; }
.smf-burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.smf-hide-sm { display: none; }
.smf-levelchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: var(--pill); background: var(--reward-soft); text-decoration: none; color: var(--ink); line-height: 1.15; min-height: 44px; }
.smf-levelchip b { display: none; font-size: 14px; }
.smf-levelchip small { font-size: 13px; font-weight: 600; }
.smf-nav__extra { display: list-item; }
body.smf-nav-open .smf-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gut) 16px; }
body.smf-nav-open .smf-nav ul { flex-direction: column; }
body.smf-nav-open .smf-nav a { padding: 12px 8px; font-size: 18px; }

@media (min-width: 560px) {
	.smf-help span, .smf-brand__text { display: block; }
	.smf-hide-sm { display: inline-flex; }
}
@media (min-width: 1080px) {
	.smf-nav { display: block; }
	.smf-burger, .smf-nav__extra { display: none; }
	.smf-levelchip b { display: block; }
}

/* Hero */
.smf-hero { padding: 28px 0 40px; overflow: hidden; }
.smf-hero__grid { display: grid; gap: 28px; align-items: center; }
.smf-badge-line { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 15px; line-height: 1.4; }
.smf-hero h1 { font-size: clamp(36px, 7.6vw, 64px); line-height: 1.12; margin: 14px 0 12px; letter-spacing: -.01em; }
.smf-hero h1 span { color: var(--primary); }
.smf-hero__sub { font-size: 20px; color: var(--muted); max-width: 34ch; }
.smf-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 10px; }
.smf-trust { font-size: 15px; color: var(--muted); }
.smf-hero__art { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.smf-hero__photo { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; overflow: hidden; aspect-ratio: 1 / 1.02; background: var(--primary-soft); box-shadow: 0 20px 60px rgba(14, 90, 67, .18); }
.smf-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.smf-hero__plant { position: absolute; left: -6px; bottom: -6px; background: var(--surface); border-radius: 50%; padding: 6px; box-shadow: var(--shadow); width: 96px; height: 96px; }
.smf-hero__plant svg { width: 100%; height: 100%; }
.smf-hero__xp { position: absolute; right: 2%; top: 8%; background: var(--surface); border-radius: var(--r-md); padding: 10px 14px; box-shadow: var(--shadow); display: grid; gap: 2px; justify-items: start; }
.smf-hero__xp small { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
	.smf-hero { padding: 48px 0 64px; }
	.smf-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
	.smf-hero__plant { width: 132px; height: 132px; left: -34px; }
}
@media (prefers-reduced-motion: no-preference) {
	.smf-hero__xp { animation: smf-float 5s ease-in-out infinite; }
	.smf-hero__plant svg { animation: smf-grow 1.2s ease-out both; transform-origin: 50% 90%; }
}
@keyframes smf-float { 50% { transform: translateY(-8px); } }
@keyframes smf-grow { from { transform: scale(.4); opacity: 0; } }

/* Today's practice */
.smf-today { padding-top: 16px; }
.smf-today__card { background: var(--primary); color: #fff; border-radius: 28px; padding: 26px 20px; display: grid; gap: 20px; }
.smf-today__card h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); }
.smf-today__card .smf-muted { color: #CFE3D9; }
.smf-today__name { font: 700 22px/1.3 var(--font-head); margin-bottom: 6px; }
.smf-today__name small { font: 400 15px var(--font-body); opacity: .85; }
@media (min-width: 860px) { .smf-today__card { grid-template-columns: .8fr 1.2fr; padding: 40px; align-items: center; } }

/* Practice player */
.smf-player { display: grid; gap: 16px; }
.smf-player__stage { position: relative; display: grid; place-items: center; min-height: 220px; }
.smf-breath { width: 200px; height: 200px; border-radius: 50%; background: rgba(226, 85, 122, .16); display: grid; place-items: center; }
.smf-breath span { width: 70%; height: 70%; border-radius: 50%; background: rgba(244, 183, 64, .35); transition: transform 4s ease-in-out; }
.smf-player__play { position: absolute; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(201, 61, 99, .4); }
.smf-player__play:hover { background: var(--accent-d); }
.smf-player__play svg { margin-left: 5px; }
.smf-player.is-playing .smf-player__play { width: 56px; height: 56px; bottom: 0; right: 0; background: rgba(255, 255, 255, .9); color: var(--primary); box-shadow: none; }
.smf-player.is-playing .smf-player__play svg { margin: 0; }
.smf-player__time { position: absolute; bottom: -4px; left: 0; right: 0; text-align: center; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.smf-player__now { font-size: 20px; line-height: 1.6; min-height: 3.2em; font-weight: 600; }
.smf-player__steps summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.smf-player__steps ol { padding-left: 1.3em; }
.smf-player__done { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 20px; }
.smf-player__done h3 { font-size: 22px; }
.smf-player__done textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 10px; background: var(--bg); }
.smf-player__done .smf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.smf-card .smf-breath, .smf-practices .smf-breath { background: var(--accent-soft); }
.smf-card .smf-breath span, .smf-practices .smf-breath span { background: var(--reward-soft); }
.smf-card .smf-player.is-playing .smf-player__play { background: var(--primary-soft); }
@media (min-width: 860px) { .smf-today .smf-player { grid-template-columns: 240px 1fr; align-items: center; } .smf-today .smf-player__done { grid-column: 1 / -1; } }

/* Learning paths */
.smf-paths { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px 12px; }
.smf-path { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.smf-path:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.smf-path__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-soft); }
.smf-path__img img { width: 100%; height: 100%; object-fit: cover; }
.smf-path__body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.smf-path__body b { font: 700 21px/1.2 var(--font-head); }
.smf-path__body small { color: var(--muted); font-size: 14px; }
.smf-path__go { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; }
@media (min-width: 900px) { .smf-paths { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* All courses (homepage): 1 column phone, 2 tablet, 4 desktop */
.smf-courses { display: grid; gap: 16px; grid-template-columns: 1fr; }
.smf-courses .smf-path__img { aspect-ratio: 16 / 10; }
.smf-courses .smf-path__img img { width: 100%; height: 100%; object-fit: cover; }
.smf-courses .smf-path__body > span:not(.smf-path__go) { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) { .smf-courses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .smf-courses { grid-template-columns: repeat(4, 1fr); } }

/* How it works */
.smf-how { background: var(--surface); border-block: 1px solid var(--line); }
.smf-steps { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; counter-reset: s; }
.smf-steps li { position: relative; padding: 18px; border-radius: var(--r-md); background: var(--bg); display: grid; gap: 4px; }
.smf-steps li b { font: 700 20px var(--font-head); }
.smf-steps li > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.5; }
.smf-steps__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
@media (min-width: 860px) { .smf-steps { grid-template-columns: repeat(4, 1fr); } .smf-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; color: var(--muted); } }
.smf-levelstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.smf-levelstrip__item { text-align: center; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-md); }
.smf-levelstrip__item b { font-size: 16px; }
.smf-levelstrip__item small { color: var(--muted); font-size: 13px; }
.smf-rest { display: flex; gap: 8px; align-items: center; color: var(--primary); font-weight: 600; margin-top: 16px; }

/* Science */
.smf-science__grid { display: grid; gap: 28px; align-items: center; }
.smf-perma { list-style: none; padding: 0; display: grid; gap: 10px; }
.smf-perma li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; }
.smf-perma__l { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 22px var(--font-head); background: var(--primary); color: #fff; }
.smf-perma li:nth-child(2) .smf-perma__l { background: var(--accent); }
.smf-perma li:nth-child(3) .smf-perma__l { background: #3E9B6F; }
.smf-perma li:nth-child(4) .smf-perma__l { background: #B07A00; }
.smf-perma li:nth-child(5) .smf-perma__l { background: var(--primary-d); }
.smf-perma b { font-size: 18px; line-height: 1.3; }
.smf-perma small { color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (min-width: 900px) { .smf-science__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Bangladesh */
.smf-bd { background: var(--primary-soft); }
.smf-bd__grid { display: grid; gap: 28px; align-items: center; }
.smf-bd__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.smf-bd__img img { width: 100%; height: 100%; object-fit: cover; }
.smf-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.smf-counters div { background: var(--surface); border-radius: var(--r-md); padding: 14px; }
.smf-counters dt { font-size: 14px; color: var(--muted); }
.smf-counters dd { margin: 0; font: 700 28px/1.2 var(--font-head); color: var(--primary); }
.smf-districts { display: flex; flex-wrap: wrap; gap: 6px; }
.smf-districts span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 2px 12px; font-size: 14px; }
@media (min-width: 900px) { .smf-bd__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Challenge */
.smf-challenge__card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px 20px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.smf-challenge__nums { font-size: 18px; }
.smf-challenge__nums b { font: 700 26px var(--font-head); color: var(--accent); }
@media (min-width: 900px) { .smf-challenge__card { grid-template-columns: 1.1fr .9fr; padding: 40px; align-items: center; } }
.smf-bar { height: 14px; border-radius: var(--pill); background: var(--primary-soft); overflow: hidden; margin: 6px 0 10px; display: block; }
.smf-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #3E9B6F); transition: width .8s ease; }
.smf-bar--reward > span { background: linear-gradient(90deg, #E9A21E, var(--reward)); }
.smf-bar--thin { height: 6px; }

/* Founder */
.smf-founder__grid { display: grid; gap: 28px; align-items: center; }
.smf-founder__portrait { width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3E9B6F, var(--primary)); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--primary-soft); }
.smf-founder__portrait span { font: 700 84px/1 var(--font-head); color: #fff; }
.smf-quote { margin: 0 0 16px; padding: 0; border: 0; }
.smf-quote p { font-size: 20px; line-height: 1.75; }
.smf-quote footer { display: grid; }
.smf-quote footer span { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .smf-founder__grid { grid-template-columns: 260px 1fr; gap: 56px; } .smf-founder__portrait { width: 240px; height: 240px; } .smf-founder__portrait span { font-size: 110px; } }

/* Join */
.smf-join__grid { display: grid; gap: 14px; }
.smf-join__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); }
a.smf-join__card:hover { box-shadow: var(--shadow); }
.smf-join__card svg { color: var(--accent); }
.smf-join__card b { font: 700 21px var(--font-head); }
.smf-join__card span, .smf-join__card small { color: var(--muted); }
.smf-join__card--app { background: var(--reward-soft); border-color: transparent; }
@media (min-width: 860px) { .smf-join__grid { grid-template-columns: 1fr 1fr 1.2fr; } }

/* Footer */
.smf-footer { background: #0B3A2C; color: #DCEBE3; margin-top: 40px; padding-bottom: 84px; }
.smf-footer a { color: #fff; }
.smf-helpstrip { background: var(--accent); color: #fff; }
.smf-helpstrip__row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 14px; }
.smf-helpstrip p { margin: 0; }
.smf-helpstrip .smf-muted { color: #FCE3EA; }
.smf-footer__grid { display: grid; gap: 28px; padding-block: 44px 24px; }
.smf-footer h2 { color: #fff; font-size: 18px; }
.smf-footer ul { list-style: none; padding: 0; margin: 0; }
.smf-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.smf-footer li a:hover { text-decoration: underline; }
.smf-footer__disc { font-size: 14px; color: #B5CFC2; }
.smf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; font-size: 14px; }
.smf-footer__bottom p { margin: 0; }
.smf-footer .smf-install { color: #fff; }
@media (min-width: 860px) { .smf-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .smf-footer { padding-bottom: 0; } }

/* Mobile tab bar (app feel) */
.smf-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.smf-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 56px; }
.smf-tabbar a[aria-current="page"], .smf-tabbar a:hover { color: var(--primary); }
.smf-tabbar__today svg { color: #fff; background: var(--accent); border-radius: 50%; padding: 6px; width: 36px; height: 36px; margin-top: -14px; box-shadow: 0 4px 12px rgba(201, 61, 99, .35); }
@media (min-width: 860px) { .smf-tabbar { display: none; } }

/* Toasts and celebrations */
.smf-toasts { position: fixed; z-index: 100; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
@media (min-width: 860px) { .smf-toasts { bottom: 28px; left: auto; right: 28px; transform: none; } }
.smf-toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 12px 16px; box-shadow: 0 12px 30px rgba(20, 33, 28, .28); }
.smf-toast b { color: var(--reward); }
.smf-toast .smf-leaf { flex: none; width: 34px; height: 34px; }
.smf-toast--support { background: var(--surface); color: var(--ink); border: 2px solid var(--accent); display: block; }
.smf-toast--support p { margin: 0 0 8px; }
.smf-toast--support .smf-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
	.smf-toast { animation: smf-in .35s ease-out both; }
	.smf-toast .smf-leaf path { animation: smf-grow .8s .1s ease-out both; transform-origin: 50% 100%; }
}
@keyframes smf-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.smf-celebrate { position: fixed; inset: 0; z-index: 120; background: rgba(11, 58, 44, .92); display: grid; place-items: center; padding: 24px; color: #fff; text-align: center; }
.smf-celebrate__box { max-width: 420px; display: grid; justify-items: center; gap: 10px; }
.smf-celebrate h2 { color: #fff; font-size: 34px; margin: 0; }
.smf-celebrate .smf-plant { width: 180px; height: 180px; background: var(--bg); border-radius: 50%; padding: 12px; box-shadow: 0 0 0 12px rgba(244, 183, 64, .3); }
.smf-celebrate p { color: #D7EBE1; font-size: 19px; }
@media (prefers-reduced-motion: no-preference) { .smf-celebrate .smf-plant { animation: smf-grow .9s cubic-bezier(.2, .9, .3, 1.3) both; } }

/* Cards and dashboard */
.smf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.smf-card h2 { font-size: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.smf-dash { padding: 24px 0 40px; }
.smf-dash__hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.smf-dash__hello p { margin: 0; }
.smf-dash__hello h1 { font-size: clamp(30px, 6vw, 44px); margin: 0; }
.smf-dash__lv { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); background: var(--reward-soft); border-radius: var(--pill); padding: 4px 16px 4px 4px; line-height: 1.2; }
.smf-dash__lv small { display: block; color: var(--muted); }
.smf-dash__grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
	.smf-dash__grid { grid-template-columns: repeat(6, 1fr); }
	.smf-rhythm, .smf-xpcard { grid-column: span 3; }
	.smf-checkin, .smf-dash__practice { grid-column: span 3; }
	.smf-continue, .smf-invite { grid-column: span 3; }
	.smf-badges, .smf-settings { grid-column: span 6; }
}
.smf-rhythm__ring { position: relative; width: 150px; margin: 0 auto 8px; }
.smf-rhythm__ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; line-height: 1.2; }
.smf-rhythm__ring b { font: 700 34px var(--font-head); }
.smf-rhythm__ring small { color: var(--muted); }
.smf-ring-bg { fill: none; stroke: var(--primary-soft); stroke-width: 12; }
.smf-ring-fg { fill: none; stroke: #3E9B6F; stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s ease; }
.smf-ring-fg.is-met { stroke: var(--reward); filter: drop-shadow(0 0 6px rgba(244, 183, 64, .7)); }
.smf-week { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.smf-week span { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line); color: #fff; }
.smf-week .is-done span { background: #3E9B6F; border: 0; }
.smf-week .is-rest span { border-style: solid; color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.smf-week .is-today span { border-color: var(--accent); border-style: solid; }
.smf-week small { font-size: 12px; color: var(--muted); }
.smf-rhythm__msg { text-align: center; font-weight: 600; color: var(--primary); }
.smf-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.smf-minis div { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; }
.smf-minis dt { font-size: 12px; color: var(--muted); line-height: 1.3; display: flex; gap: 4px; align-items: center; }
.smf-minis dd { margin: 0; font: 700 22px var(--font-head); }
.smf-xpcard__num { margin: 0; color: var(--muted); }
.smf-xpcard__num b { font: 700 44px/1.1 var(--font-head); color: var(--ink); }
.smf-levels { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 14px 0 8px; }
.smf-levels li { display: grid; justify-items: center; text-align: center; opacity: .35; filter: grayscale(1); }
.smf-levels li.is-on { opacity: 1; filter: none; }
.smf-levels li.is-cur svg { background: var(--reward-soft); border-radius: 50%; }
.smf-levels small { font-size: 11px; line-height: 1.2; }
.smf-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.smf-moods label, .smf-chips label, .smf-options label { position: relative; cursor: pointer; }
.smf-moods input, .smf-chips input, .smf-options input { position: absolute; opacity: 0; inset: 0; }
.smf-moods span { display: grid; place-items: center; font-size: 32px; height: 58px; border-radius: var(--r-sm); background: var(--bg); border: 2px solid transparent; }
.smf-moods small { display: block; text-align: center; font-size: 12px; color: var(--muted); }
.smf-moods input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.smf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.smf-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.smf-chips input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.smf-moods input:focus-visible + span, .smf-chips input:focus-visible + span, .smf-options input:focus-visible + span { outline: 3px solid var(--reward); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; margin-bottom: 6px; }
.smf-field { display: grid; gap: 4px; font-weight: 600; margin-bottom: 14px; }
.smf-field input, .smf-field select, .smf-form input, .smf-form textarea, .smf-invite input { width: 100%; min-height: 48px; border: 1px solid #B9C7BF; border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); font-weight: 400; }
.smf-checkin__done { font-size: 18px; background: var(--primary-soft); border-radius: var(--r-sm); padding: 14px; }
.smf-checkin__next { background: var(--reward-soft); border-radius: var(--r-sm); padding: 14px; margin-top: 10px; }
.smf-continue__item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.smf-continue__item img { border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.smf-continue__item small { color: var(--muted); }
.smf-badges ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.smf-badges li { border-radius: var(--r-md); padding: 14px 12px; background: var(--bg); display: grid; justify-items: center; text-align: center; gap: 4px; }
.smf-badges li b { font-size: 16px; line-height: 1.3; }
.smf-badges li small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.smf-badge__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #E6EAE8; color: #7D8A84; }
.smf-badges li.is-earned { background: var(--reward-soft); }
.smf-badges li.is-earned .smf-badge__ic { background: var(--reward); color: #3B2A00; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--reward); }
.smf-settings { display: grid; gap: 10px; }
@media (min-width: 900px) { .smf-settings { grid-template-columns: 1fr 1fr; } .smf-settings h2 { grid-column: 1 / -1; } }
.smf-privacy { display: grid; align-content: start; gap: 4px; }
.smf-invite__row { display: flex; gap: 8px; }

/* Start wizard */
.smf-start { padding: 28px 0 60px; }
.smf-wizard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.smf-wizard__top { margin-bottom: 14px; }
.smf-q { display: none; }
.smf-q.is-on { display: block; }
.smf-q h1 { font-size: clamp(26px, 5vw, 34px); }
.smf-options { display: grid; gap: 10px; margin: 14px 0; }
.smf-options--row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.smf-options span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--r-md); font-weight: 600; font-size: 18px; background: var(--bg); }
.smf-options--row span { flex-direction: column; justify-content: center; gap: 0; text-align: center; }
.smf-options span small { font-weight: 400; color: var(--muted); font-size: 14px; }
.smf-options span svg { color: var(--primary); flex: none; }
.smf-options input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.smf-wizard__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.smf-wizard__nav [data-next] { margin-left: auto; }
.smf-wizard__err { color: #A3262F; font-weight: 600; }
.smf-consents label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; line-height: 1.55; }
.smf-consents input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.smf-callout { border-radius: var(--r-sm); padding: 14px 16px; background: var(--accent-soft); display: flex; gap: 10px; align-items: flex-start; }
.smf-callout p { margin: 0; }
.smf-callout--soft { background: var(--primary-soft); display: block; font-size: 15px; }
.smf-callout--urgent { background: var(--accent); color: #fff; }
.smf-callout--urgent a { color: #fff; }

/* Pages */
.smf-page-head { padding: 36px 0 20px; }
.smf-page-head h1 { font-size: clamp(32px, 6vw, 48px); }
.smf-prose { padding-bottom: 40px; font-size: 18px; }
.smf-prose h2 { font-size: 28px; margin-top: 1.4em; }
.smf-prose h3 { font-size: 22px; margin-top: 1.2em; }
.smf-prose img { border-radius: var(--r-md); }
.smf-prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin-left: 0; font-size: 20px; }
.smf-ticks { list-style: none; padding: 0; }
.smf-ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.smf-ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg); }
.smf-help-page { padding: 32px 0 48px; }
.smf-help-page h1 { font-size: clamp(34px, 6vw, 48px); }
.smf-helplines { list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0 28px; }
.smf-helplines li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.smf-helplines li div { display: grid; line-height: 1.45; }
.smf-helplines li span, .smf-helplines li small { color: var(--muted); }
.smf-practices { display: grid; gap: 18px; padding-bottom: 40px; }
.smf-practices__now h2 { font-size: 28px; }
.smf-plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.smf-plist a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.smf-plist .is-cur a { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.smf-plist b { font-size: 18px; }
.smf-plist small { color: var(--muted); line-height: 1.5; }
.smf-plist .smf-xp-chip { position: absolute; top: 12px; right: 12px; }
.smf-plist__type { font-size: 13px; font-weight: 600; color: var(--accent-d); }
@media (min-width: 960px) { .smf-practices { grid-template-columns: 1.3fr 1fr; align-items: start; } .smf-practices__now { position: sticky; top: 90px; } }
.smf-community { display: grid; gap: 18px; padding-bottom: 40px; }
.smf-community__grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .smf-community__grid { grid-template-columns: repeat(3, 1fr); } }
.smf-form { display: grid; gap: 4px; }
.smf-form label { display: grid; gap: 4px; font-weight: 600; margin-bottom: 10px; }
.smf-empty { padding: 60px 0; }
.smf-posts { display: grid; gap: 16px; padding-bottom: 40px; }
@media (min-width: 800px) { .smf-posts { grid-template-columns: repeat(3, 1fr); } }
.smf-post__img img { border-radius: var(--r-sm); margin-bottom: 10px; }
.smf-post h2 { font-size: 21px; }
.smf-post h2 a { color: var(--ink); text-decoration: none; }
.smf-grid2 { display: grid; gap: 16px; }
@media (min-width: 800px) { .smf-grid2 { grid-template-columns: 1fr 1fr; } }
.smf-figure img { border-radius: var(--r-md); width: 100%; }

/* Lesson steps (inside Tutor lessons) */
.smf-lesson-steps { margin-top: 28px; display: grid; gap: 14px; font-family: var(--font-body); }
.smf-step { border-radius: var(--r-md); padding: 18px 20px; }
.smf-step h3 { font: 700 21px var(--font-head); }
.smf-step--practice { background: var(--primary-soft); }
.smf-step--reflect { background: var(--reward-soft); }
.smf-reflect textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.smf-disclaimer-inline { font-size: 14px; color: var(--muted); }
.smf-course-note { display: flex; gap: 10px; align-items: flex-start; background: var(--primary-soft); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; color: var(--primary); }
.smf-course-note p { margin: 0; font-size: 15px; color: var(--ink); }

/* Tutor LMS harmony */
.smf-tutor-wrap { padding-top: 20px; padding-bottom: 40px; }
body .tutor-wrap, body .tutor-course-details-page, body .tutor-dashboard, body .tutor-course-archive-page { font-family: var(--font-body); }
body .tutor-course-name, body .tutor-course-details-title, body [class*="tutor"] h1, body [class*="tutor"] h2, body [class*="tutor"] h3 { font-family: var(--font-head); }
body .tutor-btn-primary { border-radius: var(--pill); }
body .tutor-card { border-radius: var(--r-md); border-color: var(--line); }

/* Utility fixes */
[hidden] { display: none !important; }
.smf-footer .smf-btn--light { color: var(--primary); }

/* Tablet (portrait and landscape): 640px to 899px */
@media (min-width: 640px) {
	:root { --gut: 28px; }
	.smf-today__card { padding: 32px; }
	.smf-wizard { padding: 32px; }
	.smf-helplines li { flex-wrap: nowrap; }
}
@media (min-width: 640px) and (max-width: 899px) {
	.smf-section { padding: 64px 0; }
	.smf-paths { grid-auto-columns: 42%; }
	.smf-join__grid { grid-template-columns: 1fr 1fr; }
	.smf-join__card--app { grid-column: 1 / -1; }
	.smf-dash__grid { grid-template-columns: 1fr 1fr; }
	.smf-badges, .smf-settings { grid-column: 1 / -1; }
	.smf-community__grid { grid-template-columns: 1fr 1fr; }
	.smf-community__grid > :last-child { grid-column: 1 / -1; }
	.smf-footer__grid { grid-template-columns: 1fr 1fr; }
	.smf-footer__brand { grid-column: 1 / -1; }
	.smf-posts { grid-template-columns: 1fr 1fr; }
	.smf-perma { grid-template-columns: 1fr 1fr; }
	.smf-perma li:last-child { grid-column: 1 / -1; }
	.smf-hero__art { max-width: 440px; }
	.smf-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 28px; }
	.smf-hero h1 { font-size: 44px; }
	.smf-hero__plant { width: 96px; height: 96px; left: -14px; }
	.smf-bd__grid, .smf-science__grid, .smf-founder__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.smf-founder__grid { grid-template-columns: 200px 1fr; }
	.smf-challenge__card { grid-template-columns: 1fr 1fr; align-items: center; }
	.smf-steps { grid-template-columns: repeat(4, 1fr); }
	.smf-steps li { padding: 14px; }
	.smf-today .smf-player { grid-template-columns: 220px 1fr; align-items: center; }
	.smf-today .smf-player__done { grid-column: 1 / -1; }
}
/* Large desktop: wider page, roomier side gutters */
@media (min-width: 1280px) {
	:root { --gut: 48px; }
	.smf-hero h1 { font-size: 72px; }
	.smf-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
	.smf-hero__art { max-width: 620px; }
	.smf-hero__sub { max-width: 40ch; }
	.smf-section { padding: 80px 0; }
	.smf-lead { max-width: 70ch; }
}
@media (min-width: 1600px) {
	:root { --gut: 64px; }
	.smf-hero h1 { font-size: 80px; }
	.smf-hero__art { max-width: 680px; }
}
/* Small phones (320 to 374px) */
@media (max-width: 374px) {
	:root { --gut: 14px; }
	body { font-size: 16px; }
	.smf-header .smf-btn--sm { padding: 8px 12px; font-size: 14px; }
	.smf-moods span { font-size: 26px; height: 50px; }
	.smf-minis { grid-template-columns: 1fr 1fr; }
	.smf-counters { grid-template-columns: 1fr 1fr; }
	.smf-invite__row { flex-wrap: wrap; }
}
/* Tutor LMS pages on small screens */
@media (max-width: 639px) {
	.smf-tutor-wrap { padding-left: 12px; padding-right: 12px; }
	body .tutor-container { padding-left: 14px; padding-right: 14px; }
}

.smf-breath--demo { margin: 10px auto 20px; background: var(--accent-soft); }
.smf-breath--demo span { background: var(--reward-soft); animation: smf-breathe 10s ease-in-out infinite; }
@keyframes smf-breathe { 0%, 100% { transform: scale(.6); } 40% { transform: scale(1.25); } }

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