/* =========================================================
   Precision Body Lab — Landing Page
   Brand: Mint/Teal + dark-teal, Montserrat throughout
   Matches book.precisionbodylab.com.au
   ========================================================= */

:root {
  /* PBL palette */
  --c-bg: #FFFFFF;
  --c-bg-light: #E4EEED;       /* primary light bg (mint) */
  --c-bg-soft: #CEDFDE;        /* soft teal bg */
  --c-bg-tint: #E0EAEA;        /* pale teal tint */
  --c-dark: #0F1E21;           /* darkest bg */
  --c-text: #1A2E2E;           /* primary text */
  --c-text-mid: #3D5555;       /* muted text */
  --c-text-soft: #5A7373;      /* even softer */
  --c-teal: #337C7B;           /* CTA primary */
  --c-teal-dark: #1F5F5E;      /* hover */
  --c-teal-deepest: #174F52;
  --c-teal-bright: #85D1CF;    /* headline highlight */
  --c-gold: #F5A623;           /* stars */
  --c-border: rgba(51, 124, 123, 0.18);
  --c-border-soft: rgba(51, 124, 123, 0.10);

  /* Type */
  --font-base: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --max-w-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 30, 33, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 30, 33, 0.10);
  --shadow-lg: 0 20px 60px rgba(15, 30, 33, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  font-family: var(--font-base);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
em { font-style: normal; color: var(--c-teal-bright); }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 1.2rem;
}
.eyebrow--inverse { color: var(--c-teal-bright); }

.h-display {
  font-family: var(--font-base);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin: 0 0 1.2rem;
}
.h-display--inverse { color: #fff; }
.h-display em { color: var(--c-teal-bright); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--c-text-mid);
  max-width: 64ch;
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.lede--inverse { color: rgba(255, 255, 255, 0.86); }

.micro {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  margin-top: 0.7rem;
}
.micro--inverse { color: rgba(255, 255, 255, 0.7); }

/* =========================================================
   Buttons (pill-shape, PBL teal)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}
.btn--primary:hover {
  background: var(--c-teal-dark);
  border-color: var(--c-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 95, 94, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--c-teal);
  border-color: var(--c-teal);
}
.btn--outline:hover {
  background: var(--c-teal);
  color: #fff;
}

.btn--outline-inverse {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-inverse:hover {
  background: #fff;
  color: var(--c-teal-dark);
  border-color: #fff;
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
  border-width: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--c-teal-dark);
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* Always-on dark background so the header CTA stays legible on every section */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: var(--c-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition: padding 0.25s ease;
}
.topbar.scrolled {
  padding: 0.7rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; }
.brand-text {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
}

/* =========================================================
   HERO — full-bleed image, centered overlay
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--gutter) 5rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 30, 33, 0.55) 0%,
      rgba(15, 30, 33, 0.45) 50%,
      rgba(15, 30, 33, 0.72) 100%);
  z-index: -1;
}
.hero__inner {
  max-width: 880px;
  width: 100%;
  text-align: center;
}
.hero__reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.8rem;
}
.stars { color: var(--c-gold); letter-spacing: 0.05em; }

.hero__title {
  font-family: var(--font-base);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__title em { color: var(--c-teal-bright); font-style: normal; }

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
  font-weight: 500;
}

.hero__ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.hero__trust li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   Trust Strip
   ========================================================= */
.strip {
  background: var(--c-dark);
  color: #fff;
  padding: 2.4rem var(--gutter);
}
.strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.strip__item strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-teal-bright);
  margin-bottom: 0.3rem;
}
.strip__item span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  font-weight: 500;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: clamp(2.6rem, 5.2vw, 4.2rem) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--narrow { max-width: var(--max-w-narrow); }
.section--soft {
  background: var(--c-bg-light);
  max-width: none;
  width: 100%;
}
.section--soft > .eyebrow,
.section--soft > .h-display,
.section--soft > .lede,
.section--soft > .timeline,
.section--soft > .proof-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

/* =========================================================
   Check list
   ========================================================= */
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  background: var(--c-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.check-list--compact li { margin-bottom: 0.55rem; font-size: 0.95rem; }

/* =========================================================
   Featured product (Before & After)
   ========================================================= */
.featured {
  background: var(--c-bg-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
}
.featured__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.featured__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured__media img { width: 100%; display: block; }
.featured__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--c-teal);
  color: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.featured__price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1.4rem 0 1.5rem;
}
.price {
  font-family: var(--font-base);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1;
}
.price__detail { color: var(--c-text-mid); font-size: 0.95rem; font-weight: 500; }

/* =========================================================
   MyBodyLab app callout
   ========================================================= */
