/* ==========================================================================
   Twovera Health — design tokens
   Ported from the original Tailwind theme config so the visual language is
   unchanged, but the site no longer depends on a CDN build step.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #006c46;
  --primary-container: #2eb67d;
  --primary-fixed: #7cfabb;
  --primary-fixed-dim: #5edda0;
  --on-primary: #ffffff;
  --on-primary-container: #004128;
  --accent: #3b82f6;

  /* Logo artwork: the green in the mark and the ink of the wordmark. */
  --brand-green: #27b17a;
  --brand-ink: #393939;

  /* Neutrals */
  --secondary: #565e74;
  --surface: #f7f9fb;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-dim: #d8dadc;
  --on-surface: #191c1e;
  --on-surface-variant: #3d4a41;
  --outline-variant: #bccabf;
  --error: #ba1a1a;

  /* Spacing scale */
  --space-base: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;

  /* Radii */
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 20px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(25, 28, 30, 0.06);
  --shadow-md: 0 4px 12px rgba(25, 28, 30, 0.08);
  --shadow-lg: 0 10px 30px rgba(25, 28, 30, 0.1);
  --shadow-xl: 0 20px 50px rgba(25, 28, 30, 0.12);

  /* Layout */
  --content-max: 1280px;
  --nav-height: 72px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky nav. */
  scroll-padding-top: calc(var(--nav-height) + var(--space-md));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

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

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

