/* Testosil micro-site styles. Shared by index.html and all other pages. */

:root {
  --ink: #1c2731;
  --muted: #556570;
  --mist: #f2f5f6;
  --line: #dbe2e6;
  --line-strong: #c6d1d7;
  --teal: #1b6b63;
  --teal-hover: #155650;
  --teal-dark: #123f3b;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 8.5vw, 3.9rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.4rem); }

p { margin: 0 0 1.1em; max-width: 38rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.band { padding: 4rem 0; }
.band--mist { background: var(--mist); }

@media (min-width: 720px) {
  .band { padding: 5.25rem 0; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* Affiliate disclosure bar */
.disclosure {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.disclosure p { max-width: none; }
.disclosure strong { color: var(--ink); font-weight: 600; }

/* Hero
   Mobile/tablet (under 900px): the portrait photo sits at the bottom of the
   hero and fades into white at the top, so the headline reads over a clean,
   pale area and the man appears below the text.
   Desktop (900px and up): the wide photo fills the hero, with the text on
   the left over a soft white gradient and the man on the right. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--white);
  padding-top: 3rem;
  padding-bottom: 90vw;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  background: url("images/home-hero-mobile.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
}
.hero .lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 1.4rem 0 2rem;
}

@media (min-width: 900px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 44vw, 46rem);
    padding-top: 6rem;
    padding-bottom: 6.5rem;
  }
  .hero::before {
    top: 0;
    aspect-ratio: auto;
    background-image: url("images/home-hero-desktop.webp");
    background-position: right top;
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 38%,
      rgba(255, 255, 255, 0) 60%);
  }
  .hero .wrap { max-width: 72rem; width: 100%; }
  .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
  .hero .lede { font-size: 1.2rem; margin-bottom: 2.2rem; }
}

.hero-copy { max-width: 38rem; }
@media (min-width: 900px) {
  .hero-copy { max-width: min(32rem, 50%); }
}

/* Buttons */
.cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: center;
  padding: 1rem 1.7rem;
  border-radius: 6px;
  margin-top: 1.6rem;
  transition: background-color 0.15s;
}
.cta:hover { background: var(--teal-hover); }
.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.hero .cta { margin-top: 0; }

.cta--light { background: var(--white); color: var(--teal-dark); }
.cta--light:hover { background: #e4efed; }
.cta--light:focus-visible { outline-color: var(--white); }

@media (max-width: 600px) {
  .cta { display: block; width: 100%; }
}

.fine {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.85rem;
}

/* Sound familiar list */
.familiar {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
}
.familiar li {
  position: relative;
  padding: 1.05rem 0 1.05rem 1.5rem;
  border-top: 1px solid var(--line-strong);
  font-size: 1.125rem;
  max-width: 38rem;
}
.familiar li:last-child { border-bottom: 1px solid var(--line-strong); }
.familiar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
}

/* Checkup callout */
.callout {
  border-left: 4px solid var(--teal);
  background: var(--mist);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0 0;
  max-width: 38rem;
}
.callout p { margin: 0; }
.band--mist .callout { background: var(--white); }

/* Content photos */
.photo { margin: 1.8rem 0 2rem; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--line);
}

/* Ingredients */
.ingredients { margin: 1.6rem 0 2rem; padding: 0; max-width: 38rem; }
.ingredients div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.ingredients div:last-child { border-bottom: 1px solid var(--line); }
.ingredients dt {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.ingredients dd { margin: 0.2rem 0 0; color: var(--muted); }

.subhead {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.2rem 0 0.5rem;
}

.legal {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  margin-top: 1.6rem;
}

/* Expectations */
.expect p strong { font-weight: 600; }
.habits {
  margin: 0 0 1.4em;
  padding-left: 1.25rem;
  max-width: 38rem;
}
.habits li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
.habits li::marker { color: var(--teal); }

/* Guarantee band */
.band--dark {
  background: var(--teal-dark);
  color: var(--white);
}
.band--dark h2 { color: var(--white); }
.band--dark p { color: #e3efed; }
.band--dark .fine { color: #b7d2ce; }
.band--dark strong { color: var(--white); }

/* FAQ */
.faq { margin-top: 1.8rem; max-width: 40rem; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.faq .answer { padding: 0 0 1.4rem; }
.faq .answer p { max-width: none; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
footer p { max-width: none; margin-bottom: 0.9em; }
footer nav ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }

/* Sub-pages (Contact, Affiliate Disclosure, Disclaimer, Privacy Policy) */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.site-name {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-name:hover { color: var(--teal); }
.site-name:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.page { padding: 3rem 0 4.5rem; }
@media (min-width: 720px) {
  .page { padding: 4.5rem 0 6rem; }
}
.page h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.35em;
}
.page .updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.page .intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.page h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 0.6rem;
}
.page ul {
  margin: 0 0 1.2em;
  padding-left: 1.25rem;
  max-width: 38rem;
}
.page li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.page li::marker { color: var(--teal); }
.page .note {
  border-left: 4px solid var(--teal);
  background: var(--mist);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  max-width: 38rem;
}
.page .note p { margin: 0; }
