:root {
  --navy: #10283b;
  --teal: #2e6f74;
  --off-white: #f7f9f7;
  --sage: #8fa78e;
  --clay: #c98b68;
  --graphite: #4e5b66;
  --ink: #122230;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 139, 104, 0.2), transparent 28rem),
    linear-gradient(135deg, var(--off-white), #edf3ee 58%, #dfe9e3);
}

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand, .nav-link { color: var(--navy); text-decoration: none; font-weight: 800; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.15rem; }
.brand-logo { display: block; width: 44px; height: 44px; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 22px rgba(16, 40, 59, 0.12); }
.brand-mark, .app-logo { display: grid; gap: 4px; transform: rotate(-10deg); }
.brand-mark span, .app-logo span { display: block; width: 30px; height: 10px; border-radius: 999px; background: var(--teal); }
.brand-mark span:nth-child(2), .app-logo span:nth-child(2) { background: var(--sage); transform: translateX(8px); }
.brand-mark span:nth-child(3), .app-logo span:nth-child(3) { background: var(--clay); }
.nav-link { border: 1px solid rgba(16, 40, 59, 0.18); border-radius: 999px; padding: 10px 16px; }

.hero { min-height: 72vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr); gap: 56px; align-items: center; padding: 42px 0 64px; }
.eyebrow { color: var(--teal); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2 { font-family: "Space Grotesk", Inter, sans-serif; color: var(--navy); margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.9rem); line-height: 0.92; letter-spacing: -0.07em; max-width: 780px; }
.subhead { color: var(--graphite); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; max-width: 620px; margin: 26px 0 32px; }

.signup-card { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(16, 40, 59, 0.11); box-shadow: 0 24px 70px rgba(16, 40, 59, 0.12); border-radius: 24px; padding: 20px; max-width: 620px; backdrop-filter: blur(14px); }
.signup-card label { display: block; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.form-row { display: flex; gap: 10px; }
input, button { border: 0; border-radius: 14px; font: inherit; }
input { flex: 1; min-width: 0; padding: 16px; color: var(--navy); background: var(--off-white); outline: 1px solid rgba(16, 40, 59, 0.12); }
input:focus { outline: 3px solid rgba(46, 111, 116, 0.25); }
button { cursor: pointer; padding: 16px 20px; background: var(--navy); color: white; font-weight: 800; }
button[disabled] { cursor: progress; opacity: 0.72; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.turnstile-widget { min-height: 0; margin-top: 12px; }
.turnstile-widget:not([aria-hidden="true"]) { min-height: 65px; }
.form-status { margin: 12px 0 0; color: var(--graphite); font-size: 0.93rem; }
.form-status.error { color: #9a3412; }
.form-status.success { color: var(--teal); font-weight: 700; }
.download-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin-top: 30px;
}
.download-cta-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 900;
  text-decoration: none;
}
.primary-download-button { background: var(--navy); color: var(--off-white); }
.secondary-download-button {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  outline: 1px solid rgba(16, 40, 59, 0.18);
}
.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-decoration: none;
}
.app-store-badge-link img {
  display: block;
  width: 150px;
  height: auto;
}
.download-cta-card p {
  flex-basis: 100%;
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
}

