/* set-piece-play.css — §3 Set-Piece Play page styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--fives-bg);
  color: var(--fives-text);
  font-family: var(--fives-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.spp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.spp-main { flex: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.spp-hero {
  background: #fff;
  border-bottom: 1px solid var(--fives-line);
  padding: 72px 28px 56px;
}
.spp-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.spp-hero-eyebrow {
  font-family: var(--fives-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--fives-primary);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.spp-hero-h1 {
  font-family: var(--fives-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--fives-text);
  letter-spacing: -1.6px;
  line-height: 1.02;
}
.spp-hero-sub {
  font-family: var(--fives-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--fives-muted);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-top: 8px;
  max-width: 720px;
}
.spp-hero-body {
  font-family: var(--fives-body);
  font-size: 16px;
  color: var(--fives-text);
  line-height: 1.6;
  margin-top: 24px;
  max-width: 560px;
}
.spp-hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-family: var(--fives-body);
  font-size: 13px;
  color: var(--fives-muted);
  flex-wrap: wrap;
}
.spp-hero-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fives-primary);
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 2px;
}

/* ── Tab / Accordion wrapper ──────────────────────────────── */
.spp-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}

/* ── Desktop tab bar ──────────────────────────────────────── */
.spp-tabbar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--fives-line);
  margin-bottom: 48px;
}
.spp-tab-btn {
  background: none;
  border: none;
  padding: 14px 28px;
  font-family: var(--fives-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fives-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--fives-t-quick);
  white-space: nowrap;
}
.spp-tab-btn:hover { color: var(--fives-text); }
.spp-tab-btn:active { transform: scale(0.97); transition-duration: var(--fives-t-instant); }
.spp-tab-btn.is-active {
  color: var(--fives-primary);
}
.spp-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--fives-primary);
  border-radius: 2px 2px 0 0;
}
.spp-tab-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fives-bg-2);
  font-size: 11px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
  transition: background var(--fives-t-quick), color var(--fives-t-quick);
}
.spp-tab-btn.is-active .spp-tab-number {
  background: var(--fives-primary);
  color: #fff;
}

/* Tab panel — desktop shows only active */
.spp-tab-panels {}
.spp-tab-panel { display: none; }
.spp-tab-panel.is-active { display: block; }

/* ── Accordion (mobile) ───────────────────────────────────── */
.spp-accordion { display: none; }

.spp-acc-item {
  border: 1px solid var(--fives-line);
  border-radius: var(--fives-r-md);
  background: #fff;
  overflow: hidden;
  margin-bottom: 12px;
}
.spp-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background var(--fives-t-quick);
}
.spp-acc-trigger:hover { background: var(--fives-bg); }
.spp-acc-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.spp-acc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fives-bg-2);
  font-family: var(--fives-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fives-muted);
  flex-shrink: 0;
  transition: background var(--fives-t-quick), color var(--fives-t-quick);
}
.spp-acc-item.is-open .spp-acc-num {
  background: var(--fives-primary);
  color: #fff;
}
.spp-acc-label {
  font-family: var(--fives-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fives-text);
  letter-spacing: -0.3px;
}
.spp-acc-chevron {
  flex-shrink: 0;
  color: var(--fives-muted);
  transition: transform var(--fives-t-standard) var(--fives-e-draw);
}
.spp-acc-item.is-open .spp-acc-chevron { transform: rotate(180deg); }

/* grid-rows accordion — animates the track, not layout height, so the
   speed is constant regardless of content (the old max-height: 2000px
   approach spent most of its duration in dead space) */
.spp-acc-body {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--fives-t-standard) var(--fives-e-settle);
}
.spp-acc-item.is-open .spp-acc-body { grid-template-rows: 1fr; }
.spp-acc-body-inner {
  min-height: 0;
  overflow: hidden;   /* also a BFC, so the child margins below stay contained */
  /* no padding here — with border-box sizing, padding would floor the
     collapsed track at 28px; the spacing lives on the content instead */
}
.spp-acc-body-inner > * { margin: 0 22px 28px; }

