/* ============================================================
   Miracle Academy — Full Funnel
   Design system extracted from the live site
   (themiracleacademy.com, Sept 2026 build)
   ============================================================ */

:root {
  --sand: #E7E5DD;
  --soil: #413E35;
  --clay: #B9B4A2;
  --dune: #E3CFAB;
  --ember: #C85337;
  --pine: #44795D;
  --sage: #9DC79A;
  --gold: #C8A050;
  --gold-bright: #F0D58A;
  --soil-deep: #332F28;
  --sand-soft: #F0EEE8;
  --ink-on-sand: #413E35;
  --muted-on-sand: #6E695C;
  --muted-on-soil: #A39D8F;
  --hairline-sand: rgba(65, 62, 53, 0.16);
  --hairline-soil: rgba(231, 229, 221, 0.16);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--sand);
  background: var(--soil);
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-dark { background: var(--soil); color: var(--sand); }
.section-soil-deep { background: var(--soil-deep); color: var(--sand); }
.section-sand { background: var(--sand); color: var(--ink-on-sand); }
.section-sand-soft { background: var(--sand-soft); color: var(--ink-on-sand); }

.section-pad { padding: 88px 0; overflow: hidden; }
@media (min-width: 768px) { .section-pad { padding: 120px 0; } }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted-on-soil);
  max-width: 40rem;
  margin-top: 20px;
}

.section-sand .lede { color: var(--muted-on-sand); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.eyebrow::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  max-width: 44rem;
  margin: 40px 0;
}

.section-sand .pull { border-left-color: var(--ember); }

.kicker-note {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- grain + geometry ---------- */

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.geo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}

.geo svg { display: block; }

.section > .wrap, .section > .wrap-wide { position: relative; z-index: 1; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sand);
  color: var(--soil);
}

.btn-primary:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }

.btn-ember {
  background: var(--ember);
  color: var(--sand);
}

.btn-ember:hover { box-shadow: 0 10px 30px rgba(200, 83, 55, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--hairline-soil);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.section-sand .btn-primary { background: var(--soil); color: var(--sand); }
.section-sand .btn-ghost { color: var(--ink-on-sand); border-color: var(--hairline-sand); }
.section-sand .btn-ghost:hover { border-color: var(--ember); color: var(--ember); }

.btn-sub {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-on-soil);
  text-align: center;
}

.section-sand .btn-sub { color: var(--muted-on-sand); }

/* ---------- cards ---------- */

.card {
  background: rgba(231, 229, 221, 0.045);
  border: 1px solid var(--hairline-soil);
  border-radius: 8px;
  padding: 32px;
}

.section-sand .card {
  background: #fff;
  border-color: var(--hairline-sand);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted-on-soil); font-size: 15px; }
.section-sand .card p { color: var(--muted-on-sand); }

.card .num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ---------- stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

.stat .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--gold);
}

.section-sand .stat .big { color: var(--ember); }

.stat .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-soil);
  margin-top: 6px;
}

.section-sand .stat .label { color: var(--muted-on-sand); }

/* ---------- stack (value list) ---------- */

.stack-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-sand);
}

.section-dark .stack-item, .section-soil-deep .stack-item {
  border-bottom-color: var(--hairline-soil);
}

.stack-item .s-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold);
  min-width: 34px;
  padding-top: 2px;
}

.stack-item .s-body { flex: 1; }
.stack-item .s-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.stack-item .s-body p { color: var(--muted-on-sand); font-size: 15px; }

.stack-item .s-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--pine);
  white-space: nowrap;
  align-self: center;
}

.s-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- testimonial ---------- */

.quote-card {
  background: rgba(231, 229, 221, 0.045);
  border: 1px solid var(--hairline-soil);
  border-radius: 8px;
  padding: 32px;
}

.quote-card blockquote {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sand);
  margin-bottom: 18px;
}

.quote-card .who {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--hairline-sand); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-on-sand);
  text-align: left;
  cursor: pointer;
}

.faq-q .fx {
  font-family: var(--display);
  color: var(--ember);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 0 24px;
  color: var(--muted-on-sand);
  font-size: 15.5px;
  max-width: 46rem;
}

.faq-item.open .faq-a { max-height: 600px; }
.faq-item.open .fx { transform: rotate(45deg); }

/* ---------- video ---------- */

.vsl-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline-soil);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.vsl-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-caption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-soil);
  text-align: center;
}

/* ---------- header / footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(51, 47, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soil);
}

.site-header .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
}

.wordmark .dot { color: var(--gold); }

.site-header nav { display: flex; align-items: center; gap: 22px; }

.site-header nav a.nav-link {
  font-size: 14px;
  color: var(--muted-on-soil);
  text-decoration: none;
}

.site-header nav a.nav-link:hover { color: var(--sand); }

.site-header .btn { padding: 10px 20px; font-size: 14px; }

@media (max-width: 640px) {
  .site-header nav a.nav-link { display: none; }
}

.site-footer {
  background: var(--soil-deep);
  border-top: 1px solid var(--hairline-soil);
  padding: 48px 0;
  font-size: 13px;
  color: var(--muted-on-soil);
}

.site-footer .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted-on-soil); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(51, 47, 40, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline-soil);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.show { transform: translateY(0); }

.sticky-cta .txt { font-size: 13px; line-height: 1.3; }
.sticky-cta .txt b { font-family: var(--display); display: block; }

.sticky-cta .btn { padding: 12px 20px; font-size: 14px; white-space: nowrap; }

@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- scroll reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

html.js .reveal:nth-child(2) { transition-delay: 0.06s; }
html.js .reveal:nth-child(3) { transition-delay: 0.12s; }
html.js .reveal:nth-child(4) { transition-delay: 0.18s; }

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

/* ---------- utility ---------- */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.divider-geo {
  display: flex;
  justify-content: center;
  padding: 0;
  opacity: 0.5;
}

.tag-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* workshop session card */
.session-card {
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 36px;
  background: rgba(200, 160, 80, 0.06);
}

.session-card .when {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.session-card .theme { color: var(--gold-bright); font-size: 15px; margin-bottom: 16px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 16px;
}

.price-row .amt {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-row .per { color: var(--muted-on-soil); font-size: 15px; }

ul.checks { list-style: none; }
ul.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15.5px;
}
ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.section-sand ul.checks li::before { color: var(--pine); }