.product-card { display: flex; justify-content: center; }
.phone-frame { width: min(360px, 100%); min-height: 620px; background: var(--navy); border-radius: 44px; padding: 28px; color: var(--off-white); box-shadow: 0 30px 100px rgba(16, 40, 59, 0.28); border: 10px solid rgba(255, 255, 255, 0.76); }
.phone-header { width: 88px; height: 6px; border-radius: 999px; background: rgba(247, 249, 247, 0.35); margin: 0 auto 78px; }
.app-logo { margin: 0 auto 28px; width: max-content; transform: rotate(-10deg) scale(1.9); }
.phone-frame h2 { color: var(--off-white); font-size: 2.05rem; line-height: 1.02; text-align: center; margin-top: 52px; }
.phone-frame p { color: rgba(247, 249, 247, 0.72); text-align: center; font-weight: 700; }
.stack-list { display: grid; gap: 12px; margin-top: 40px; }
.stack-list div { background: rgba(247, 249, 247, 0.1); border: 1px solid rgba(247, 249, 247, 0.11); border-radius: 18px; padding: 16px; }
.stack-list strong, .stack-list span { display: block; }
.stack-list span { color: rgba(247, 249, 247, 0.68); margin-top: 4px; font-size: 0.88rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 80px; }
.value-grid article { background: rgba(255, 255, 255, 0.56); border: 1px solid rgba(16, 40, 59, 0.1); border-radius: 24px; padding: 26px; }
.icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(46, 111, 116, 0.12); color: var(--teal); font-weight: 900; margin-bottom: 22px; }
.value-grid h2 { font-size: 1.35rem; line-height: 1.15; }
.value-grid p { color: var(--graphite); line-height: 1.55; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .product-card { order: -1; }
  .phone-frame { min-height: 480px; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .nav { gap: 16px; }
  .brand { font-size: 1rem; }
  .brand-logo { width: 38px; height: 38px; }
  .nav-link { display: none; }
  .form-row { flex-direction: column; }
  .download-cta-card { flex-direction: column; align-items: stretch; }
  .download-cta-card a { width: 100%; }
  h1 { font-size: 3.15rem; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.legal-card a { color: var(--teal); font-weight: 800; }
.legal-page { padding-bottom: 80px; }
.legal-card { max-width: 860px; margin: 24px auto 0; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(16, 40, 59, 0.11); box-shadow: 0 24px 70px rgba(16, 40, 59, 0.12); border-radius: 28px; padding: clamp(24px, 5vw, 56px); backdrop-filter: blur(14px); }
.legal-card h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 10px; }
.legal-card h2 { font-size: 1.45rem; margin-top: 34px; margin-bottom: 10px; }
.legal-card h3 { font-size: 1.12rem; margin-top: 24px; margin-bottom: 8px; }
.legal-card p, .legal-card li { color: var(--graphite); line-height: 1.7; }
.legal-card ul { padding-left: 1.25rem; }
.legal-card ol { padding-left: 1.35rem; }
.legal-inline-list { margin: 0 0 18px; }
.legal-updated { font-weight: 800; color: var(--teal) !important; }

.guidance-page { padding-bottom: 80px; }
.guidance-card { max-width: 920px; margin: 18px auto 0; background: rgba(255, 255, 255, 0.76); border: 1px solid rgba(16, 40, 59, 0.11); box-shadow: 0 24px 70px rgba(16, 40, 59, 0.12); border-radius: 30px; padding: clamp(24px, 5vw, 58px); backdrop-filter: blur(14px); }
.guidance-card h1 { font-size: clamp(2.35rem, 6vw, 4.8rem); margin-bottom: 18px; }
.guidance-deck { color: var(--graphite); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; max-width: 760px; }
.guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
.guidance-grid div { background: rgba(247, 249, 247, 0.88); border: 1px solid rgba(16, 40, 59, 0.1); border-radius: 20px; padding: 20px; }
.guidance-grid p, .source-list li, .medical-disclaimer, .guidance-cta span { color: var(--graphite); line-height: 1.65; }
.guidance-label { display: block; color: var(--teal); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.source-list h2 { font-size: 1.55rem; margin-bottom: 8px; }
.source-list ul { padding-left: 1.25rem; }
.source-list a { color: var(--teal); font-weight: 800; }
.medical-disclaimer { margin: 30px 0; padding: 18px 20px; border-left: 5px solid var(--clay); background: rgba(201, 139, 104, 0.1); border-radius: 16px; font-weight: 700; }
.guidance-cta { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--navy); color: var(--off-white); border-radius: 24px; padding: 22px; }
.guidance-cta-top { margin: 26px 0; }
.guidance-cta strong, .guidance-cta span { display: block; }
.guidance-cta span { color: rgba(247, 249, 247, 0.72); margin-top: 4px; }
.guidance-cta a { flex: 0 0 auto; color: var(--navy); background: var(--off-white); border-radius: 999px; padding: 13px 18px; text-decoration: none; font-weight: 900; }

@media (max-width: 720px) {
  .guidance-grid { grid-template-columns: 1fr; }
  .guidance-cta { align-items: flex-start; flex-direction: column; }
}

.download-page {
  min-height: 64vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.download-hero {
  max-width: none;
  margin: 42px 0 86px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 40, 59, 0.11);
  box-shadow: 0 24px 70px rgba(16, 40, 59, 0.12);
  border-radius: 30px;
  padding: clamp(26px, 6vw, 62px);
  backdrop-filter: blur(14px);
}
.download-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.85rem);
  margin-bottom: 18px;
}
.download-deck {
  color: var(--graphite);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
  max-width: 720px;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 13px 18px;
  background: var(--navy);
  color: var(--off-white);
  font-weight: 900;
  text-decoration: none;
}
.download-actions a:nth-child(2) {
  background: var(--teal);
}
.download-actions a:last-child:not(:first-child) {
  background: transparent;
  color: var(--navy);
  outline: 1px solid rgba(16, 40, 59, 0.18);
}

