/* Hello, It's Me® — Site CSS
   Cross-page styles: layout primitives, header/nav, footer, buttons, cards,
   placeholder markers, and the density tweak.
*/

/* ============================================
   Density tweak — controls section padding + measure.
   Toggle on <html data-density="compact|comfortable">
   ============================================ */
:root {
  --sec-y: 96px;        /* vertical section padding */
  --sec-y-sm: 64px;
  --measure: 64ch;
  --wrap-pad: 40px;
  --container: 1280px;
}
html[data-density="compact"] {
  --sec-y: 64px;
  --sec-y-sm: 40px;
  --wrap-pad: 32px;
}
html[data-density="comfortable"] {
  --sec-y: 112px;
  --sec-y-sm: 72px;
}

/* ============================================
   Reset + base
   ============================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   Layout primitives
   ============================================ */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.sec { padding: var(--sec-y) 0; }
.sec--sm { padding: var(--sec-y-sm) 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }

/* ============================================
   Header / Nav
   ============================================ */
.site-hdr {
  background: white;
  border-bottom: 1px solid var(--him-purple-100);
  position: sticky; top: 0; z-index: 60;
}
.site-hdr .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.site-hdr .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-hdr .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}
.site-hdr .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-hdr .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--him-purple-900);
}
.site-hdr .brand-name sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
}
.site-hdr .brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--him-slate-500);
  white-space: nowrap;
}
@media (max-width: 640px) { .site-hdr .brand-tag { display: none; } }
.site-hdr nav.primary {
  display: flex; gap: 4px; align-items: center;
  flex: 1; justify-content: center;
}
.site-hdr nav.primary a {
  color: var(--him-purple-700);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  transition: background .15s, color .15s;
  letter-spacing: -0.005em;
}
.site-hdr nav.primary a:hover { background: var(--him-purple-50); color: var(--him-purple-800); }
.site-hdr nav.primary a.active {
  background: var(--him-purple-50);
  color: var(--him-purple-900);
  position: relative;
}
.site-hdr nav.primary a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; background: var(--him-orange-500); border-radius: 2px;
}
.site-hdr .cta-group {
  display: flex; gap: 10px; align-items: center;
}
.site-hdr .login {
  color: var(--him-purple-700);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 16px;
}
.site-hdr .login:hover { color: var(--him-orange-600); }
.site-hdr .hamburger {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  color: var(--him-purple-800);
}
.site-hdr .hamburger:hover { background: var(--him-purple-50); }
.site-hdr .hamburger svg { width: 24px; height: 24px; margin: 0 auto; }
@media (max-width: 1080px) {
  .site-hdr nav.primary { display: none; }
  .site-hdr .cta-group .login { display: none; }
}
@media (max-width: 720px) {
  .site-hdr .hamburger { display: inline-grid; place-items: center; }
  .site-hdr .cta-group .btn { display: none; }
}

/* ============================================
   Buttons (brand: orange pill with white circular arrow)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  background: var(--him-orange-500);
  color: white;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 6px 16px rgba(246,148,62,.30);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-2px); background: var(--him-orange-600); }
.btn:active { transform: scale(.97); }
.btn .ar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  color: var(--him-orange-500);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
.btn-purple {
  background: var(--him-purple-700);
  box-shadow: 0 6px 16px rgba(74,50,101,.25);
}
.btn-purple:hover { background: var(--him-purple-800); }
.btn-purple .ar { color: var(--him-purple-700); }
.btn-ghost {
  background: transparent;
  color: var(--him-purple-800);
  box-shadow: inset 0 0 0 2px var(--him-purple-300);
}
.btn-ghost:hover { background: var(--him-purple-50); }
.btn-ghost .ar { background: var(--him-purple-700); color: white; }
.btn-white {
  background: white;
  color: var(--him-purple-800);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.btn-white .ar { background: var(--him-purple-700); color: white; }
.btn-outline-white {
  background: transparent;
  color: white;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.btn-outline-white .ar { background: white; color: var(--him-purple-700); }
.btn-sm { padding: 10px 14px 10px 18px; font-size: 14px; }
.btn-sm .ar { width: 22px; height: 22px; font-size: 13px; }

/* ============================================
   Eyebrow / labels
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--him-orange-600);
}
.eyebrow--purple { color: var(--him-purple-500); }
.eyebrow--white  { color: rgba(255,255,255,.78); }

/* ============================================
   Section headers
   ============================================ */
.sec-head {
  max-width: 760px;
  margin: 0 auto var(--s-12);
  text-align: center;
}
.sec-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--him-purple-900);
  margin: 0 0 16px;
  text-wrap: balance;
}
.sec-head .lede {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--him-slate-700);
  margin: 0;
  text-wrap: pretty;
}
.sec-head--left { margin-left: 0; text-align: left; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--him-purple-100);
  padding: 32px;
  box-shadow: var(--sh-1);
}
/* "Brand" card — orange border + purple fill — the distinctive "How It Works" treatment */
.card-brand {
  background: var(--him-purple-700);
  color: white;
  border: 5px solid var(--him-orange-500);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.card-brand .body { padding: 24px 28px 28px; }
.card-brand .kicker {
  font-size: 12px; font-weight: 800;
  color: var(--him-orange-300);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-brand h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.card-brand p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.55; margin: 0; }

/* Soft purple card — used on calmer pages */
.card-soft {
  background: var(--him-purple-50);
  border: 1px solid var(--him-purple-100);
  border-radius: var(--r-lg);
  padding: 32px;
}
.card-soft h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--him-purple-800);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-soft p { color: var(--him-slate-700); font-size: 17px; margin: 0; line-height: 1.55; }

