@import url('https://fonts.googleapis.com/css2?family=Roboto:wdth,wght@75..100,100..900&family=Roboto+Condensed:wght@400;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   Balance Matters — styles.css
   Brand: Upright Science | balancematters.com
   Colors sampled directly from the official logo + design v4.
═══════════════════════════════════════════════════════════════ */

/* ─── Design tokens ────────────────────────────────────────── */
:root {
  /* Brand colors — exact samples from logo + design PNG */
  --brand:         #0094DA;   /* logo blue */
  --brand-dark:    #0273BA;   /* footer-bottom darker blue */
  --brand-darker:  #015F9B;   /* hover */
  --brand-light:   #2BA8E6;
  --brand-soft:    #E6F4FB;
  --orange:        #FFA100;   /* logo orange */
  --orange-dark:   #E08C00;
  --orange-soft:   #FFF3DA;

  --text-secondary: #5c6472;
  --brand-deep:    #0073bb;

  --ink:           #1F2937;
  --ink-mid:       #4B5563;
  --ink-light:     #6B7280;
  --bg-off:        #F4F5F7;
  --gray-bg:       #eeeff1ed;
  --white:         #FFFFFF;
  --surface-muted: #f7fafc;
  --surface-tint:  #e0f1fb;

  --border-subtle: #e0e6ef;
  --border-card:   #e5e7eb;
  --border-form:   #dde8f0;
  --border-input:  #c8d8e8;

  --gradient-page-hero:    linear-gradient(135deg, #f0f8ff 0%, #e8f4fb 52%, #e3eef9 100%);
  --page-hero-border:      #d0e8f5;
  --gradient-bar-start:    #0192D9;
  --gradient-bar-end:      #0270B9;
  --gradient-announce-bar: linear-gradient(198.65deg, #0192D9 12.28%, #0270B9 87.08%);
  --gradient-brand-v:      linear-gradient(to top, var(--brand-deep) 0%, var(--brand) 100%);

  --shadow-sm:           0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:           0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:           0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --shadow-brand:        0 8px 32px rgba(0, 115, 187, 0.12);
  --shadow-card-premium: 0 4px 24px rgba(0, 115, 187, 0.08), 0 1px 0 rgba(255,255,255,0.8) inset;

  --focus-ring: 0 0 0 3px rgba(0, 148, 218, 0.15);

  --radius-sm:  6px;
  --radius-sm-2: 10px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s  cubic-bezier(0.4, 0, 0.2, 1);

  --font-body:    'Roboto', sans-serif;
  --font-display: 'Roboto', sans-serif;
  --font-nav:     'Roboto Condensed', sans-serif;
  --font-cta:     'Roboto Condensed', sans-serif;
  --font-stretch: 90%;

  --max-w:      1140px;
  --max-w-text: 920px;
  --gutter: 24px;
  --nav-h: 76px;
  --topbar-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  font-stretch: var(--font-stretch);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--brand);
  margin-top: 18px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.44rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.36;
}

.section-sub--mt { margin-top: 14px; }

/* Chip — gradient pill matching header, footer, and benefit boxes */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  border-radius: 7px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #0094DA 0%, #0073bb 100%);
  color: var(--white);
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn img   { display: block; height: 64px; width: auto; }

/* ─── Top bar (brand blue) ──────────────────────────────────── */
.top-bar {
  background: linear-gradient(to top, #0073bb 0%, #0094DA 100%);
  /* background: #0094DA; */
  color: var(--white);
  height: var(--topbar-h);
  position: relative;
  z-index: 200;
}

.top-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.top-bar__link--ios { text-transform: none; }
.top-bar__link:hover { opacity: 0.8; }

.top-bar__platforms { display: flex; align-items: center; gap: 24px; }

.top-bar__sep { 
  /* color: rgba(255,255,255,0.75); */
  font-size: 0.82rem; 
}

/* ─── Site header — sticky, transparent so hero gray shows through gap ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 22px 0 0;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}


/* Subpage header wrapper — sticky, transparent so gray triangle shows through */
.subpage-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(15, 60, 100, 0.07), 0 1px 2px rgba(0,0,0,0.04);
  height: var(--nav-h);
  transition: box-shadow var(--transition), background var(--transition);
}

/* On scroll: nav-card goes transparent so parent frosted glass is visible */
.site-header.scrolled .nav-card {
  box-shadow: 0 10px 30px rgba(15, 60, 100, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 90%);
}

.nav__logo img { height: 48px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 24px; }

.nav__link {
  font-family: 'Roboto Condensed', sans-serif;
  font-stretch: normal;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.020em;
  text-transform: uppercase;
  color: #4B4B4A;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after { transform: scaleX(1); }

/* Mobile-only nav items — hidden on desktop */
.nav__link--mobile-only { display: none; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.04px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero block — gray triangle bg behind sticky nav + hero ─── */
.hero-block {
  position: relative;
  background: var(--white);
  overflow: hidden;
  margin-top: calc(-1 * (var(--nav-h) + 22px));
  padding-top: calc(var(--nav-h) + 22px);
}

/* Gray triangle bg — top extends to 80% of the page width, then a clean
   diagonal hypotenuse runs from there down to the bottom-left corner. */
.hero-block__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(280px, 34vw, 500px);
  background: var(--gray-bg);
  clip-path: polygon(0 0, 90% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 32px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero__copy { position: relative; z-index: 1; }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  /* letter-spacing: -0.025em; */
  color: var(--brand);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.44rem;
  line-height: 1.35;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 14px;
  letter-spacing: 0.001em;
}

.hero__download-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.005em;
}

.hero__store-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  width: 100%;
  max-width: 560px;
  height: auto;
  /* hero PNG already includes the orange triangle behind the woman */
}

/* ─── How It Works ──────────────────────────────────────────── */
.how-it-works {
  padding: 2px 0 24px;
  background: var(--white);
}

.how-it-works .section-title {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1.04;
}

.look-inside .section-title,
.benefits .section-title {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1.04;
}

.how-it-works .section-sub {
  /* font-size: 1.3rem; */
  line-height: 1.45;
  font-weight: 300;
  color: var(--text-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  background: #f0f0f1;
  border-radius: 8px;
  padding: 52px 22px 16px;
  min-height: 172px;
  text-align: center;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-card__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  box-shadow: 0 6px 18px rgba(255,161,0,0.30);
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 18px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.step-card__desc {
  font-size: 1.28rem;
  color: var(--text-secondary);
  line-height: 1.3;
  font-weight: 300;
}

/* ─── A Look Inside (carousel) ──────────────────────────────── */
.look-inside {
  padding: 36px 0 26px;
  background: var(--white);
  overflow: hidden;
}

.look-inside .section-header {
  max-width: 980px;
  margin-bottom: 5px;
}

.look-inside .section-title {
  white-space: nowrap;
}

.look-inside .section-sub {
  margin-top: 5px;
}

/* Phone frame */
.phone-frame {
  position: relative;
  width: 214px;
  height: 446px;
  background: #8b909a;
  border-radius: 34px;
  padding: 9px 6px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 16px 38px rgba(0,0,0,0.16),
    inset 0 1px 2px rgba(255,255,255,0.09);
  margin: 0 auto;
  flex-shrink: 0;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.phone-frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.08),
    0 32px 70px rgba(0,0,0,0.22),
    inset 0 2px 4px rgba(255,255,255,0.10);
}

.phone-frame__notch {
  width: 64px;
  height: 12px;
  background: #8b909a;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #F8F9FA;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Swiper overrides — 1 centered, 2 faded each side */
.carousel-swiper {
  width: 100%;
  padding: 36px 0 66px !important;
  position: relative;
  /* Let Swiper manage overflow; we just hide the section edges */
  overflow: visible;
}

/* Clip overflow at the section level only */
.look-inside { overflow: hidden; }

.carousel-swiper .swiper-wrapper {
  align-items: center;
}

/* All slides: default faded + shrunk */
.carousel-swiper .swiper-slide {
  width: 250px !important;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  transform: scale(0.82);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Direct neighbours of active (prev & next) */
.carousel-swiper .swiper-slide-prev,
.carousel-swiper .swiper-slide-next {
  opacity: 0.78;
  transform: scale(0.95);
  z-index: 1;
}

/* Active centered slide — full size */
.carousel-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.08);
  z-index: 2;
}

/* Center phone frame is dark navy, side phones are soft gray */
.carousel-swiper .swiper-slide-active .phone-frame {
  background: #121a31;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 20px 46px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.08);
}
.carousel-swiper .swiper-slide-active .phone-frame__notch {
  background: #121a31;
}

.swiper-pagination-bullet {
  background: #1298d8;
  opacity: 1;
  width: 13px;
  height: 13px;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #f3a11c;
  width: 13px;
  height: 13px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #53a9de !important;
  width: 52px !important;
  height: 52px !important;
  background: #ffffff !important;
  border: 2px solid #e5edf6;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(20, 67, 108, 0.18);
  top: 42% !important;
  z-index: 10;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px !important;
  font-weight: 600;
}

@media (max-width: 960px) {
  .look-inside .section-title {
    white-space: normal;
  }
}

/* ─── Benefits / Health Snapshot ────────────────────────────── */
.benefits {
  position: relative;
  padding: 32px 0 80px;
  background: var(--white);
  overflow: hidden;
}

/* Bottom gray triangle — mirror of the hero triangle.
   Top triangle: left-heavy, diagonal top-right → bottom-left.
   Bottom triangle: right-heavy, diagonal from top-right corner
   across to ~10% from left at the bottom edge. */
.benefits::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 700px;
  background: linear-gradient(135deg, rgba(238,239,241,0.2) 0%, rgba(238,239,241,0.95) 82%);
  clip-path: polygon(100% 0, 100% 100%, 10% 100%);
  z-index: 0;
  pointer-events: none;
}

.benefits > .container { position: relative; z-index: 1; }

.benefits .section-header {
  max-width: 870px;
}

.benefits .section-sub strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.benefits .section-sub {
  font-size: 1.4rem;
  line-height: 1.36;
  color: var(--text-secondary);
  font-weight: 300;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 54px;
  max-width: none;
  width: 100%;
  margin: 0 0 56px;
  align-items: stretch;
}

.snapshot-card {
  position: relative;
  border-radius: var(--radius-sm);
  /* Tall card format: more vertical room, slightly tighter width feel */
  padding: 40px 20px 10px;
  min-height: 222px;
  height: 100%;
  text-align: center;
  color: var(--white);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.snapshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.snapshot-card--blue   { background: linear-gradient(180deg, #1ba5e3 0%, #0f92d3 20%, #056baa 100%); }
.snapshot-card--orange { background: linear-gradient(180deg, #fab433 0%, #f19f22 20%, #e97f16 100%); }

.snapshot-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  padding: 0;
}

.snapshot-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.snapshot-card__title {
  font-size: 2.3rem;
  font-weight: 750;
  color: var(--white);
  margin-bottom: 19px;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.snapshot-card__desc {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.38;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

/* Clinician card — white rounded card with thin blue border */
.clinician-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.clinician-card__copy {
  flex: 1;
  min-width: 0;
}

.clinician-card__body {
  display: flex;
  align-items: center;
  gap: 26px;
}

.clinician-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 14px;
  line-height: 1.08;
}

.clinician-card__desc {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.34;
  margin-bottom: 14px;
  font-weight: 300;
}

.clinician-card__desc:last-child { margin-bottom: 0; }

.clinician-card__link {
  color: #4A5565;
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.clinician-card__link:hover { color: var(--brand-darker); }

.clinician-card__graphic {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
}

.clinician-card__graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Footer (brand blue — vertical gradation + extra depth below) ─ */
.site-footer {
  background: linear-gradient(
    180deg,
    #0195D9 0%,
    #0271B9 50%,
    var(--brand-dark) 80%,
    var(--brand-darker) 100%
  );
  color: var(--white);
  padding: 45px 0 320px;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 68px;
  align-items: center;
  width: 100%;
}

.footer__brand { display: flex; align-items: center; }

.footer__right {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 40px;
  min-width: 0;
  width: 100%;
  justify-items: stretch;
}

.footer__logo {
  height: 130px;
  width: auto;
  display: block;
}

.footer__center {
  text-align: end;
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  justify-self: stretch;
  letter-spacing: 0.025em;
}

.footer__topline {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 40px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  font-weight: 400;
}

.footer__tagline {
  font-size: 1.05rem;
  color: var(--white); 
  line-height: 1.2;
  display: inline-block;
  margin-right: 0;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  /* letter-spacing: 0.05em; */
}

.footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 21px;
  margin: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
  vertical-align: baseline;
}

.footer__nav a {
  font-size: 1rem;
  color: var(--white);
  transition: opacity var(--transition);
}
.footer__nav a:hover { opacity: 0.8; }

.footer__sep {
  /* color: rgba(255,255,255,0.6); */
  font-size: 1rem;
  letter-spacing: 0;
}

.footer__copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 6px;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  /* letter-spacing: 0.055em; */
}

.footer__store {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

.footer__store .store-btn img { height: 40px; }

/* ─── Responsive — 960px (tablet) ──────────────────────────── */
@media (max-width: 960px) {
  :root { --nav-h: 60px; }

  /* Smaller logo on mobile so it doesn't feel cramped */
  .nav__logo img { height: 34px; }

  /* Nav mobile */
  .nav__hamburger { display: flex; }
  .nav__link--mobile-only { display: block; }

  .nav-card { position: relative; }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 99;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    display: block;
    padding: 6px 12px 7px 12px;
    text-align: left;
    border-radius: var(--radius-sm);
  }
  .nav__link::after { display: none; }

  /* Mobile menu — primary section links (top 3) */
  .nav__links > li:not(.nav__link--mobile-only) .nav__link {
    color: var(--brand);
  }

  /* Mobile menu — About & Contact */
  .nav__link--mobile-only .nav__link {
    color: #4B4B4A;
  }
  .nav__links > li:not(.nav__link--mobile-only) + .nav__link--mobile-only {
    margin-top: 16px;
  }
   .nav__link--mobile-only + .nav__link--mobile-only {
    margin-top: -2px;
  }

  /* Hero */
  .site-header { padding: 20px 0 0; }
  .nav-card { padding: 10px 18px; }
  .hero { padding: 28px 0 56px; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  /* Tablet — gray triangle covers more of the screen since image moves below */
  .hero-block__bg {
    width: 100%;
    height: 360px;
    clip-path: polygon(0 0, 100% 0, 100% 58%, 0 88%);
  }

  .hero__sub {
    max-width: 100%;
    margin: 0 auto 28px;
  }

  .hero__store-btns { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__image { max-width: 380px; }

  .steps-grid { grid-template-columns: 1fr; }

  .snapshot-grid { grid-template-columns: 1fr 1fr; }

  /* Clinician card */
  .clinician-card {
    text-align: center;
    padding: 32px 28px;
  }
  .clinician-card__body {
    flex-direction: column;
    gap: 22px;
  }

  /* Footer: keep single row on tablet widths */
  .footer__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 45px;
    text-align: left;
  }

  .footer__logo { height: 88px; }
  .footer__brand { justify-content: flex-start; }
  .footer__store { flex-direction: row; justify-content: flex-end; }
}

/* ─── Responsive — 600px (phone) ───────────────────────────── */
@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .top-bar__inner > .top-bar__link { display: none; }
  .top-bar__inner { justify-content: center; }

  /* Center chip rows on all subpages on mobile */
  .chip-row { justify-content: center; }

  .section-header { margin-bottom: 36px; }

  .how-it-works,
  .look-inside,
  .benefits {
    padding: 56px 0;
  }

  .hero__store-btns { flex-direction: column; align-items: center; }

  .hero__headline {
    font-size: clamp(2.85rem, 7.5vw, 3.35rem);
  }

  .phone-frame { width: 170px; height: 358px; }

  .snapshot-grid { grid-template-columns: 1fr; }

  .clinician-card { padding: 28px 20px; }
  .clinician-card__graphic { width: 120px; height: 120px; }
  .clinician-card__title { font-size: 2rem; }

  /* Footer stacks only on small phones */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer__brand { justify-content: center; }
  .footer__right {
    row-gap: 14px;
  }
  .footer__store { justify-content: center; }
  .footer__center { text-align: center; }
  .footer__topline {
    justify-content: center;
    white-space: normal;
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGES — shared across about.html, contact.html, privacy-policy.html
   CSS ported from UpRight Science (web.uprightscience.com / main-3)
═══════════════════════════════════════════════════════════════ */

html.subpage-no-hero {
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 24px);
}

/* ── Chip row ─────────────────────────────────────────────── */
.chip-row { display: flex; align-items: center; margin-bottom: 10px; }
.chip-row--center { justify-content: center; }
.page-hero .chip-row { margin-bottom: 20px; }

/* ── Page hero (subpage header band) ─────────────────────── */
/* Pull page-hero up behind the sticky header (nav-h + 16px top + 16px bottom padding)
   so the gray triangle starts at the very top of the page, matching the homepage. */
.page-hero {
  margin-top: calc(-1 * (var(--nav-h) + 32px));
  padding-top: calc(var(--nav-h) + 12px + 62px);
  padding-bottom: 50px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
/* Gray triangle — same shape and color as homepage hero-block__bg */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gray-bg);
  clip-path: polygon(0 0, 90% 0, 0 90%);
  z-index: 0;
  pointer-events: none;
}
.page-hero::after { content: none; }

/* About — fixed proportional triangle (matches homepage hero-block__bg).
   Avoids height: 100% stretching with long hero copy. */
.page-hero--about::before {
  width: 100%;
  height: clamp(340px, 34vw, 500px);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 5px;
}
.page-hero__title--brand { color: var(--brand); }

/* About page — desktop headline matches homepage hero size */
@media (min-width: 961px) {
  .page-hero--about .page-hero__title,
  .page-hero--privacy .page-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.15rem);
  }
}

.page-hero__sub {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}
/* .page-hero__sub--wide { max-width: 760px; } */
.page-hero__sub--full { max-width: 100%; }

/* Compact variant — kept for future use but not used on contact page */
.page-hero--compact {
  padding-top: calc(var(--nav-h) + 32px + 10px);
  padding-bottom: 14px;
}

/* ── Contact page hero — single wrapper, gray triangle covers full content area ── */
/* Pulls up behind the sticky nav exactly like .hero-block on the homepage.
   Only affects contact.html — no other page uses .contact-hero. */
.contact-hero {
  margin-top: calc(-1 * (var(--nav-h) + 32px));
  padding-top: calc(var(--nav-h) + 32px + 52px);
  padding-bottom: 96px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(340px, 34vw, 500px);
  background: var(--gray-bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero .chip-row  { margin-bottom: 36px; }

/* ── Privacy page hero — single wrapper, gray triangle covers hero + legal top ── */
.privacy-hero {
  margin-top: calc(-1 * (var(--nav-h) + 32px));
  padding-top: calc(var(--nav-h) + 32px + 52px);
  background: var(--white);
  position: relative;
  overflow: visible;
}
.privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(340px, 34vw, 500px);
  background: var(--gray-bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}
.privacy-hero .page-hero {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 40px;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.privacy-hero .page-hero::before {
  content: none;
}
.privacy-hero .page-hero__sub {
  margin-bottom: 0;
}
.privacy-hero .legal-page {
  position: relative;
  z-index: 1;
  background: transparent;
}
.privacy-hero .chip-row { margin-bottom: 20px; }

/* ── Contact page — simple three-section layout ──────────── */
.contact-simple {
  padding: 28px 0 96px;
  background: var(--white);
}
.contact-simple__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 860px;
}
.contact-simple__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--brand);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.contact-simple__body {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contact-simple__link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.contact-simple__link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   About page — new layout
═══════════════════════════════════════════════════════════════ */
.about-main { background: var(--white); }

/* ── Three-photo row ─────────────────────────────────────────── */
.about-photos {
  padding: 2px 0 0;
  background: var(--white);
}
.about-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.about-photos__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
}
.about-photos__img {
  width: 100%;
  height: 100%;
  display: block;
}


/* ── Two-column text block ───────────────────────────────────── */
.about-columns {
  padding: 52px 0 52px;
  background: var(--white);
}
.about-columns__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.about-columns__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.about-columns__body {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA banner — rounded blue box on white bg, matches upweb.kodiakbids.com ── */
.about-cta-banner {
  background: var(--white);
  padding: 8px 0 64px;
}
.about-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 30px 16px 35px;
  background: linear-gradient(to bottom, #0094DA 0%, #0073bb 100%);
  border-radius: var(--radius-md);
}
.about-cta-banner__text {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 1.98vw, 1.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.005em;
}
.about-cta-banner__btn {
  flex-shrink: 0;
  padding: 14px 30px;
  border-radius: 10px;
  background: #FAA71B;
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-stretch: extra-condensed;
}
.about-cta-banner__btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .about-cta-banner__btn {
    font-size: 1.08rem;
    padding: 11px 20px;
    letter-spacing: -0.02em;
  }
}

/* ── Leadership team grid ────────────────────────────────────── */
.about-team {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.about-team__lede {
  max-width: 900px;
  margin: 0 auto 26px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.33rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.about-team-card {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: none;
  padding: 28px 24px 30px;
  position: relative;
  overflow: hidden;
}

.about-team-card.about-team-card--reveal {
  opacity: 0;
  transform: translateY(14px);
}

.about-team-card.about-team-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}

.about-team-card::before { content: none; }

.about-team-card__role {
  font-family: var(--font-nav);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.about-team-card__name {
  font-family: var(--font-body);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--brand);
  margin-bottom: 12px;
}

.about-team-card__body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.62;
  color: var(--text-secondary);
}

.about-team-card__body + .about-team-card__body { margin-top: 12px; }

.about-team-card.is-preview-ready .about-team-card__body { display: none; }

.about-team-card__preview {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-team-card__read-more {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font-family: var(--font-nav);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition);
}

.about-team-card__read-more:hover { opacity: 0.78; }

/* ── Team bio modal ──────────────────────────────────────────── */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
}

.about-modal.is-open { display: block; }

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 36, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.about-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 28px));
  margin: clamp(28px, 5vh, 56px) auto;
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border-card);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.about-modal__header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--white) 100%);
  display: grid;
  gap: 6px;
  position: relative;
}

