:root {
  --white: #ffffff;
  --cream: #fbf5f3;
  --cream-2: #f5ede8;
  --line: #e8ddd8;
  --green: #3d6b5e;
  --green-dark: #2f5449;
  --terracotta: #b07060;
  --brown: #3d2e2a;
  --ink: #2c2420;
  --muted: #7a6d68;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; margin: 0 0 1rem; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.narrow { max-width: 760px; }
.section { padding: 6rem 2rem; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: #f1ece8; }
.section-green h2, .section-green h3 { color: #fff; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 560px; }
.section-green .sub { color: #dbe5e1; }
.accent-line { font-family: var(--serif); font-size: 1.45rem; color: var(--green); line-height: 1.3; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sans); padding: 1.05rem 2rem; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn:focus-visible, .arrow:focus-visible, .video-overlay:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.btn-small { padding: .75rem 1.3rem; font-size: 14px; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--cream-2); }
.btn-block { width: 100%; padding: 1.2rem; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Hero */
.hero { padding: 1.25rem 2rem 6rem; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 4rem; }
.brand { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 460px; margin-bottom: 2rem; }
.cta-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.cta-note { font-size: 14px; color: var(--muted); }
.hero-image { position: relative; }

.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #f2e8e4; }
.photo-frame .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-frame .photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.7); transform: scale(1.15); }

.badge {
  position: absolute; bottom: -20px; left: -20px; background: var(--cream-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 8px 32px #0000001f;
}
.badge-num { font-family: var(--serif); font-size: 30px; color: var(--green); line-height: 1; }
.badge-label { font-size: 12px; color: #9a8e8a; margin-top: 4px; }

/* Video */
.video { position: relative; max-width: 800px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-overlay {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; color: #fff;
  background: linear-gradient(to bottom, #2c242033 0%, #2c242066 60%, #2c2420a6 100%);
}
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #ffffff26; backdrop-filter: blur(8px); border: 1px solid #ffffff59; padding-left: 4px; transition: transform .2s;
}
.video-overlay:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font: 13px var(--sans); color: #ffffffcc; white-space: nowrap; }

/* Grids & cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.stack { display: grid; gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.section-cream .card { background: var(--white); }
.card-green { background: var(--green); border-color: var(--green); color: #e8f0ec; }
.card-terracotta { background: var(--terracotta); border-color: var(--terracotta); color: #fbeee9; }
.card-green p:last-child, .card-terracotta p:last-child { margin: 0; }
.card-kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: .4rem; }
.big-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; color: #fff; margin-bottom: .6rem; }

.cards-3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-3 .card { position: relative; padding-top: 3.2rem; font-size: 1.05rem; }
.cards-3 .card::before {
  content: ""; position: absolute; top: 1.6rem; left: 1.75rem; width: 28px; height: 3px; border-radius: 3px; background: var(--terracotta);
}

.checks { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-top: 1px;
}

.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.phase-weeks { display: inline-block; font-size: 13px; font-weight: 600; color: var(--terracotta); background: var(--cream); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem; }
.phases p { margin: 0; color: var(--muted); }

/* Program */
.program { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.program-intro { background: var(--green); color: #e8f0ec; padding: 3rem; }
.program-intro h3 { color: #fff; font-size: 2.2rem; }
.program-meta { font-size: 14px; color: #cfe0d9; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: #ffffff1f; border-radius: 999px; padding: .35rem .85rem; margin-bottom: 1.25rem; }
.program-intro .btn { margin-top: 1rem; }
.program-list { list-style: none; margin: 0; padding: 2.5rem 3rem; background: var(--cream); display: grid; align-content: center; gap: .2rem; }
.program-list li { padding: .7rem 0 .7rem 1.8rem; position: relative; border-bottom: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 0; }
.program-list li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

/* Testimonials */
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.5rem) / 3); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem;
}
.track::-webkit-scrollbar { display: none; }
.quote { margin: 0; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; }
.stars { color: var(--terracotta); letter-spacing: .15em; margin-bottom: .8rem; }
.quote blockquote { margin: 0 0 1rem; font-size: 15.5px; line-height: 1.65; }
.results { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 14.5px; color: var(--green); font-weight: 600; }
.results li::before { content: "→ "; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--cream-2); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.quote strong { display: block; color: var(--ink); }
.quote small { color: var(--muted); font-size: 13px; }
.carousel-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--green); font-size: 26px; line-height: 1; cursor: pointer; padding-bottom: 4px; }
.arrow:hover { background: var(--cream-2); }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.ba { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); user-select: none; touch-action: pan-y; }
.ba > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 4px 16px #0003; font-size: 15px;
}
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 1rem; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: #2c2420b3; color: #fff; padding: .3rem .7rem; border-radius: 999px; pointer-events: none; }
.ba-tag-l { left: 1rem; } .ba-tag-r { right: 1rem; }

/* About */
.about-photo { max-width: 480px; width: 100%; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: 13px; font-weight: 500; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; color: var(--green); }

/* Form */
.apply-form { background: var(--white); color: var(--brown); border-radius: 24px; padding: 2.5rem; display: grid; gap: 1.4rem; box-shadow: 0 20px 60px #00000026; }
.apply-form .btn-light { background: var(--green); color: #fff; }
.apply-form .btn-light:hover { background: var(--green-dark); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .5rem; font-weight: 600; font-size: 15px; color: var(--ink); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .6rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px var(--sans); color: var(--ink); width: 100%; padding: .85rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #3d6b5e26; background: #fff; }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .75rem; font-weight: 400; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--green); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--green); background: #eef4f1; }
.form-note { text-align: center; font-size: 14px; color: var(--muted); margin: 0; }
.form-error { text-align: center; color: #a33; font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.after-submit { background: var(--white); color: var(--brown); border-radius: 24px; padding: 2.5rem; text-align: center; }
.after-submit h3 { color: var(--ink); }

/* Thank you panel (mobile first) */
.thanks {
  background: var(--white); color: var(--brown); border-radius: 20px;
  padding: 2rem 1.25rem; text-align: center; box-shadow: 0 20px 60px #00000026;
}
.thanks:focus { outline: none; }
.thanks-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: #eef4f1; color: var(--green); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.section-green .thanks-title, .thanks-title { color: var(--ink); font-size: 2rem; margin-bottom: .75rem; overflow-wrap: anywhere; }
.thanks-text { font-size: 1.08rem; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 460px; }
.btn-book { width: 100%; min-height: 56px; font-size: 17px; padding: 1rem 1.5rem; }
.thanks-note { font-size: 14px; color: var(--muted); margin: .9rem 0 0; }
@media (min-width: 769px) {
  .thanks { padding: 3rem 2.5rem; border-radius: 24px; }
  .thanks-title { font-size: 2.4rem; }
  .btn-book { width: auto; min-width: 300px; }
}

/* Page lock while the booking popup is open (works on iPhone Safari) */
html.popup-open, html.popup-open body { overflow: hidden; }
html.popup-open body { position: fixed; left: 0; right: 0; width: 100%; }

/* Calendly popup: full screen on phones */
.calendly-overlay { background-color: rgba(44, 36, 32, .82) !important; overscroll-behavior: contain; }
.calendly-overlay::before {
  content: "Pick a time for your free call";
  position: absolute; left: 16px; right: 72px; top: calc(env(safe-area-inset-top, 0px) + 20px);
  color: #fff; font: 600 16px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
html .calendly-overlay .calendly-popup {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 64px); right: 0; bottom: 0; left: 0;
  width: 100%; min-width: 0; max-width: none; height: auto; max-height: none !important;
  transform: none; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--white);
}
.calendly-overlay .calendly-popup .calendly-popup-content { height: 100%; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
html .calendly-overlay .calendly-popup-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 12px;
  width: 48px; height: 48px; border-radius: 50%; z-index: 2;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d6b5e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 16px #0000004d; cursor: pointer;
}
html .calendly-overlay .calendly-popup-close:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
@media (min-width: 976px) {
  .calendly-overlay::before { display: none; }
  html .calendly-overlay .calendly-popup {
    position: absolute; top: 50%; left: 50%; right: auto; bottom: auto;
    width: 80%; min-width: 900px; max-width: 1000px; height: 90%; max-height: 700px !important;
    transform: translate(-50%, -50%); border-radius: 20px;
  }
  html .calendly-overlay .calendly-popup-close { top: 20px; right: 20px; }
}

/* Footer */
.footer { padding: 2.5rem 2rem; background: var(--cream); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--green); }

/* Responsive */
@media (max-width: 900px) {
  .cards-3, .phases { grid-template-columns: 1fr 1fr; }
  .track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
  .program { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 1rem 1.25rem 4rem; }
  .topbar { padding-bottom: 2.5rem; }
  .brand { font-size: 18px; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image .photo-frame { aspect-ratio: 4 / 5; }
  .badge { bottom: -16px; left: 12px; }
  .cta-wrap { align-items: stretch; text-align: center; }
  .cards-3, .phases, .checks, .ba-grid { grid-template-columns: 1fr; }
  .track { grid-auto-columns: 88%; }
  .program-intro, .program-list { padding: 2rem 1.5rem; }
  .apply-form, .after-submit { padding: 1.5rem; }
  .row-2 { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .video, .photo-frame, .ba { border-radius: 14px; }
}
@media (max-width: 420px) {
  .topbar .btn-small { padding: .65rem 1rem; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .play-btn { transition: none; }
}
