/* Workout Crown — one stylesheet for every page. */

@keyframes wc-rise { from { opacity: 0; transform: translateY(46px) } to { opacity: 1; transform: translateY(0) } }
@keyframes wc-row  { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes wc-grow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes wc-fade { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #AFFF02; text-decoration: none }
a:hover { color: #c9ff5c }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px }
.rule { border-top: 1px solid rgba(255,255,255,.1) }

/* Scroll-driven where supported; elsewhere these simply play on load. */
.wc-in  { animation: wc-fade .7s cubic-bezier(.22,1,.36,1) both; animation-timeline: view(); animation-range: entry 0% entry 65% }
.wc-row { animation: wc-row .5s cubic-bezier(.22,1,.36,1) both; animation-timeline: view(); animation-range: entry 0% entry 70% }
.wc-bar { transform-origin: left center; animation: wc-grow .8s cubic-bezier(.22,1,.36,1) both; animation-timeline: view(); animation-range: entry 0% entry 80% }

/* ---- nav ---- */
nav.top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto }
.brand span { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: #fff }

.mark { width: 30px; height: 30px; border-radius: 9px; display: block; flex: none }

nav.top a { font-size: 14px; color: rgba(255,255,255,.62) }
nav.top a:hover { color: #fff }
nav.top a[aria-current] { color: #AFFF02 }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 90px;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0 }

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 30em;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,.66);
  text-wrap: pretty;
}

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px }

.badge {
  display: inline-flex;
  transition: transform .2s cubic-bezier(.22,1,.36,1), opacity .2s;
}

.badge img { height: 54px; display: block }
.badge:hover { opacity: .86; transform: translateY(-2px) }
.badge:active { transform: translateY(0) }

.pill {
  display: inline-flex;
  color: #000;
  background: #AFFF02;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .2s cubic-bezier(.22,1,.36,1), opacity .2s;
}

.pill:hover { color: #000; opacity: .86; transform: translateY(-2px) }
.pill:active { transform: translateY(0) }

.req { font-size: 13.5px; color: rgba(255,255,255,.66) }

.shot { display: flex; justify-content: center; min-width: 0 }

.phone {
  width: 302px;
  height: 628px;
  flex: none;
  animation: wc-rise 1s cubic-bezier(.22,1,.36,1) .1s both;
}

.phone-inner { width: 377px; height: 785px; transform: scale(.8); transform-origin: top left; position: relative }

.phone-bezel {
  position: absolute;
  inset: 0;
  border-radius: 62px;
  background: linear-gradient(145deg, #8f9294 0%, #3a3d3e 18%, #c9ccce 34%, #4a4d4f 52%, #2b2d2e 68%, #a7abad 84%, #3a3d3e 100%);
}

.phone-edge { position: absolute; left: 4px; top: 4px; width: 369px; height: 777px; border-radius: 58px; background: rgb(0,1,0) }

.phone-screen {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 353px;
  height: 761px;
  border-radius: 52px;
  overflow: hidden;
  background: #000;
}

.phone-screen img { position: absolute; left: 0; top: 0; width: 353px; height: 761px; object-fit: cover; object-position: top }

.phone-island { position: absolute; left: 133px; top: 24px; width: 110px; height: 31px; border-radius: 20px; background: rgb(3,3,3) }

/* ---- pitch ---- */
.pitch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 56px;
  align-items: start;
  padding-top: 76px;
  padding-bottom: 96px;
}

.pitch h2 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: pretty;
}

.pitch h2 span { color: #AFFF02 }

.pitch p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.66);
  text-wrap: pretty;
}

/* ---- features ---- */
.features { padding-bottom: 96px }

/* Fixed counts, not auto-fit: auto-fit lands on three columns in the middle
   of the range and leaves the fourth card stranded on its own row. */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card {
  background: #111;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 24px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.card .glyph { font-size: 22px; line-height: 1; color: #AFFF02 }
.card h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.6); text-wrap: pretty }

.card .shot-wrap { margin-top: auto; padding-top: 20px; width: 100%; min-width: 0 }

.card .window {
  width: 100%;
  height: 176px;
  flex: none;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,.12);
  border-bottom: 0;
  overflow: hidden;
  background: #000;
}

.card .window img { width: 100%; height: auto; display: block; margin-top: -7% }

/* Scroll-in stagger, indexed by position instead of an inline style per card. */
.bento .card:nth-child(2) { animation-delay: 60ms }
.bento .card:nth-child(3) { animation-delay: 120ms }
.bento .card:nth-child(4) { animation-delay: 180ms }
.bento.three .card:nth-child(2) { animation-delay: 70ms }
.bento.three .card:nth-child(3) { animation-delay: 140ms }

.kicker {
  margin: 56px auto 0;
  max-width: 24em;
  text-align: center;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.018em;
  color: #fff;
  text-wrap: pretty;
}

/* ---- leaderboard ---- */
.board { padding-top: 76px; padding-bottom: 96px }

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.board-head h2 { margin: 0; font-size: clamp(26px, 3.1vw, 40px); font-weight: 600; letter-spacing: -.022em }
.board-note { font-size: 13.5px; color: rgba(255,255,255,.66) }

