:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101310;
  color: #f2f5ed;
  --accent: #c4f46a;
  --muted: #9da697;
  --panel: #1a1f19;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
.app-shell { max-width: 560px; margin: auto; padding: max(22px, env(safe-area-inset-top, 0px)) 22px 0; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 38px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.brand strong { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #151c0c; font-size: 33px; line-height: 1; }
.demo-badge { max-width: 48%; border: 1px solid #38432d; border-radius: 7px; padding: 6px 8px; color: var(--accent); font-size: 10px; font-weight: 700; line-height: 1.5; text-align: center; }
main { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(32px, 9vw, 46px); line-height: 1.1; letter-spacing: -1.8px; }
h1 span { color: var(--accent); }
.intro { max-width: 350px; margin: 16px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
h2 { font-size: 20px; letter-spacing: -.5px; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; padding: 24px; border: 1px solid #455633; border-radius: 24px; background: linear-gradient(120deg, #2e3e21, #1b2418); }
.hero-card .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2px; }
.hero-card h2 { position: relative; font-size: 28px; line-height: 1.15; margin: 18px 0 10px; }
.hero-card > p:not(.eyebrow) { color: #b9c5ac; font-size: 13px; }
.hero-art { position: absolute; z-index: -1; right: -18px; top: 9px; width: 140px; height: 155px; transform: rotate(24deg); opacity: .38; }
.hero-art span { position: absolute; background: #9bb974; border-radius: 10px; }
.hero-art span:nth-child(1) { width: 120px; height: 19px; left: 10px; top: 65px; }
.hero-art span:nth-child(2) { width: 29px; height: 99px; left: 16px; top: 25px; box-shadow: -11px 0 0 -4px #9bb974; }
.hero-art span:nth-child(3) { width: 29px; height: 99px; right: 16px; top: 25px; box-shadow: 11px 0 0 -4px #9bb974; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 26px; padding: 15px 12px; border: 0; border-radius: 14px; background: var(--accent); color: #19210f; font-weight: 750; font-size: 16px; }
.primary-button span { margin-left: auto; font-size: 23px; }
.primary-button:hover { background: #d3ff86; }
.primary-button:active { transform: translateY(1px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card { padding: 20px; border: 1px solid #2d3429; border-radius: 18px; background: var(--panel); }
.stat-card h3 { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.stat-card h2 { margin: 14px 0; }
.last-workout { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; }
.last-workout h3 { margin-bottom: 6px; }
.last-workout p { margin: 0; font-size: 16px; font-weight: 650; }
.stat-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; background: #2a3322; color: var(--accent); font-size: 28px; }
.stat-value { margin: 0; font-size: 36px; font-weight: 750; letter-spacing: -1.3px; }
.stat-value span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.stat-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.week-bars { display: flex; gap: 5px; margin-top: 17px; }
.week-bars i { height: 5px; flex: 1; background: #343d2c; border-radius: 4px; }
.week-bars i:nth-child(-n+3) { background: var(--accent); }
.demo-note { margin: 23px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; }
.card-label { color: var(--accent); font-size: 10px; letter-spacing: 1.2px; }
.secondary-button { width: 100%; min-height: 52px; margin-top: 24px; padding: 14px; border: 1px solid #48583a; border-radius: 14px; background: #20281b; color: var(--accent); font-weight: 600; }
.secondary-button:hover { background: #2d3826; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #30372b; background: #141914; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 54px; border-radius: 12px; color: var(--muted); font-size: 11px; }
.bottom-nav a[aria-current="page"] { color: var(--accent); background: #222d1c; }
.bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 360px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .hero-card, .stat-card { padding: 16px; }
  .primary-button { font-size: 14px; }
  .stat-value span { display: block; }
}
@media (min-width: 600px) {
  .app-shell { padding-top: 36px; }
}