.about-modal__role {
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.about-modal__name {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 900;
  color: var(--text-secondary);
  line-height: 1.24;
  padding-right: 48px;
}

.about-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.about-modal__close:hover { background: var(--border-subtle); }

.about-modal__body {
  padding: 18px 22px 24px;
  overflow-y: auto;
}

.about-modal__body p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

.about-modal__body p + p { margin-top: 12px; }

@media (min-width: 961px) {
  .about-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .about-modal__dialog { margin: 0; max-height: calc(100vh - 40px); }
}

/* ── About page responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .about-photos__grid { grid-template-columns: 1fr; gap: 12px; }
  .about-columns__grid { grid-template-columns: 1fr; gap: 36px; }
  .about-cta-banner__inner { flex-direction: column; text-align: center; align-items: center; padding: 18px 22px; margin: 0 16px; }
  .about-cta-banner__text { max-width: 100%; }
  .about-team__grid { grid-template-columns: 1fr; }
  .about-modal__dialog { width: min(860px, calc(100% - 20px)); max-height: calc(100vh - 28px); margin: 14px auto; }
}

@media (max-width: 600px) {
  .about-team { padding: 0 var(--gutter) 48px; }
  .about-team__lede { font-size: 1.44rem; }
  .about-team-card { padding: 22px 18px 24px; }
  .about-team-card__name { font-size: 1.28rem; }
  .about-team-card__preview { -webkit-line-clamp: 5; }
  .about-team-card__read-more { font-size: 0.7rem; }
  .about-modal__header { padding: 16px 16px 14px; }
  .about-modal__body { padding: 14px 16px 18px; }
  .about-modal__body p { font-size: 1rem; line-height: 1.58; }
  .about-modal__close { top: 8px; right: 10px; width: 34px; height: 34px; font-size: 1.45rem; }

  /* Subpages — center hero text on mobile (non-about, non-privacy) */
  .page-hero:not(.page-hero--about):not(.page-hero--privacy) .page-hero__title,
  .page-hero:not(.page-hero--about):not(.page-hero--privacy) .page-hero__sub { text-align: center; }

  /* About page — flush left on mobile */
  .page-hero--about .page-hero__title,
  .page-hero--about .page-hero__sub { text-align: left; }

  .page-hero--about .chip-row { justify-content: flex-start; }

  .about-main .about-columns__heading,
  .about-main .about-columns__body,
  .about-main .about-team-card__role,
  .about-main .about-team-card__name,
  .about-main .about-team-card__preview,
  .about-main .about-team-card__read-more { text-align: left; }

  .about-photos__grid {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .about-cta-banner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .about-cta-banner__inner {
    margin-left: 0;
    margin-right: 0;
    /* text-align: left;
    align-items: flex-start; */
  }
}

/* ── Legacy about-premium classes (kept for safety, not used) ── */
.about-premium { padding: 0 0 88px; background: var(--white); }

.about-premium__band {
  background: linear-gradient(180deg, var(--bg-off) 0%, var(--white) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
}
.about-premium__intro {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
  gap: clamp(32px,5vw,56px);
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.about-premium__lede {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}
.about-premium__lede p + p { margin-top: 1.25em; }

.about-premium__aside { display: flex; flex-direction: column; gap: 16px; }
.about-premium__stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card-premium);
  position: relative; overflow: hidden;
}
.about-premium__stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gradient-bar-start) 0%, var(--gradient-bar-end) 100%);
}
.about-premium__stat-label {
  font-family: var(--font-nav);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gradient-bar-end); margin-bottom: 8px;
}
.about-premium__stat-headline {
  font-family: var(--font-body);
  font-size: 1.6rem; font-weight: 900;
  color: var(--brand); line-height: 1.25; letter-spacing: -0.02em;
}
.about-premium__stat-copy {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1.2rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.5;
}

