/* ============================================================
   Screen Time Trainer — "Sleep" page theme (/sleep/)
   Loaded after site.css. All rules scoped under body.t-sleep.
   Display type: "Chapman Test" serif family, sentence case.
   Accent: #1612d3 on cream #eeebe0.
   ============================================================ */

body.t-sleep {
  --ch-med: "Chapman Test Medium", Georgia, serif;
  --ch-bold: "Chapman Test Bold", Georgia, serif;
  --ch-black: "Chapman Test Black", Georgia, serif;
  --ch-bki: "Chapman Test Black Italic", Georgia, serif;
  --ch-bdi: "Chapman Test Bold Italic", Georgia, serif;
  background: var(--cream);
}

/* ---------- decorative ampersand ---------- */
.t-sleep .amp { position: absolute; pointer-events: none; }

/* faster entrance animations on this page (long photo-heavy layout) */
@media (prefers-reduced-motion: no-preference) {
  .t-sleep .fx { transition-duration: 0.4s, 0.4s, 0.4s; }
}

/* ---------- Hero ---------- */
.t-sleep .hero__shade { background: linear-gradient(232deg, rgba(255,255,255,0) 46%, rgb(0,0,0) 75%); }
.t-sleep .hero__inner { padding-top: 119px; padding-bottom: 119px; }
.t-sleep .hero__content { max-width: 50%; gap: 0; color: #fff; }
.t-sleep .hero__title { font-family: var(--ch-bold); font-weight: 700; font-size: 60px; line-height: 0.95em; letter-spacing: 0; position: relative; }
.t-sleep .amp--hero { width: 1.55em; height: 1.47em; left: 4.6em; top: 2.15em; }
.t-sleep .hero__sub { font-family: var(--f-mont); font-weight: 500; font-size: 19px; line-height: 1.35em; max-width: 575px; margin-top: 68px; }
.t-sleep .hero .wl-form { margin-top: 96px; }
.t-sleep .hero .wl-form__note { padding-left: 12px; }

/* ---------- Problem ---------- */
.t-sleep .problem { position: relative; z-index: 2; overflow-x: clip; }
.t-sleep .problem__backdrop { top: 0; left: 53%; transform: translateX(-50%); width: 1104px; height: calc(100% + 15px); object-fit: fill; }
.t-sleep .problem__inner { padding-top: 0; padding-bottom: 100px; padding-left: 20px; align-items: center; gap: 50px; }
.t-sleep .problem__photo { flex: 0 0 575px; }
.t-sleep .problem__text { flex: 0 1 470px; min-height: 0; gap: 26px; color: var(--accent); padding-top: 65px; }
.t-sleep .problem__title { font-family: var(--ch-bold); font-weight: 700; font-size: 58px; line-height: 0.95em; letter-spacing: -0.02em; }
.t-sleep .problem__title i { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .problem__p { font-family: var(--f-mont); font-weight: 600; font-size: 18px; line-height: 1.35em; letter-spacing: -0.02em; max-width: 400px; }

/* ---------- 4 steps ---------- */
.t-sleep .steps { position: relative; z-index: 1; background: transparent; padding: 15px 20px 0; overflow-x: clip; }
.t-sleep .steps__blob { position: absolute; max-width: none; z-index: 0; pointer-events: none; }
.t-sleep .steps__blob--right { width: 1168px; right: -370px; top: -140px; }
.t-sleep .steps__blob--left { width: 750px; left: -80px; top: 260px; }
.t-sleep .steps__head { position: relative; z-index: 1; max-width: 820px; margin-bottom: 0; gap: 36px; }
.t-sleep .steps__title { font-family: var(--ch-bold); font-weight: 700; font-size: 58px; line-height: 1em; letter-spacing: -0.04em; color: var(--accent); }
.t-sleep .steps__title i { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .steps__sub { font-family: var(--f-mont); font-weight: 600; font-size: 18px; line-height: 1.5em; letter-spacing: -0.02em; color: var(--accent); max-width: 740px; margin: 0 auto; }
.t-sleep .steps__row { position: relative; z-index: 1; margin-top: 50px; }
.t-sleep .steps__row::before { display: none; }
.t-sleep .step__icon { width: 68px; height: 68px; }
.t-sleep .step__title { font-family: var(--ch-bold); font-weight: 700; font-size: 30px; line-height: 0.95em; letter-spacing: -0.05em; color: var(--accent); margin-top: 40px; }
.t-sleep .step__title i { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .step__title b { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .step__desc { font-family: var(--f-mont); font-weight: 600; font-size: 15px; line-height: 1.15em; color: var(--accent); margin-top: 22px; max-width: 260px; }

/* ---------- Stats band ---------- */
.t-sleep .stats { margin-top: 250px; overflow: hidden; }
.t-sleep .stats__bg img { object-position: left center; }
.t-sleep .stats__paper { position: absolute; top: 0; right: 0; width: 896px; height: 100%; object-fit: fill; max-width: none; z-index: 1; }
.t-sleep .stats__inner { min-height: 0; align-items: stretch; justify-content: space-between; gap: 60px; padding-top: 68px; padding-bottom: 70px; padding-left: 50px; padding-right: 50px; }
.t-sleep .stats__form { align-self: flex-end; padding-bottom: 0; }
.t-sleep .stats__right { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; flex: 0 1 560px; }
.t-sleep .stats__line { flex: none; align-self: auto; margin-top: 0; font-family: var(--ch-bold); font-weight: 700; font-size: 42px; line-height: 1.15em; letter-spacing: -0.02em; color: var(--cream); }
.t-sleep .stats__line b { font-family: var(--ch-bold); font-weight: 700; font-size: 70px; line-height: 1em; }
.t-sleep .stats__line mark { background: none; }
.t-sleep .stats__chart { width: 240px; height: auto; align-self: flex-end; }

/* ---------- What to expect ---------- */
.t-sleep .expect { background: transparent; padding: 88px 20px 120px; }
.t-sleep .expect__title { font-family: var(--ch-bki); font-style: italic; font-weight: 900; font-size: 60px; line-height: 0.9em; color: var(--accent); }
.t-sleep .expect__title span { font-family: var(--ch-bold); font-style: normal; font-weight: 700; font-size: 48px; }
.t-sleep .expect__arrow { display: none; }
.t-sleep .expect__row { margin-top: 90px; max-width: 1160px; }
.t-sleep .expect__card { border-radius: 45px; overflow: hidden; }
.t-sleep .expect__card img { border-radius: inherit; }
.t-sleep .expect__lab { position: absolute; top: 34px; left: 0; right: 0; text-align: center; color: #fff; line-height: 0.85em; }
.t-sleep .expect__lab i { font-family: var(--ch-bdi); font-style: italic; font-weight: 700; font-size: 64px; line-height: 0.9em; text-transform: lowercase; }
.t-sleep .expect__lab b { font-family: var(--f-mont); font-weight: 700; font-size: 42px; line-height: 1.35em; letter-spacing: 0; }
.t-sleep .expect__cap { color: #fff; font-family: var(--f-mont); font-weight: 700; font-size: 18px; line-height: 1.15em; }
.t-sleep .expect__card--c1 .expect__cap, .t-sleep .expect__card--c2 .expect__cap, .t-sleep .expect__card--c3 .expect__cap { bottom: 76px; top: auto; text-align: center; }

/* ---------- Comparison ---------- */
.t-sleep .compare__inner { padding-top: 90px; padding-bottom: 60px; }
.t-sleep .compare__title { font-family: var(--ch-med); font-weight: 500; font-size: 60px; line-height: 0.9em; letter-spacing: -0.05em; margin-bottom: 40px; }
.t-sleep .compare__title i { font-family: var(--ch-bdi); font-style: italic; font-weight: 700; }
.t-sleep .compare__grid::before { background: rgba(255,255,255,0.6); }
.t-sleep .compare__cell { padding: 22px 40px; }
.t-sleep .compare__cell p { font-family: var(--f-mont); font-weight: 600; font-size: 18px; line-height: 1.6em; max-width: 440px; }
.t-sleep .compare__logos .compare__cell { padding-top: 10px; padding-bottom: 24px; }
.t-sleep .compare__form { margin-top: 24px; }
.t-sleep p.compare__other { font-family: var(--f-mont); font-weight: 500; font-size: 40px; line-height: 1.05em; letter-spacing: 0; color: var(--cream); max-width: none; }
.t-sleep .compare__logo { width: 280px; }

/* ---------- Who is it for ---------- */
.t-sleep .family { background: transparent; overflow: visible; }
.t-sleep .family__inner { padding-top: 100px; padding-bottom: 0; color: var(--accent); }
.t-sleep .family__title { font-family: var(--ch-bold); font-weight: 700; font-size: 60px; line-height: 0.9em; color: var(--accent); }
.t-sleep .family__title i { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .family__sub { font-family: var(--f-mont); font-weight: 700; font-size: 22px; line-height: 1.25em; color: var(--accent); max-width: 820px; margin: 24px auto 70px; }
.t-sleep .family__cols { display: flex; align-items: center; gap: 65px; }
.t-sleep .family__photo { flex: 0 0 455px; }
.t-sleep .family__photo img { width: 455px; height: 455px; border-radius: 50%; object-fit: cover; }
.t-sleep .family__list { flex: 1; max-width: none; margin-left: 0; gap: 44px; }
.t-sleep .family__item { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 30px; }
.t-sleep .family__itext h3 { font-family: var(--f-mont); font-weight: 700; font-size: 34px; line-height: 0.9em; letter-spacing: -0.05em; color: var(--accent); margin-bottom: 8px; }
.t-sleep .family__itext p { font-family: var(--f-mont); font-weight: 600; font-size: 15px; line-height: 1.15em; color: var(--accent); }
.t-sleep .family__toggle { flex: 0 0 76px; height: 42px; }

/* wave transition (blue speck + quote + torn paper into FAQ) */
.t-sleep .wave { position: relative; height: 530px; margin-top: -60px; overflow: hidden; }
.t-sleep .wave__speck { position: absolute; left: 50%; transform: translateX(-50%); top: -40px; width: 2360px; max-width: none; }
.t-sleep .wave__quote { position: absolute; left: 10%; top: 150px; width: 483px; }
.t-sleep .wave__tear { position: absolute; left: 50%; transform: translateX(-50%); bottom: -560px; width: 100vw; min-width: 1200px; max-width: none; }

/* ---------- FAQ ---------- */
.t-sleep .faq { padding: 10px 20px 90px; overflow: visible; }
.t-sleep .faq__backdrop { display: none; }
.t-sleep .faq__stamp { display: none; }
.t-sleep .faq__title { font-family: var(--ch-bold); font-weight: 700; font-size: 60px; line-height: 1.05em; color: var(--accent); margin-bottom: 20px; white-space: nowrap; }
.t-sleep .faq__title i { font-family: var(--ch-bki); font-style: italic; font-weight: 900; }
.t-sleep .br-ph { display: none; }
.t-sleep .acc { border: 2px solid var(--accent); border-radius: 35px; background: #fff; }
.t-sleep .acc__q span { font-family: var(--f-mont); font-weight: 700; font-size: 17px; color: var(--accent); }
.t-sleep .acc__chev { width: 23.5px; height: auto; flex: 0 0 23.5px; }
.t-sleep .acc__a p { font-family: var(--f-mont); font-weight: 500; font-size: 18px; line-height: 1.5em; color: var(--accent); }

/* ---------- Final CTA ---------- */
.t-sleep .cta__bg img { object-position: center; }
.t-sleep .cta__inner { padding-top: 120px; padding-bottom: 120px; gap: 60px; }
.t-sleep .cta__title { font-family: var(--ch-bold); font-weight: 700; font-size: 72px; line-height: 1.05em; margin-left: 50%; position: relative; }
.t-sleep .cta__title b { font-family: var(--ch-black); font-weight: 900; }
.t-sleep .amp--cta { width: 2.4em; height: 2.28em; left: 5.9em; top: 1.05em; }
.t-sleep .cta .wl-form { margin-left: 51.5%; align-items: flex-start; }
.t-sleep .cta .wl-form__note { align-self: center; }

/* ---------- EU strip ---------- */
.t-sleep .eu { background: transparent; padding: 47px 20px; }
.t-sleep .eu__inner { max-width: 900px; }
.t-sleep .eu__logo--desktop { display: none; }
.t-sleep .eu__logo--small { display: block; width: 263.5px; flex: 0 0 263.5px; }

/* ---------- Footer nav (Sleep active) ---------- */
.t-sleep .footer__nav a { color: rgb(174,179,181); }
.t-sleep .footer__nav a[aria-current] { color: #fff; }
.t-sleep .footer__nav a:hover { color: #fff; }

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

  .t-sleep .problem__inner { gap: 40px; }
  .t-sleep .problem__photo { flex: 0 0 392px; }
  .t-sleep .problem__title { font-size: 42px; }
  .t-sleep .problem__backdrop { width: 92%; }

  .t-sleep .steps__title { width: auto; font-size: 42px; }
  .t-sleep .steps__head { max-width: 640px; }
  .t-sleep .steps__row { flex-wrap: wrap; row-gap: 56px; margin-top: 56px; }
  .t-sleep .step { flex: 0 0 calc(50% - 10px); }
  .t-sleep .steps__blob--right { width: 700px; right: -260px; top: -110px; }
  .t-sleep .steps__blob--left { width: 540px; left: -80px; top: 260px; }

  .t-sleep .stats { margin-top: 120px; }
  .t-sleep .stats__paper { width: 62%; }
  .t-sleep .stats__inner { padding-left: 20px; padding-right: 20px; gap: 30px; }
  .t-sleep .stats__line { font-size: 42px; }
  .t-sleep .stats__line b { font-size: 58px; }
  .t-sleep .stats__right { flex: 0 1 400px; gap: 110px; }
  .t-sleep .stats__chart { width: 175px; }

  .t-sleep .expect__title { font-size: 42px; }
  .t-sleep .expect__title span { font-size: 34px; }
  .t-sleep .expect__row { margin-top: 70px; gap: 16px; }
  .t-sleep .expect__lab { top: 24px; }
  .t-sleep .expect__lab i { font-size: 42px; }
  .t-sleep .expect__lab b { font-size: 28px; }
  .t-sleep .expect__cap { font-size: 14px; }
  .t-sleep .expect__card--c1 .expect__cap, .t-sleep .expect__card--c2 .expect__cap, .t-sleep .expect__card--c3 .expect__cap { bottom: 48px; }

  .t-sleep .compare__title { font-size: 42px; }
  .t-sleep .compare__cell { flex-direction: column; justify-content: flex-start; text-align: center; gap: 28px; padding: 30px 26px; }
  .t-sleep .compare__cell--us { flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
  .t-sleep .compare__cell p { font-size: 18px; line-height: 1.6em; }
  .t-sleep .compare__logos .compare__cell--us { flex-direction: column; }
  .t-sleep .compare__logo { width: 285px; }
  .t-sleep p.compare__other { font-size: 34px; }

  .t-sleep .family__inner { padding-top: 60px; }
  .t-sleep .family__title { font-size: 42px; }
  .t-sleep .family__sub { font-size: 18px; max-width: 640px; margin-bottom: 70px; }
  .t-sleep .family__cols { gap: 50px; align-items: center; }
  .t-sleep .family__photo { flex: 0 0 300px; }
  .t-sleep .family__photo img { width: 300px; height: 300px; }
  .t-sleep .family__list { gap: 36px; }
  .t-sleep .family__item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .t-sleep .family__toggle { flex: 0 0 auto; width: 62px; height: 33px; }
  .t-sleep .family__itext h3 { font-size: 30px; }

  .t-sleep .wave { height: 420px; margin-top: -20px; }
  .t-sleep .wave__speck { width: 1600px; top: -20px; }
  .t-sleep .wave__quote { left: 10%; top: 110px; width: 384px; }
  .t-sleep .wave__tear { width: 110vw; min-width: 900px; bottom: -400px; }

  .t-sleep .faq__title { font-size: 42px; }

  .t-sleep .cta__title { font-size: 52px; margin-left: 47%; }
  .t-sleep .cta .wl-form { margin-left: 49%; }
  .t-sleep .cta__inner { padding-top: 100px; padding-bottom: 100px; }

}

/* ============================================================
   Phone: <= 809.98
   ============================================================ */
@media (max-width: 809.98px) {
  .t-sleep .hero__inner { padding-top: 110px; padding-bottom: 110px; }
  .t-sleep .hero__content { max-width: 100%; }
  .t-sleep .hero__shade { background: linear-gradient(286deg, rgba(255,255,255,0) 46%, rgba(0,0,0,0.43) 89%); }
  .t-sleep .hero__title { font-size: 42px; }
  .t-sleep .hero__sub { font-size: 17px; margin-top: 50px; }
  .t-sleep .hero .wl-form { margin-top: 60px; }

  .t-sleep .problem__inner { padding-left: 20px; padding-bottom: 31px; gap: 36px; }
  .t-sleep .problem__backdrop { display: none; }
  .t-sleep .problem__text { text-align: center; padding-top: 10px; align-items: center; }
  .t-sleep .problem__title { font-size: 32px; }
  .t-sleep .problem__p { font-size: 17px; }
  .t-sleep .problem__photo { width: 100%; flex: none; }

  .t-sleep .steps { padding-bottom: 0; }
  .t-sleep .steps__title { font-size: 32px; }
  .t-sleep .steps__sub { font-size: 16px; }
  .t-sleep .steps__row { gap: 52px; margin-top: 48px; }
  .t-sleep .steps__blob--right { display: none; }
  .t-sleep .steps__blob--left { width: 480px; left: -160px; top: 500px; }
  .t-sleep .step__desc { font-size: 15px; max-width: 300px; }

  .t-sleep .stats { margin-top: 40px; }
  .t-sleep .stats__bg { display: none; }
  .t-sleep .stats__paper { width: 100%; left: 0; right: 0; height: 100%; object-fit: cover; }
  .t-sleep .stats__inner { flex-direction: column; align-items: center; padding: 54px 20px 60px; gap: 40px; }
  .t-sleep .stats__form { display: none; }
  .t-sleep .stats__right { flex: none; align-items: center; gap: 44px; width: 100%; }
  .t-sleep .stats__line { order: 0; font-family: var(--ch-black); font-weight: 900; font-size: 34px; text-align: center; }
  .t-sleep .stats__line b { font-size: 48px; }
  .t-sleep .stats__chart { width: 230px; align-self: center; }

  .t-sleep .expect { padding: 43px 20px 56px; }
  .t-sleep .expect__title { font-size: 32px; }
  .t-sleep .expect__title span { font-size: 26px; }
  .t-sleep .expect__row { margin-top: 56px; gap: 24px; }
  .t-sleep .expect__card { width: 100%; }
  .t-sleep .expect__lab { top: 40px; }
  .t-sleep .expect__lab i { font-size: 42px; }
  .t-sleep .expect__lab b { font-size: 32px; }
  .t-sleep .expect__cap { font-size: 16px; }
  .t-sleep .expect__card--c1 .expect__cap, .t-sleep .expect__card--c2 .expect__cap, .t-sleep .expect__card--c3 .expect__cap { bottom: 60px; }

  .t-sleep .compare__inner { padding-top: 70px; }
  .t-sleep .compare__title { font-size: 32px; line-height: 1em; }
  .t-sleep .compare__grid::before { display: none; }
  .t-sleep .compare__cell { flex-direction: column; justify-content: flex-start; text-align: center; gap: 24px; padding: 24px 14px; }
  .t-sleep .compare__cell--us { flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
  .t-sleep .compare__cell p { font-size: 14px; line-height: 1.6em; }
  .t-sleep .compare__ico { flex-basis: 50px; width: 50px; height: 50px; }
  .t-sleep .compare__logos .compare__cell--us { flex-direction: column; }
  .t-sleep .compare__logo { width: 155px; }
  .t-sleep p.compare__other { font-size: 20px; }

  .t-sleep .family__inner { padding-top: 62px; }
  .t-sleep .family__title { font-size: 42px; }
  .t-sleep .family__sub { font-size: 18px; margin-bottom: 44px; }
  .t-sleep .family__cols { flex-direction: column; align-items: stretch; gap: 44px; }
  .t-sleep .family__photo { flex: none; align-self: center; }
  .t-sleep .family__photo img { width: 350px; height: 350px; }
  .t-sleep .family__list { gap: 40px; }
  .t-sleep .family__item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .t-sleep .family__toggle { flex: 0 0 auto; width: 56px; height: 30px; }
  .t-sleep .family__itext h3 { font-size: 30px; }
  .t-sleep .family__itext p { font-size: 16px; }

  .t-sleep .wave { height: 440px; margin-top: -30px; }
  .t-sleep .wave__speck { width: 1100px; top: -10px; }
  .t-sleep .wave__quote { left: 6%; top: 150px; width: 325px; }
  .t-sleep .wave__tear { width: 150vw; min-width: 580px; bottom: -260px; }

  .t-sleep .faq { padding: 10px 20px 60px; }
  .t-sleep .faq__title { font-size: 36px; white-space: normal; }
  .t-sleep .br-ph { display: inline; }
  .t-sleep .acc__q span { font-size: 16px; }

  .t-sleep .cta__inner { padding-top: 84px; padding-bottom: 76px; gap: 56px; }
  .t-sleep .cta__title { font-size: 42px; margin-left: 0; }
  .t-sleep .amp--cta { width: 1.6em; height: 1.52em; left: 5.7em; top: 1.35em; }
  .t-sleep .cta .wl-form { margin-left: 0; }

  .t-sleep .eu__inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .t-sleep .eu__logo--small { flex: none; order: 2; }
  .t-sleep .eu__text { order: 1; }

  .t-sleep .footer__nav { flex-direction: row; align-items: center; justify-content: center; gap: 28px; padding: 12px 20px; min-height: 64px; }
}
