/* ---------- Tokens ---------- */
:root {
  --ink: #0B0D10;
  --ink-2: #15191E;
  --line-dark: #262C33;
  --paper: #F4F1EC;
  --line-light: #DDD8CF;
  --text-on-dark: #F4F1EC;
  --muted-on-dark: #9AA3AD;
  --text-on-light: #0B0D10;
  --muted-on-light: #5C6670;
  --blue: #56A9FB;
  --blue-deep: #1B64B3;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1160px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  background: var(--ink);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 680px; }

.section { padding: 48px 0; }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-light { background: var(--paper); color: var(--text-on-light); }
.section-light .muted, .section-light p { color: var(--muted-on-light); }
.section-dark p { color: var(--muted-on-dark); }
.section-light h2, .section-dark h2,
.section-light h1, .section-dark h1 { color: inherit; }
.section-light h2 { color: var(--text-on-light); }
.section-dark h2 { color: var(--text-on-dark); }

@media (min-width: 900px) {
  .section { padding: 120px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue);
  color: var(--ink);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
}
.section-light .btn-outline {
  color: var(--text-on-light);
  border-color: var(--line-light);
}
.btn-outline:hover { border-color: var(--blue); }

/* Pack cards keep a dark surface even inside a light section, so their
   outline buttons must stay on dark styling regardless of ancestor. */
.pack-card .btn-outline {
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}

.btn-large { width: 100%; font-size: 17px; }
@media (min-width: 640px) {
  .btn-large { width: auto; }
}

.btn-header {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-submit { width: 100%; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 26px; width: auto; display: block; }

@media (min-width: 640px) {
  .logo { height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 104px;
  padding-bottom: 64px;
}
@media (min-width: 900px) {
  .hero { padding-top: 168px; padding-bottom: 160px; }
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--text-on-dark);
  max-width: 14ch;
  margin: 0 auto 0.5em;
}

.lede {
  font-size: 18px;
  color: var(--muted-on-dark);
  max-width: 40ch;
  margin: 0 auto 1em;
}

.micro {
  font-size: 14px;
  color: var(--muted-on-dark);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- How it works ---------- */
.how h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .how h2 { margin-bottom: 56px; }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 0 1 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 24px;
}

@media (min-width: 780px) {
  .steps { gap: 24px; }
  .step { flex-basis: calc(50% - 12px); }
}

@media (min-width: 1100px) {
  /* 5 items at 3 columns wide wrap into a 3 + 2 layout; justify-content:
     center on .steps keeps the shorter second row centered instead of
     hugging the left edge. */
  .step { flex-basis: calc(33.333% - 16px); }
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.15rem; color: var(--text-on-dark); }
.step p { font-size: 16px; margin-bottom: 0; }

.section-lede { font-size: 18px; color: var(--muted-on-dark); max-width: 50ch; }

/* ---------- Packs ---------- */
.packs-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.packs-intro h2 { color: var(--text-on-light); font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.packs-intro .section-lede { color: var(--muted-on-light); margin: 0 auto; }

.pack-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .pack-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pack-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
}

.pack-featured {
  border: 2px solid var(--blue);
}
@media (min-width: 900px) {
  .pack-featured {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}

.pack-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--blue);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.pack-name { font-size: 1.4rem; color: var(--text-on-dark); }
.pack-for { color: var(--muted-on-dark); font-size: 14px; margin-bottom: 20px; }

.pack-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.price-unit { font-size: 14px; color: var(--muted-on-dark); }

.pack-videos {
  font-weight: 500;
  color: var(--blue);
  font-size: 15px;
  margin-bottom: 20px;
}

.pack-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pack-features li {
  font-size: 15px;
  color: var(--muted-on-dark);
  padding-left: 22px;
  position: relative;
}
.pack-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.pack-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq h2 {
  color: var(--text-on-light);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 32px;
}
.faq .container { max-width: 720px; }

.faq-item {
  border-bottom: 1px solid var(--line-light);
  padding: 20px 0;
}

.faq-item summary {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-on-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 4px;
}

.faq-item p {
  color: var(--muted-on-light);
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 16px;
}

/* ---------- Form ---------- */
.form-section .container { max-width: 640px; }

.form-intro {
  text-align: center;
  margin-bottom: 32px;
}
.form-intro h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.form-intro .section-lede { color: var(--muted-on-dark); margin: 0 auto; }

#formWrap {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
}
@media (min-width: 640px) {
  #formWrap { padding: 32px; }
}

.lead-form {
  display: grid;
  gap: 20px;
}
/* An author `display` rule always beats the UA stylesheet's [hidden] rule,
   so form.hidden = true would otherwise do nothing visually. */
.lead-form[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
}

.field input::placeholder { color: var(--muted-on-dark); }

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.field input:invalid[data-touched="true"],
.field.has-error input,
.field.has-error select {
  border-color: #E3695B;
}

.field-error {
  font-size: 13px;
  color: #E3695B;
  min-height: 1em;
}

.form-status {
  font-size: 14px;
  color: var(--muted-on-dark);
  min-height: 1.2em;
}
.form-status[data-state="error"] { color: #E3695B; }
.form-status[data-state="success"] { color: var(--blue); }

.calendly-embed { margin-top: 32px; }
.calendly-embed h3 { font-size: 1.3rem; color: var(--text-on-dark); }
.calendly-inline-widget {
  width: 100%;
  min-width: 280px;
  height: 700px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  max-width: none;
  margin: 0 0 0.3em;
}
.legal-updated {
  color: var(--muted-on-light);
  font-size: 14px;
  margin-bottom: 2.5em;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.legal li {
  color: var(--muted-on-light);
  font-size: 16px;
  margin-bottom: 0.5em;
}
.legal a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .back-link {
  margin-top: 2.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-logo { height: 22px; width: auto; margin-bottom: 8px; }

.footer-meta {
  font-size: 14px;
  color: var(--muted-on-dark);
  margin: 0;
}
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