.about-premium__mission-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 64px var(--gutter) 0;
}
.about-premium__mission {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(28px,4vw,44px) clamp(24px,4vw,48px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-brand);
  position: relative;
}
.about-premium__mission::before {
  content: '';
  position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(180deg, var(--gradient-bar-start) 0%, var(--gradient-bar-end) 100%);
}
.about-premium__mission-inner { padding-left: clamp(12px,2vw,24px); }
.about-premium__mission-kicker {
  font-family: var(--font-nav);
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.about-premium__mission-title {
  font-family: var(--font-body);
  font-size: clamp(1.7rem,2.7vw,2.2rem);
  font-weight: 900; color: var(--text-secondary);
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px;
}
.about-premium__mission-body {
  font-family: var(--font-body);
  font-size: 1.3rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.6;
  max-width: var(--max-w-text);
}

.about-premium__pillars {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(20px,3vw,28px);
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
}
.about-premium__pillar {
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  border: 1px solid var(--border-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.about-premium__pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,148,218,0.35);
}
.about-premium__pillar-num {
  font-family: var(--font-cta);
  font-size: 2.55rem; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--gradient-bar-start) 0%, var(--gradient-bar-end) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.about-premium__pillar-title {
  font-family: var(--font-body);
  font-size: 1.45rem; font-weight: 900;
  color: var(--text-secondary); line-height: 1.2;
  margin-bottom: 10px; letter-spacing: -0.015em;
}
.about-premium__pillar-text {
  font-family: var(--font-body);
  font-size: 1.28rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.55;
}

.about-premium__invite {
  position: relative; margin: 48px 0 0;
  background: var(--gradient-page-hero);
  border-bottom: 1px solid var(--page-hero-border); overflow: hidden;
}
.about-premium__invite-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.about-premium__invite-bg::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: min(55vw,520px); height: min(55vw,520px); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(1,146,217,0.12) 0%, transparent 70%);
}
.about-premium__invite-bg::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: min(45vw,400px); height: min(45vw,400px); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(2,112,185,0.1) 0%, transparent 68%);
}
.about-premium__invite-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(44px,6vw,72px) var(--gutter);
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(28px,5vw,56px); align-items: center;
}
.about-premium__invite-copy { min-width: 0; }
.about-premium__invite-title {
  font-family: var(--font-body);
  font-size: clamp(1.55rem,2.5vw,2.05rem);
  font-weight: 900; color: var(--text-secondary);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.about-premium__invite-body {
  font-family: var(--font-body);
  font-size: 1.3rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.65; max-width: 52rem;
}
.about-premium__invite-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.about-premium__invite-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 34px; border-radius: var(--radius-md);
  background: var(--gradient-announce-bar); color: var(--white);
  font-family: var(--font-cta); font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(2,112,185,0.32);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.about-premium__invite-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(2,112,185,0.38); }
