/* site.css -- standalone structural layer for the static Rockstar Health site.
   Provides the page container, header, footer, hero, and shims for the few
   Horizon tokens that rockstar-glass.css references. All look-and-feel for the
   rh- components lives in rockstar-glass.css. */

:root{
  --gap: 24px;              /* Horizon tokens rockstar-glass.css expects */
  --md-radius: 14px;
  --padding-md: 20px;
  --padding-xl: 46px;
  --page-width: 1000px;   /* matches the header pill: one consistent lineup */
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{ margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
img{ max-width: 100%; height: auto; }
a{ color: rgb(var(--rh-accent-soft)); }
main{ flex: 1 0 auto; }

.page-width{ width: 100%; max-width: var(--page-width); margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px); }

/* ---------------- Heading scale baseline ----------------
   Horizon's base.css supplied these sizes; rh- component classes still win where present. */
h1,h2,h3,h4,h5,h6{ color: rgb(var(--rh-heading)); line-height: 1.2; font-weight: 300; margin: 0 0 .5em; }
h1{ font-size: clamp(2rem, 5vw, 3.5rem); }
h2{ font-size: clamp(1.6rem, 4vw, 3rem); }
h3{ font-size: 2rem; }
h4{ font-size: 1.5rem; }
h5{ font-size: .875rem; }
h6{ font-size: .75rem; }

/* ---------------- Header (floating glass pill) ----------------
   ryleighnewman.github.io signature pattern: logo LEFT, nav links RIGHT
   (space-between), pill capped at 1000px / calc(100% - 80px), 22px radius,
   glass border + backdrop blur. Mobile: burger right, right-aligned menu. */
.site-header{ position: sticky; top: 0; z-index: 1000;
  padding: 0 clamp(10px, 3vw, 22px); }
.rh-header__pill{ position: relative; margin: 8px auto 0;
  width: calc(100% - 80px); max-width: 1000px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: 18px;
  border-radius: var(--lg-radius, 22px);
  border: 1px solid rgb(255 255 255 / 0.18);
  background-color: rgb(var(--rh-bg-deep) / 0.30);
  backdrop-filter: blur(var(--lg-blur, 18px)) saturate(var(--lg-saturation, 1.35)) brightness(var(--lg-brightness, 1.06));
  -webkit-backdrop-filter: blur(var(--lg-blur, 18px)) saturate(var(--lg-saturation, 1.35)) brightness(var(--lg-brightness, 1.06));
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / .45),
    inset 0 -1px 0 hsl(0 0% 0% / .35),
    inset 0 0 0 .5px hsl(0 0% 100% / .08),
    var(--rh-shadow-header, 0 4px 14px rgb(0 0 0 / .35)); }

.rh-header__brand{ display: inline-flex; align-items: center; flex-shrink: 0; }
.rh-header__brand img{ height: 32px; width: auto; display: block; }

.rh-nav{ display: flex; align-items: center; gap: 25px; margin-left: auto; }
.rh-nav a{ color: #fff; text-decoration: none; font-size: .95rem; font-weight: 300;
  letter-spacing: .01em; padding: 4px 0; white-space: nowrap;
  transition: color .3s ease; }
.rh-nav a:hover{ color: rgb(var(--rh-accent-soft)); }
.rh-nav a[aria-current="page"]{ color: rgb(var(--rh-accent-soft)); }

.rh-nav__cb, .rh-burger{ display: none; }

@media (max-width: 860px){
  .rh-header__pill{ width: calc(100% - 8px); }
  .rh-burger{ display: inline-flex; flex-direction: column; justify-content: center;
    align-items: flex-end; gap: 4px; width: 34px; height: 34px; cursor: pointer; flex-shrink: 0; }
  .rh-burger span{ display: block; height: 2px; width: 20px; background: rgb(var(--rh-text)); border-radius: 2px; }
  .rh-nav{ display: none; position: absolute; top: calc(100% + 8px); right: 0;
    left: auto; width: min(300px, 100%);
    flex-direction: column; align-items: flex-end; gap: 2px; padding: 14px 18px;
    border-radius: var(--lg-radius-inner, 12px);
    border: 1px solid rgb(255 255 255 / 0.14);
    background: rgb(var(--rh-bg-deep) / .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--rh-shadow-card, 0 10px 30px rgb(0 0 0 / .45)); }
  .rh-nav a{ padding: 10px 0; font-size: 1.1rem; text-align: right; width: 100%; }
  .rh-nav__cb:checked ~ .rh-nav{ display: flex; }
}

/* ---------------- Home hero ---------------- */
.rh-hero{ position: relative; min-height: clamp(380px, 62vh, 620px);
  display: flex; align-items: flex-end;
  background: #12181c url("hero-banner.jpg") center/cover no-repeat;
  margin-top: 14px; }
.rh-hero::after{ content:""; position:absolute; inset:0;
  background: linear-gradient(to bottom, rgb(12 14 18 / .15) 0%, rgb(12 14 18 / .70) 100%); }
