/* FORMA demo: a paid course in the customer's phone. Dark, native-app look: system font, tab bar, cards, a full-screen lesson player and a bottom sheet. */
:root {
  --bg: #0f1012; --card: #1a1b1f; --card2: #24262b; --ink: #f4f4f1; --muted: #8e9099; --line: #2b2d33;
  --acc: #c9f24b; --acc-ink: #141a00; --warn: #ff8a4c;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: #050506; }
body { font: 400 16px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app { position: relative; max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 8px 26px 0; font-weight: 600; font-size: 15px; position: relative; z-index: 8; }
.sb i { display: flex; gap: 6px; align-items: center; }
.sb svg { height: 12px; width: auto; fill: currentColor; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.screen { padding: 8px 20px 112px; animation: in .5s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } }
.top { display: flex; align-items: center; gap: 10px; padding: 8px 0 16px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.logo i { color: var(--acc); font-style: normal; }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--card); font-size: 14px; font-weight: 600; }
.pill svg.ic { width: 18px; height: 18px; color: var(--warn); }
.ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; background: var(--card2); }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; padding: 6px 0 16px; }
h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; margin: 26px 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: 24px; padding: 18px; }
.press { transition: transform .3s var(--ease), opacity .3s var(--ease); }
.press:active { transform: scale(.97); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 18px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 17px; }
.btn.soft { background: var(--card2); color: var(--ink); }
.btn svg.ic { stroke-width: 2.2; }
button:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* today */
.hero { position: relative; height: 330px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; width: 100%; }
.hero img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,18,0) 38%, rgba(15,16,18,.62) 64%, rgba(15,16,18,.94) 100%); }
.hero > * { position: relative; z-index: 1; }
.hero > img { position: absolute; z-index: 0; }
.hero .tag { align-self: flex-start; margin-bottom: auto; padding: 6px 12px; border-radius: 99px; background: rgba(15,16,18,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.hero h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.hero p { color: rgba(244,244,241,.75); font-size: 15px; margin: 6px 0 14px; }
.hero.done .btn { background: rgba(244,244,241,.16); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.week { display: flex; justify-content: space-between; margin-top: 14px; }
.week span { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.week i { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; color: var(--acc-ink); font-style: normal; }
.week i.on { background: var(--acc); }
.week i.now { box-shadow: inset 0 0 0 2px var(--acc); }
.week svg.ic { width: 16px; height: 16px; stroke-width: 2.6; }
.prog { display: flex; justify-content: space-between; align-items: baseline; }
.prog b { font-size: 20px; letter-spacing: -.02em; }
.bar { height: 6px; border-radius: 99px; background: var(--card2); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); transform-origin: left; transition: transform .8s var(--ease); }
.coach { display: flex; gap: 12px; margin-top: 12px; }
.coach .ava { width: 44px; height: 44px; }
.coach b { font-size: 15px; }
.coach p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.mod { padding: 0; overflow: hidden; margin-top: 12px; width: 100%; display: block; }
.mod .ph { display: block; height: 130px; position: relative; }
.mod .ph::after { content: ""; position: absolute; inset: 0; background: rgba(15,16,18,.45); }
.mod .lock { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(15,16,18,.7); font-size: 13px; font-weight: 600; }
.mod .lock svg.ic { width: 15px; height: 15px; }
.mod .lock.open { background: var(--acc); color: var(--acc-ink); }
.mod .in { display: flex; align-items: center; gap: 12px; padding: 14px 18px 16px; }
.mod .in span { flex: 1; }
.mod b { font-size: 18px; letter-spacing: -.01em; }
.mod small { display: block; color: var(--muted); font-size: 14px; }
.mod em { font-style: normal; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); white-space: nowrap; font-size: 15px; }

/* program */
.days { display: grid; gap: 8px; }
.d { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border-radius: 20px; background: var(--card); }
.d .n { width: 48px; height: 48px; border-radius: 14px; background: var(--card2); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; overflow: hidden; }
.d span { flex: 1; }
.d b { display: block; font-size: 16px; letter-spacing: -.01em; }
.d small { color: var(--muted); font-size: 13px; }
.d .st { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); }
.d .st svg.ic { width: 18px; height: 18px; }
.d.ok .st { background: rgba(201,242,75,.16); color: var(--acc); }
.d.now { box-shadow: inset 0 0 0 2px var(--acc); }
.d.now .st { background: var(--acc); color: var(--acc-ink); }
.d.lock { opacity: .55; }

/* progress */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: var(--card); border-radius: 22px; padding: 16px 12px; text-align: center; }
.stats b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.stats small { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.grid i { aspect-ratio: 1; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.grid i.on { background: var(--acc); color: var(--acc-ink); }
.grid i.now { box-shadow: inset 0 0 0 2px var(--acc); color: var(--ink); }
.rows { padding: 4px 18px; }
.rows > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; }
.rows > * + * { border-top: 1px solid var(--line); }
.rows span { flex: 1; }
.rows small { display: block; color: var(--muted); font-size: 13px; }
.rows span.badge { flex: none; }
.badge { width: 40px; height: 40px; border-radius: 14px; background: var(--card2); color: var(--muted); display: grid; place-items: center; flex: none; }
.badge.on { background: rgba(201,242,75,.16); color: var(--acc); }
.sw i { width: 52px; height: 32px; border-radius: 99px; background: #3a3c43; position: relative; flex: none; transition: background .3s var(--ease); }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.sw.on i { background: var(--acc); }
.sw.on i::after { transform: translateX(20px); }
.prof { display: flex; align-items: center; gap: 14px; }
.prof .ava { width: 64px; height: 64px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-size: 26px; font-weight: 700; }
.prof b { font-size: 22px; letter-spacing: -.02em; }
.acc { margin-top: 12px; }
.acc b { font-size: 18px; }
.acc p { color: var(--muted); font-size: 15px; margin: 4px 0 14px; }

/* lesson player: full screen, no tab bar */
.play { position: fixed; z-index: 7; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); background: var(--bg); display: flex; flex-direction: column; padding: 0 20px 28px; animation: up .5s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 24px); } }
.play .hd { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; }
.play.emb .hd, .play.sbk .hd { padding-top: 50px; }
.x { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; }
.segs { flex: 1; display: flex; gap: 6px; }
.segs i { flex: 1; height: 4px; border-radius: 99px; background: var(--card2); }
.segs i.on { background: var(--acc); }
.play small.k { color: var(--muted); font-size: 14px; font-weight: 600; }
.play h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 8px; }
.play p { color: var(--muted); font-size: 16px; }
.ring { position: relative; width: 220px; height: 220px; margin: auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke: var(--card2); }
.ring circle.f { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.play .row { display: flex; gap: 10px; }
.fin { margin: auto 0; text-align: center; }
.fin .ok { width: 96px; height: 96px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .6s var(--ease) both; }
.fin .ok svg { width: 44px; height: 44px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.fin h3 { font-size: 32px; }
.fin .stats { margin: 22px 0; grid-template-columns: repeat(2, 1fr); }

/* bottom sheet */
.dim { position: fixed; z-index: 8; inset: 0; background: rgba(0,0,0,.6); animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 9; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 430px); background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 20px 30px; animation: sh .5s var(--ease) both; }
@keyframes sh { from { transform: translate(-50%, 100%); } }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: #45474e; margin: 0 auto 16px; }
.sheet h3 { font-size: 24px; letter-spacing: -.02em; }
.sheet ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.sheet li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.sheet li svg.ic { color: var(--acc); width: 20px; height: 20px; stroke-width: 2.4; }
.sheet .price { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sheet .price b { font-size: 30px; letter-spacing: -.03em; }
.sheet .fine { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

.tabs { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 430px); display: flex; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 16, 18, .86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0 12px; color: #6d6f78; font-size: 11px; font-weight: 600; transition: color .3s var(--ease); }
.tabs button.on { color: var(--acc); }
.tabs svg.ic { width: 25px; height: 25px; }
.home-ind { position: fixed; z-index: 10; left: 50%; bottom: 6px; transform: translateX(-50%); width: 128px; height: 5px; border-radius: 99px; background: var(--ink); opacity: .85; pointer-events: none; }
.toast { position: fixed; z-index: 11; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; animation: in .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .screen, .toast, .play, .sheet, .dim, .fin .ok { animation: none; } .press, .bar i, .sw i, .sw i::after { transition: none; } }