.about-premium__invite-cta-arrow { font-size: 1.35rem; line-height: 1; transition: transform var(--transition); }
.about-premium__invite-cta:hover .about-premium__invite-cta-arrow { transform: translateX(6px); }
.about-premium__tagline {
  text-align: center; margin-top: 56px; padding: 0 var(--gutter);
  font-family: var(--font-body);
  font-size: clamp(1.15rem,2vw,1.45rem);
  font-weight: 900; font-style: italic;
  color: var(--brand); letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .about-premium__intro { grid-template-columns: 1fr; }
  .about-premium__pillars { grid-template-columns: 1fr; max-width: 480px; }
  .about-premium__invite-inner { grid-template-columns: 1fr; text-align: center; }
  .about-premium__invite-actions { align-items: center; }
}
@media (max-width: 600px) {
  .page-hero { padding-top: calc(var(--nav-h) + 32px + 48px); padding-bottom: 36px; }
}

/* ═══════════════════════════════════════════════════════════════
   Contact page
═══════════════════════════════════════════════════════════════ */
.contact-premium { padding: 0 0 96px; background: var(--white); }
.contact-premium__band {
  background: linear-gradient(180deg, var(--bg-off) 0%, var(--white) 100%);
  padding: 56px 0 80px; border-bottom: 1px solid var(--border-subtle);
}
.contact-section--premium { padding: 0; }
.contact-grid--premium {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.02fr);
  gap: clamp(40px,5vw,72px); align-items: start;
}
.contact-info__title--premium {
  font-size: clamp(1.75rem,2.8vw,2.35rem); font-weight: 900;
  color: var(--text-secondary); margin-bottom: 18px; letter-spacing: -0.02em;
}
.contact-info__body--premium { font-size: 1.27rem; line-height: 1.6; margin-bottom: 16px; }
.contact-info__body {
  font-family: var(--font-body); font-size: 1rem;
  font-weight: 300; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px;
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 16px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,148,218,0.35); }
.contact-card__eyebrow {
  font-family: var(--font-nav); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gradient-bar-end);
}
.contact-card__value { font-family: var(--font-body); font-size: 1.28rem; font-weight: 700; color: var(--text-secondary); }
.contact-card--web .contact-card__value { color: var(--brand); }

