/* ============================================================
   Screen Time Trainer — Family page (/family/) theme overrides
   Loaded AFTER site.css. Everything scoped under body.t-family.
   Accent: rust #95371e (footer/nav #95371f), display face: Chapman Test.
   ============================================================ */

body.t-family {
  --accent: #95371e;
  --accent-dark: #95371f;
  --cream: #f8f6ed;
  --cream2: #eeebe0;
  --blue: #1612d3;
  --chap-m: "Chapman Test Medium", Georgia, serif;
  --chap-b: "Chapman Test Bold", Georgia, serif;
  --chap-bi: "Chapman Test Bold Italic", Georgia, serif;
  --chap-blk: "Chapman Test Black", Georgia, serif;
  --chap-blki: "Chapman Test Black Italic", Georgia, serif;
  background: #f8f6ed;
  font-family: var(--f-mont);
}

/* helpers for the phone-only copy variant */
body.t-family .only-phone { display: none; }

/* ---------- Navbar ---------- */
body.t-family .nav {
  background: linear-gradient(rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
body.t-family .nav__logo { width: 149px; }

/* ---------- Waitlist form ---------- */
body.t-family .wl-form { gap: 20px; width: 280px; }
body.t-family .wl-form__note { color: var(--cream2); padding-left: 10px; }
body.t-family .wl-form__email { width: 100%; height: 40px; color: #fff; }
body.t-family .wl-form__email::placeholder { color: #dbdbdb; }
body.t-family .wl-form__btn {
  width: 100%; height: 40px; border-radius: 99px;
  background: var(--accent); color: #fff;
}

/* ---------- Hero ---------- */
body.t-family .hero { min-height: 100vh; display: flex; align-items: center; }
body.t-family .hero__inner { padding-top: 100px; padding-bottom: 100px; width: 100%; }
body.t-family .hero__content { max-width: 80%; margin-left: 50px; gap: 0; }
body.t-family .hero__title {
  font-family: var(--chap-m); font-size: 60px; line-height: 0.9em;
  color: var(--cream2); letter-spacing: 0;
}
body.t-family .hero__title i { font-family: var(--chap-blki); font-style: italic; }
body.t-family .hero__sub {
  font-family: var(--f-mont); font-weight: 500; font-size: 19px; line-height: 1.2em;
  color: var(--cream2); margin-top: 90px;
}
body.t-family .hero__content .wl-form { margin-top: 55px; }

/* ---------- Combo wrapper (Problem + 4 steps on rust texture) ---------- */
body.t-family .combo-wrap { overflow-x: clip; }
body.t-family .combo {
  position: relative; max-width: 1200px; margin: 0 auto;
  background: url("../assets/images/u5FzI72qBton7DXAPIC1yb2nPM.webp") center / cover;
}
body.t-family .combo__paper {
  position: absolute; top: -168px; right: -45px; width: 1290px; max-width: none;
  z-index: 1; pointer-events: none;
}

/* ---------- Problem ---------- */
body.t-family .problem { position: relative; z-index: 2; overflow-x: visible; }
body.t-family .problem__backdrop { display: none; }
body.t-family .problem__inner {
  align-items: flex-start; gap: 70px; padding: 25px 20px 15px 87px;
}
body.t-family .problem__photo { flex: 0 0 410px; position: relative; }
body.t-family .problem__cap {
  position: absolute; left: 30px; right: 45px; bottom: 20px;
  font-family: var(--f-mont); font-weight: 600; font-style: italic;
  font-size: 18px; line-height: 1.15em; color: var(--cream);
}
body.t-family .problem__text {
  flex: 0 1 520px; min-height: 0; justify-content: flex-start; gap: 0;
  color: var(--accent); padding-top: 10px;
}
body.t-family .problem__title {
  font-family: var(--chap-b); font-size: 58px; line-height: 1em; color: var(--accent);
}
body.t-family .problem__title i { font-family: var(--chap-blki); font-style: italic; }
body.t-family .problem__p {
  font-family: var(--f-mont); font-weight: 600; font-size: 18px; line-height: 1.35em;
  color: var(--accent); margin-top: 40px; max-width: 500px;
}
body.t-family .problem__p + .problem__p { margin-top: 30px; }

/* ---------- 4 steps ---------- */
body.t-family .steps { position: relative; z-index: 2; background: transparent; padding: 30px 20px 118px; }
body.t-family .steps__head { max-width: 960px; margin: 0 auto; gap: 42px; }
body.t-family .steps__title {
  font-family: var(--chap-b); font-size: 58px; line-height: 1em; letter-spacing: -0.04em;
  color: var(--cream);
}
body.t-family .steps__title i { font-family: var(--chap-blki); font-style: italic; }
body.t-family .steps__sub {
  font-family: var(--f-mont); font-weight: 600; font-size: 26px; line-height: 1.3em;
  letter-spacing: -0.02em; color: var(--cream); max-width: 820px; margin: 0 auto;
}
body.t-family .steps__row { margin-top: 85px; gap: 24px; }
body.t-family .steps__row::before { display: none; }
body.t-family .step__icon { width: 68px; height: 68px; }
body.t-family .step__tick { display: none; }
body.t-family .step__title {
  font-family: var(--chap-b); font-size: 30px; line-height: 0.9em; letter-spacing: -0.05em;
  color: var(--cream); margin-top: 42px;
}
body.t-family .step__title i { font-family: var(--chap-blki); font-style: italic; }
body.t-family .step__desc {
  font-family: var(--f-mont); font-weight: 600; font-size: 16px; line-height: 1.15em;
  color: var(--cream); margin-top: 24px; max-width: 260px;
}

/* ---------- Stats ---------- */
body.t-family .stats { max-width: 1200px; margin: 0 auto; }
body.t-family .stats__bg img { object-position: center; }
body.t-family .stats__inner {
  min-height: 677px; align-items: flex-end; padding: 68px 50px 70px;
}
body.t-family .stats__form { padding-bottom: 6px; }
body.t-family .stats__right {
  flex: 0 1 47%; align-self: stretch; display: flex; flex-direction: column;
  justify-content: flex-start; gap: 74px;
}
body.t-family .stats__line {
  flex: none; align-self: auto; margin-top: 0;
  font-family: var(--chap-b); font-size: 58px; line-height: 0.9em; letter-spacing: -0.02em;
  color: var(--cream);
}
body.t-family .stats__line b { font-family: var(--chap-blk); font-size: 70px; }
body.t-family .stats__chart { width: 63%; height: auto; }

/* ---------- What to expect ---------- */
body.t-family .expect { background: transparent; padding: 88px 20px 138px; }
body.t-family .expect__title {
  font-family: var(--chap-b); font-size: 60px; line-height: 1em; color: var(--accent);
}
body.t-family .expect__title i { font-family: var(--chap-blki); font-style: italic; }
body.t-family .expect__arrow { display: none; }
body.t-family .expect__row { margin-top: 75px; justify-content: space-evenly; gap: 0; }
body.t-family .expect__card {
  flex: 0 0 30%; aspect-ratio: 0.6654; border-radius: 45px; overflow: hidden; position: relative;
}
body.t-family .expect__card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
body.t-family .expect__cap {
  position: absolute; left: 12px; right: 12px; bottom: 11%; top: auto;
  color: #fff; font-size: inherit; line-height: inherit; text-align: center;
}
body.t-family .expect__big {
  font-family: var(--chap-bi); font-style: italic; font-size: 64px; line-height: 0.9em; color: #fff;
}
body.t-family .expect__big b {
  font-family: var(--f-mont); font-style: normal; font-weight: 700;
  font-size: 38px; letter-spacing: -0.05em; line-height: 0.9em;
}
body.t-family .expect__txt {
  font-family: var(--f-mont); font-weight: 700; font-size: 22px; line-height: 1em;
  color: #fff; margin-top: 18px;
}

/* ---------- Comparison ---------- */
body.t-family .compare { max-width: 1200px; margin: 0 auto; }
body.t-family .compare__inner { padding-top: 47px; padding-bottom: 47px; color: var(--cream); }
body.t-family .compare__title {
  font-family: var(--chap-m); font-size: 60px; line-height: 0.9em; letter-spacing: -0.05em;
  color: #fff; margin-bottom: 55px;
}
body.t-family .compare__title i { font-family: var(--chap-bi); font-style: italic; }
body.t-family .compare__grid::before { background: rgba(255,255,255,0.85); }
body.t-family .compare__logo { width: 280px; }
body.t-family .compare__cell .compare__other {
  font-size: 40px; line-height: 0.9em; letter-spacing: -0.05em; color: var(--cream); max-width: none;
}
body.t-family .compare__logos .compare__cell--us { justify-content: center; }
body.t-family .compare__cell { padding: 26px 46px; gap: 26px; }
body.t-family .compare__cell p {
  font-family: var(--f-mont); font-weight: 600; font-size: 22px; line-height: 1.6em; max-width: 440px;
}
body.t-family .compare__form { margin-top: 40px; }
body.t-family .compare__form .wl-form__btn { background: var(--cream); color: var(--accent); }

/* ---------- Who is it for ---------- */
body.t-family .family { max-width: 1200px; margin: 0 auto; position: relative; z-index: 4; }
body.t-family .family__inner { padding-top: 100px; padding-bottom: 225px; }
body.t-family .family__title {
  font-family: var(--chap-m); font-size: 60px; line-height: 1em; color: #fff;
}
body.t-family .family__title i { font-family: var(--chap-bi); font-style: italic; }
body.t-family .family__sub {
  font-family: var(--f-mont); font-weight: 600; font-size: 28px; line-height: 1em;
  max-width: 980px; margin: 22px auto 70px;
}
body.t-family .family__list { max-width: 540px; gap: 56px; margin-right: 10px; }
body.t-family .family__itext h3 {
  font-family: var(--f-mont); font-weight: 700; font-size: 32px; line-height: 0.9em;
  letter-spacing: -0.05em; margin-bottom: 10px;
}
body.t-family .family__itext p {
  font-family: var(--f-mont); font-weight: 600; font-size: 22px; line-height: 0.9em;
}
body.t-family .family__toggle { flex: 0 0 80px; height: 43px; }

/* ---------- FAQ ---------- */
body.t-family .faq { background: transparent; padding: 55px 20px 60px; }
body.t-family .faq__backdrop {
  top: -209px; left: 52%; width: 1465px; height: calc(100% + 350px); object-fit: fill;
}
body.t-family .faq__title {
  font-family: var(--chap-m); font-size: 60px; line-height: 0.9em; letter-spacing: -0.05em;
  color: var(--accent); margin-bottom: 30px;
}
body.t-family .faq__title i { font-family: var(--chap-bi); font-style: italic; }
body.t-family .acc { border: 2px solid var(--accent); border-radius: 35px; }
body.t-family .acc__q { padding: 24px 30px; min-height: 68px; }
body.t-family .acc__q span {
  font-family: var(--f-mont); font-weight: 700; font-size: 14px; color: var(--accent);
}
body.t-family .acc__chev { width: 44px; height: 26px; flex: 0 0 44px; }
body.t-family .acc__a p {
  padding: 0 30px 24px;
  font-family: var(--f-mont); font-weight: 500; font-size: 18px; line-height: 1.5em;
  color: var(--blue);
}
body.t-family .faq__stamp { display: none; }

/* ---------- Final CTA ---------- */
body.t-family .cta { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
body.t-family .cta__inner {
  padding-top: 205px; padding-bottom: 240px; padding-left: 100px; gap: 39px;
}
body.t-family .cta__title {
  font-family: var(--chap-m); font-size: 84px; line-height: 0.9em; color: #fff; letter-spacing: 0;
}
body.t-family .cta__title i { font-family: var(--chap-bi); font-style: italic; }

/* ---------- EU notice ---------- */
body.t-family .eu { background: transparent; padding: 40px 20px 60px; }
body.t-family .eu__inner { max-width: 600px; gap: 33px; }
body.t-family .eu__text p {
  font-family: var(--f-mont); font-weight: 400; font-size: 15px; line-height: 1.6em;
  letter-spacing: -0.02em; color: #181818;
}

/* ---------- Footer ---------- */
body.t-family .footer { background: var(--accent-dark); }
body.t-family .footer__nav { border-bottom: 1px solid #00000014; }

/* ============================================================
   Tablet: 810 – 1199.98
   ============================================================ */
@media (max-width: 1199.98px) and (min-width: 810px) {
  body.t-family .hero__content { margin-left: 40px; }
  body.t-family .hero__title { font-size: 60px; }

  body.t-family .combo__paper { width: 110%; right: -5%; top: -110px; }
  body.t-family .problem__inner { padding: 25px 20px 60px 44px; gap: 45px; }
  body.t-family .problem__photo { flex: 0 0 272px; }
  body.t-family .problem__cap { left: 18px; right: 20px; bottom: 14px; font-size: 13px; }
  body.t-family .problem__title { font-size: 42px; }
  body.t-family .problem__p { font-size: 17px; margin-top: 30px; }

  body.t-family .steps__title { font-size: 42px; }
  body.t-family .steps__sub { font-size: 20px; max-width: 580px; }
  body.t-family .steps__row { flex-wrap: wrap; row-gap: 64px; margin-top: 70px; }
  body.t-family .step { flex: 0 0 calc(50% - 12px); }

  body.t-family .stats__inner { min-height: 505px; padding: 46px 30px 46px; }
  body.t-family .stats__line { font-size: 40px; }
  body.t-family .stats__line b { font-size: 50px; }
  body.t-family .stats__right { gap: 40px; }
  body.t-family .stats__chart { width: 55%; align-self: flex-end; margin-right: 8%; margin-top: auto; }

  body.t-family .expect__title { font-size: 42px; }
  body.t-family .expect__row { margin-top: 70px; }
  body.t-family .expect__big { font-size: 54px; }
  body.t-family .expect__big b { font-size: 26px; }
  body.t-family .expect__txt { font-size: 15px; margin-top: 12px; }
  body.t-family .expect__cap { bottom: 8%; }

  body.t-family .compare__title { font-size: 42px; }
  body.t-family .compare__logo { width: 230px; }
  body.t-family .compare__cell .compare__other { font-size: 30px; }
  body.t-family .compare__cell { flex-direction: column; align-items: center; text-align: center; padding: 24px 26px; gap: 0; }
  body.t-family .compare__cell--us { text-align: center; }
  body.t-family .compare__cell--them { text-align: center; }
  body.t-family .compare__cell--us .compare__ico { order: -1; }
  body.t-family .compare__ico { margin-bottom: 40px; }
  body.t-family .compare__cell p { font-size: 20px; line-height: 1.4em; }

  body.t-family .family__title { font-size: 42px; }
  body.t-family .family__sub { font-size: 22px; margin-bottom: 56px; }
  body.t-family .family__list { max-width: 46%; margin-right: auto; margin-left: 50%; }
  body.t-family .family__item { flex-direction: column; align-items: flex-start; gap: 14px; }
  body.t-family .family__toggle { order: -1; flex: 0 0 auto; width: 76px; height: 42px; }
  body.t-family .family__itext h3 { font-size: 30px; }
  body.t-family .family__itext p { font-size: 20px; line-height: 1em; }

  body.t-family .faq__backdrop { width: 1465px; }

  body.t-family .cta__inner { padding-top: 170px; padding-bottom: 120px; padding-left: 84px; }
  body.t-family .cta__title { font-size: 48px; }

  body.t-family .eu__inner { max-width: 760px; }
}

/* ============================================================
   Phone: <= 809.98
   ============================================================ */
@media (max-width: 809.98px) {
  body.t-family .only-desktop { display: none; }
  body.t-family .only-phone { display: inline; }

  body.t-family .hero { min-height: 100vh; }
  body.t-family .hero__inner { padding-top: 140px; padding-bottom: 110px; }
  body.t-family .hero__content { max-width: 100%; margin-left: 0; }
  body.t-family .hero__title { font-size: 42px; }
  body.t-family .hero__sub { font-size: 16px; margin-top: 46px; }
  body.t-family .hero__content .wl-form { margin-top: 90px; }

  body.t-family .combo__paper { width: 1120px; right: auto; left: 50%; transform: translateX(-50%); top: -70px; }
  body.t-family .problem__inner {
    flex-direction: column; align-items: center; gap: 55px; padding: 40px 20px 60px;
  }
  body.t-family .problem__photo { flex: none; width: 67%; order: 2; }
  body.t-family .problem__cap { left: 14px; right: 14px; bottom: 24px; font-size: 13px; text-align: center; }
  body.t-family .problem__text { order: 1; text-align: center; padding-top: 0; flex: none; }
  body.t-family .problem__title { font-family: var(--chap-m); font-size: 32px; }
  body.t-family .problem__p { font-size: 16px; margin-top: 34px; }
  body.t-family .problem__p + .problem__p { margin-top: 26px; }

  body.t-family .steps { padding: 60px 20px 90px; }
  body.t-family .steps__title { font-family: var(--chap-m); font-size: 32px; letter-spacing: -0.02em; }
  body.t-family .steps__sub { font-size: 17px; }
  body.t-family .steps__row { flex-direction: column; gap: 60px; margin-top: 70px; }
  body.t-family .step__title { margin-top: 34px; }
  body.t-family .step__desc { font-size: 15px; max-width: 280px; }

  body.t-family .stats__inner {
    min-height: 900px; flex-direction: column; align-items: center;
    justify-content: space-between; padding: 54px 20px 60px;
  }
  body.t-family .stats__form { display: none; }
  body.t-family .stats__right { flex: 1 1 auto; width: 100%; align-self: stretch; gap: 0; justify-content: space-between; }
  body.t-family .stats__line { order: 1; text-align: center; font-size: 32px; }
  body.t-family .stats__line b { font-size: 48px; }
  body.t-family .stats__chart { order: 2; width: 72%; margin: auto auto 0; }

  body.t-family .expect { padding: 70px 20px 90px; }
  body.t-family .expect__title { font-family: var(--chap-m); font-size: 32px; }
  body.t-family .expect__title i { font-family: var(--chap-bi); }
  body.t-family .expect__row { margin-top: 55px; gap: 45px; }
  body.t-family .expect__card { width: 90%; flex: none; }
  body.t-family .expect__big { font-size: 56px; }
  body.t-family .expect__big b { font-size: 30px; }
  body.t-family .expect__txt { font-size: 18px; margin-top: 16px; }

  body.t-family .compare__inner { padding-top: 70px; }
  body.t-family .compare__title { font-size: 32px; margin-bottom: 40px; }
  body.t-family .compare__logo { width: 150px; }
  body.t-family .compare__cell .compare__other { font-size: 20px; }
  body.t-family .compare__cell { flex-direction: column; align-items: center; text-align: center; padding: 22px 14px; gap: 0; }
  body.t-family .compare__cell--us { text-align: center; }
  body.t-family .compare__cell--them { text-align: center; }
  body.t-family .compare__cell--us .compare__ico { order: -1; }
  body.t-family .compare__ico { flex-basis: 50px; width: 50px; height: 50px; margin-bottom: 34px; }
  body.t-family .compare__cell p { font-size: 15px; line-height: 1.5em; }
  body.t-family .compare__form { margin-top: 40px; }

  body.t-family .family__inner { padding-top: 70px; padding-bottom: 90px; }
  body.t-family .family__title { font-family: var(--chap-m); font-size: 32px; }
  body.t-family .family__title i { font-family: var(--chap-bi); }
  body.t-family .family__sub { font-size: 18px; line-height: 1.15em; margin-bottom: 90px; }
  body.t-family .family__list { max-width: 100%; margin: 0; gap: 42px; }
  body.t-family .family__item { flex-direction: column; align-items: flex-start; gap: 12px; }
  body.t-family .family__toggle { order: -1; flex: 0 0 auto; width: 76px; height: 42px; }
  body.t-family .family__itext h3 { font-size: 28px; }
  body.t-family .family__itext p { font-size: 18px; line-height: 1.1em; }

  body.t-family .faq { padding: 55px 20px 60px; }
  body.t-family .faq__backdrop { width: 1100px; top: -140px; height: calc(100% + 240px); }
  body.t-family .faq__title { font-size: 32px; }
  body.t-family .acc__q { padding: 20px 24px; min-height: 60px; }
  body.t-family .acc__chev { width: 34px; height: 20px; flex: 0 0 34px; }
  body.t-family .acc__a p { padding: 0 24px 20px; font-size: 16px; }

  body.t-family .cta__inner { padding-top: 170px; padding-bottom: 130px; padding-left: 20px; }
  body.t-family .cta__title { font-size: 42px; color: var(--accent); }

  body.t-family .eu { padding: 40px 20px; }
  body.t-family .eu__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  body.t-family .eu__logo { order: 2; margin: 0 auto; }
  body.t-family .eu__text { order: 1; }

  body.t-family .footer__logo { width: 144px; }
  body.t-family .footer__nav {
    flex-direction: row; align-items: center; justify-content: center;
    gap: 28px; height: 54px; min-height: 54px; padding: 0 20px;
  }
}
