/* ==========================================================================
   HIPAA Agents — shared stylesheet
   Light editorial / premium-clinical design system
   ========================================================================== */

:root {
  /* Color palette */
  --bg:            #FAFAF9;  /* warm off-white */
  --bg-alt:        #F5F5F0;  /* slightly darker warm gray for alt sections */
  --card:          #FFFFFF;
  --ink:           #1A1A1A;  /* primary text / near-black */
  --ink-soft:      #6B6B6B;  /* secondary warm gray */
  --teal:          #0D7377;  /* accent / CTA */
  --teal-dark:     #0A595C;  /* hover */
  --teal-tint:     rgba(13, 115, 119, 0.08);
  --star:          #FBBC04;  /* google yellow */
  --star-empty:    #D8D8D2;
  --negative:      #C45C5C;
  --positive:      #4C8C6E;
  --border:        #E7E5E0;
  --border-soft:   #EFEDE8;
  --shadow-sm:     0 1px 2px rgba(26, 26, 26, 0.04), 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-md:     0 4px 12px rgba(26, 26, 26, 0.06), 0 12px 32px rgba(26, 26, 26, 0.07);
  --shadow-lg:     0 8px 24px rgba(26, 26, 26, 0.08), 0 24px 64px rgba(26, 26, 26, 0.10);
  --shadow-glow:   0 0 0 1px rgba(13, 115, 119, 0.15), 0 12px 40px rgba(13, 115, 119, 0.14);

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--teal); color: #fff; }

/* ── Layout helpers ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 120px 0; }
.section--tight { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.center { text-align: center; }
.measure { max-width: 640px; }
.measure-wide { max-width: 760px; }

/* ── Typography ── */
.serif { font-family: var(--serif); font-weight: 400; }
.italic-soft { font-style: italic; color: var(--ink-soft); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h-display { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
.h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 400;
}

p.body { color: var(--ink-soft); }

.muted { color: var(--ink-soft); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); box-shadow: 0 8px 24px rgba(13,115,119,0.22); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 10px 22px; font-size: 0.9rem; }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 450;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(250,250,249,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav.is-open .nav__mobile { display: flex; }
.nav__mobile a { padding: 14px 4px; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--border-soft); }
.nav__mobile .btn { margin-top: 16px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 36px;
}
.card--pad-lg { padding: 44px; }

/* ── Stat blocks ── */
.stat-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.stat-label { color: var(--ink-soft); font-size: 0.98rem; margin-top: 12px; line-height: 1.45; }

/* ── Stars ── */
.stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; }
.star path { fill: var(--star-empty); transition: fill .4s ease; }
.star.is-full path { fill: var(--star); }

/* ── Steps / how it works ── */
.steps { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.step__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--teal);
  border: 1px solid var(--teal);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.step__icon { width: 28px; height: 28px; color: var(--teal); margin-bottom: 20px; }
.step__title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }

/* ── Compliance strip ── */
.compliance {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  align-items: center; justify-content: center;
}
.compliance__item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.98rem; }
.compliance__item svg { width: 20px; height: 20px; color: var(--teal); flex: 0 0 auto; }

/* ── Pricing ── */
.price-card {
  max-width: 480px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
  text-align: center;
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price-amount { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--ink); }
.price-strike { color: var(--ink-soft); text-decoration: line-through; font-size: 1.2rem; }
.price-list { list-style: none; text-align: left; margin: 28px auto; max-width: 320px; display: grid; gap: 14px; }
.price-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1rem; }
.price-list li svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; }
.price-divider { height: 1px; background: var(--border); margin: 28px 0; }