.contact-expect {
  margin-top: 36px; padding: 26px 22px 28px;
  border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card-premium);
  position: relative; overflow: hidden;
}
.contact-expect::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gradient-bar-start) 0%, var(--gradient-bar-end) 100%);
}
.contact-expect__title {
  font-family: var(--font-body); font-size: 1.38rem; font-weight: 900;
  color: var(--brand); margin-bottom: 14px; letter-spacing: -0.02em;
}
.contact-expect__list {
  margin: 0; padding: 0 0 0 22px; list-style: disc;
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.55;
}
.contact-expect__list li + li { margin-top: 8px; }

.contact-premium__form-wrap { position: relative; }

/* Form */
.demo-form--magic {
  position: relative; border-radius: var(--radius-xl);
  padding: 40px 36px 38px; border: 1px solid var(--border-card);
  box-shadow: var(--shadow-brand); overflow: hidden; background: var(--white);
}
.demo-form--magic::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gradient-bar-start) 0%, var(--gradient-bar-end) 100%);
  z-index: 2;
}
.demo-form--magic::after {
  content: ''; position: absolute; bottom: -35%; right: -18%;
  width: min(72%,320px); height: min(72%,320px); border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(1,146,217,0.07) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.demo-form__kicker {
  font-family: var(--font-nav); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 8px;
  position: relative; z-index: 1;
}
.demo-form--magic .demo-form__title {
  font-size: clamp(1.45rem,2.2vw,1.85rem); margin-bottom: 10px;
  font-family: var(--font-body); font-weight: 900; color: var(--text-secondary);
  position: relative; z-index: 1; letter-spacing: -0.01em;
}
.demo-form__lede {
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 26px; position: relative; z-index: 1;
}
.demo-form__form { position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row--full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.06em;
}
.form-label__hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-light); font-size: 0.92em; }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body); font-size: 1rem; font-weight: 300;
  color: var(--ink); background: var(--surface-muted);
  border: 1px solid var(--border-input); border-radius: var(--radius-sm-2);
  padding: 12px 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%; box-sizing: border-box;
}
.form-input:hover, .form-textarea:hover { border-color: rgba(0,148,218,0.4); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand); box-shadow: var(--focus-ring); background: #fff;
}
.form-textarea { resize: vertical; min-height: 100px; }

