/* SHOT demo: a photography school in the phone. Same native-app recipe as LUMA and FORMA: system font, tab bar, cards, pushed screens, a bottom sheet. Light paper, black ink, yellow accent. */
:root {
  --bg: #efeeea; --card: #fff; --soft: #e6e4de; --ink: #131313; --muted: #77767c; --line: #e2e0d9;
  --acc: #ffd400; --acc-ink: #131313; --ok: #1e9e6a; --ok-soft: #e2f5ec;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: #d9d7d0; }
body { font: 400 16px/1.38 -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; }
.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: 8px; padding: 8px 0 16px; }
.logo { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.logo i { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--ink); background: var(--acc); }
.pill { 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; white-space: nowrap; }
.pill svg.ic { width: 17px; height: 17px; }
.pill.y { background: var(--acc); }
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; display: flex; justify-content: space-between; align-items: baseline; }
h2 button { font-size: 15px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -18px rgba(0,0,0,.2); }
.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(--ink); color: #fff; font-weight: 600; font-size: 17px; }
.btn.y { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.done { background: var(--ok-soft); color: var(--ok); pointer-events: none; }
.btn[disabled] { opacity: .35; pointer-events: none; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.xp { font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); white-space: nowrap; }

/* photo cards */
.shot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 300px; border-radius: 28px; overflow: hidden; padding: 18px; color: #fff; }
.shot > * { position: relative; z-index: 1; }
.shot > img { position: absolute; inset: 0; z-index: 0; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.9) 100%); }
.shot .tag { align-self: flex-start; margin-bottom: auto; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.shot h3 { font-size: 28px; line-height: 1.08; letter-spacing: -.03em; }
.shot p { color: rgba(255,255,255,.78); font-size: 15px; margin: 6px 0 14px; }
.shot .btn { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.shot .btn.done { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.shot.low { height: 210px; }

.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q { background: var(--card); border-radius: 22px; padding: 8px 8px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); display: block; width: 100%; }
.q .ph { display: block; height: 96px; border-radius: 16px; overflow: hidden; }
.q b { display: block; font-size: 15px; line-height: 1.2; margin: 10px 6px 6px; letter-spacing: -.01em; }
.q small { display: block; margin: 6px 6px 0; color: var(--muted); font-size: 13px; }
.bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 0 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transform-origin: left; transition: transform .8s var(--ease); }
.bar.y i { background: var(--acc); }

.item { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--card); border-radius: 22px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.item .ph { width: 84px; height: 72px; border-radius: 16px; overflow: hidden; flex: none; display: block; }
.item .txt { flex: 1; min-width: 0; }
.item b { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.item small { color: var(--muted); font-size: 13px; }
.item .st { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); margin-right: 4px; }
.item .st.ok { background: var(--ok-soft); color: var(--ok); }
.item .st.pro { width: auto; padding: 0 10px; border-radius: 99px; background: var(--ink); color: var(--acc); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.item .st svg.ic { width: 18px; height: 18px; }
.item .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; flex: none; margin: 4px; }
.item .ico.y { background: var(--acc); }
.list { display: grid; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 14px; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--card); font-size: 15px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; }

