/* 17 Nov (Joey's final copy, Sudhakar: improve the current site): the hero now carries the supporting line, two buttons
   ("Know your biological age" opens the register sheet; "View the Horizon Assessment" keeps its old link and its phone
   sticky-bar copy) and a four-fact strip along the foot, with an info tooltip on My Health. The older description
   (.hero-foot) stays hidden. Loaded after site-audit-1104.css, so these rules win without extra weight where possible. */

/* ---------- copy block ---------- */
html body:not(.yl-detail-page) #top .hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
html body:not(.yl-detail-page) #top #hero-h { max-width: 13em; text-wrap: balance; }
#top .hero-sub {
  max-width: 34em; margin: 24px auto 0; text-wrap: balance;
  font: 400 19px/1.5 var(--f-text); letter-spacing: -.003em; color: rgba(233, 228, 218, .86);
}
#top .hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* both buttons share one size; primary = gold, secondary = the existing light button, now in the row */
#top .hero-ctas :is(.hero-cta-primary, .hero-assess) {
  position: static !important; transform: none !important; inset: auto !important; opacity: 1 !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 56px; padding: 0 26px; border-radius: var(--site-small-radius, 32px); corner-shape: var(--site-corner-shape, round);
  font: 500 17px/1.2 var(--f-text); letter-spacing: -.005em; text-decoration: none; cursor: pointer; border: 0;
  box-shadow: 0 10px 30px rgba(14, 14, 15, .18); transition: background-color .2s cubic-bezier(.4, 0, .2, 1);
}
#top .hero-cta-primary { background: var(--gold, #e7c089); color: var(--void, #0e0e0f); }
#top .hero-ctas .hero-assess { background: rgba(233, 228, 218, .14); color: var(--star, #f4f2ed); box-shadow: inset 0 0 0 1px rgba(233, 228, 218, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#top .hero-ctas .hero-assess svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  #top .hero-cta-primary:hover { background: rgb(237, 208, 169); }
  #top .hero-ctas .hero-assess:hover { background: rgba(233, 228, 218, .24); }
}
#top .hero-ctas :is(.hero-cta-primary, .hero-assess):focus-visible { outline: 2px solid var(--gold, #e7c089); outline-offset: 3px; }

/* ---------- fact strip ---------- */
#top .hero-facts {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 var(--site-gutter, 40px);
  list-style: none; display: flex; justify-content: center; align-items: stretch;
  border-top: 1px solid rgba(233, 228, 218, .18);
  background: linear-gradient(to top, rgba(14, 14, 15, .42), rgba(14, 14, 15, 0));
  opacity: var(--home-copy-opacity, 1);
}
#top .hero-facts li {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 22px 32px;
  font: 400 15px/1.3 var(--f-text); letter-spacing: 0; color: rgba(233, 228, 218, .86);
}
#top .hero-facts li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; translate: 0 -50%; background: rgba(233, 228, 218, .28);
}

/* My Health tooltip */
#top .hero-tip-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px -6px -6px 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--gold, #e7c089); cursor: pointer;
}
#top .hero-tip-btn svg { width: 18px; height: 18px; }
#top .hero-tip-btn:focus-visible { outline: 2px solid var(--gold, #e7c089); outline-offset: 1px; }
#top .hero-tip {
  position: absolute; z-index: 2; right: 12px; bottom: calc(100% - 4px); width: 300px; padding: 14px 16px;
  border-radius: 14px; background: var(--star, #f4f2ed); color: var(--void, #0e0e0f);
  font: 400 14px/1.45 var(--f-text); text-align: left; box-shadow: 0 14px 40px rgba(14, 14, 15, .28);
  opacity: 0; visibility: hidden; translate: 0 6px; pointer-events: none;
  transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s;
}
#top .hero-fact-mh:is(:hover, :focus-within, .tip-open) .hero-tip { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { #top .hero-tip { transition: none; } }

