/* Therapy Wisdom — later sections + responsive behavior.
   Same soft organic system: cream base, sage wave band, gold-washed
   about band, one closing forest anchor. */

/* ---- Library ---- */
.library-shell {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(50px, 8vw, 110px);
}

.library-title {
  align-self: start;
  position: sticky;
  top: 28px;
}

.library-title p {
  max-width: 45ch;
}

.binder {
  border-top: 1px solid var(--line-gold);
}

.binder section {
  position: relative;
  padding: 30px 22px 30px 118px;
  border-bottom: 1px solid var(--line-gold);
}

.binder .tab {
  position: absolute;
  top: 32px;
  left: 0;
  min-width: 88px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--fg);
  background: color-mix(in oklab, var(--gold), var(--surface) 62%);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}

.binder ul {
  columns: 2;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.binder li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.binder li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Labs: arched secondary portrait ---- */
.labs-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(52px, 9vw, 126px);
}

.secondary-portrait {
  margin: 0;
}

.secondary-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.12;
  border-radius: 999px 999px 24px 24px;
  object-fit: cover;
  object-position: 50% 20%;
  box-shadow: var(--shadow-soft);
}

.secondary-portrait figcaption {
  padding: 16px 6px 0;
  color: var(--gold-deep);
  font-size: 17px;
  font-style: italic;
  text-align: center;
}

.lab-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 44px);
  margin-top: 40px;
}

.lab-points > div {
  padding: 22px 0 12px;
  border-top: 1px solid var(--line-gold);
}

.lab-points span {
  color: var(--gold-deep);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lab-points h3 {
  margin-top: 10px;
}

.lab-points p {
  font-size: 15px;
}

.client-note-inline {
  margin: 30px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--gold);
  color: var(--charcoal);
  font-size: 13px;
}

/* ---- WisePractice: full-width sage wave band ---- */
.wisepractice {
  position: relative;
  color: var(--fg);
  background: var(--sage-band);
}

.wisepractice::before,
.wisepractice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--sage-band);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64L0 44C180 10 360 58 560 46C780 32 920 4 1140 20C1290 30 1390 46 1440 26L1440 64Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64L0 44C180 10 360 58 560 46C780 32 920 4 1140 20C1290 30 1390 46 1440 26L1440 64Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.wisepractice::before {
  top: -63px;
}

.wisepractice::after {
  bottom: -63px;
  transform: scale(-1, -1);
}

.wisepractice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 9vw, 120px);
}

.wisepractice h2 {
  color: var(--fg);
}

.wisepractice-grid > div > p:not(.kicker) {
  max-width: 56ch;
}

.brand-separation {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in oklab, var(--fg), transparent 78%);
  color: color-mix(in oklab, var(--fg), var(--charcoal) 40%);
  font-size: 13px;
}

.bonus-ledger {
  margin: 0;
}

.bonus-ledger div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
}

.bonus-ledger div:first-child {
  border-top: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
}

.bonus-ledger dt {
  color: var(--gold-deep);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bonus-ledger dd {
  color: var(--fg);
}

.bonus-ledger .value-row dd {
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
}

/* ---- Audience ---- */
.stage-spectrum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-spectrum li {
  padding: 26px 0 12px;
  border-top: 1px solid var(--line-gold);
}

.stage-spectrum span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
}

.stage-spectrum p {
  font-size: 15px;
}

.not-for-you {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 34px;
  margin-top: 48px;
  padding: clamp(26px, 3.4vw, 38px) clamp(24px, 3.4vw, 42px);
  border-radius: var(--radius-panel);
  background: var(--sage-wash);
}

.not-for-you h3,
.not-for-you p {
  margin-bottom: 0;
}

/* ---- About: warm gold-washed band ---- */
.about {
  width: min(100% - clamp(16px, 3vw, 48px), 1400px);
  margin-inline: auto;
  border-radius: var(--radius-band);
  background: var(--cream-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 10vw, 145px);
}

.about-heading {
  align-self: start;
  position: sticky;
  top: 28px;
}

.about-deck {
  color: var(--gold-deep);
  font-size: 20px;
  font-style: italic;
}

.bio-copy {
  font-size: 18px;
}

