/* BuilderLab VSL booking funnel */
:root {
  --bg: #08120E;
  --bg-2: #0D1A15;
  --card: #10201A;
  --line: rgba(244, 244, 249, 0.10);
  --text: #F4F4F9;
  --muted: rgba(244, 244, 249, 0.66);
  --green: #38B685;
  --green-2: #8EF0C9;
  --on-green: #08120E;
  --radius: 16px;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.page { overflow-x: hidden; }

/* ---------- HERO (spacing modeled on marketyourarchitecture.com/apply) ---------- */
.logo-bar {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.logo { width: 104px; }

.hero {
  max-width: 840px;
  margin: 0 auto;
  padding: 8px var(--gutter) 40px;
  text-align: center;
}

.headline {
  margin: 0;
  font-size: clamp(27px, 7.4vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.accent { color: var(--green); }
.subheadline {
  max-width: 46rem;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 600px) {
  .hero { padding-top: 16px; }
  .headline { font-size: clamp(26px, 5.8vw, 50px); }
  .subheadline { margin-top: 16px; font-size: 18px; line-height: 1.6; }
  .vsl { margin-top: 32px; }
}
@media (min-width: 640px) {
  .logo { width: 130px; }
}
@media (min-width: 900px) {
  .hero { padding-top: 40px; max-width: 900px; }
  .headline { max-width: 820px; margin-left: auto; margin-right: auto; }
}

/* ---------- VSL ---------- */
.vsl {
  position: relative;
  max-width: 640px;
  margin: 22px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-media { position: absolute; inset: 0; }
.vsl-media iframe.preview { pointer-events: none; }
.vsl-bg {
  position: absolute; inset: 0;
  background: #111816;
  background-size: cover; background-position: center;
}

/* "Click for sound" box (modeled on scalingwithsystems.com) */
.vsl-sound {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}
.vsl-sound .box {
  display: flex; align-items: center; gap: .5em;
  padding: .85em 1.3em;
  background: rgba(56, 182, 133, .88);
  color: #08120E;
  font-family: inherit;
  font-size: 16px; font-size: clamp(14px, 2.7cqw, 24px);
  font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color .15s;
}
.vsl-sound:hover .box { background: var(--green); }
.vsl-sound svg { width: 1.55em; height: 1.55em; flex: none; }
.vsl-sound .vs-click { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vsl-sound .vs-click { display: inline; }
  .vsl-sound .vs-tap { display: none; }
}

.play {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #000;
  box-shadow: 0 0 0 0 rgba(255,255,255,.45);
  animation: pulse 2s infinite;
  transition: transform .2s ease;
}
.play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- FORM (dark card, white text) ---------- */
.apply {
  margin: 16px auto 0;
  max-width: 640px;
  text-align: left;
  color: #fff;
  background: #16302A;
  border: 1px solid rgba(56, 182, 133, .6);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 0 4px rgba(56, 182, 133, .10), 0 24px 60px -24px rgba(0, 0, 0, .85);
  scroll-margin-top: 16px;
}
.apply-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 14px; }
.apply-progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .35s ease; }

.step { display: none; }
.step.on { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-h { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.sub { color: var(--muted); margin: 0; }

.tiles { display: grid; gap: 8px; }
.tile {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; font-weight: 500; color: #fff;
  background: #0C1A15; border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.tile .key {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 11px; font-weight: 600; color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.tile:hover { border-color: var(--green); background: #0F211A; }
.tile:hover .key { border-color: var(--green); }
.tile.sel { border-color: var(--green); background: rgba(56,182,133,.22); }
.tile.sel .key { background: var(--green); border-color: var(--green); color: var(--on-green); }

.fld { display: block; margin: 0 0 10px; }
.fld > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.in {
  width: 100%; min-width: 0;
  height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: #fff; background: #0C1A15;
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.in::placeholder { color: rgba(255,255,255,.5); }
.in:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,182,133,.25); }
.in.invalid { border-color: #ff6b6b; }
.in:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #0C1A15 inset; caret-color: #fff; }
.err { margin: 0 0 10px; font-size: 13px; color: #ff8a8a; }
.err:empty { display: none; }
.consent { margin: 2px 0 12px; font-size: 12px; line-height: 1.5; color: #fff; }
.consent a { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: var(--on-green);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arr { display: inline-flex; flex: none; transition: transform .25s ease; }
.btn .arr svg { width: 18px; height: 18px; }
.btn:hover .arr { transform: translateX(3px); }

.back { display: block; margin: 10px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: #fff; }
.back:hover { opacity: .8; }

/* ---------- Booking screen (modeled on MYA's calendar step) ---------- */
body.booking .headline,
body.booking .subheadline,
body.booking .vsl,
body.booking .proof,
body.booking .sticky-cta { display: none; }
body.booking .hero { padding-top: 32px; min-height: 70vh; }
.apply.cal { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: 640px; }
.apply.cal .apply-progress { display: none; }

.cal-intro { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: #fff; }
.cal-name { color: var(--green); font-weight: 600; }

.days {
  display: flex; gap: 8px; margin: 0 0 18px; padding: 2px 2px 6px;
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 62px; padding: 10px 0 9px; cursor: pointer;
  font: inherit; color: #fff; text-align: center;
  background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  transition: border-color .15s, background .15s, color .15s;
}
.day:hover { border-color: var(--green); }
.day .dow { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.day .dnum { font-size: 19px; font-weight: 700; line-height: 1.2; }
.day .mon { font-size: 11px; }
.day.sel { background: var(--green); border-color: var(--green); color: var(--on-green); }

.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  min-width: 100px; padding: 12px 16px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: #fff;
  background: #0C1A15; border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  transition: border-color .15s, background .15s, color .15s;
}
.time:hover { border-color: var(--green); }
.time.sel { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 600; }

.cal-status { margin: 14px 0 0; font-size: 14px; color: #fff; }
.cal-status:empty { display: none; }
.cal-confirm { margin-top: 20px; padding: 16px; border: 1px solid rgba(56,182,133,.6); border-radius: 12px; background: #16302A; }
.cal-confirm[hidden] { display: none; }
.cal-picked { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #fff; }

.tz { margin-top: 18px; }
.tz-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; color: #fff; opacity: .8;
  text-decoration: underline; text-underline-offset: 3px;
}
.tz-btn:hover { opacity: 1; }
.tz-select {
  display: block; margin-top: 10px; width: 100%; max-width: 360px; height: 44px; padding: 0 10px;
  font: inherit; font-size: 16px; color: #fff; background: #0C1A15;
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
}
.tz-select[hidden] { display: none; }

.booked { text-align: center; padding: 24px 0; }
.booked-when { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: var(--green); }

.nofit { text-align: center; padding: 8px 0; }
.nofit-ico { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(56,182,133,.14); color: var(--green); }
.nofit-ico svg { width: 24px; height: 24px; }
.nofit-text { margin: 0 0 18px; color: #fff; font-size: 15px; }
.ghost {
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1;
  border-radius: 999px; padding: 12px 18px; cursor: pointer;
}

@media (min-width: 640px) {
  .apply { padding: 28px; }
  .step-h { font-size: 22px; }
  .play { width: 96px; height: 96px; }
  .play svg { width: 42px; height: 42px; }
}

/* ---------- PROOF ---------- */
.proof {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.proof-head { text-align: center; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.proof h2, .final-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 5vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 420px; margin: 0 auto 28px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 12px 4px; text-align: center; min-width: 0;
}
.stat b { font-size: clamp(20px, 5vw, 26px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.stat-l { font-size: 12px; line-height: 1.3; color: var(--muted); }
.g-top { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.g-ico { width: 17px; height: 17px; flex: none; }
.g-stars { display: flex; gap: 2px; color: #F4B400; }
.g-stars svg { width: 12px; height: 12px; }
@media (min-width: 640px) {
  .stat { padding: 16px 8px; }
  .stat-l { font-size: 13px; }
  .g-top { font-size: 15px; }
  .g-ico { width: 19px; height: 19px; }
  .g-stars svg { width: 14px; height: 14px; }
}

/* video testimonials */
.video-tests { display: grid; gap: 14px; }
.vc {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: #000; text-align: left;
}
.vc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85)); }
.vc:hover img { transform: scale(1.04); }
.vc .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }
.vc:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.vc-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; line-height: 1.3; }
.vc-meta strong { display: block; font-size: 15px; }
.vc-co { font-size: 13px; color: rgba(244,244,249,.75); }
.vc-quote { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #fff; text-wrap: balance; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.vc-dur {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.6); font-variant-numeric: tabular-nums;
}
.vc-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.vc-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play.sm { width: 54px; height: 54px; animation: none; }
.play.sm svg { width: 24px; height: 24px; }

@media (min-width: 640px) {
  .video-tests { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .video-tests { grid-template-columns: repeat(3, 1fr); }
}

.final-cta { text-align: center; padding: 48px 0 8px; }
.final-cta .btn { margin-top: 12px; padding: 0 36px; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: 760px; margin: 0 auto;
  padding: 24px var(--gutter) 110px; /* room for sticky bar */
  text-align: center; font-size: 12px; color: rgba(244,244,249,.45);
}
.footer p { margin: 0 0 8px; }
.footer a { color: rgba(244,244,249,.65); }

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,18,14,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .3s ease;
  pointer-events: none;
}
.sticky-cta.show { transform: none; pointer-events: auto; }
@media (min-width: 640px) {
  .sticky-cta { display: flex; justify-content: center; }
  .sticky-cta .btn { width: auto; min-width: 280px; }
}

/* ---------- THANK-YOU PAGE ---------- */
.ty-hero {
  max-width: 680px; margin: 0 auto;
  padding: 36px var(--gutter) 8px;
  text-align: center;
}
.ty-check {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--on-green);
  box-shadow: 0 0 0 8px rgba(56,182,133,.16), 0 0 0 16px rgba(56,182,133,.06);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.ty-check svg { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ty-h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 48px); line-height: 1.1;
  font-weight: 700; letter-spacing: -0.025em; text-wrap: balance;
}
.ty-when {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 22px auto 0; padding: 14px 20px;
  text-align: left;
  background: #16302A; border: 1px solid rgba(56,182,133,.6); border-radius: 14px;
}
.ty-when[hidden] { display: none; }
.ty-when > svg { width: 28px; height: 28px; flex: none; color: var(--green); }
.ty-when p { margin: 0; }
.ty-when-date { font-size: 18px; font-weight: 700; line-height: 1.25; }
.ty-when-time { font-size: 15px; color: var(--green-2); }
.ty-lead { max-width: 34rem; margin: 20px auto 0; font-size: 16px; color: var(--muted); text-wrap: pretty; }

.ty-steps {
  max-width: 680px; margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  display: grid; gap: 14px;
}
.ty-step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ty-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  color: var(--green); border: 1.5px solid var(--green);
}
.ty-body { min-width: 0; }
.ty-body h2 { margin: 5px 0 6px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.ty-body > p { margin: 0; font-size: 15px; color: var(--muted); }

.cal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cal-btns[hidden] { display: none; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none;
  background: #0C1A15; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.cal-btn svg { width: 18px; height: 18px; color: var(--green); }
.cal-btn:hover { border-color: var(--green); background: #0F211A; }
.cal-btn:first-child { background: var(--green); border-color: var(--green); color: var(--on-green); }
.cal-btn:first-child svg { color: var(--on-green); }
.cal-btn:first-child:hover { filter: brightness(1.08); }
.cal-fallback { margin-top: 10px !important; color: var(--green-2) !important; }
.cal-fallback[hidden] { display: none; }

.ty-video { margin: 14px 0 0; max-width: none; }
.ty-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(8,18,14,.2), rgba(8,18,14,.65));
}
.ty-play-label { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ty-play:hover .play { transform: scale(1.06); }

.ty-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ty-list li {
  position: relative; padding-left: 28px;
  font-size: 15px; line-height: 1.5; color: var(--muted);
}
.ty-list li b { color: var(--text); font-weight: 600; }
.ty-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(56,182,133,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2338B685' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ty-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed rgba(56,182,133,.45); border-radius: var(--radius);
}
.ty-note svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }
.ty-note p { margin: 0; font-size: 14px; color: var(--muted); }
.ty-note b { color: var(--text); }

.ty-proof .proof-head h2 { font-size: clamp(22px, 4.5vw, 30px); }
.ty-footer { padding-bottom: 40px; }

@media (min-width: 640px) {
  .ty-hero { padding-top: 56px; }
  .ty-step { grid-template-columns: 40px 1fr; gap: 18px; padding: 24px; }
  .ty-num { width: 40px; height: 40px; }
  .ty-body h2 { font-size: 21px; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
