@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

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

:root {
  --teal:        #00AFFF;
  --teal-hover:  #0099e6;
  --green:       #00FFA3;
  --navy:        #081e2f;
  --navy-mid:    #124870;
  --cream:       #F2EDE3;
  --white:       #FFFFFF;
  --grey-border: #ddd8cf;
  --grey-text:   #5a6a7a;
  --body-text:   #124870;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--navy-mid); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy-mid); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; color: var(--navy-mid); }
h4 { font-size: 1rem; font-weight: 700; color: var(--navy-mid); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Headings on dark backgrounds override */
.for-orgs-home h1, .for-orgs-home h2, .for-orgs-home h3, .for-orgs-home h4,
.for-orgs h1, .for-orgs h2, .for-orgs h3, .for-orgs h4,
.appstore h1, .appstore h2, .appstore h3, .appstore h4,
.between-sessions h1, .between-sessions h2, .between-sessions h3, .between-sessions h4,
.pk-hero h1, .pk-hero h2, .pk-hero h3, .pk-hero h4,
.monai-hero h1, .monai-hero h2, .monai-hero h3, .monai-hero h4,
.hero h1, .hero h2, .hero h3, .hero h4,
.footer h1, .footer h2, .footer h3, .footer h4 {
  color: #ffffff;
}

/* Headings on cream/light backgrounds */
.values h1, .values h2, .values h3, .values h4,
.position h1, .position h2, .position h3, .position h4,
.why-multimodal h1, .why-multimodal h2, .why-multimodal h3, .why-multimodal h4,
.monai-different h1, .monai-different h2, .monai-different h3, .monai-different h4 {
  color: var(--navy-mid);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 24px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
}

/* ============================================================
   Section label (horizontal-line pattern)
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--teal);
  opacity: 0.35;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, background 0.18s, border-color 0.18s;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover,
.btn-primary:focus {
  opacity: 0.88;
  outline: none;
}

/* For dark backgrounds */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255,255,255,0.12);
  outline: none;
}

/* For light backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--navy-mid);
  border-color: var(--navy-mid);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: rgba(18,72,112,0.07);
  outline: none;
}

/* btn-primary--solid: for use on light/white backgrounds where green fades out */
.btn-primary--solid {
  background: var(--teal);
}
.btn-primary--solid:hover,
.btn-primary--solid:focus {
  background: var(--teal-hover);
  opacity: 1;
}

/* Teal outline variant (kept for compatibility) */
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover,
.btn-outline-teal:focus {
  background: var(--teal);
  color: var(--white);
  outline: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  height: 36px;
  width: auto;
}

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

.nav__link {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.nav__link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--teal);
}
.nav__link.active {
  color: var(--teal);
}

.nav__link--lang {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 5px 10px;
  margin-left: 4px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}
.nav__link--lang:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
  color: var(--teal);
}

.nav__cta {
  margin-left: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
}
.nav__mobile .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-body h2 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 2rem; margin-bottom: 0.5rem; color: var(--navy-mid); }
.legal-body h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.25rem; color: var(--navy-mid); }
.legal-body ul { padding-left: 1.4em; margin-bottom: 1rem; }
.legal-body ul li { margin-bottom: 0.35rem; list-style: disc; color: var(--grey-text); }
.legal-body p { color: var(--grey-text); }
.legal-body { padding-top: 2rem; padding-bottom: 3rem; }

/* ============================================================
   Home hero
   ============================================================ */
.hero {
  padding: calc(var(--nav-h) + clamp(40px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px);
  background: var(--navy);
}
.hero h1 { color: #ffffff; }
.hero .hero__sub { color: rgba(255,255,255,0.78); }

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: clamp(280px, 30vw, 420px);
}

.hero__content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__layout {
    min-height: unset;
  }
}

.hero__sub {
  font-size: 1rem;
  color: var(--grey-text);
  margin-top: 16px;
  margin-bottom: 28px;
  line-height: 1.75;
  max-width: 600px;
}

.hero__disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  font-style: italic;
}

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

/* ============================================================
   Values section
   ============================================================ */
.values {
  background: var(--cream);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid rgba(18,72,112,0.1);
  border-radius: 8px;
  padding: 18px 20px;
}
.card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}
.card p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.6;
}

/* ============================================================
   For Organizations (homepage dark section)
   ============================================================ */