.rh-hero__inner{ position: relative; z-index: 1; padding-block: 48px clamp(40px, 6vw, 72px); }
.rh-hero__title{ color: #fff; font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; max-width: 15ch; margin: 0 0 28px; }

/* ---------------- Page content spacing ---------------- */
.page-body{ padding-block: clamp(40px, 6vw, 72px); }
.page-body > .rh-section:first-child,
.page-body > .rh-page-hero:first-child{ margin-top: 0; }

/* ---------------- Footer ----------------
   ryleighnewman.github.io standard: slim one-line glass strip, top-only
   radius, flush to the bottom of the page. */
.site-footer{ flex-shrink: 0; margin-top: clamp(32px, 4vw, 56px);
  padding: 0 clamp(12px, 4vw, 28px); display: flex; justify-content: center; }
.rh-footer{ width: 100%; max-width: var(--page-width); margin: 0 auto;
  min-height: 24px; padding: 4px 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  border-left: 1px solid rgb(255 255 255 / 0.12);
  border-right: 1px solid rgb(255 255 255 / 0.12);
  border-bottom: none;
  border-radius: var(--lg-radius) var(--lg-radius) 0 0;
  box-shadow: 0 -3px 14px rgb(0 0 0 / 0.45);
  color: #dddddd; font-size: 0.8rem; line-height: 1.2; text-align: center; }
.rh-footer p{ margin: 0; font-size: 0.8rem; color: #dddddd; }
.rh-footer a{ color: #dddddd; text-decoration: none; transition: color .3s ease; }
.rh-footer a:hover{ color: rgb(var(--rh-accent-soft)); }

/* ---------------- 1.10 polish ----------------
   Hero content centered at the TOP (banner toppers now sit in the lower band);
   overlay flipped to darken the top for the headline instead of the bottom. */
.rh-hero{ align-items: flex-start; }
.rh-hero::after{ background: linear-gradient(to bottom, rgb(12 14 18 / .68) 0%, rgb(12 14 18 / .18) 100%); }
.rh-hero__inner{ display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.rh-hero__title{ max-width: 22ch; margin: 0 auto 12px; }
.rh-hero__sub{ color: #fff; opacity: .92; font-weight: 300;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin: 0 0 26px; }

/* every section box shares ONE width (matches .rh-section--wide / the header pill) */
.rh-section{ max-width: 1000px; }

/* PDP purchase area: centered lede + centered uniform buttons with marketplace marks */
.rh-pdp__buy-lede{ margin: 14px 0 2px; text-align: center; font-weight: 300; }
.rh-pdp__buy{ align-items: center; }
.rh-pdp__buy .button{ width: 240px; display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; }
.rh-pdp__buy .button svg{ width: 20px; height: 20px; flex: none; }

/* ---------------- 1.11 polish ----------------
   Uniform NARROWER boxes: every section (incl. --wide) shares the 800px card
   standard; 1000px read as too wide. */
.rh-section{ max-width: 800px; }
.rh-section--wide{ max-width: 800px !important; }

/* hero: headline top-center, CTA row pinned to the BOTTOM of the image, toppers
   in the middle band; hero may shrink further without cropping the product */
.rh-hero{ min-height: clamp(320px, 52vh, 560px); align-items: stretch; }
.rh-hero__inner{ display: flex; flex-direction: column; align-items: center;
  padding-block: 40px 26px; }
.rh-hero__sub{ margin-bottom: 0; }
.rh-hero__ctas{ margin-top: auto; padding-top: 24px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* slimmer, shorter hero buttons (the 15px/22px-radius base reads too fat here) */
.rh-hero__ctas .button{ width: auto !important; max-width: none !important;
  padding: 9px 22px !important; font-size: 1.02rem !important;
  border-radius: 14px !important; }

.rh-coming-soon{ text-align: center; opacity: .75; font-weight: 300;
  margin: 18px 0 0; }

/* ---------------- 1.12 ----------------
   FAQ questions rendered at weight 400 (the Semilight face), which read as the
   wrong font next to the site's 300 Light standard. */
.rh-faq summary{ font-family: var(--rh-font) !important; font-weight: 300; }

/* ---------------- 1.13 ----------------
   Marketplace buttons are logo-only; viewBoxes are ink-cropped so every mark
   renders at the same visual height (the eBay wordmark was tiny inside FA's
   padded 512 box). */
.rh-pdp__buy .button svg{ height: 24px; width: auto; display: block; margin: 0 auto; }
.rh-marketplaces__icon{ height: 26px !important; width: auto !important; }

/* FAQ accordion: animated open (body fades/slides in, the + rotates smoothly) */
.rh-faq summary::after{ transition: transform .25s ease; }
@keyframes rhFaqOpen{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
.rh-faq[open] .rh-faq__body{ animation: rhFaqOpen .28s ease; }

/* ---------------- 1.16 software pages ----------------
   App page kit: icon hero, App Store badge + GitHub button, spoken/typed
   examples, captioned gallery, and the source link list. Sentence case
   everywhere; no small uppercase labels. */

/* App icon above the page title */
.rh-app-hero__icon{ display:block; margin:0 auto 1.2rem; width:96px; height:96px;
  border-radius:22px; box-shadow:0 8px 24px rgb(0 0 0 / .45); }

/* Download row: Apple badge + GitHub button, matched heights */
.rh-appstore-row{ display:flex; justify-content:center; align-items:center;
  gap:1rem; flex-wrap:wrap; margin-top:1.5rem; }
.rh-appstore{ display:inline-flex; transition:transform .2s ease, opacity .2s ease; }
.rh-appstore:hover{ transform:translateY(-2px); opacity:.9; }
.rh-appstore img{ height:52px; width:auto; display:block; }
.rh-ghbutton{ display:inline-flex; align-items:center; gap:.55rem; height:52px;
  padding:0 1.25rem; border-radius:10px; text-decoration:none !important;
  color:#fff !important; font-size:1rem; font-weight:300;
  border:1px solid rgb(255 255 255 / .22); background:rgb(255 255 255 / .06);
  transition:transform .2s ease, border-color .2s ease, background .2s ease; }
.rh-ghbutton:hover{ transform:translateY(-2px); background:rgb(255 255 255 / .1);
  border-color:rgb(var(--rh-accent) / .55); }
.rh-ghbutton svg{ flex-shrink:0; }

/* App cards on the software page get their icon inline with the title */
.rh-app-card__head{ display:flex; align-items:center; gap:.7rem; }
.rh-app-card__head .rh-product-card__title{ margin:0; }
.rh-app-card__icon{ width:44px; height:44px; border-radius:10px; flex-shrink:0;
  box-shadow:0 3px 10px rgb(0 0 0 / .4); }

/* One large showcase image per app page */
.rh-showcase{ border-radius:var(--lg-radius,22px); overflow:hidden;
  border:1px solid rgb(255 255 255 / .12); box-shadow:0 10px 30px rgb(0 0 0 / .35); }
.rh-showcase img{ display:block; width:100%; height:auto; }

/* Captioned gallery: image on top, description underneath */
.rh-gallery{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.5rem; margin-top:.5rem; text-align:left; }
.rh-gallery__item{ margin:0; display:flex; flex-direction:column; gap:.85rem; }
.rh-gallery__item img{ display:block; width:100%; height:auto; border-radius:14px;
  border:1px solid rgb(255 255 255 / .12); box-shadow:0 6px 18px rgb(0 0 0 / .3); }
.rh-gallery__caption{ color:rgb(var(--rh-text) / .9); font-size:1rem; line-height:1.55;
  font-weight:300; }

/* Before and after examples: what you say, what the app does */
.rh-examples{ display:flex; flex-direction:column; gap:1.1rem; text-align:left;
  margin-top:1.5rem; }
.rh-example{ border:1px solid rgb(255 255 255 / .14); border-radius:16px;
  padding:1.3rem 1.4rem; background:rgb(var(--rh-bg-deep) / .45); }
.rh-example__tag{ display:inline-block; margin:0 0 1rem; padding:.3rem .8rem;
  border-radius:999px; font-size:.95rem; font-weight:300; line-height:1.3;
  color:rgb(var(--rh-accent-soft)); border:1px solid rgb(var(--rh-accent) / .38);
  background:rgb(var(--rh-accent) / .12); }
.rh-example__block{ margin:0; }
.rh-example__block--out{ margin-top:1.1rem; padding-top:1.1rem;
  border-top:1px solid rgb(255 255 255 / .12); }
.rh-example__label{ margin:0 0 .4rem; font-size:1rem; font-weight:300;
  color:rgb(var(--rh-text-soft)); }
.rh-example__say{ margin:0; font-size:1.15rem; line-height:1.5; font-style:italic;
  color:rgb(var(--rh-text) / .88); }
.rh-example__out{ margin:0; font-size:1.15rem; line-height:1.55;
  color:rgb(var(--rh-heading)); }

/* Source and links list */
.rh-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column;
  gap:.6rem; text-align:left; }
.rh-links li{ margin:0; }
.rh-links a{ display:flex; align-items:baseline; gap:.9rem; flex-wrap:wrap;
  padding:.95rem 1.2rem; border-radius:12px; text-decoration:none !important;
  border:1px solid rgb(255 255 255 / .12); background:rgb(255 255 255 / .04);
  transition:border-color .2s ease, background .2s ease, transform .2s ease; }
.rh-links a:hover{ border-color:rgb(var(--rh-accent) / .5);
  background:rgb(255 255 255 / .07); transform:translateX(3px); }
.rh-links__name{ color:rgb(var(--rh-accent-soft)); font-size:1.05rem; font-weight:300; }
.rh-links__note{ color:rgb(var(--rh-text-soft)); font-size:.95rem; font-weight:300; }

@media (max-width:640px){
  .rh-gallery{ grid-template-columns:1fr; }
  .rh-appstore img{ height:46px; }
  .rh-ghbutton{ height:46px; }
}