@media (max-width: 580px) {
  .download-actions { flex-direction: column; }
  .download-actions a { width: 100%; }
}

.marketing-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 86px;
}
.marketing-hero,
.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  padding: clamp(42px, 7vw, 82px) 0 48px;
}
.marketing-hero h1,
.subpage-hero h1 {
  font-size: clamp(3.05rem, 6.8vw, 6.2rem);
  line-height: 0.94;
  max-width: 850px;
}
.marketing-lede {
  color: var(--graphite);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.68;
  max-width: 760px;
  margin: 24px 0 0;
}
.marketing-body-copy,
.marketing-section p,
.marketing-final-cta p {
  color: var(--graphite);
  line-height: 1.72;
}
.marketing-body-copy {
  max-width: 720px;
  font-size: 1.02rem;
}
.subpage-hero .marketing-body-copy {
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.68;
  max-width: 760px;
  margin-top: 16px;
}
.marketing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.marketing-cta-row a,
.marketing-final-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 900;
  text-decoration: none;
}
.marketing-cta-row .app-store-badge-link,
.marketing-final-actions .app-store-badge-link {
  min-height: 52px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}
.marketing-hero-media,
.marketing-image-grid,
.marketing-feature-list,
.marketing-card-grid {
  min-width: 0;
}
.marketing-image {
  margin: 0;
  border: 1px solid rgba(16, 40, 59, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 40, 59, 0.13);
  overflow: hidden;
}
.marketing-image img {
  display: block;
  width: 100%;
  height: auto;
}
.marketing-image figcaption {
  color: var(--graphite);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 12px 14px 14px;
  background: rgba(247, 249, 247, 0.88);
}
.marketing-section {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 40, 59, 0.11);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(16, 40, 59, 0.08);
}
.marketing-section h2,
.marketing-final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}
.marketing-section h3,
.marketing-card-grid h2 {
  color: var(--navy);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.24rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.marketing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 50px);
  align-items: start;
}
.marketing-routine-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}
.marketing-routine-media .marketing-image {
  max-width: 340px;
  margin-left: auto;
}
.marketing-routine-features {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-feature-list,
.marketing-card-grid {
  display: grid;
  gap: 14px;
}
.marketing-feature-list article,
.marketing-card-grid article {
  padding: 22px;
  border: 1px solid rgba(16, 40, 59, 0.1);
  border-radius: 8px;
  background: rgba(247, 249, 247, 0.82);
}
.marketing-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-section-heading {
  max-width: 840px;
  margin-bottom: 22px;
}
.marketing-report-band {
  background: var(--navy);
}
.marketing-report-band h2,
.marketing-report-band h3 {
  color: var(--off-white);
}
.marketing-report-band p {
  color: rgba(247, 249, 247, 0.76);
}
.marketing-report-band .marketing-card-grid article {
  background: rgba(247, 249, 247, 0.08);
  border-color: rgba(247, 249, 247, 0.14);
}
.marketing-report-illustration {
  display: grid;
  place-items: center;
  position: relative;
  width: 104px;
  height: 82px;
  margin: 0 auto 18px;
  color: #c7ddd0;
}
.marketing-report-illustration::before {
  content: "";
  position: absolute;
  inset: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 8px;
  opacity: 0.9;
}
.marketing-report-illustration span {
  position: absolute;
  display: block;
  background: currentColor;
}
.marketing-report-illustration-overview span:nth-child(1) { width: 42px; height: 2px; top: 26px; left: 31px; }
.marketing-report-illustration-overview span:nth-child(2) { width: 52px; height: 2px; top: 40px; left: 31px; }
.marketing-report-illustration-overview span:nth-child(3) { width: 34px; height: 2px; top: 54px; left: 31px; }
.marketing-report-illustration-overlap span:nth-child(1),
.marketing-report-illustration-overlap span:nth-child(2) {
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  top: 25px;
}
.marketing-report-illustration-overlap span:nth-child(1) { left: 30px; }
.marketing-report-illustration-overlap span:nth-child(2) { right: 30px; }
.marketing-report-illustration-overlap span:nth-child(3) { width: 2px; height: 46px; top: 19px; left: 51px; transform: rotate(38deg); }
.marketing-report-illustration-evidence span:nth-child(1) { width: 48px; height: 2px; top: 29px; left: 29px; }
.marketing-report-illustration-evidence span:nth-child(2) { width: 32px; height: 2px; top: 43px; left: 29px; }
.marketing-report-illustration-evidence span:nth-child(3) {
  width: 18px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: transparent;
  top: 43px;
  right: 29px;
  transform: rotate(-45deg);
}
.marketing-report-band .eyebrow {
  color: #c7ddd0;
}
.marketing-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 40, 59, 0.1);
}
.marketing-report-band .marketing-link-button {
  color: var(--navy);
  background: var(--off-white);
  text-decoration: none;
}
.marketing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}
.marketing-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.marketing-use-cases {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.marketing-use-cases .marketing-section-heading {
  max-width: none;
}
.marketing-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 40, 59, 0.11);
}
.marketing-final-cta p {
  max-width: 720px;
}
.marketing-final-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.marketing-final-image {
  display: block;
  width: min(220px, 100%);
  justify-self: end;
  border-radius: 8px;
  border: 1px solid rgba(16, 40, 59, 0.12);
  box-shadow: 0 18px 42px rgba(16, 40, 59, 0.12);
}
.subpage-marketing {
  padding-bottom: 92px;
}
.subpage-hero {
  align-items: stretch;
}