/* ---------- desktop: copy centred above the strip ---------- */
@media (min-width: 768px) {
  html body:not(.yl-detail-page) #top .hero-inner { justify-content: center !important; padding-top: 64px !important; padding-bottom: 72px !important; }
}

/* ---------- phones: title, line, buttons stacked; facts as a 2 x 2 grid ---------- */
@media (max-width: 767px) {
  html body:not(.yl-detail-page) #top .hero-inner { justify-content: flex-end !important; padding-bottom: 148px !important; }
  html body:not(.yl-detail-page) #top #hero-h { font-size: min(42px, 9.1vw) !important; max-width: none; }
  #top .hero-sub { margin-top: 16px; font-size: 16px; line-height: 1.45; max-width: 26em; }
  #top .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 10px; margin-top: 24px; }
  #top .hero-ctas :is(.hero-cta-primary, .hero-assess) { min-height: 50px; font-size: 16px; padding: 0 20px; }
  #top .hero-facts { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px; padding-bottom: env(safe-area-inset-bottom); }
  #top .hero-facts li { padding: 14px 8px; font-size: 13px; justify-content: center; text-align: center; }
  #top .hero-facts li + li::before { display: none; }
  #top .hero-facts li:nth-child(even)::after { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; translate: 0 -50%; background: rgba(233, 228, 218, .28); }
  #top .hero-facts li:nth-child(n+3) { border-top: 1px solid rgba(233, 228, 218, .14); }
  #top .hero-tip { right: 0; width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 374px) {
  #top .hero-facts li { font-size: 12px; padding-inline: 4px; }
}

/* keep "& ageing" together, so the title breaks as "A place where time / & ageing slows down." */
#top #hero-h .hero-nb { white-space: nowrap; }
@media (max-width: 374px) {
  #top .hero-ctas :is(.hero-cta-primary, .hero-assess) { font-size: 15px; padding: 0 14px; gap: 8px; }
  #top .hero-ctas .hero-assess svg { width: 20px; height: 20px; }
}

/* ---------- 17 Nov: phone fact strip, three review layouts (?hf=1|2|3; default 1). Desktop unchanged. ---------- */
@media (max-width: 767px) {
  html[data-hf] #top .hero-facts li::after, html[data-hf] #top .hero-facts li::before { display: none !important; content: none !important; }
  html[data-hf] #top .hero-facts li { border-top: 0 !important; }

  /* 1 Aligned grid: 2 x 2, every fact left-aligned under a short gold rule, cells the same height */
  html[data-hf="1"] body:not(.yl-detail-page) #top .hero-inner { padding-bottom: 156px !important; }
  html[data-hf="1"] #top .hero-facts { grid-template-columns: 1fr 1fr; column-gap: 20px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); row-gap: 18px; }
  html[data-hf="1"] #top .hero-facts li { display: block; padding: 12px 0 0 !important; text-align: left; font-size: 13px; line-height: 1.35; color: rgba(233, 228, 218, .9); }
  html[data-hf="1"] #top .hero-facts li::before { display: block !important; content: "" !important; position: absolute; left: 0; top: 0; width: 20px; height: 1px; translate: none; background: var(--gold, #e7c089); }
  html[data-hf="1"] #top .hero-tip-btn { vertical-align: middle; margin: -6px 0 -6px -2px; width: 24px; height: 24px; }
  html[data-hf="1"] #top .hero-tip-btn svg { width: 16px; height: 16px; }

  /* 2 One line: the four facts take turns in one centred line, with four small progress marks */
  html[data-hf="2"] body:not(.yl-detail-page) #top .hero-inner { padding-bottom: 96px !important; }
  html[data-hf="2"] #top .hero-facts { display: block; height: calc(64px + env(safe-area-inset-bottom)); padding: 0; }
  html[data-hf="2"] #top .hero-facts li { position: absolute; inset: 0 0 auto; height: 52px; justify-content: center; padding: 0 16px !important; font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
  html[data-hf="2"] #top .hero-facts li.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
  html[data-hf="2"] #top .hero-facts .hf-marks { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 6px; }
  html[data-hf="2"] #top .hero-facts .hf-marks i { width: 14px; height: 2px; border-radius: 1px; background: rgba(233, 228, 218, .28); transition: background .3s ease; }
  html[data-hf="2"] #top .hero-facts .hf-marks i.is-on { background: var(--gold, #e7c089); }
  html[data-hf="2"] #top .hero-tip { position: fixed; left: 16px; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; }

}