.form-submit--magic {
  position: relative; overflow: hidden; width: 100%;
  margin-top: 12px; padding: 16px 24px;
  border-radius: var(--radius-md);
  background: var(--gradient-announce-bar);
  font-family: var(--font-nav); font-size: 1.125rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  box-shadow: 0 8px 26px rgba(2,112,185,0.28); border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.form-submit--magic:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(2,112,185,0.35); filter: brightness(1.03); }
.form-submit--magic:disabled { cursor: default; opacity: 0.92; transform: none; }
.form-submit--magic.is-submitted { filter: brightness(0.96); }
.form-submit__text { position: relative; z-index: 1; }
.form-submit__shine {
  position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg); pointer-events: none; transition: left 0.65s ease;
}
.form-submit--magic:hover:not(:disabled) .form-submit__shine { left: 120%; }
.form-success-msg {
  display: none; margin-top: 18px;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  color: var(--brand); text-align: center; line-height: 1.45;
}
.form-success-msg.is-visible { display: block; }

@media (max-width: 900px) {
  .contact-grid--premium { grid-template-columns: 1fr; gap: 40px; }
  .demo-form--magic { padding: 28px 22px; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Privacy Policy page
═══════════════════════════════════════════════════════════════ */
.legal-page {
  padding: 0 0 88px;
  background: var(--white);
}
.legal-page__bar { padding: 8px 0 8px; }
.legal-page__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 24px;
}
.legal-page__meta { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal-page__date {
  font-family: var(--font-nav);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-block;
  padding: 9px 20px 9px 24px;
  line-height: 1.25;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 248px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-top: 28px;
}
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--topbar-h) + 20px);
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-subtle);
}
.legal-toc__title {
  font-family: var(--font-nav);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--brand);
  background: var(--surface-tint);
}
.legal-doc { max-width: var(--max-w-text); }
.legal-block {
  position: relative;
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 32px);
  padding-left: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.legal-block::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand-v);
  border-radius: 4px 0 0 4px;
}

