/* Sprint Packs — flow-specific styles */
.proto-stage { width: 100%; height: 100vh; }

/* Screen 1: Discovery / limit hit */
.sp-limit {
  background: var(--claude-coral-tint);
  border: 1.5px solid var(--claude-coral-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.sp-limit-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
}
.sp-limit-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--warning);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sp-limit-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.sp-limit-reset { color: var(--claude-coral-deep); font-weight: 600; }

.sp-options { display: flex; flex-direction: column; gap: 10px; }
.sp-option {
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--dur), transform var(--dur);
  cursor: pointer;
}
.sp-option:hover { border-color: var(--claude-coral-soft); transform: translateX(2px); }
.sp-option.recommended { border-color: var(--claude-coral); }

.sp-option-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sp-option-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.sp-option-meta { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.5; }
.sp-option-price {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.sp-option-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-option-buy { font-size: 13px; padding: 7px 14px; }
.sp-option:not(.recommended) .sp-option-foot { justify-content: flex-end; }

.sp-upsell {
  text-align: center;
  font-size: 13px;
  color: var(--claude-coral-deep);
  text-decoration: underline;
}

/* Screen 2: Active sprint */
.sp-code-main { background: #FAF9F5; }
.sp-code-topbar {
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.sp-code-topbar .cl-tb-left { gap: 8px; flex: 0; }
.sp-code-topbar .cl-tb-right { flex: 1; justify-content: flex-end; }

.sp-active-wrap {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 24px 32px 60px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex; flex-direction: column; gap: 24px;
}

.sp-active-banner {
  background: linear-gradient(135deg, #2D5F3E 0%, #1F4A2E 100%);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  color: white;
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45, 95, 62, 0.25);
}
.sp-active-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(107, 207, 143, 0.18), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
}
.sp-active-banner-left { position: relative; }
.sp-active-banner-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
}
.sp-active-banner-title svg { color: #6BCF8F; }
.sp-active-banner-sub {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}
.sp-active-banner-right { text-align: right; position: relative; }
.sp-active-time {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.sp-active-time-num { display: inline-block; min-width: 1.2em; text-align: right; }
.sp-active-time-colon {
  margin: 0 2px;
  opacity: 0.6;
}
.sp-active-time-blink { animation: blink-soft 1s steps(2) infinite; }
@keyframes blink-soft { 50% { opacity: 0.15; } }
.sp-active-time-secs {
  display: inline-block;
  min-width: 1.2em;
  text-align: right;
  animation: tick-pulse 0.6s ease-out;
}
@keyframes tick-pulse {
  0% { color: #6BCF8F; transform: translateY(-1px); }
  100% { color: white; transform: translateY(0); }
}
.num-flip {
  display: inline-block;
  animation: num-bump 0.4s ease-out;
}
@keyframes num-bump {
  0% { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.sp-active-time-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 4px;
}

.sp-active-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.sp-active-stat {
  background: var(--bg-card);
  padding: 16px 18px;
}
.sp-active-stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-tertiary); margin-bottom: 6px;
}
.sp-active-stat-value {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
}

.sp-active-section { }
.sp-active-section-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); font-weight: 500;
  margin-bottom: 12px;
}
.sp-active-tasks { display: flex; flex-direction: column; gap: 8px; }
.sp-active-task {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.sp-active-task.active {
  background: var(--success-soft);
  border-color: rgba(45, 122, 78, 0.25);
}
.sp-active-task-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-active-task.done .sp-active-task-icon {
  background: var(--success);
  color: white;
}
.sp-active-task.active .sp-active-task-icon {
  background: transparent;
}
.sp-active-task-spin {
  width: 14px; height: 14px;
  border: 2px solid rgba(45, 122, 78, 0.25);
  border-top-color: var(--success);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sp-active-task-body { flex: 1; }
.sp-active-task-title {
  font-size: 14px; font-weight: 500;
  margin-bottom: 2px;
}
.sp-active-task.done .sp-active-task-title { color: var(--success); }
.sp-active-task-meta { font-size: 11.5px; color: var(--text-tertiary); }

/* Screen 3: Max bundle */
.sp-bundle-app {
  width: 100%; min-height: 100vh;
  background: var(--bg-canvas);
  overflow-y: auto;
  padding: 60px 24px 80px;
}
.sp-bundle-wrap { max-width: 720px; margin: 0 auto; }
.sp-bundle-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--claude-coral); font-weight: 600;
  margin-bottom: 12px;
}
.sp-bundle-title {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.sp-bundle-title em { font-style: italic; color: var(--claude-coral); }
.sp-bundle-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.sp-tiers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.sp-tier {
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.sp-tier:hover { border-color: var(--border-medium); }
.sp-tier.selected { border-color: var(--claude-coral); box-shadow: 0 0 0 3px var(--claude-coral-tint); }
.sp-tier.hot { border-color: var(--claude-coral); }
.sp-tier.hot.selected { box-shadow: 0 0 0 3px var(--claude-coral-soft); }

.sp-tier-ribbon {
  position: absolute; top: -10px; right: 16px;
  background: var(--claude-coral);
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}

.sp-tier-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sp-tier-name {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
}
.sp-tier-current { font-size: 13px; color: var(--text-tertiary); font-family: var(--font-sans); font-weight: 400; }
.sp-tier-price {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em;
}
.sp-tier-period { font-size: 13px; color: var(--text-tertiary); font-weight: 400; font-family: var(--font-sans); }

.sp-tier-feats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.sp-tier-feats li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.sp-tier-feats svg { color: var(--success); flex-shrink: 0; }

.sp-tier-foot {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.sp-tier-includes {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--claude-coral-tint);
  border: 1px solid var(--claude-coral-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.sp-tier-includes svg { color: var(--claude-coral-deep); flex-shrink: 0; margin-top: 2px; }
.sp-tier-includes-sub {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 3px;
}

.sp-bundle-cta { width: 100%; }
.sp-bundle-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 12px 0 0;
}

/* ─────────────────────────────────────────────────────────────────────
   Mobile overrides — apply when actually on a small viewport, OR when
   the prototype is being previewed inside the desktop phone frame /
   native mobile shell. Sprint-packs has wider grids than the others, so
   needs explicit reflows.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sp-active-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-bundle-wrap { padding: 16px; }
  .sp-bundle-title { font-size: 26px; }
  .sp-option-head { gap: 12px; }
  .sp-tier { padding: 16px; }
}
.proto-mobile-frame .sp-active-stats,
.proto-mobile-native .sp-active-stats { grid-template-columns: repeat(2, 1fr); }
.proto-mobile-frame .sp-bundle-wrap,
.proto-mobile-native .sp-bundle-wrap { padding: 16px; max-width: 100%; }
.proto-mobile-frame .sp-bundle-title,
.proto-mobile-native .sp-bundle-title { font-size: 24px; }
.proto-mobile-frame .sp-bundle-app {
  padding: 50px 0 28px;
  min-height: 100%;
  height: auto;
  overflow: visible;
}
.proto-mobile-native .sp-bundle-app {
  padding: 16px 0 96px;
  min-height: 100dvh;
  height: auto;
}
.proto-mobile-frame .sp-tier,
.proto-mobile-native .sp-tier { padding: 16px; }
.proto-mobile-frame .sp-active-wrap,
.proto-mobile-native .sp-active-wrap { padding: 12px; }
.proto-mobile-frame .sp-option-head,
.proto-mobile-native .sp-option-head { gap: 12px; }
