:root {
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: #4b4b4b;
  --heading: #090909;
  --green: #4caf50;
  --green-hover: #449d48;
  --rule: #d0d0d0;
  --header-height: 82px;
  --footer-height: 48px;
  --content-width: 950px;
  --header-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  width: min(calc(100% - 56px), var(--header-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 200px;
  height: 52px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 16px;
  line-height: 1;
}

.primary-nav a {
  text-decoration: none;
  color: #4b4b4b;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: #111;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #222;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-footer {
  color: #505050;
  font-size: 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.home-footer {
  position: fixed;
  z-index: 900;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
}

.home-main {
  scroll-snap-type: y proximity;
}

.nav-scrolling .home-main {
  scroll-snap-type: none;
}

.home-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-height);
  padding: calc(var(--header-height) + 24px) 0 calc(var(--footer-height) + 24px);
}

.section-inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.approach-copy h1,
.insight-copy h2,
.contact-heading h2,
.privacy-content h1,
.privacy-content h2 {
  margin-top: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.approach-copy h1 {
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 1.05;
}

.approach-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.52;
}

.scroll-prompt {
  margin-top: 25px !important;
  color: #050505;
  font-size: 20px !important;
  font-weight: 700;
}

.approach-image img {
  width: 410px;
  margin-left: auto;
  border-radius: 7px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 1fr);
  align-items: center;
  gap: 52px;
}

.insight-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: #4b4b4b;
  font-size: 20px;
  line-height: 1.25;
}

.insight-copy h2 {
  margin-bottom: 24px;
  font-size: 46px;
  line-height: 1.04;
}

.insight-copy .lead {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 42px;
}

.feature-grid article {
  min-width: 0;
}

.feature-grid h3 {
  margin: 0 0 10px;
  color: #050505;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.feature-grid p {
  margin: 0;
  font-size: 18px;
  line-height: 1.48;
}

.insight-visual img {
  width: 100%;
  aspect-ratio: 680 / 820;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.visual-caption {
  margin: 34px 0 0;
  color: #050505;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.contact-section {
  align-items: center;
}

.contact-inner {
  width: min(calc(100% - 48px), var(--content-width));
}

.contact-heading {
  margin: 0 auto 48px;
  text-align: center;
}

.contact-heading h2 {
  margin-bottom: 22px;
  font-size: 46px;
  line-height: 1.05;
}

.contact-heading p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.contact-list {
  width: 100%;
}

.contact-row {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 20px 0 20px 100px;
  border-bottom: 1px solid var(--rule);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row p {
  margin: 0;
  color: #0c0c0c;
  font-size: 20px;
  line-height: 1.5;
}

.email-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 6px;
  background: var(--green);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.email-button:hover,
.email-button:focus-visible {
  background: var(--green-hover);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

/* Privacy policy */
.privacy-main {
  padding: calc(var(--header-height) + 70px) 0 30px;
}

.privacy-content {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.privacy-content h1 {
  margin-bottom: 25px;
  font-size: 52px;
  line-height: 1.05;
}

.privacy-intro {
  margin: 0 0 42px !important;
  font-size: 24px !important;
  line-height: 1.48 !important;
}

.privacy-content h2 {
  margin-bottom: 19px;
  font-size: 34px;
  line-height: 1.15;
}

.privacy-content h2:not(:first-of-type) {
  margin-top: 38px;
}

.privacy-content p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.52;
}

.privacy-email {
  margin-top: 2px;
  padding: 12px 18px;
}

.privacy-footer {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 0 0 48px;
  text-align: left;
}

/* Reveal motion */
.js .reveal {
  opacity: 0;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.25, 1);
  will-change: opacity, transform;
}

.js .reveal-left {
  transform: translate3d(-26px, 18px, 0);
}

.js .reveal-right {
  transform: translate3d(26px, -12px, 0);
}

.js .reveal-up {
  transform: translate3d(0, 24px, 0);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1020px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    width: min(calc(100% - 40px), var(--header-width));
  }

  .primary-nav {
    gap: 24px;
    font-size: 15px;
  }

  .section-inner,
  .contact-inner,
  .privacy-content,
  .privacy-footer {
    width: min(calc(100% - 56px), 900px);
  }

  .approach-grid {
    gap: 36px;
  }

  .approach-copy h1,
  .privacy-content h1 {
    font-size: 46px;
  }

  .insight-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 38px;
  }

  .insight-copy h2,
  .contact-heading h2 {
    font-size: 42px;
  }

  .insight-copy .lead,
  .contact-heading p {
    font-size: 19px;
  }

  .feature-grid {
    gap: 30px;
  }

  .contact-row {
    padding-left: 50px;
  }
}

