/* Ocean State Fit program library: shared styles */
:root {
  --navy: #1B2A4A;
  --navy-2: #24365E;
  --orange: #F47C20;
  --ink: #1B2A4A;
  --muted: #5B6578;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --line: #E3E6EC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 4px 16px rgba(27, 42, 74, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top .wrap { padding-top: 22px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { font-weight: 700; letter-spacing: .28em; font-size: 13px; text-decoration: none; }
.wordmark b { color: var(--orange); font-weight: 700; }
.hero h1 { margin: 22px 0 6px; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 700; }
.hero h1 span { color: var(--orange); }
.hero p { margin: 0; max-width: 640px; color: #D5DBE7; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--orange); color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px;
  border: 0; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }

/* Section nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(245,246,248,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}
.nav a.on { background: var(--navy); color: #fff; box-shadow: none; }

/* Sections */
section.block { padding: 34px 0 6px; scroll-margin-top: 58px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
section.block h2 { margin: 4px 0 6px; font-size: clamp(22px, 4vw, 30px); line-height: 1.2; }
.lede { margin: 0 0 18px; color: var(--muted); max-width: 720px; }
.weeks { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; }
@media (max-width: 760px) { .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk { background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wk b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.wk span { font-weight: 600; font-size: 15px; }
.weeks-note { margin: -8px 0 20px; font-size: 14px; }
.wk small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* Exercise card */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 70px; }
.card.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--orange), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.media { position: relative; aspect-ratio: 16 / 9; background: #0E1626; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; padding: 0;
}
.play span {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(27,42,74,.82); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.play span::before { content: ""; margin-left: 4px; border-left: 17px solid var(--orange); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.media.playing .play { display: none; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.head { display: flex; align-items: flex-start; gap: 10px; }
.code { flex: none; min-width: 34px; height: 26px; padding: 0 7px; border-radius: 7px; background: var(--orange); color: var(--navy); font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 2px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.dose { font-size: 13px; font-weight: 600; color: var(--navy-2); background: #EEF1F6; padding: 3px 9px; border-radius: 6px; align-self: flex-start; }
.cue { margin: 0; color: #36405A; font-size: 15px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.opt {
  font: inherit; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.opt[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.opt small { font-weight: 600; color: var(--orange); margin-right: 4px; }
.opt[aria-pressed="true"] small { color: var(--orange); }
.note { font-size: 13px; color: var(--muted); margin: 0; }

/* CTA + footer */
.cta { margin: 40px 0 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 4px; font-size: 22px; }
.cta p { margin: 0; color: #D5DBE7; max-width: 560px; }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; max-width: 820px; }

/* Program hub */
.programs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 30px 0; }
.program { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.program img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.program .body h3 { font-size: 20px; margin: 0; }
.program .body .cue { margin: 0; }
.program.soon { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card.flash { animation: none; } }
