.hero {
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 84px) clamp(68px, 9vw, 118px);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}

.hero-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.hero-place svg {
  flex: none;
  color: var(--accent);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero .lede {
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
}

.hero-proof svg {
  flex: none;
  color: var(--accent);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-frame {
  position: relative;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
}

.hero-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 995;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(23, 23, 40, 0.12);
}

.hero-card {
  position: static;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(221, 216, 238, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1rem;
}

.hero-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-card a:hover {
  text-decoration: underline;
}

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px 24px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.trust-list li + li {
  border-left: 1px solid var(--border);
}

.trust-list svg {
  flex: none;
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.doctor-split {
  margin-top: clamp(54px, 7vw, 86px);
  padding-top: clamp(54px, 7vw, 86px);
  border-top: 1px solid var(--border);
}

.split-media {
  position: relative;
  min-width: 0;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.split-media.portrait img {
  aspect-ratio: 4 / 5;
  object-position: center 22%;
}

.split-media.wide img {
  aspect-ratio: 3 / 2;
}

.split-copy h2 {
  max-width: 18ch;
}

.split-copy .lede {
  max-width: 52ch;
}

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--border);
}

.cred-grid div {
  padding: 16px 18px;
  background: var(--paper);
}

.cred-grid dt {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cred-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.text-link-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.text-link-list li {
  margin: 0;
  border-top: 1px solid var(--border);
}

.text-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link-list a:hover {
  color: var(--accent);
}

.text-link-list svg {
  flex: none;
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 48px);
  position: relative;
  margin-top: 48px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 14%;
  left: 14%;
  height: 1px;
  background: var(--border);
}

.step {
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.condition-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.condition-block h3 {
  max-width: 14ch;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 1rem;
}

.check-list svg {
  flex: none;
  margin-top: 5px;
  color: var(--accent);
}

.treat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.treat-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.treat-card:hover {
  border-color: var(--control);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transform: translateY(-3px);
}

.treat-num {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
}

.treat-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
}

.treat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.treat-card .card-more {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.help-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.help-card:hover {
  border-color: var(--control);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transform: translateY(-3px);
}

.help-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.help-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.help-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.help-card .card-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-grid > li {
  display: flex;
  margin: 0;
}

.article-grid .article-card {
  flex: 1;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-card:hover {
  border-color: var(--control);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transform: translateY(-3px);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card.is-text {
  background: var(--surface);
}

.article-card.is-text .article-card-body {
  padding: 28px;
}

.nav-phone {
  display: none;
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.article-card h2,
.article-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.article-card .card-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}


/* Floating accessibility menu */
.a11y-float {
  position: fixed;
  top: 90px;
  right: max(20px, env(safe-area-inset-right));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.a11y-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(23, 23, 40, 0.28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.a11y-fab:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.a11y-fab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--ink), 0 16px 34px rgba(23, 23, 40, 0.28);
}

.a11y-fab svg {
  flex: none;
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 80;
  width: min(280px, calc(100vw - 32px));
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.a11y-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.a11y-row + .a11y-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.a11y-position-row {
  display: none;
}

.a11y-label {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.a11y-sizes {
  display: flex;
  gap: 4px;
}

.a11y-size,
.a11y-move {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1.5px solid var(--control);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.a11y-size:hover,
.a11y-move:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.a11y-size[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.a11y-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.a11y-switch-track {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border: 1.5px solid var(--control);
  border-radius: 999px;
  background: var(--surface);
}

.a11y-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--control);
  transition: transform 160ms ease, background-color 160ms ease;
}

.a11y-switch[aria-checked="true"] .a11y-switch-track {
  border-color: var(--accent);
  background: var(--accent);
}

.a11y-switch[aria-checked="true"] .a11y-switch-thumb {
  transform: translateX(20px);
  background: #ffffff;
}

@media (max-width: 1024px) {
  .a11y-float {
    top: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: auto;
  }

  .a11y-float .a11y-panel {
    top: auto;
    right: 0;
    bottom: calc(100% + 10px);
    left: auto;
  }

  .a11y-float.corner-top-left {
    top: 82px;
    right: auto;
    bottom: auto;
    left: max(16px, env(safe-area-inset-left));
  }

  .a11y-float.corner-top-right {
    top: 82px;
    right: max(16px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
  }

  .a11y-float.corner-bottom-left {
    top: auto;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
  }

  .a11y-float.corner-bottom-right {
    top: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: auto;
  }

  .a11y-fab {
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
  }

  .a11y-fab-label {
    display: none;
  }

  .a11y-position-row {
    display: flex;
  }

  .a11y-float.corner-top-left .a11y-panel,
  .a11y-float.corner-top-right .a11y-panel {
    top: calc(100% + 10px);
    bottom: auto;
  }

  .a11y-float.corner-bottom-left .a11y-panel,
  .a11y-float.corner-bottom-right .a11y-panel {
    top: auto;
    bottom: calc(100% + 10px);
  }

  .a11y-float.corner-top-left .a11y-panel,
  .a11y-float.corner-bottom-left .a11y-panel {
    right: auto;
    left: 0;
  }

  .a11y-float.corner-top-right .a11y-panel,
  .a11y-float.corner-bottom-right .a11y-panel {
    right: 0;
    left: auto;
  }
}