/* Privacy page — flat layout (matches UpRight Science privacy page) */
.privacy-page .legal-page__bar {
  padding: 8px 0 8px;
}

.privacy-page .legal-layout {
  padding-top: 22px;
}

.privacy-page .legal-page__date,
.privacy-page .legal-toc,
.privacy-page .legal-block {
  box-shadow: none !important;
  border: none;
  border-radius: 0;
  background: transparent;
}

.privacy-page .legal-toc {
  padding: 0 0 16px;
}

.privacy-page .legal-block {
  padding: 0 0 20px;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--nav-h) + var(--topbar-h) + 24px);
}

.privacy-page .legal-block::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.privacy-page .legal-toc a {
  border-left: none;
  border-bottom: none;
  border-radius: var(--radius-sm);
}

.privacy-page .legal-toc a:hover,
.privacy-page .legal-toc a:focus-visible {
  color: var(--brand);
  background: var(--surface-tint);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.legal-doc h2 {
  font-family: var(--font-body); font-size: clamp(1.48rem,2.35vw,1.82rem);
  font-weight: 900; color: var(--brand); letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 16px;
}
.legal-doc p {
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.72; margin-bottom: 15px;
}
.legal-doc p:last-child { margin-bottom: 0; }
.legal-doc ul { list-style: disc; padding-left: 1.45rem; margin: 0 0 15px; }
.legal-doc li {
  font-family: var(--font-body); font-size: 1.075rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.68; margin-bottom: 9px;
}
.legal-doc strong { font-weight: 700; color: var(--ink); }
.legal-doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--brand-dark); }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: relative; top: auto; padding: 16px; }
  .legal-toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal-toc li { flex: 0 0 auto; }
  .legal-toc a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .legal-toc a:hover, .legal-toc a:focus-visible { border-left-color: transparent; border-bottom-color: var(--brand); }

  .privacy-page .legal-toc {
    padding: 0 0 12px;
  }

  .privacy-page .legal-toc a {
    border-bottom: none;
  }

  .privacy-page .legal-toc a:hover,
  .privacy-page .legal-toc a:focus-visible {
    border-bottom-color: transparent;
    background: var(--surface-tint);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 600px) {
  /* Privacy page — flush left on mobile */
  .page-hero--privacy .page-hero__title,
  .page-hero--privacy .page-hero__sub { text-align: left; }

  .page-hero--privacy .chip-row { justify-content: flex-start; }

  .privacy-page .legal-toc { display: none; }

  .privacy-page .legal-layout { padding-top: 8px; }

  .privacy-page .legal-page__bar-inner { justify-content: flex-start; }

  .privacy-page .legal-page__date {
    padding: 8px 16px;
  }

  .privacy-page .legal-page__bar {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .privacy-page .legal-block {
    padding-left: 0;
    padding-right: 0;
  }

  .privacy-page .legal-doc,
  .privacy-page .legal-doc ul,
  .privacy-page .legal-doc h2,
  .privacy-page .legal-doc p,
  .privacy-page .legal-doc li { text-align: left; }
}