/* video lessons */
.vids { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vids::-webkit-scrollbar { display: none; }
.vid { flex: 0 0 200px; scroll-snap-align: start; }
.vid .ph { display: block; position: relative; height: 120px; border-radius: 20px; overflow: hidden; background: #000; }
.vid .ph img { opacity: .78; }
.vid .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; }
.vid .du { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vid small { display: block; margin: 10px 2px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.vid b { display: block; margin: 0 2px; font-size: 17px; letter-spacing: -.01em; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; color: #fff; }
.player img { opacity: .5; transition: opacity .5s var(--ease); }
.player.on img { opacity: .8; }
.player .cap { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.6); font-size: 14px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.player .pb { position: absolute; left: 50%; top: 50%; margin: -32px 0 0 -32px; width: 64px; height: 64px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; }
.player .pb svg.ic { width: 28px; height: 28px; stroke-width: 2.4; }
.player .tl { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.player .tl i { display: block; width: 100%; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
.player.on .tl i { animation: tl 40s linear forwards; }
@keyframes tl { to { transform: scaleX(1); } }
.player .tm { position: absolute; left: 14px; bottom: 26px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* pushed screens: guide, exercise, quest, trainer */
.back { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; margin: 4px 0 10px -4px; border-radius: 99px; background: var(--card); font-size: 15px; font-weight: 600; }
.cover { display: block; height: 220px; border-radius: 28px; overflow: hidden; margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.meta span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--card); font-size: 13px; font-weight: 600; }
.art h3 { font-size: 19px; letter-spacing: -.02em; margin: 20px 0 6px; }
.art p { font-size: 16px; line-height: 1.5; color: #3b3a3f; }
.set { display: flex; gap: 8px; margin-top: 14px; }
.set span { flex: 1; text-align: center; padding: 10px 4px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.set small { display: block; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.keep { margin-top: 18px; background: var(--acc); box-shadow: none; }
.keep b { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.keep ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; }
.keep li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.keep li svg.ic { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.4; }
.cta { margin-top: 18px; display: grid; gap: 10px; }
.rules { padding: 4px 18px; }
.rules > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; font-size: 15px; line-height: 1.35; }
.rules > * + * { border-top: 1px solid var(--line); }
.rules .txt { flex: 1; }
.rules small { display: block; color: var(--muted); font-size: 13px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9c6bd; display: grid; place-items: center; flex: none; color: transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.ck svg.ic { width: 16px; height: 16px; stroke-width: 3; }
.on > .ck { background: var(--ink); border-color: var(--ink); color: var(--acc); }
[role="checkbox"].on > .txt { color: var(--muted); text-decoration: line-through; }
.big { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.big b { font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.big b span { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.gal span { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); display: block; }
.gal span.new { animation: pop .6s var(--ease) both; }
.gal.bw img { filter: grayscale(1) contrast(1.1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* exposure trainer */
.view { position: relative; height: 230px; border-radius: 28px; overflow: hidden; background: #000; }
.view img { transition: filter .5s var(--ease); }
.view .fr { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; pointer-events: none; }
.view .ev { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.view .ev.ok { background: var(--acc); color: var(--acc-ink); }
.meter { position: relative; height: 34px; margin: 16px 6px 4px; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--ink); opacity: .25; }
.meter i { position: absolute; top: 4px; width: 2px; height: 12px; background: var(--ink); opacity: .35; }
.meter i.z { top: 0; height: 20px; opacity: 1; }
.meter em { position: absolute; top: -2px; width: 0; height: 0; border: 8px solid transparent; border-top-color: var(--ink); margin-left: -8px; transition: left .5s var(--ease); }
.meter span { position: absolute; top: 20px; font-size: 11px; font-weight: 600; color: var(--muted); transform: translateX(-50%); }
.dial { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.dial + .dial { border-top: 1px solid var(--line); }
.dial .txt { flex: 1; }
.dial b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dial small { color: var(--muted); font-size: 13px; }
.dial button { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.dial button[disabled] { opacity: .3; pointer-events: none; }
.hint { margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); font-size: 15px; }
.hint.ok { background: var(--ok-soft); color: #136b48; font-weight: 600; }

/* profile */
.prof { display: flex; align-items: center; gap: 14px; }
.ava { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--acc); font-size: 26px; font-weight: 700; flex: none; }
.prof b { font-size: 22px; letter-spacing: -.02em; }
.lvl { margin-top: 14px; }
.lvl > div:first-child { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lvl .bar { margin: 0; height: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats div { background: var(--card); border-radius: 22px; padding: 16px 8px; text-align: center; }
.stats b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.stats small { color: var(--muted); font-size: 13px; }
.pro { background: var(--ink); color: #fff; margin-top: 12px; }
.pro b { font-size: 20px; letter-spacing: -.02em; }
.pro b span { color: var(--acc); }
.pro p { color: rgba(255,255,255,.7); font-size: 15px; margin: 4px 0 14px; }
.sw i { width: 52px; height: 32px; border-radius: 99px; background: #d5d2ca; 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; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.sw.on i { background: var(--ink); }
.sw.on i::after { transform: translateX(20px); }
.badge { width: 40px; height: 40px; border-radius: 14px; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: none; }
.badge.on { background: var(--acc); color: var(--acc-ink); }

/* bottom sheet */
.dim { position: fixed; z-index: 8; inset: 0; background: rgba(0,0,0,.5); 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: #d0cdc5; margin: 0 auto 16px; }
.sheet h3 { font-size: 24px; letter-spacing: -.02em; }
.sheet h3 span { background: var(--acc); padding: 0 8px; border-radius: 8px; }
.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 { 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 6px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 246, 243, .88); -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: #a3a1a3; font-size: 11px; font-weight: 600; transition: color .3s var(--ease); }
.tabs button.on { color: var(--ink); }
.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: #fff; padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; animation: in .4s var(--ease) both; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.toast b { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .screen, .toast, .sheet, .dim, .gal span.new { animation: none; } .press, .bar i, .sw i, .sw i::after, .view img, .meter em { transition: none; } }
