:root {
  --bg: #f7f1e3;            /* cream */
  --bg-2: #e8edf0;          /* pale cool blue-gray, for alternating sections */
  --card: #fffdf7;
  --line: rgba(20, 38, 31, 0.13);
  --text: #14261f;          /* deep green-black ink */
  --muted: #4d5d66;         /* blue-gray text */
  --emerald: #335d59;       /* main green: buttons, links, accents (from the header photo) */
  --emerald-2: #486461;     /* mid teal-green */
  --emerald-deep: #1e3d45;  /* deep teal, for dark panels */
  --mint: #a8b898;          /* light sage, used on dark panels */
  --slate: #6f8394;         /* muted blue-gray accent */
  --slate-dark: #46606f;
  --ok: #335d59;
  --err: #b4232f;
  --radius: 18px;
  --max: 1120px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 227, 0.9);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; letter-spacing: -0.03em; text-decoration: none; font-size: 1.15rem; }
.logo span { color: var(--emerald); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--emerald); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2));
  box-shadow: 0 10px 28px -10px rgba(51, 93, 89, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(51, 93, 89, 0.65); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { color: var(--emerald); background: transparent; border-color: rgba(51, 93, 89, 0.4); box-shadow: none; }
.btn-ghost:hover { border-color: var(--emerald); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 20px 52px; font-size: 1.2rem; letter-spacing: 0.01em; box-shadow: 0 14px 40px -10px rgba(51, 93, 89, 0.7); }

[hidden] { display: none !important; }
.cta-pair { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Header image */
.hero-banner { position: relative; width: 100%; background: var(--emerald-deep); line-height: 0; }
.hero-banner img { display: block; width: 100%; height: auto; }

/* Hero */
.hero { position: relative; padding: 36px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(111, 131, 148, 0.2), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0.8rem auto 2rem; }
.pill {
  display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--slate-dark);
}

/* Video sales letter */
.vsl {
  position: relative; width: min(900px, 100%); margin: 36px auto 28px;
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: var(--emerald-deep);
  box-shadow: 0 40px 80px -30px rgba(30, 61, 69, 0.6);
}
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--emerald-deep); }
.vsl video { object-fit: contain; }
.vsl-poster {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  color: #f7f1e3;
  background: radial-gradient(70% 90% at 50% 0%, rgba(168, 184, 152, 0.22), transparent 70%), var(--emerald-deep);
}
.vsl-play {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; color: var(--emerald);
  background: #f7f1e3;
  box-shadow: 0 0 0 10px rgba(247, 241, 227, 0.16), 0 18px 40px -8px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; margin: 0 auto 18px; transition: transform 0.15s ease;
}
.vsl-play:hover { transform: scale(1.06); }
.vsl-play svg { width: 34px; height: 34px; margin-left: 5px; }
.vsl-poster.has-poster { background-size: auto, contain; background-position: center; background-repeat: no-repeat; background-color: var(--emerald-deep); }
.vsl-poster.has-poster::before { display: none; }
.vsl-poster.has-poster strong, .vsl-poster.has-poster span { display: none; }
.vsl-poster.has-poster .vsl-play { margin-bottom: 0; }
.vsl-poster strong { display: block; font-size: 1.05rem; }
.vsl-poster span { font-size: 0.9rem; color: #b9cfc5; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(20, 38, 31, 0.04);
}
.card:hover { border-color: rgba(51, 93, 89, 0.4); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; background: rgba(51, 93, 89, 0.1); color: var(--emerald);
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 800; }
.checks.no li::before { content: "–"; color: var(--slate); }

/* Curriculum */
details.week { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20, 38, 31, 0.04); }
details.week summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; list-style: none; display: flex; gap: 16px; align-items: center;
}
details.week summary::-webkit-details-marker { display: none; }
details.week summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--emerald); transition: transform 0.2s; }
details.week[open] summary::after { transform: rotate(45deg); }
details.week .wk { color: var(--slate-dark); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 64px; }
details.week p { padding: 0 24px 14px 104px; margin: 0; color: var(--muted); }
details.week p:last-child { padding-bottom: 24px; }
details.week p strong { color: var(--text); font-weight: 700; }