/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-lg) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.headline-lg {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

.headline-md {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

.headline-sm {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 0;
}

.body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.body-md {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.label-md {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.label-sm {
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted {
  color: var(--on-surface-variant);
}

.text-accent {
  color: var(--accent);
}

@media (min-width: 768px) {
  .headline-lg {
    font-size: 40px;
    line-height: 48px;
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.section {
  padding-block: 48px;
}

.section--tinted {
  background: var(--surface-container-low);
}

.section--surface {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  color: var(--secondary);
  max-width: 32rem;
  margin: var(--space-xs) auto 0;
}

.section-rule {
  width: 64px;
  height: 4px;
  background: var(--primary-container);
  border-radius: var(--radius-full);
  margin: var(--space-xs) auto 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--margin-desktop);
  }

  .section {
    padding-block: 64px;
  }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
}

.btn--on-primary {
  background: var(--primary-container);
  color: var(--on-primary);
  padding-inline: var(--space-xxl);
  box-shadow: var(--shadow-lg);
}

.btn:hover {
  filter: brightness(1.1);
}

.btn--on-primary:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216, 218, 220, 0.4);
  transition: box-shadow 0.3s, padding 0.3s;
}

/* Applied by main.js once the page has scrolled past the hero lip. */
.nav.is-scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-md) var(--margin-mobile);
  transition: padding 0.3s;
}

.nav.is-scrolled .nav__inner {
  padding-block: var(--space-sm);
}

/* Brand lockup: the traced mark plus live text. The wordmark is real type
   rather than traced outlines so it stays crisp and selectable at any size.
   Every measurement below is a ratio of --brand-h, taken from the source
   artwork, so changing that one value rescales the whole lockup. */
.nav__brand {
  --brand-h: 34px;
  display: flex;
  align-items: center;
  gap: calc(var(--brand-h) * 0.18);
  flex-shrink: 0;
  color: var(--brand-ink);
}

.brand__mark {
  display: block;
  width: auto;
  height: var(--brand-h);
  transition: height 0.3s;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand__name {
  font-size: calc(var(--brand-h) * 0.405);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: font-size 0.3s;
}

.brand__sub {
  font-size: calc(var(--brand-h) * 0.3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-top: calc(var(--brand-h) * 0.1);
  transition: font-size 0.3s;
}

.nav.is-scrolled .nav__brand {
  --brand-h: 30px;
}

@media (max-width: 480px) {
  .nav__brand {
    --brand-h: 28px;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links a {
  color: var(--secondary);
  font-size: 16px;
  transition: color 0.2s;
  position: relative;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--primary);
}

/* Underline marker for whichever section is currently in view. */
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
}

.nav__divider {
  width: 1px;
  height: 24px;
  background: var(--accent);
  opacity: 0.4;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  background: transparent;
  border-radius: var(--radius-lg);
  color: var(--primary-container);
}

/* Mobile drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) var(--margin-mobile) var(--space-lg);
  border-top: 1px solid rgba(216, 218, 220, 0.6);
  background: rgba(255, 255, 255, 0.96);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  color: var(--secondary);
  padding: var(--space-sm) 0;
  font-size: 18px;
}

.nav__mobile a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav__inner {
    padding-inline: var(--margin-desktop);
  }

  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__mobile,
  .nav__mobile.is-open {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px;
}

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

.hero__copy h1 {
  margin-bottom: var(--space-sm);
}

.hero__copy p {
  color: var(--secondary);
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
}

.hero__proof {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
  object-fit: cover;
  background: #e2e8f0;
}

.avatar-stack img + img {
  margin-left: -12px;
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Tilted plate behind the hero image. */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(124, 250, 187, 0.2);
  border-radius: 40px;
  transform: rotate(3deg);
}

.hero__frame {
  position: absolute;
  inset: 0;
  /* Tinted fallback so a slow or missing hero image reads as a design
     element rather than a broken white box. */
  background: linear-gradient(150deg, var(--surface-container) 0%, rgba(124, 250, 187, 0.35) 100%);
  border: 1px solid var(--surface-dim);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--surface-dim);
  max-width: 200px;
  animation: float 4s ease-in-out infinite;
}

.stat-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 108, 70, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 768px) {
  .hero {
    padding-block: 64px;
  }

  .hero__media {
    aspect-ratio: 4 / 3;
  }

  .stat-card {
    padding: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .hero__copy {
    text-align: left;
  }

  .hero__copy p {
    margin-inline: 0;
  }

  .hero__proof {
    justify-content: flex-start;
  }

  .hero__media {
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--surface-dim);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s, opacity 0.7s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.testimonial__head img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial__quote {
  color: var(--secondary);
  font-style: italic;
  margin: 0;
}

.stars {
  margin-top: var(--space-md);
  display: flex;
  color: var(--primary);
}

/* Reveal-on-scroll, driven by IntersectionObserver in main.js. */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .card {
    padding: var(--space-xl);
  }
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__badge {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--surface-dim);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.step__number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--secondary);
  margin: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  /* Rail connecting the three step badges. */
  .steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(188, 202, 191, 0.3);
  }

  .step__badge {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
  }

  .step__number {
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Clinical excellence
   ========================================================================== */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.feature {
  display: flex;
  gap: var(--space-md);
}

.feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: rgba(124, 250, 187, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h4 {
  margin: 0 0 2px;
}

.feature p {
  margin: 0;
  color: var(--secondary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-tile {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-dim);
  box-shadow: var(--shadow-sm);
}

.stat-tile p {
  margin: 0;
  color: var(--secondary);
}

.media-panel {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.media-panel__caption {
  position: absolute;
  left: var(--space-lg);
  right: var(--space-lg);
  bottom: var(--space-lg);
  color: #fff;
}

.media-panel__caption p {
  margin: var(--space-base) 0 0;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .feature-list {
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
  }

  .feature__icon {
    width: 48px;
    height: 48px;
  }

  .stat-tile {
    padding: var(--space-lg);
  }

  .media-panel {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1024px) {
  /* Image sits to the right of the copy on wide screens. */
  .split--media-last .media-panel {
    order: 2;
  }
}

/* ==========================================================================
   Mailing list subscribe
   ========================================================================== */

.subscribe {
  background: var(--surface-container-low);
}

.subscribe__card {
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--surface-dim);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.subscribe__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(124, 250, 187, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe__card p {
  color: var(--secondary);
  max-width: 34rem;
  margin: var(--space-xs) auto var(--space-lg);
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin-inline: auto;
}

.subscribe__form input[type="email"] {
  flex: 1;
  font-family: inherit;
  font-size: 16px;
  padding: var(--space-md);
  border: 1px solid var(--surface-dim);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--on-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe__form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 108, 70, 0.15);
}

.subscribe__form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Honeypot — real people never see or fill this. */
.subscribe__trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.subscribe__status {
  margin-top: var(--space-md);
  font-size: 14px;
  line-height: 20px;
  min-height: 20px;
}

.subscribe__status--error {
  color: var(--error);
}

.subscribe__status--success {
  color: var(--primary);
  font-weight: 600;
}

/* Success panel swapped in once the write lands. */
.subscribe__done {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.subscribe__done.is-visible {
  display: flex;
}

.subscribe__done .subscribe__icon {
  background: var(--primary);
  color: #fff;
  margin-bottom: var(--space-xs);
}

.is-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .subscribe__form {
    flex-direction: row;
  }

  .subscribe__card {
    padding: var(--space-xxl);
  }
}

/* ==========================================================================
   Social — inline row + floating rail
   ========================================================================== */

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--surface-dim);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  border-color: var(--primary-fixed-dim);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Floating rail: bottom bar on mobile, left rail from md up. */
.social-rail {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: var(--space-md);
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-dim);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}

.social-rail a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--secondary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-rail a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.social-rail svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (min-width: 768px) {
  .social-rail {
    left: var(--space-md);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
    border-radius: var(--radius-full);
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
  background: var(--primary);
  color: var(--on-primary);
  padding-block: 64px;
  text-align: center;
}

.cta__inner {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

.cta p {
  opacity: 0.9;
  margin: var(--space-sm) 0 var(--space-lg);
}

@media (min-width: 768px) {
  .cta {
    padding-block: 80px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--surface-container-low);
  border-top: 1px solid var(--surface-dim);
}

.footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-lg) var(--margin-mobile);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.footer__links a {
  color: var(--on-surface-variant);
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer p {
  margin: 0;
  color: var(--on-surface-variant);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--space-xl) var(--margin-desktop);
  }

  .footer p {
    text-align: left;
  }
}

/* ==========================================================================
   Content pages (About / Privacy / Terms)
   ========================================================================== */

.page-hero {
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--surface-dim);
  padding-block: var(--space-xxl);
  text-align: center;
}

.page-hero p {
  color: var(--secondary);
  max-width: 40rem;
  margin: var(--space-sm) auto 0;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-xs);
}

.prose h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-base);
}

.prose p,
.prose li {
  color: var(--secondary);
}

.prose ul {
  padding-left: var(--space-lg);
}

.prose li {
  margin-bottom: var(--space-xs);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.prose__meta {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Material Symbols sizing helpers */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1;
}

.icon-lg {
  font-size: 28px;
}