/* 3 Swipe row (picked 17 Nov; Shali: same on web, one line, no wrapping): one line of facts, each after a gold dot,
   drifting slowly to the left in a seamless loop (hero-facts marquee script) and swipeable; fades at both edges.
   All widths. */
html[data-hf="3"] #top .hero-facts { display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 0 env(safe-area-inset-bottom); gap: 0; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
html[data-hf="3"] #top .hero-facts::-webkit-scrollbar { display: none; }
html[data-hf="3"] #top .hero-facts li { flex: none; white-space: nowrap; padding: 22px 24px 22px 44px; font-size: 15px; border-top: 0; }
html[data-hf="3"] #top .hero-facts li::after { content: none; }
html[data-hf="3"] #top .hero-facts li::before { display: block; content: ""; position: absolute; left: 24px; top: 50%; width: 4px; height: 4px; border-radius: 50%; translate: 0 -50%; background: var(--gold, #e7c089); }
@media (max-width: 767px) {
  html[data-hf="3"] body:not(.yl-detail-page) #top .hero-inner { padding-bottom: 92px !important; }
  html[data-hf="3"] #top .hero-facts { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
  html[data-hf="3"] #top .hero-facts li { padding: 18px 14px 18px 30px !important; font-size: 14px; }
  html[data-hf="3"] #top .hero-facts li::before { display: block !important; content: "" !important; left: 14px; }
}

/* marquee copies show only in the swipe-row layout */
#top .hero-facts .hf-clone { display: none; }
html[data-hf="3"] #top .hero-facts .hf-clone { display: flex; }

/* the strip's edge fade (mask) hides anything inside it, so in the swipe row the tooltip is a copy placed just above the strip */
#top .hero-tip-phone { display: none; }
html[data-hf="3"] #top .hero-facts .hero-tip { display: none; }
html[data-hf="3"] #top .hero-tip-phone { display: block; position: absolute; z-index: 7; left: calc(50% - 170px); right: auto; width: 340px; bottom: 70px; }
html[data-hf="3"] #top.mh-tip-open .hero-tip-phone { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s ease, visibility 0s; }
@media (max-width: 767px) {
  html[data-hf="3"] #top .hero-tip-phone { left: 16px; right: 16px; width: auto; bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* 17 Nov (Shali: "in web no loop, no scroll"): from 768 px the four facts sit still in one centred line; the moving
   loop is phones only. The tooltip opens from its own fact again (no edge fade to hide it). */
@media (min-width: 768px) {
  html[data-hf="3"] #top .hero-facts { justify-content: center; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  html[data-hf="3"] #top .hero-facts .hf-clone { display: none !important; }
  html[data-hf="3"] #top .hero-facts li:first-child { padding-left: 44px; }
  html[data-hf="3"] #top .hero-tip-phone { display: none !important; }
  html[data-hf="3"] #top .hero-facts .hero-tip { display: block; }
}
/* tablets and small laptops: the four facts do not fit in one line, so they wrap to two centred lines (still static) */
@media (min-width: 768px) and (max-width: 1099px) {
  html[data-hf="3"] #top .hero-facts { flex-wrap: wrap; padding-block: 6px; }
  html[data-hf="3"] #top .hero-facts li { padding-block: 10px !important; }
}
/* tooltip text: its own wrapping, case and type (it sat inside the one-line capitals strip) */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #top :is(.hero-tip, .hero-tip-phone) {
  white-space: normal !important; text-transform: none !important; font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13px !important; font-weight: 400 !important; line-height: 1.55 !important; letter-spacing: 0 !important; font-size-adjust: none !important;
}