@media (max-width: 920px) {
  .marketing-hero,
  .subpage-hero,
  .marketing-routine-section,
  .marketing-split,
  .marketing-showcase {
    grid-template-columns: 1fr;
  }
  .marketing-routine-media .marketing-image {
    max-width: 420px;
    margin-left: 0;
  }
  .marketing-routine-features {
    grid-template-columns: 1fr;
  }
  .marketing-card-grid {
    grid-template-columns: 1fr;
  }
  .marketing-image-grid {
    grid-template-columns: 1fr;
  }
  .marketing-final-cta {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
  .marketing-final-image { justify-self: start; width: min(220px, 70vw); }
}

@media (max-width: 580px) {
  .marketing-cta-row {
    flex-direction: column;
  }
  .marketing-cta-row a,
  .marketing-final-actions,
  .marketing-final-actions a {
    width: 100%;
  }
  .marketing-cta-row .app-store-badge-link,
  .marketing-final-actions .app-store-badge-link {
    justify-content: flex-start;
  }
  .app-store-badge-link img {
    width: 156px;
  }
  .marketing-section,
  .marketing-final-cta {
    padding: 24px;
  }
}
.guidance-list { display: grid; gap: 12px; margin-top: 28px; }
.guidance-list-item { display: block; padding: 18px 20px; background: rgba(247, 249, 247, 0.9); border: 1px solid rgba(16, 40, 59, 0.1); border-radius: 18px; text-decoration: none; }
.guidance-list-item strong { display: block; color: var(--navy); font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.2rem; }
.guidance-list-item span { display: block; color: var(--graphite); margin-top: 4px; }

.site-header-band {
  background: linear-gradient(135deg, var(--navy), #173f53);
  border-bottom: 1px solid rgba(247, 249, 247, 0.12);
}
.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 21px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  color: var(--off-white);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 2.36rem);
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}
.site-brand-mark {
  display: grid;
  gap: 4px;
  transform: rotate(-10deg);
  flex: 0 0 auto;
}
.site-brand-mark span {
  display: block;
  width: 42px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
}
.site-brand-mark span:nth-child(2) {
  background: var(--sage);
  transform: translateX(10px);
}
.site-brand-mark span:nth-child(3) { background: var(--clay); }
.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.site-nav a {
  color: rgba(247, 249, 247, 0.82);
  font-weight: 800;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--off-white);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-nav .site-nav-cta {
  color: var(--navy);
  background: var(--off-white);
  border-radius: 8px;
  padding: 11px 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.site-nav .site-nav-cta:hover {
  color: var(--navy);
  text-decoration: none;
  background: #ffffff;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(520px, 1.15fr);
  gap: 34px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 40px;
  color: var(--graphite);
  border-top: 1px solid rgba(16, 40, 59, 0.12);
}
.site-footer p { margin: 8px 0 0; line-height: 1.55; }
.footer-brand { color: var(--navy); font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.12rem; font-weight: 900; text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 24px; }
.footer-links h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: var(--navy); }
.footer-links a { display: block; color: var(--graphite); font-weight: 400; text-decoration: none; margin-top: 9px; }
.site-footer a:hover { text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; font-size: 0.9rem; }
.legal-card .legal-updated + p { margin-top: 24px; }

