:root {
  --green-deep: #0d2818;
  --green-mid: #1a4d32;
  --green-soft: #2d6b4a;
  --cream: #f5e6b8;
  --cream-dim: rgba(245, 230, 184, 0.78);
  --accent-orange: #e8a838;
  --accent-blue: #4a9fd4;
  --accent-leaf: #5cb85c;
  --card-bg: #faf8f2;
  --card-border: rgba(26, 77, 50, 0.12);
  --text-dark: #1a2e24;
  --text-muted: #5a6f64;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 4px 24px rgba(13, 40, 24, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.55;
  background: var(--green-deep);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(45, 107, 74, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 77, 50, 0.4) 0%, transparent 50%),
    linear-gradient(165deg, #0a1f14 0%, var(--green-deep) 40%, #0f3220 100%);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -5%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border: 1px solid rgba(245, 230, 184, 0.06);
  border-radius: 50%;
  opacity: 0.6;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1rem;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--cream);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-banner {
  margin: 0 auto 1.75rem;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 230, 184, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vw, 320px);
  object-fit: contain;
  object-position: center;
  background: var(--green-deep);
}

.intro {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.intro h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.intro .lead {
  margin: 0 auto;
  max-width: 36em;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--cream);
}

.intro .availability {
  margin: 1rem auto 0;
  max-width: 32em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream-dim);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(245, 230, 184, 0.15);
}

.intro .availability strong {
  color: var(--cream);
  font-weight: 800;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-card);
}

.card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
}

.card-label::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-leaf), var(--accent-blue));
}

.video-shell {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.video-shell #player,
.video-shell iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.progress-block {
  margin-top: 1.35rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-header #percent-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-mid);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e2ebe6;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--accent-leaf));
  transition: width 0.35s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--green-mid);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.progress-block.has-progress .progress-fill::after {
  opacity: 1;
}

.progress-milestone {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-milestone span:last-child {
  color: var(--green-mid);
}

progress#progress-bar {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.presence {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(26, 77, 50, 0.08) 0%, rgba(92, 184, 92, 0.12) 100%);
  border: 2px solid var(--green-soft);
  display: none;
  animation: fadeUp 0.45s ease;
}

.presence.visible { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.presence-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}

.presence p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--green-mid) 100%);
  color: var(--cream) !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 40, 24, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 40, 24, 0.4);
}

.btn:active { transform: translateY(0); }

.btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 640px) {
  .wrap { padding: 2.5rem 1.5rem 1.25rem; }
  .hero-banner img { max-height: 300px; }
}

.site-footer {
  text-align: center;
  padding: 0 0 1.5rem;
  margin-top: 0.75rem;
}

.card:has(.presence.visible) + .site-footer {
  margin-top: 1.25rem;
}

.footer-logo {
  display: inline-block;
  max-width: min(600px, 90vw);
  height: auto;
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .presence { animation: none; }
  .progress-fill { transition: none; }
  .btn { transition: none; }
}