/* ── Section content (shared between tab panel + accordion) ── */
.spp-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.spp-section-left {}
.spp-section-right {}

/* Video placeholder */
.spp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #243a2b 0%, #16201a 70%, #0f1a13 100%);
  border-radius: var(--fives-r-md);
  overflow: hidden;
}
.spp-video-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 50%, rgba(232,220,196,0.18), transparent 55%);
}
.spp-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--fives-t-quick), transform var(--fives-t-quick) var(--fives-e-settle);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.spp-video-play:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}
.spp-video-play:active { transform: translate(-50%, -50%) scale(0.97); transition-duration: var(--fives-t-instant); }
.spp-video-play svg { margin-left: 3px; }
.spp-video-duration {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.72);
  border-radius: var(--fives-r-sm);
  color: #fff;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}
.spp-video-label {
  position: absolute;
  left: 14px; bottom: 14px;
  color: rgba(255,255,255,0.5);
  font-family: var(--fives-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.spp-video-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fives-muted);
  display: flex;
  gap: 14px;
}

/* "What to look for" bullets */
.spp-wtlf-head {
  font-family: var(--fives-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--fives-primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.spp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.spp-bullet {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.spp-bullet-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fives-primary-100, #DCE5DD);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.spp-bullet-icon svg { display: block; }
.spp-bullet-text {}
.spp-bullet-title {
  font-family: var(--fives-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fives-text);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.spp-bullet-body {
  font-family: var(--fives-body);
  font-size: 14px;
  color: var(--fives-muted);
  line-height: 1.5;
}

/* Common mistakes mini-section */
.spp-mistakes {
  background: var(--fives-bg);
  border: 1px solid var(--fives-line);
  border-radius: var(--fives-r-md);
  padding: 20px 22px;
}
.spp-mistakes-head {
  font-family: var(--fives-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fives-accent);
  letter-spacing: -0.1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spp-mistakes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spp-mistake-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--fives-body);
  font-size: 13px;
  color: var(--fives-text);
  line-height: 1.5;
}
.spp-mistake-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fives-accent);
  margin-top: 6px;
}

/* ── CTA block ────────────────────────────────────────────── */
.spp-cta-wrap {
  padding: 0 28px 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.spp-cta {
  background: var(--fives-primary);
  border-radius: var(--fives-r-lg);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.spp-cta-text {}
.spp-cta-eyebrow {
  font-family: var(--fives-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.spp-cta-h2 {
  font-family: var(--fives-display);
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.7px;
  line-height: 1.1;
}
.spp-cta-sub {
  font-family: var(--fives-body);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 420px;
}
.spp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #fff;
  color: var(--fives-primary);
  border-radius: var(--fives-r-sm);
  font-family: var(--fives-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--fives-t-quick);
  flex-shrink: 0;
}
.spp-cta-btn:hover { opacity: 0.9; }
.spp-cta-btn:active { transform: scale(0.97); transition-duration: var(--fives-t-instant); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .spp-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  /* Switch to accordion on mobile */
  .spp-tabbar   { display: none; }
  .spp-tab-panels { display: none; }
  .spp-accordion { display: block; }

  .spp-hero { padding: 48px 20px 40px; }
  .spp-hero-h1 { font-size: 38px; letter-spacing: -1px; }
  .spp-hero-sub { font-size: 20px; }
  .spp-hero-body { font-size: 15px; }

  .spp-content { padding: 40px 20px 56px; }

  .spp-cta-wrap { padding: 0 20px 64px; }
  .spp-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
  }
  .spp-cta-h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .spp-hero-h1 { font-size: 32px; }
  .spp-hero-sub { font-size: 18px; }
  .spp-hero-meta { flex-direction: column; gap: 8px; }
}