@media (max-width: 820px) {
  .site-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 177px;
    height: auto;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .primary-nav {
    position: absolute;
    z-index: 1001;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    font-size: 17px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 8px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-main {
    scroll-snap-type: none;
  }

  .home-section {
    min-height: auto;
    display: block;
    padding: calc(var(--header-height) + 54px) 0 80px;
  }

  .section-inner,
  .contact-inner,
  .privacy-content,
  .privacy-footer {
    width: min(calc(100% - 44px), 680px);
  }

  .approach-grid,
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .approach-copy h1,
  .privacy-content h1 {
    font-size: 44px;
  }

  .approach-copy p,
  .feature-grid p,
  .privacy-content p {
    font-size: 17px;
  }

  .approach-image img {
    width: min(100%, 480px);
    margin: 0 auto;
  }

  .insight-copy h2,
  .contact-heading h2 {
    font-size: 40px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .insight-copy .lead {
    font-size: 18px;
  }

  .feature-grid {
    margin-top: 34px;
  }

  .insight-visual {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .visual-caption {
    margin-top: 24px;
    font-size: 19px;
  }

  .contact-heading {
    margin-bottom: 32px;
  }

  .contact-row {
    min-height: 0;
    padding: 24px 0;
  }

  .contact-row p {
    font-size: 18px;
  }

  .home-footer {
    position: static;
    height: auto;
    padding: 18px 0 24px;
  }

  .privacy-main {
    padding-top: calc(var(--header-height) + 52px);
  }

  .privacy-intro {
    font-size: 22px !important;
  }

  .privacy-content h2 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .approach-image {
    order: 1;
  }

  .approach-copy {
    order: 2;
  }

  :root {
    --header-height: 72px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 162px;
  }

  .section-inner,
  .contact-inner,
  .privacy-content,
  .privacy-footer {
    width: calc(100% - 34px);
  }

  .home-section {
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 62px;
  }

  .approach-copy h1,
  .privacy-content h1 {
    margin-bottom: 18px;
    font-size: 38px;
  }

  .approach-copy p {
    font-size: 16px;
  }

  .scroll-prompt {
    font-size: 18px !important;
  }

  .insight-copy h2,
  .contact-heading h2 {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 18px;
  }

  .insight-copy .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-grid h3 {
    font-size: 19px;
  }

  .feature-grid p {
    font-size: 16px;
  }

  .visual-caption {
    font-size: 18px;
  }

  .contact-heading p {
    font-size: 17px;
  }

  .desktop-break {
    display: none;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .email-button {
    justify-self: start;
    min-height: 44px;
    padding: 11px 18px;
  }

  .privacy-main {
    padding-top: calc(var(--header-height) + 42px);
  }

  .privacy-intro {
    margin-bottom: 34px !important;
    font-size: 20px !important;
  }

  .privacy-content h2 {
    margin-bottom: 15px;
    font-size: 27px;
  }

  .privacy-content h2:not(:first-of-type) {
    margin-top: 32px;
  }

  .privacy-content p {
    margin-bottom: 17px;
    font-size: 16px;
  }

  .privacy-footer {
    padding-bottom: 34px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Physician POV study page */
.study-page .primary-nav {
  gap: 24px;
  font-size: 15px;
}

.study-main {
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
}

.study-section {
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100svh - var(--footer-height));
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 64px;
}

.study-inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: center;
  gap: 54px;
}

.study-copy h1 {
  margin: 0 0 28px;
  color: var(--heading);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.study-copy p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.52;
}

.study-copy p:last-child {
  margin-bottom: 0;
}

.study-copy em {
  color: #303030;
}

.study-copy strong {
  color: #303030;
  font-weight: 700;
}

.study-visual img {
  width: 100%;
  max-width: 410px;
  margin-left: auto;
  border-radius: 7px;
}

.study-footer {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 22px;
}

@media (max-width: 1020px) {
  .study-page .primary-nav {
    gap: 16px;
    font-size: 14px;
  }

  .study-inner {
    width: min(calc(100% - 56px), 900px);
  }

  .study-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
    gap: 38px;
  }

  .study-copy h1 {
    font-size: 42px;
  }

  .study-copy p {
    font-size: 17px;
  }
}

@media (max-width: 820px) {
  .study-page .primary-nav {
    font-size: 17px;
  }

  .study-section {
    min-height: 0;
    display: block;
    padding: calc(var(--header-height) + 52px) 0 64px;
  }

  .study-inner {
    width: min(calc(100% - 44px), 680px);
  }

  .study-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .study-visual {
    order: 1;
  }

  .study-copy {
    order: 2;
  }

  .study-visual img {
    width: min(100%, 480px);
    margin: 0 auto;
  }

  .study-copy h1 {
    font-size: 40px;
  }

  .study-footer {
    padding-bottom: 26px;
  }
}

@media (max-width: 560px) {
  .study-section {
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 54px;
  }

  .study-inner {
    width: calc(100% - 34px);
  }

  .study-copy h1 {
    margin-bottom: 22px;
    font-size: 36px;
  }

  .study-copy p {
    margin-bottom: 17px;
    font-size: 16px;
  }

  .study-footer {
    font-size: 14px;
  }
}