@media (max-width: 720px) {
  .site-header,
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-brand {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
    gap: 28px;
  }
  .site-nav {
    justify-content: flex-start;
    gap: 16px;
  }
  .footer-links { grid-template-columns: 1fr; gap: 18px; }
}

.doctor-page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 82px;
}
.doctor-page { padding-bottom: 82px; }
.doctor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: stretch;
  padding: 50px 0 34px;
}
.doctor-hero-copy,
.doctor-summary-card,
.doctor-card-grid article,
.doctor-reading-card,
.doctor-disclaimer {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 40, 59, 0.11);
  box-shadow: 0 24px 70px rgba(16, 40, 59, 0.1);
  backdrop-filter: blur(14px);
}
.doctor-hero-copy { border-radius: 32px; padding: clamp(26px, 5vw, 58px); }
.doctor-hero h1 { font-size: clamp(2.55rem, 6.4vw, 5.15rem); line-height: 0.98; max-width: 880px; }
.doctor-deck { color: var(--graphite); font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.65; max-width: 760px; margin: 24px 0 0; }
.doctor-summary-card { border-radius: 28px; padding: 28px; align-self: end; }
.doctor-summary-card p { color: var(--graphite); font-size: 1.04rem; line-height: 1.65; margin: 0; }
.doctor-section { margin-top: 28px; }
.doctor-section-heading { max-width: 760px; margin-bottom: 18px; }
.doctor-section h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.08; }
.doctor-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doctor-card-grid article { border-radius: 24px; padding: 24px; }
.doctor-card-grid h3 { color: var(--navy); font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.24rem; line-height: 1.15; margin: 0 0 10px; }
.doctor-card-grid p, .doctor-reading-card li, .doctor-disclaimer p { color: var(--graphite); line-height: 1.68; }
.doctor-card-grid p { margin: 0; }
.doctor-reading-card { display: grid; grid-template-columns: 0.6fr 1fr; gap: 30px; border-radius: 28px; padding: clamp(24px, 4vw, 42px); }
.doctor-reading-card ul { margin: 0; padding-left: 1.2rem; }
.doctor-reading-card li { margin: 0 0 12px; }
.doctor-disclaimer { border-left: 6px solid var(--clay); border-radius: 28px; padding: clamp(24px, 4vw, 42px); }
.doctor-disclaimer h2 { margin-bottom: 14px; }
.doctor-disclaimer p { max-width: 920px; }
.doctor-disclaimer strong { color: var(--navy); }