.rows { display: flex; flex-direction: column }

.row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(90px, 42%) 54px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.row:last-child { border-bottom: 1px solid rgba(255,255,255,.1) }

.row .rank { font-size: 14px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums }
.row .name { font-size: 17px; font-weight: 500; letter-spacing: -.01em }
.row .track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden }
.row .track span { display: block; height: 8px; border-radius: 4px; background: #AFFF02 }
.row .val { font-size: 16px; font-weight: 600; color: #AFFF02; text-align: right; font-variant-numeric: tabular-nums }

.row.t2 .track span { background: rgba(175,255,2,.72) }
.row.t3 .track span { background: rgba(175,255,2,.52) }
.row.t2 .val, .row.t3 .val { color: rgba(255,255,255,.82) }

.status { color: #666; padding: 1rem 0; margin: 0 }

/* ---- prose pages (privacy, contact) ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 72px;
  line-height: 1.8;
}

.container h1 {
  margin: 0 0 .25rem;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.024em;
}

.container h2 {
  margin: 2.25rem 0 1rem;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: -.018em;
  color: #fff;
}

.container h3 { margin: 1.75rem 0 .5rem; font-size: 18px; font-weight: 600; letter-spacing: -.012em }

.container p, .container li { color: rgba(255,255,255,.66) }
.container p { margin-bottom: 1rem }
.container ul { padding-left: 1.25rem; margin-bottom: 1rem }
.container li { margin-bottom: .4rem }
.container a { color: #fff; text-decoration: underline }
.container a:hover { color: #AFFF02 }
.container strong { color: #fff }
.container code { font-size: .92em; color: rgba(255,255,255,.82) }

.updated { color: #666 !important; font-size: .9rem; margin-bottom: 2rem !important }

.callout {
  background: #111;
  border: 1px solid rgba(255,255,255,.09);
  border-left: 3px solid #AFFF02;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p { margin-bottom: 0 }

.contact-info {
  background: #111;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 2rem;
  margin: 2rem 0;
}

.contact-item { margin-bottom: 1.5rem }
.contact-item:last-child { margin-bottom: 0 }
.contact-item strong { color: #fff; display: block; margin-bottom: .5rem; font-size: 1.1rem }
.contact-item a { color: #AFFF02; text-decoration: none }
.contact-item a:hover { text-decoration: underline }

/* ---- crown pro ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #292E27;
  background: #0d0f0c;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #AFFF02;
}

.pitch.mid { align-items: center }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0 }

.media {
  min-width: 0;
  height: 340px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  overflow: hidden;
}

.media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block }
.media.short { height: 300px }

/* Screenshot slot: fills its frame until an <img> replaces it. */
.ph {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: #0a0b09 repeating-linear-gradient(135deg, rgba(175,255,2,.055) 0 10px, transparent 10px 20px);
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  color: rgba(175,255,2,.72);
}

.bento.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }

.icons { display: grid; grid-template-columns: repeat(4, minmax(0, 112px)); gap: 16px }
.icons figure { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.62) }
.icons img { width: 100%; height: auto; border-radius: 22%; display: block }

.unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  padding-top: 86px;
  padding-bottom: 100px;
}

.unlock p {
  margin: 0;
  max-width: 26em;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.unlock .cta { align-items: center }

/* ---- 404 ---- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 24px 96px;
}

.notfound img.app-icon { width: 92px; height: 92px; border-radius: 21px }

.notfound h1 {
  margin: 1.5rem 0 .75rem;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -.024em;
}

.notfound p { margin: 0 auto 2rem; max-width: 46ch; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.66) }

/* ---- footer ---- */
footer { padding-top: 34px; padding-bottom: 44px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap }
footer .mark { width: 26px; height: 26px; border-radius: 8px }
footer .brand span { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.5) }
footer a { font-size: 14px; color: rgba(255,255,255,.5) }
footer a:hover { color: #fff }

.legal { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; font-size: 12.5px; line-height: 1.5; color: #555 }

/* 4 across, then 2 x 2, then stacked. Never 3 + 1. The three-card row goes
   straight from 3 to stacked, since 2 + 1 strands a card the same way. */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

@media (max-width: 760px) {
  .bento.three { grid-template-columns: minmax(0, 1fr) }
}

@media (max-width: 440px) {
  .bento { grid-template-columns: minmax(0, 1fr) }
}

@media (max-width: 600px) {
  nav.top { gap: 18px; justify-content: center }
  .brand { margin-right: 0; flex-basis: 100%; justify-content: center }
  .hero { padding-bottom: 60px }
  .board-head { margin-bottom: 22px }
  .row { grid-template-columns: 26px minmax(0, 1fr) 52px; gap: 12px }
  .row .track { display: none }
  .container { padding-bottom: 56px }
  footer { justify-content: center }
  footer .brand { flex-basis: 100% }
}

@media (prefers-reduced-motion: reduce) {
  .wc-in, .wc-row, .wc-bar, .phone { animation: none }
  .badge, .pill { transition: none }
}