/* ── Pricing secondary link ── */
.price-secondary {
  font-size: 0.95rem; color: var(--ink-soft);
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.price-secondary:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Inquiry form ── */
.inquiry-card {
  max-width: 520px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 44px;
  display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; text-align: left; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field__opt { color: var(--ink-soft); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.inquiry-card .btn { margin-top: 6px; }

/* ── FAQ accordion ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 26px 0; font-family: var(--sans); font-size: 1.15rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.faq__icon { flex: 0 0 auto; width: 20px; height: 20px; position: relative; transition: transform .3s ease; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--teal);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after  { width: 2px; height: 16px; transition: transform .3s ease; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a-inner { padding: 0 0 26px; color: var(--ink-soft); line-height: 1.65; max-width: 660px; }

/* ── Footer ── */
.footer { background: var(--ink); color: #fff; padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 14px; }
.footer__tag { color: rgba(255,255,255,0.55); max-width: 280px; font-size: 0.95rem; }
.footer__h { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 18px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.7); font-size: 0.95rem; padding: 6px 0; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.45); font-size: 0.88rem; }

/* ── Animation primitives (GSAP toggles these; fallback visible if JS off) ── */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); }

/* Reduced motion + no-JS safety: never hide content permanently */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Reputation hero — pinned before/after review card
   ========================================================================== */
.hero-rep {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}
.hero-rep::before {
  /* soft warm radial glow behind the card */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 64%, rgba(13,115,119,0.07), transparent 70%),
    radial-gradient(40% 30% at 50% 20%, rgba(251,188,4,0.06), transparent 70%);
  pointer-events: none;
}
.hero-rep__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-rep__headline { position: relative; min-height: 1.1em; margin-bottom: 48px; }
.hero-rep__hl { display: block; }
.hero-rep__hl--after {
  position: absolute; left: 0; right: 0; top: 0;
}

.hero-rep__result {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-family: var(--serif);
  color: var(--ink);
  margin-top: 40px;
}
.hero-rep__cta { margin-top: 24px; }

.hero-rep__scrollcue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
  opacity: 0.6;
}

/* Review profile card */
.hero-card {
  --glow: 0;
  width: 100%; max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px;
  text-align: left;
  transition: box-shadow .5s ease, border-color .5s ease;
}
.hero-card.is-after {
  border-color: rgba(13,115,119,0.25);
  box-shadow: var(--shadow-glow);
}
.hero-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; flex: 0 0 auto;
}
.hero-card__name { font-weight: 600; font-size: 1.05rem; }
.hero-card__meta { color: var(--ink-soft); font-size: 0.85rem; }

.hero-card__rating {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.hero-card__score { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); }
.hero-card__count { color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }

.hero-card__reviews { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.mini-review { }
.mini-review p { font-size: 0.9rem; color: var(--ink); margin-top: 4px; line-height: 1.4; }
.stars--sm .star { width: 13px; height: 13px; }
.mini-stars { display: inline-flex; gap: 1px; }

/* ==========================================================================
   Homepage — hero + product cards
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 80px;
  overflow: hidden;
}
.home-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 50% 30%, rgba(13,115,119,0.08), transparent 70%),
    radial-gradient(45% 40% at 80% 75%, rgba(251,188,4,0.05), transparent 70%);
}
.home-hero__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.home-hero__headline { margin: 8px 0 28px; }
.home-hero__sub { max-width: 600px; margin: 0 auto; }
.home-hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* Hero stats bar */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 28px 48px;
  margin-top: 64px;
}
.hero-stat { text-align: center; }
.hero-stat__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1; color: var(--teal); letter-spacing: -0.02em;
}
.hero-stat__label { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); margin-top: 10px; }
.hero-stat__div { width: 1px; height: 56px; background: var(--border); }
@media (max-width: 640px) {
  .hero-stat__div { display: none; }
  .hero-stats { gap: 28px; }
}

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 40px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,115,119,0.22);
}
.product-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.product-card__icon svg { width: 26px; height: 26px; }
.product-card__name { font-family: var(--serif); font-size: 1.85rem; margin-bottom: 12px; }
.product-card__desc { color: var(--ink-soft); line-height: 1.6; flex: 1 1 auto; }
.product-card__link { color: var(--teal); font-weight: 500; font-size: 0.98rem; margin-top: 24px; transition: gap .2s ease; }
.product-card:hover .product-card__link { text-decoration: underline; text-underline-offset: 3px; }

.product-soon { color: var(--ink-soft); font-size: 0.98rem; margin-top: 44px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid--4, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .card, .card--pad-lg { padding: 28px; }
  .price-card { padding: 34px; }
}