/* Offer box: a deep emerald panel with cream text */
.offer {
  --text: #f7f1e3;
  --muted: #bfd3c9;
  --line: rgba(247, 241, 227, 0.22);
  color: var(--text);
  border-radius: 26px; padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(80% 120% at 0% 0%, rgba(168, 184, 152, 0.16), transparent 60%), var(--emerald-deep);
  box-shadow: 0 40px 80px -36px rgba(30, 61, 69, 0.7);
}
.offer .eyebrow { color: var(--mint); }
.offer .checks li::before { color: var(--mint); }
.offer .btn { background: #f7f1e3; color: var(--emerald-deep); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.5); }
.offer .btn:hover { box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.6); }
.offer .field input, .offer .field textarea, .offer .field select { background-color: #fffdf7; color: #14261f; border-color: transparent; }
.offer .field input:focus, .offer .field textarea:focus, .offer .field select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(168, 184, 152, 0.45); }
.offer .check input { accent-color: var(--mint); }
.offer .form-msg.ok { color: var(--mint); }
.offer .form-msg.err { color: #ffb4b4; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin: 28px 0; }
.fact b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(20, 38, 31, 0.22); background: #fffdf7;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(51, 93, 89, 0.2); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--emerald) 50%), linear-gradient(135deg, var(--emerald) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: #fffdf7; color: #14261f; }
.field .opt { font-weight: 500; opacity: 0.7; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--emerald); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: 0.92rem; margin: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.fine { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Download cards */
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dark); background: rgba(111, 131, 148, 0.16); padding: 5px 12px; border-radius: 999px; }
.dl-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--emerald); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* Popup */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 20px;
  background: rgba(10, 30, 24, 0.6); backdrop-filter: blur(6px);
}
.modal.open { display: grid; animation: fade 0.25s ease; }
.modal-box {
  position: relative; width: min(460px, 100%); border-radius: 24px; padding: 36px 32px 30px;
  background: var(--bg);
  border-top: 6px solid var(--emerald);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  animation: rise 0.3s ease;
}
.modal-box h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer;
}
.modal-close:hover { color: var(--emerald); border-color: var(--emerald); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* Members / login */
.auth-box { width: min(440px, 100% - 40px); margin: 70px auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; font: inherit; font-weight: 700; padding: 11px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.auth-tabs button[aria-selected="true"] { background: rgba(51, 93, 89, 0.1); color: var(--emerald); border-color: rgba(51, 93, 89, 0.45); }
.file-list { display: grid; gap: 12px; }
.file {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.file small { color: var(--muted); display: block; }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--emerald); }


/* Background graphics: nearly transparent, slowly drifting zigzags */
section { position: relative; }
section > .wrap, section > .narrow { position: relative; z-index: 1; }
@keyframes drift { to { background-position-x: calc(var(--tile) * 2); } }

/* cool blue-gray zigzag on the alternating sections */
section.alt::before {
  --tile: 120px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 42 L30 12 L60 42 L90 12 L120 42' fill='none' stroke='%236f8394' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.13'/%3E%3C/svg%3E");
  background-size: 120px 60px; animation: drift 70s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}
/* soft emerald chevrons on the cream sections */
section:not(.alt):not(.hero)::before {
  --tile: 160px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='90' viewBox='0 0 160 90'%3E%3Cpath d='M0 30 L40 0 L80 30 L120 0 L160 30' fill='none' stroke='%23335d59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'/%3E%3Cpath d='M0 78 L40 48 L80 78 L120 48 L160 78' fill='none' stroke='%236f8394' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 160px 90px; animation: drift 90s linear infinite reverse;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
/* the hero: zigzags around the edges, clear behind the headline */
.hero::after {
  --tile: 200px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3E%3Cpath d='M0 70 L50 20 L100 70 L150 20 L200 70' fill='none' stroke='%23335d59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 100px; animation: drift 80s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, transparent 35%, #000 100%);
}
/* the deep emerald offer panel: a mint zigzag just visible */
.offer { position: relative; overflow: hidden; }
.offer > * { position: relative; z-index: 1; }
.offer::before {
  --tile: 120px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 42 L30 12 L60 42 L90 12 L120 42' fill='none' stroke='%23a8b898' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 120px 60px; animation: drift 60s linear infinite;
}
.vsl-poster { overflow: hidden; }
.vsl-poster::before {
  --tile: 120px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 42 L30 12 L60 42 L90 12 L120 42' fill='none' stroke='%23a8b898' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 120px 60px; animation: drift 60s linear infinite reverse;
}
.vsl-poster > div { position: relative; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  details.week p { padding-left: 24px; }
  .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