/* ============================================
   Decorative motifs — leaf
   SVG leaves used inline as decorative botanical motif.
   Hearts removed per design direction 2026-05.
   ============================================ */

/* ============================================
   Placeholder markers — show what's still needed
   ============================================ */
.ph {
  background: var(--him-purple-50);
  border: 2px dashed var(--him-purple-300);
  border-radius: var(--r-md);
  padding: 16px;
  color: var(--him-purple-800);
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}
.ph::before {
  content: attr(data-status);
  position: absolute;
  top: -10px; left: 16px;
  background: var(--him-purple-700);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.ph[data-status="create"]::before { background: var(--him-orange-600); }
.ph[data-status="asset needed"]::before { background: var(--him-teal-600); }
.ph[data-status="data needed"]::before { background: var(--him-pink-600); }
.ph[data-status="design decision"]::before { background: var(--him-slate-700); }

/* Inline placeholder marker — small chip when something needs to be filled
   inline inside a sentence */
.ph-chip {
  display: inline-block;
  background: var(--him-purple-100);
  color: var(--him-purple-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  vertical-align: 0.15em;
  margin: 0 4px;
}

/* Photo placeholder box — neutral, captioned, looks like an empty frame */
.photo-ph {
  background:
    linear-gradient(135deg, var(--him-purple-100), var(--him-purple-200));
  border-radius: var(--r-md);
  border: 1px dashed var(--him-purple-400);
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--him-purple-800);
  position: relative;
}
.photo-ph .caption {
  text-align: center;
  max-width: 320px;
}
.photo-ph .caption .label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--him-purple-700);
  margin-bottom: 8px;
  display: block;
}
.photo-ph .caption .brief {
  font-size: 14px;
  line-height: 1.45;
  color: var(--him-purple-800);
}
.photo-ph .icon-frame {
  width: 56px; height: 56px;
  background: white;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  margin: 0 auto 12px;
  box-shadow: var(--sh-1);
  color: var(--him-purple-600);
}
.photo-ph .icon-frame svg { width: 28px; height: 28px; }

/* ============================================
   CTA band (orange, dark, or purple) — bottom-of-page conversion strip
   ============================================ */
.cta-band {
  background: var(--him-orange-500);
  color: white;
  padding: var(--s-16) 0;
  position: relative;
  overflow: hidden;
}
.cta-band .inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 12px;
  font-weight: 800;
  text-wrap: balance;
}
.cta-band p { color: rgba(255,255,255,.92); font-size: 18px; margin: 0 0 28px; line-height: 1.5; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-band--purple { background: var(--him-purple-700); }
.cta-band--dark { background: var(--him-purple-900); }

/* ============================================
   Footer
   ============================================ */
.site-ftr {
  background: var(--him-purple-900);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.site-ftr .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-ftr .brand-col img { height: 80px; margin-bottom: 16px; }
.site-ftr .brand-col .tag {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: white;
  margin: 0 0 16px;
  max-width: 280px;
  font-weight: 600;
}
.site-ftr .brand-col .contact {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
}
.site-ftr h5 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 16px;
}
.site-ftr a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  text-decoration: none;
  padding: 5px 0;
  font-weight: 500;
}
.site-ftr a:hover { color: var(--him-orange-400); }
.site-ftr .legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.site-ftr .legal .links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-ftr .legal .links a { display: inline; padding: 0; font-size: 13px; }
@media (max-width: 880px) {
  .site-ftr .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-ftr .cols { grid-template-columns: 1fr; }
}

/* ============================================
   Page hero — base shared styles
   ============================================ */
.page-hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 560px;
  text-wrap: pretty;
}

/* Hero variants — informational pages (Clinical / Investors / Contact)
   use a calmer dark-purple slab, not pink. */
.page-hero--purple {
  background: var(--him-purple-900);
  color: white;
}
.page-hero--purple h1 { color: white; }
.page-hero--purple .lede { color: rgba(255,255,255,.8); }

.page-hero--cream { background: var(--him-cream); }
.page-hero--cream h1 { color: var(--him-purple-900); }
.page-hero--cream .lede { color: var(--him-slate-700); }

/* ============================================
   Stat strip — dark band with 3 stats
   ============================================ */
.stat-strip {
  background: var(--him-purple-900);
  color: white;
  padding: var(--s-16) 0;
}
.stat-strip .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.stat-strip .stat .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--him-orange-400);
  margin: 0 0 8px;
}
.stat-strip .stat .label {
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255,255,255,.9);
  margin: 0 0 6px;
  font-weight: 600;
  text-wrap: balance;
}
.stat-strip .stat .src {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.stat-strip .disclaimer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .stat-strip .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Generic utility
   ============================================ */
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--him-purple-50);
  color: var(--him-purple-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.tag-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--him-orange-500);
}

.divider-leaf {
  width: 100%; height: 32px;
  display: block;
}

/* ============================================
   Page intro band — small "you are here" strip used
   on inner pages instead of a big hero photo
   ============================================ */
.page-intro {
  background: var(--him-cream);
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--him-sand);
}
.page-intro .crumb {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--him-orange-600);
  margin-bottom: 14px;
}

/* Responsive niceties */
@media (max-width: 720px) {
  .btn { font-size: 15px; padding: 12px 16px 12px 20px; }
  .page-hero { padding: 56px 0 72px; }
}
