:root {
  --bg: #0f0e0c;
  --bg-elevated: #1a1814;
  --surface: #242019;
  --text: #f4efe6;
  --text-muted: #a89f8f;
  --accent: #c9a227;
  --accent-hover: #ddb83a;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --border: rgba(244, 239, 230, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 14, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  min-width: 0;
}

.logo span {
  color: var(--accent);
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-play-btn {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(8, 7, 6, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  transition: opacity 0.25s, visibility 0.25s;
}

.video-play-btn:hover .video-play-icon {
  transform: scale(1.06);
  box-shadow: 0 12px 48px rgba(201, 162, 39, 0.5);
}

.video-play-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(4.5rem, 14vw, 6.5rem);
  height: clamp(4.5rem, 14vw, 6.5rem);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.2s;
}

.video-play-icon::before {
  content: "";
  margin-left: 0.35rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 1rem 0 1rem 1.55rem;
  border-color: transparent transparent transparent #1a1408;
}

.video-play-label {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-fallback {
  display: none;
  margin: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.video-fallback.is-visible {
  display: block;
}

.video-fallback code {
  color: var(--accent);
}

.hero-copy {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-weight: 300;
}

.trust-line {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #1a1408;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #e8c84a 0%, var(--accent-hover) 100%);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.45);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.strip-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.strip-list li::before {
  content: "◆";
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.55rem;
  vertical-align: middle;
}

.curriculum,
.instructor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.curriculum h2,
.instructor h2,
.buy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  margin: 0 0 2.5rem;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.instructor-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--accent-soft);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.instructor-text p {
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.stats li {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
}

.buy {
  padding: 4rem 1.5rem 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, var(--accent-soft), transparent 70%);
}

.buy-box {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-elevated);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.buy-box h2 {
  margin-bottom: 1rem;
}

.price {
  margin: 0 0 1.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
}

.price-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.buy-includes {
  text-align: left;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.buy-includes li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.buy-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.btn-buy {
  width: 100%;
}

.guarantee {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.checkout-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  max-width: min(460px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
  margin: auto;
}

.checkout-dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: min(92vh, 720px);
  overflow: auto;
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.checkout-form {
  padding: 2rem;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.checkout-form h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.dialog-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checkout-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.checkout-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.checkout-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.checkout-card {
  margin: 0 0 1rem;
  padding: 1rem 1rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkout-card legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkout-status {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.checkout-status.is-error {
  background: rgba(180, 60, 60, 0.15);
  border: 1px solid rgba(220, 100, 100, 0.35);
  color: #f0c4c4;
}

.checkout-status.is-success {
  background: rgba(60, 140, 80, 0.15);
  border: 1px solid rgba(100, 180, 120, 0.35);
  color: #c8e6d0;
}

.checkout-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.checkout-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.checkout-form fieldset.checkout-card {
  min-width: 0;
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .logo {
    font-size: 0.88rem;
  }

  .header-cta {
    font-size: 0.72rem;
    padding: 0.5rem 0.7rem;
    flex-shrink: 0;
  }

  .checkout-dialog {
    max-width: none;
    width: 100%;
    border-radius: 1.15rem 1.15rem 0 0;
  }

  .checkout-dialog[open] {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: min(94dvh, 94vh);
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
  }

  .checkout-form {
    padding: 1.15rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .checkout-form h2 {
    font-size: 1.2rem;
    line-height: 1.25;
    padding-right: 2.25rem;
  }

  .dialog-sub {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .checkout-form label {
    margin-bottom: 0.85rem;
  }

  .checkout-form input {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
    min-height: 48px;
  }

  .checkout-card {
    padding: 0.85rem 0.85rem 0.15rem;
    margin-bottom: 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .checkout-form .btn-lg {
    padding: 0.95rem 1rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .dialog-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .instructor-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-copy {
    text-align: left;
    max-width: none;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
  }

  .hero-media {
    order: -1;
  }

  .hero-copy .btn,
  .trust-line {
    text-align: left;
  }
}
