@font-face { font-family: "Besley"; src: url("assets/fonts/besley-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("assets/fonts/besley-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("assets/fonts/besley-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0d0d55;
  --ink-soft: #4b4b72;
  --paper: #ffffff;
  --tint: #faecff;
  --line: #eadcef;
  --button: #0d0d55;
  --button-dark: #05052e;
  --accent: #2f56b8;
  --gold: #f0bb45;
  --gold-dark: #e0a52c;
  --white: #ffffff;
  --radius: 14px;
  --serif: "Besley", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: var(--tint); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  background: var(--button);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--button);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--button-dark); border-color: var(--button-dark); }
.btn-ghost { background: transparent; color: var(--button); }
.btn-ghost:hover { background: var(--button); color: var(--white); }
.btn-small { padding: 9px 18px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav-links a:not(.btn):hover { color: var(--button); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); display: block; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34ch; }
.hero-quote {
  margin: 28px 0 32px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.hero-quote p { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .3em; }
.hero-quote cite { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn:not(.btn-ghost) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hero .btn:not(.btn-ghost):hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: "";
  position: absolute; inset: 8% -4% -4% 8%;
  background: var(--tint);
  border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
  z-index: -1;
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 78% 50%; border-radius: var(--radius); }

/* Facts */
.facts { background: var(--ink); color: var(--paper); }
.facts-list {
  list-style: none; margin: 0 auto; padding: 26px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;
  font-size: 1rem;
}
.facts-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: #faecff; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 36px; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute; left: 4px; top: 21px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--button);
  border-bottom: 3px solid var(--button);
  transform: rotate(-45deg);
}
.outcome {
  font-size: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0;
}

/* Phases */
.phases {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: phase;
}
.phase {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 5px solid var(--button);
}
.phase:nth-child(2) { border-top-color: var(--accent); }
.phase:nth-child(3) { border-top-color: var(--ink); }
.phase-when { font-weight: 700; color: var(--ink-soft); font-size: .95rem; margin-bottom: .4em; }
.phase ul { margin: 0; padding-left: 1.1em; }
.phase li { margin-bottom: .6em; font-size: 1.05rem; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px;
}
.step-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.about-links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 700; margin-top: 1.4em; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote-wide { grid-column: 1 / -1; }
.quote-wide blockquote { font-size: 1.45rem; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; }
.quote figcaption { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.quote figcaption::before { content: "– "; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.post {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.post:hover { border-color: var(--button); transform: translateY(-2px); }
.post h3 { font-size: 1.2rem; }
.post p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Price */
.price-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  box-shadow: 10px 10px 0 var(--tint);
}
.price { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.4rem); margin: 0; line-height: 1.1; }
.price span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.price-alt { color: var(--ink-soft); margin-top: .4em; }
.price-includes { list-style: none; padding: 0; margin: 24px auto; max-width: 480px; text-align: left; }
.price-includes li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.05rem; }
.price-includes li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--button); }
.price-note { font-weight: 700; }

/* Waitlist */
.waitlist { background: var(--ink); color: var(--paper); }
.waitlist h2 { color: var(--white); }
.form { margin-top: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 1rem; }
.optional { font-weight: 400; opacity: .7; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3b3b86;
  background: #1c1c6a;
  color: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid #faecff; outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; margin: 6px 0 24px; cursor: pointer; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--button); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; min-height: 1.6em; }
.form-status.ok { color: #faecff; }
.form-status.err { color: #ffb4a8; }

/* Footer */
.site-footer { background: #07073a; color: #d9d9d9; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .wordmark, .site-footer .wordmark span { color: var(--white); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-links a { color: #d9d9d9; }
.footer-small { width: 100%; font-size: .9rem; margin: 8px 0 0; opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .about-photo { max-width: 380px; }
  .phases, .posts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--paper);
    padding: 20px 16px 28px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .steps { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal p, .legal li { font-size: 1.05rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.ph { background: #fff3c4; padding: 0 4px; border-radius: 3px; }
.consent a { color: #faecff; }

.waitlist .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.waitlist .btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.35;
  padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--sans); font-size: 1.6rem; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); }

/* Sales page */
.hero-next { margin: 16px 0 0; font-size: 1rem; color: var(--ink-soft); }
.btn-large { padding: 17px 34px; font-size: 1.1rem; }
.cta-band { background: var(--ink); color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 0; }
.cta-inner p { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.cta-band .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cta-band .btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.cohort-details { list-style: none; padding: 0; margin: 8px auto 28px; max-width: 480px; text-align: left; }
.cohort-details li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.cohort-details li:first-child { border-top: 1px solid var(--line); }
.cohort-details strong { font-weight: 600; }
.price-call { margin: 18px 0 6px; font-size: 1rem; }
.price-legal { font-size: .88rem; color: var(--ink-soft); margin: 10px 0 0; }
.price-legal a, .price-call a { color: var(--ink); }
.guide-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.guide-cover { margin: 0; }
.guide-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(250,236,255,.35), 0 18px 40px rgba(0,0,0,.45); transform: rotate(-2deg); }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-cover { max-width: 260px; }
}
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }

/* Video testimonial */
.quote-video video { width: 100%; height: auto; display: block; border-radius: 10px; background: #000; margin-bottom: 20px; }

/* Cohort details alignment */
.cohort-details strong { flex: 0 0 auto; white-space: nowrap; }
.cohort-details li > span { text-align: right; }

.pay-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Enrolment closed: next-cohort waitlist in the price card */
[hidden] { display: none !important; }
.closed-note { font-size: 1.1rem; margin: 20px auto 0; max-width: 480px; }
.form-light { text-align: left; max-width: 420px; margin: 20px auto 8px; }
.form-light .field input { background: var(--white); color: var(--ink); border-color: #c9bdd6; }
.form-light .field input:focus { outline-color: var(--accent); }
.form-light .consent a { color: var(--ink); }
.form-light .form-status.ok { color: var(--ink); }
.form-light .form-status.err { color: #b3261e; }
.hero-next a { color: inherit; }

/* Enrolment form (enrol.html) */
.form-enrol { margin-left: 0; }
.plan-choice { border: 0; padding: 0; margin: 0 0 12px; }
.plan-choice legend { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.plan-choice .consent { margin: 0 0 12px; }

/* Payment mode (set on <html> by /api/payment-mode): show the text that matches STRIPE_INTEGRATION */
html[data-payment="email"] .pay-stripe,
html:not([data-payment="email"]) .pay-email { display: none; }

/* Long testimonial: normal quote size, paragraphs spaced */
.quote-long blockquote { font-size: 1.15rem; }
.quote-long blockquote p { margin: 0 0 12px; }
.quote-long blockquote p:last-child { margin-bottom: 0; }