.for-orgs-home {
  background: var(--navy);
  color: var(--white);
}
.for-orgs-home .section-label { color: var(--teal); }
.for-orgs-home .section-label::before,
.for-orgs-home .section-label::after { background: var(--teal); opacity: 0.35; }

.for-orgs-home__intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 40px;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
}

.stat-card__number {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* Privacy commit note (plain blockquote style, replaces dark inset box) */
.privacy-commit-box {
  border-left: 3px solid rgba(0,175,255,0.5);
  padding: 16px 20px;
  margin-bottom: 32px;
  background: transparent;
}
.privacy-commit-box p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   Position section
   ============================================================ */
.position {
  background: var(--cream);
}

.position__inner {
  max-width: 720px;
}

.position h2 {
  margin-bottom: 20px;
}

.position p {
  color: var(--grey-text);
  font-size: 1rem;
  line-height: 1.75;
}

.position__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: inherit;
}
.position__link:hover { color: var(--teal-hover); border-color: var(--teal-hover); }

/* ============================================================
   Who built this
   ============================================================ */
.who-built {
  background: var(--white);
}

.who-built__inner {
  max-width: 720px;
}

.who-built h2 {
  margin-bottom: 20px;
}

.who-built p {
  color: var(--grey-text);
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   App store section
   ============================================================ */
.appstore {
  text-align: center;
  background: var(--navy);
}
.appstore .section-label { color: var(--teal); }
.appstore .section-label::before,
.appstore .section-label::after { background: var(--teal); opacity: 0.35; }

.appstore h2 {
  margin-bottom: 28px;
}

/* Plain text download links (replaces faux store badges) */
.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.15s;
  padding: 0;
}
.store-badge:hover { color: var(--teal); }

.store-badge__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-badge__line1 {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
}
.store-badge__line2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.appstore__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.appstore--light {
  background: var(--white);
}
.appstore--light .section-label { color: var(--teal); }
.appstore--light h2 { color: var(--navy-mid); }
.appstore--light .store-badge { color: var(--navy-mid); }
.appstore--light .store-badge:hover { color: var(--teal); }
.appstore--light .appstore__note { color: var(--grey-text); }

/* ============================================================
   PulseKey hero
   ============================================================ */
.pk-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + clamp(40px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px);
}

.pk-hero__content {
  max-width: 680px;
}
.pk-hero .hero__sub { color: rgba(255,255,255,0.78); }
.pk-hero .hero__disclaimer { color: rgba(255,255,255,0.45); }

.pk-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
}

.pk-hero__layout {
  display: block;
}

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(18,72,112,0.1);
}

.feature-card__icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--grey-text);
}

/* ============================================================
   Why multimodal
   ============================================================ */
.why-multimodal {
  background: var(--cream);
}

.why-multimodal__inner {
  max-width: 760px;
}

.why-multimodal h2 {
  margin-bottom: 20px;
}

.why-multimodal p {
  font-size: 1.05rem;
  color: var(--grey-text);
  line-height: 1.75;
}

/* ============================================================
   For Orgs (PulseKey page dark section)
   ============================================================ */
.for-orgs {
  background: var(--navy);
  color: var(--white);
}

.for-orgs .section-label { color: var(--teal); }
.for-orgs .section-label::before,
.for-orgs .section-label::after { background: var(--teal); opacity: 0.35; }

.for-orgs p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.for-orgs ul {
  margin: 0 0 28px 0;
}

.for-orgs ul li {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.for-orgs ul li:last-child { border-bottom: none; }

.for-orgs ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.9;
}

/* ============================================================
   Privacy grid
   ============================================================ */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(18,72,112,0.1);
  border-radius: 8px;
}

.privacy-item__text {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ============================================================
   Monai hero
   ============================================================ */
.monai-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + clamp(40px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px);
}

.monai-hero__content {
  max-width: 680px;
}
.monai-hero .hero__sub { color: rgba(255,255,255,0.78); }
.monai-hero .hero__disclaimer { color: rgba(255,255,255,0.45); }

.monai-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
}
.monai-hero h1 span {
  color: var(--teal);
}

.monai-hero__layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: center;
}
.monai-hero__character {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: hidden;
  max-height: 420px;
}
.monai-hero__character img {
  width: clamp(260px, 32vw, 460px);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  margin-bottom: -40px;
}
@media (max-width: 768px) {
  .monai-hero__character { display: none; }
}

/* ============================================================
   What Monai does (4-column grid)
   ============================================================ */