@media (max-width: 900px) {
  .doctor-hero,
  .doctor-reading-card { grid-template-columns: 1fr; }
  .doctor-summary-card { align-self: auto; }
  .doctor-card-grid { grid-template-columns: 1fr; }
}

.learn-page { padding-bottom: 80px; }
.learn-hero { max-width: 920px; padding: 44px 0 20px; }
.learn-hero h1, .learn-article h1 { font-size: clamp(2.55rem, 6vw, 5rem); line-height: 0.98; }
.learn-deck { color: var(--graphite); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; max-width: 760px; }
.learn-list { display: grid; gap: 16px; margin: 22px 0 34px; }
.learn-card-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; background: rgba(255,255,255,0.76); border: 1px solid rgba(16,40,59,0.11); box-shadow: 0 18px 52px rgba(16,40,59,0.08); border-radius: 24px; text-decoration: none; }
.learn-card-item strong { display: block; color: var(--navy); font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.16rem, 2vw, 1.45rem); line-height: 1.15; }
.learn-card-item span span:last-child { display: block; color: var(--graphite); line-height: 1.55; margin-top: 6px; }
.learn-thumb, .learn-article-hero { display: grid; place-items: center; background: linear-gradient(135deg, rgba(46,111,116,0.18), rgba(201,139,104,0.2)); border: 1px solid rgba(16,40,59,0.1); color: var(--navy); }
.learn-thumb { width: 86px; height: 86px; border-radius: 24px; font-size: 2rem; }
.learn-article { max-width: 920px; margin: 0 auto; }
.learn-back { display: inline-block; margin: 18px 0 24px; color: var(--teal); font-weight: 900; text-decoration: none; }
.learn-article-hero { min-height: 240px; border-radius: 32px; font-size: 4rem; margin-bottom: 26px; }
.learn-article-hero-image { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 520px; min-height: 0; object-fit: cover; overflow: hidden; }
.learn-disclosure { margin: 24px 0 28px; padding: 18px 20px; border-left: 5px solid var(--clay); background: rgba(201,139,104,0.1); border-radius: 16px; color: var(--graphite); line-height: 1.65; }
.learn-article-body { background: rgba(255,255,255,0.76); border: 1px solid rgba(16,40,59,0.11); border-radius: 28px; padding: clamp(24px, 5vw, 48px); }
.learn-article-body h2 { font-size: 1.48rem; margin: 28px 0 8px; }
.learn-article-body p, .learn-article-body li { color: var(--graphite); line-height: 1.75; }
.learn-sources { margin: 28px 0; background: rgba(255,255,255,0.68); border-radius: 24px; padding: 24px; }
.learn-sources li span { display: block; color: var(--graphite); margin-top: 3px; }
@media (max-width: 620px) { .learn-card-item { grid-template-columns: 1fr; } .learn-thumb { width: 100%; } }

.learn-thumb-image { object-fit: cover; padding: 0; overflow: hidden; }
.learn-article-hero-image { display: block; width: 100%; height: auto; min-height: 0; object-fit: cover; }
.learn-author { color: var(--graphite); font-weight: 700; margin: 10px 0 22px; }