.editorial-principle {
  margin: 44px 0 8px;
  padding: 34px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.7vw, 38px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

/* ---- Enrollment: raised white sheet + reviewer panel ---- */
.enrollment {
  width: min(100% - clamp(16px, 3vw, 48px), 1400px);
  margin-block: clamp(20px, 3vw, 44px);
  margin-inline: auto;
  border-radius: var(--radius-band);
  background: var(--surface);
  box-shadow: var(--shadow-band);
}

.enrollment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(48px, 8vw, 108px);
}

.offer-summary {
  max-width: 680px;
}

.offer-subtitle {
  margin-top: -10px;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
}

.included-list {
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding: 12px 10px 12px 34px;
  border-bottom: 1px solid var(--line-gold);
}

.included-list li:first-child {
  border-top: 1px solid var(--line-gold);
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--gold-deep);
  font-weight: 700;
}

.included-list span {
  color: var(--gold-deep);
  font-weight: 700;
}

.cta-note {
  margin-top: 18px;
  color: var(--charcoal);
  font-size: 12px;
}

.client-inputs {
  padding: clamp(26px, 4vw, 42px);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

.client-inputs h3 {
  margin-bottom: 12px;
}

.client-inputs > p:not(.reviewer-label) {
  font-size: 14px;
}

.client-inputs ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.client-inputs li,
.client-answer {
  color: var(--fg);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.client-inputs li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

/* ---- FAQ ---- */
.faq-grid {
  align-items: start;
}

.faq .section-intro {
  position: sticky;
  top: 28px;
}

.faq-list {
  border-top: 1px solid var(--line-gold);
}

.faq-list details {
  border-bottom: 1px solid var(--line-gold);
}

.faq-list summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  border-radius: 14px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background 180ms var(--ease);
}

.faq-list summary:hover {
  background: var(--sage-wash);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 14px;
  height: 1px;
  background: var(--fg);
}

.faq-list summary span::after {
  transform: rotate(90deg);
  transition: transform 180ms var(--ease);
}

.faq-list details[open] summary span::after {
  transform: rotate(0);
}

.faq-list details > p {
  max-width: 66ch;
  padding: 4px 52px 24px 8px;
}

.client-answer {
  display: inline;
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--gold), transparent 76%);
}

/* ---- Final close: the deep-forest anchor ---- */
.final-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100% - clamp(16px, 3vw, 48px), 1400px);
  margin-inline: auto;
  margin-bottom: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-band);
  padding-block: clamp(92px, 11vw, 160px);
  color: var(--surface);
  background: var(--fg);
  box-shadow: var(--shadow-band);
}

.final-close::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  left: 50%;
  width: 130%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--gold), transparent 72%), transparent 75%);
}

.final-close::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(20px, 4vw, 64px);
  bottom: 36px;
  width: 120px;
  height: 140px;
  background-image: radial-gradient(color-mix(in oklab, var(--surface), transparent 55%) 1.5px, transparent 1.6px);
  background-size: 19px 19px;
  opacity: .5;
}

.close-inner {
  position: relative;
  max-width: 880px;
  text-align: center;
}

.close-inner .kicker {
  color: var(--gold);
}

.close-inner h2 {
  color: var(--surface);
  font-size: clamp(38px, 5.6vw, 66px);
}

.close-inner > p:not(.kicker) {
  max-width: 60ch;
  margin-inline: auto;
  color: color-mix(in oklab, var(--surface), var(--sage) 30%);
  font-size: 19px;
}

.close-inner .btn {
  margin-top: 26px;
}

/* ---- Footer ---- */
.site-footer {
  padding-block: 46px;
  border-top: 1px solid var(--line-gold);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-inner img {
  width: 220px;
}

.footer-inner p {
  margin: 0;
  color: var(--fg);
  font-size: 13px;
}

.footer-inner .legal {
  max-width: 240px;
  color: var(--charcoal);
  text-align: right;
}

.mobile-enroll {
  display: none;
}

/* =====================  Responsive  ===================== */
@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(40px, 4.8vw, 54px);
  }

  .month summary {
    grid-template-columns: 100px minmax(0, 1fr) 170px 32px;
    gap: 18px;
  }

  .month-details {
    padding: 8px 40px 36px 140px;
  }

  .stage-spectrum {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px clamp(24px, 3vw, 44px);
  }

  .practice-loop {
    gap: 24px;
  }
}