.appcallout {
  background: var(--c-bg-light);
  padding: clamp(2.6rem, 5.2vw, 4.2rem) var(--gutter);
}
.appcallout__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.appcallout__content { max-width: 52ch; }
.appcallout__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Isolated iPhone PNG (no CSS frame) — stretched wider so corners reach toward the section edges */
.phone-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}
.appcallout__media { overflow: hidden; }

/* =========================================================
   Google reviews stack
   ========================================================= */
.reviews {
  margin: 2.4rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.reviews img {
  width: 100%;
  display: block;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-soft);
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
.timeline__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.6rem 1.8rem;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-sm);
}
.timeline__num {
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--c-teal-bright);
  line-height: 1;
}
.timeline__body h3 {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--c-text);
}
.timeline__body p {
  margin: 0;
  color: var(--c-text-mid);
  font-size: 0.97rem;
  line-height: 1.55;
  font-weight: 500;
}

/* =========================================================
   Pricing cards
   ========================================================= */
.pricing {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--featured {
  background: #fff;
  border: 2px solid var(--c-teal);
  box-shadow: 0 12px 36px rgba(31, 95, 94, 0.18);
  transform: scale(1.02);
}
.card--featured:hover { transform: scale(1.02) translateY(-3px); }

/* Expanded variant of featured card: holds image + description */
.card--expanded .card__media {
  margin: 0 -0.4rem 1.2rem;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--c-bg-light);
}
.card--expanded .card__media img {
  width: 100%;
  display: block;
}
.card--expanded .card__desc {
  margin: 0 0 1.2rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--c-text-mid);
  font-weight: 500;
}

.card__flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-teal);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.card__title {
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
  color: var(--c-text);
}
.card__sub {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  margin: 0 0 1.5rem;
  line-height: 1.4;
  font-weight: 500;
}
.card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}
.card__price .price { font-size: 2.3rem; }
.card__price .price__detail { font-size: 0.85rem; }
.card .check-list { flex: 1; margin-bottom: 1.5rem; }
.card .btn { width: 100%; }

/* =========================================================
   Social proof
   ========================================================= */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
  align-items: center;
}
.proof-card {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.proof-card img { width: 100%; display: block; }
.proof-card figcaption {
  padding: 1.4rem 1.6rem;
  font-size: 0.95rem;
  color: var(--c-text-mid);
  line-height: 1.55;
  font-weight: 500;
}
.proof-card figcaption strong { color: var(--c-text); font-weight: 700; }

.proof-stats { display: grid; gap: 1.5rem; }
.stat {
  background: #fff;
  padding: 1.5rem 1.8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-soft);
}
.stat__num {
  display: block;
  font-family: var(--font-base);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-teal);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat__star { color: var(--c-gold); font-size: 0.85em; }
.stat__label { font-size: 0.92rem; color: var(--c-text-mid); font-weight: 500; }

.quote {
  margin: 0;
  padding: 1.6rem 1.8rem;
  background: var(--c-bg-light);
  border-left: 4px solid var(--c-teal);
  border-radius: var(--r-md);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-text);
  font-weight: 500;
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-weight: 600;
  color: var(--c-text-mid);
  font-size: 0.88rem;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { margin-top: 2.5rem; display: grid; gap: 0.7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: 1.15rem 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] {
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--c-teal);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0.8rem 0 0;
  color: var(--c-text-mid);
  line-height: 1.55;
  font-weight: 500;
  font-size: 0.97rem;
}

/* =========================================================
   Final CTA (dark)
   ========================================================= */
.finalcta {
  background: var(--c-dark);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  text-align: center;
}
.finalcta__inner { max-width: 800px; margin: 0 auto; }
.finalcta .lede { margin-left: auto; margin-right: auto; }
.finalcta__buttons {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0 1rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.2rem var(--gutter) 6.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer__brand span {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer__addr { font-size: 0.9rem; margin: 0; font-weight: 500; }
.footer__small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.5rem 0 0;
  max-width: 60ch;
  line-height: 1.5;
  font-weight: 500;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .featured__inner { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .card--featured { transform: none; order: -1; }
  .card--featured:hover { transform: translateY(-3px); }
  .proof-grid { grid-template-columns: 1fr; }
  .appcallout__inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.5rem;
  }
  .appcallout__content {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .appcallout .check-list { text-align: left; }
  /* On mobile, break the phone out of the section's side gutters so corners touch screen edges */
  .appcallout__media {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }
  .phone-img { max-width: 100%; }
  .timeline__step { grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.3rem 1.4rem; }
  .timeline__num { font-size: 1.7rem; }
  .hero { min-height: 92vh; padding-top: 7rem; }
}

@media (max-width: 480px) {
  .hero__ctas .btn, .finalcta__buttons .btn { width: 100%; }
  .btn--lg { padding: 0.95rem 1.4rem; }
  .hero__trust li { font-size: 0.74rem; padding: 0.35rem 0.75rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