.monai-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.monai-col {
  padding: clamp(18px, 2.5vw, 24px) 20px;
  background: var(--white);
  border: 1px solid rgba(18,72,112,0.1);
  border-radius: 8px;
}

.monai-col__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.monai-col h3 {
  margin-bottom: 10px;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.monai-col p {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin: 0;
}

/* ============================================================
   What makes Monai different
   ============================================================ */
.monai-different {
  background: var(--cream);
}

.monai-different h2 {
  margin-bottom: 24px;
}

.monai-different__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.monai-different__item {
  background: var(--white);
  border: 1px solid rgba(18,72,112,0.1);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
}

.monai-different__item h3 {
  margin-bottom: 10px;
}

.monai-different__item p {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   What Monai is not
   ============================================================ */
.not-section {
  background: #fff8f7;
  border-top: 3px solid #c0392b;
}

.not-section h2 {
  color: #c0392b;
  margin-bottom: 32px;
}

.not-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.not-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid #F3C6BE;
  border-radius: 8px;
}

.not-item__x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #c0392b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.not-item__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.crisis-callout {
  background: var(--white);
  border: 1.5px solid #c0392b;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 8px;
}

.crisis-callout p {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.7;
  margin: 0;
}

.crisis-callout strong {
  color: #c0392b;
}

/* ============================================================
   Between sessions
   ============================================================ */
.between-sessions {
  background: var(--navy);
}
.between-sessions .section-label { color: var(--teal); }
.between-sessions .section-label::before,
.between-sessions .section-label::after { background: var(--teal); opacity: 0.35; }
.between-sessions p { color: rgba(255,255,255,0.78) !important; }

.between-sessions__inner {
  max-width: 720px;
}

/* ============================================================
   Monai disclaimer
   ============================================================ */
.monai-disclaimer {
  background: var(--cream);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 16px;
}

.monai-disclaimer p {
  font-size: 0.82rem;
  color: var(--grey-text);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   Utility
   ============================================================ */
.section-divider {
  height: 1px;
  background: var(--grey-border);
  margin: 0;
}

/* Gradient keyword underline (decorative, text only) */
.underline-gradient {
  display: inline;
  background-image: linear-gradient(76deg, var(--teal) 0%, var(--green) 100%);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 3px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a,
.footer__links .footer__link-btn {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
  cursor: pointer;
}
.footer__links a:hover,
.footer__links .footer__link-btn:hover { color: var(--white); }

.footer__link-btn {
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.footer__bottom-left {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer__disclaimer-line {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.patent {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.6;
  vertical-align: super;
  white-space: nowrap;
}

.footer__citations {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0 0;
  margin-bottom: 20px;
}

.footer__citations p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-bottom: 4px;
}

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

.footer__disclaimer-line .disclaimer-trigger {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.footer__disclaimer-line .disclaimer-trigger:hover {
  color: var(--white);
}

/* ============================================================
   Modal system
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 44px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card--wide {
  max-width: 680px;
}

.modal-card h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.modal-card p {
  font-size: 0.93rem;
  color: var(--grey-text);
  line-height: 1.7;
}

.modal-card p strong {
  color: var(--navy);
}

.modal-card__fr-text {
  font-size: 1rem;
  color: var(--body-text);
  font-style: italic;
  margin-bottom: 6px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--grey-text);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover {
  color: var(--navy);
  background: var(--cream);
}

.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 20px 0 6px;
}
.modal-section-title:first-of-type {
  margin-top: 8px;
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .monai-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .monai-different__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: clamp(40px, 6vw, 64px) 0;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__visual {
    display: none;
  }

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

  .stat-cards {
    grid-template-columns: 1fr;
  }

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

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

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

  .monai-cols {
    grid-template-columns: 1fr;
  }

  .monai-different__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-card {
    padding: 28px 24px;
  }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__brand { grid-column: span 1; }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}

.about-founder-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-founder-photo { flex-shrink: 0; }
.about-founder-photo img {
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
  display: block;
}
.about-pull-quote {
  border-left: 3px solid var(--teal);
  padding-left: 24px;
  font-style: italic;
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .about-founder-layout { flex-direction: column; gap: 28px; }
  .about-founder-photo img { max-width: 200px; }
}

/* ============================================================
   Success banner (contact page ?sent=1)
   ============================================================ */
.contact-success-banner {
  background: #e8f9f1;
  border: 1.5px solid #00c970;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  color: #0a6840;
  font-weight: 600;
  font-size: 1rem;
}