@media (max-width: 860px) {
  :root {
    --section-y: 82px;
    --gutter: 28px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-link img {
    width: 220px;
  }

  .hero {
    min-height: 1040px;
    background-image:
      linear-gradient(180deg, color-mix(in oklab, var(--fg), transparent 0%) 0%, color-mix(in oklab, var(--fg), transparent 4%) 54%, color-mix(in oklab, var(--fg), transparent 48%) 76%, color-mix(in oklab, var(--fg), transparent 18%) 100%),
      linear-gradient(90deg, color-mix(in oklab, var(--fg), transparent 4%) 0%, color-mix(in oklab, var(--fg), transparent 62%) 100%),
      url("assets/images/john-howard-editorial-hero-v2.webp");
    background-position: center, center, 65% 100%;
    background-size: 100% 100%, 100% 100%, auto 52%;
  }

  .hero-grid {
    min-height: 1040px;
    padding-block: 134px 420px;
  }

  .hero-copy {
    width: min(100%, 720px);
  }

  .authority-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .authority-portrait,
  .authority-portrait img {
    min-height: 0;
  }

  .authority-portrait {
    aspect-ratio: 5 / 4;
  }

  .authority-copy h2 {
    margin-bottom: 30px;
  }

  .authority-facts li:nth-child(even) {
    transform: none;
  }

  .intro-figure--dark {
    width: 100%;
  }

  .editorial-split,
  .mechanism-grid,
  .faq-grid,
  .library-shell,
  .labs-grid,
  .wisepractice-grid,
  .about-grid,
  .enrollment-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .outcome-ledger {
    grid-template-columns: 1fr;
  }

  .roadmap-head {
    align-items: start;
    flex-direction: column;
  }

  .month summary {
    grid-template-columns: 96px 1fr 32px;
  }

  .month-session-count {
    grid-column: 2;
  }

  .disclosure-icon {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .month-details {
    grid-template-columns: 1fr;
    padding: 8px 32px 34px 112px;
  }

  .library-title,
  .about-heading,
  .faq .section-intro {
    position: static;
  }

  .secondary-portrait {
    width: min(64vw, 400px);
    margin-inline: auto;
  }

  .lab-points {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wisepractice::before,
  .wisepractice::after {
    height: 44px;
  }

  .wisepractice::before {
    top: -43px;
  }

  .wisepractice::after {
    bottom: -43px;
  }

  .footer-inner {
    grid-template-columns: 200px 1fr;
  }

  .footer-inner .legal {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --section-y: 66px;
    --radius-band: 24px;
  }

  body {
    padding-bottom: 84px;
    font-size: 16px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  h2 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .site-header {
    position: absolute;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-link img {
    width: 190px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    padding-block: 112px 580px;
  }

  .hero {
    background-position: center, center, 70% 100%;
    background-size: 100% 100%, 100% 100%, auto 34%;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .presenter-line strong {
    display: inline;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .authority-section {
    min-height: 0;
    padding-block: 60px 76px;
  }

  .authority-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .authority-facts {
    grid-template-columns: 1fr;
  }

  .authority-facts li {
    min-height: 0;
  }

  .outcome-ledger li {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .practice-loop {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .month summary {
    min-height: 100px;
    grid-template-columns: 1fr 30px;
    gap: 6px 16px;
    padding: 18px 8px;
  }

  .month-index,
  .month-title,
  .month-session-count {
    grid-column: 1;
  }

  .month-title {
    font-size: 21px;
  }

  .disclosure-icon {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .month-details {
    padding: 4px 0 30px;
  }

  .lecture-list li {
    grid-template-columns: 74px 1fr;
    gap: 10px;
  }

  .binder section {
    padding: 78px 0 28px;
  }

  .binder .tab {
    top: 26px;
  }

  .binder ul {
    columns: 1;
  }

  .secondary-portrait {
    width: min(80vw, 360px);
  }

  .bonus-ledger div {
    grid-template-columns: 100px 1fr;
  }

  .stage-spectrum {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .not-for-you {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .client-inputs {
    padding: 24px 18px;
  }

  .faq-list summary {
    min-height: 70px;
    font-size: 17px;
  }

  .faq-list details > p {
    padding-right: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner img {
    width: 200px;
  }

  .mobile-enroll {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    color: var(--surface);
    background: var(--fg);
    box-shadow: 0 -14px 34px color-mix(in oklab, var(--fg), transparent 72%);
  }

  .mobile-enroll span {
    font-size: 12px;
    line-height: 1.3;
  }

  .mobile-enroll .btn {
    min-height: 48px;
    padding-inline: 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