.brand-page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 86px;
}
.brand-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  padding: 52px 0 36px;
}
.brand-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  max-width: 760px;
}
.brand-deck {
  color: var(--graphite);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
  max-width: 720px;
  margin: 22px 0 0;
}
.brand-download-cta {
  flex: 0 0 auto;
  color: var(--off-white);
  background: var(--navy);
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 900;
  text-decoration: none;
}
.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-download-cta.secondary {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(16, 40, 59, 0.16);
}
.brand-section {
  margin-top: 58px;
}
.brand-section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}
.brand-section h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}
.brand-color-grid,
.brand-type-grid,
.brand-asset-grid,
.brand-logo-groups {
  display: grid;
  gap: 16px;
}
.brand-color-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-color-grid div,
.brand-type-grid div,
.brand-asset-card,
.brand-logo-group {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 40, 59, 0.11);
  box-shadow: 0 18px 54px rgba(16, 40, 59, 0.08);
  border-radius: 24px;
}
.brand-color-grid div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 16px;
}
.brand-color-grid span {
  grid-row: span 2;
  display: block;
  width: 72px;
  height: 54px;
  border: 1px solid rgba(16, 40, 59, 0.12);
  border-radius: 8px;
}
.brand-color-grid strong,
.brand-type-grid strong,
.brand-asset-card h3,
.brand-logo-group h3 {
  color: var(--navy);
  font-family: "Space Grotesk", Inter, sans-serif;
}
.brand-color-grid code {
  color: var(--graphite);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.brand-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.brand-type-grid div {
  padding: 24px;
}
.brand-type-grid strong {
  display: block;
  font-size: 1.34rem;
  margin-bottom: 8px;
}
.brand-type-grid p,
.brand-asset-card p {
  color: var(--graphite);
  line-height: 1.6;
}
.brand-asset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-asset-card {
  padding: 18px;
}
.brand-asset-card.wide,
.brand-asset-card.og {
  grid-column: span 2;
}
.brand-asset-card h3,
.brand-logo-group h3 {
  font-size: 1.18rem;
  margin: 16px 0 6px;
}
.brand-asset-card a:not(.brand-preview),
.brand-logo-group a:not(.brand-logo-preview) {
  color: var(--teal);
  font-weight: 900;
}
.brand-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}
.brand-download-list.logo-downloads {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 14px;
}
.brand-download-list.logo-downloads div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.brand-download-list.logo-downloads span {
  flex-basis: 100%;
  color: var(--graphite);
  font-size: 0.82rem;
  line-height: 1.25;
}
.brand-preview,
.brand-logo-preview {
  display: grid;
  place-items: center;
  min-height: 172px;
  border: 1px solid rgba(16, 40, 59, 0.12);
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
}
.brand-preview img,
.brand-logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 156px;
}
.brand-preview.splash img {
  max-height: 360px;
  border-radius: 16px;
}
.brand-logo-preview.tall img {
  max-height: 220px;
}
.brand-preview.light,
.brand-logo-preview.light {
  background: #ffffff;
}
.brand-preview.dark,
.brand-logo-preview.dark {
  background: var(--navy);
}
.brand-preview.checker,
.brand-logo-preview.checker {
  background:
    linear-gradient(45deg, #edf3ef 25%, transparent 25%),
    linear-gradient(-45deg, #edf3ef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf3ef 75%),
    linear-gradient(-45deg, transparent 75%, #edf3ef 75%);
  background-color: #ffffff;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.brand-logo-groups {
  grid-template-columns: 1fr;
}
.brand-logo-group {
  padding: 18px;
}
.brand-logo-group h3 {
  margin: 0 0 14px;
}
.brand-logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.brand-logo-preview {
  min-height: 128px;
}

@media (max-width: 900px) {
  .brand-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-color-grid,
  .brand-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-download-list.logo-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand-color-grid,
  .brand-type-grid,
  .brand-asset-grid,
  .brand-logo-row {
    grid-template-columns: 1fr;
  }
  .brand-download-list.logo-downloads {
    grid-template-columns: 1fr;
  }
  .brand-asset-card.wide,
  .brand-asset-card.og {
    grid-column: auto;
  }
}
