.benefit-guide {
  --benefit-panel: #eee8fb;
  --benefit-chip: #e2d8f6;
  --benefit-rule: #cec1e7;
  --benefit-accent: #7351ce;
}

.benefit-guide[data-benefit="depression"] {
  --benefit-panel: #f6ece7;
  --benefit-chip: #f0ddd5;
  --benefit-rule: #dec9c1;
  --benefit-accent: #a35c47;
}

.benefit-guide[data-benefit="sleep"] {
  --benefit-panel: #e7eef9;
  --benefit-chip: #d9e5f7;
  --benefit-rule: #c4d3ea;
  --benefit-accent: #416aaf;
}

.benefit-guide[data-benefit="habits"] {
  --benefit-panel: #e9f1e6;
  --benefit-chip: #dce9d7;
  --benefit-rule: #c7d8c1;
  --benefit-accent: #477151;
}

:is(:root[data-theme="dark"], html.dark) .benefit-guide {
  --benefit-panel: #352b48;
  --benefit-chip: #473860;
  --benefit-rule: #655381;
  --benefit-accent: #c6adff;
}

:is(:root[data-theme="dark"], html.dark) .benefit-guide[data-benefit="depression"] {
  --benefit-panel: #423034;
  --benefit-chip: #553b3c;
  --benefit-rule: #705353;
  --benefit-accent: #f6b8a7;
}

:is(:root[data-theme="dark"], html.dark) .benefit-guide[data-benefit="sleep"] {
  --benefit-panel: #28364b;
  --benefit-chip: #344763;
  --benefit-rule: #4c617d;
  --benefit-accent: #abcaff;
}

:is(:root[data-theme="dark"], html.dark) .benefit-guide[data-benefit="habits"] {
  --benefit-panel: #2e3b31;
  --benefit-chip: #3b4d3e;
  --benefit-rule: #526b56;
  --benefit-accent: #b9deb5;
}

.benefit-page {
  width: min(calc(100% - 64px), 1260px);
  margin: 0 auto;
  padding: calc(var(--header-offset) + clamp(32px, 4.5vw, 62px)) 0 clamp(44px, 6vw, 84px);
  color: var(--contact-ink);
  font: 500 clamp(16px, 1.4vw, 19px)/1.55 "Avenir Next", Inter, system-ui, sans-serif;
}

.benefit-page :is(h1, h2, h3, p, dl, dt, dd, ol, ul, li) { margin: 0; font-family: inherit; hyphens: none; }
.benefit-page :is(h1, h2, h3) { text-align: left; line-height: 1.08; letter-spacing: -.035em; font-weight: 900; }
.benefit-page h1 { font-size: clamp(42px, 5.3vw, 76px); text-wrap: balance; }
.benefit-page h2 { font-size: clamp(32px, 4vw, 56px); text-wrap: balance; }
.benefit-page h3 { font-size: clamp(20px, 2vw, 27px); }
.benefit-page a { color: inherit; font-family: inherit; text-decoration: underline; text-underline-offset: .23em; }
.benefit-page :is(a, summary):focus-visible { outline: 3px solid var(--contact-focus); outline-offset: 5px; }
.benefit-page :is(a, summary):hover { text-decoration-thickness: 2px; }
.benefit-page section[id] { scroll-margin-top: 24px; }

.benefit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(36px, 5vw, 72px);
}

.benefit-page .benefit-lede {
  max-width: 47ch;
  margin-top: clamp(16px, 2.2vw, 30px);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.46;
}

.benefit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: clamp(22px, 3vw, 40px);
  font-weight: 700;
}

.benefit-page .benefit-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 26px;
  border-radius: 999px;
  color: var(--contact-paper) !important;
  background: var(--contact-ink);
  text-decoration: none;
  font-weight: 800;
}
.benefit-button:hover { opacity: .87; }

.benefit-example { padding: clamp(22px, 3vw, 42px); border-radius: clamp(18px, 2vw, 28px); background: var(--benefit-panel); }
.benefit-example h2 { padding-bottom: 16px; border-bottom: 2px solid var(--benefit-accent); font-size: clamp(24px, 2.4vw, 35px); }
.benefit-example dl > div {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--benefit-rule);
}
.benefit-example dl > div:last-child { border: 0; padding-bottom: 0; }
.benefit-example dt span { display: inline-block; padding: 4px 9px; border-radius: 8px; background: var(--benefit-chip); font-size: .85em; font-weight: 700; }
.benefit-example dd { line-height: 1.45; }

.benefit-section { padding-block: clamp(34px, 4.8vw, 68px); border-top: 1px solid var(--contact-line); }
.benefit-exercise { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(24px, 4vw, 64px); }
.benefit-exercise > div > p { max-width: 45ch; margin-top: 14px; }
.benefit-summary { font-weight: 700; }
.benefit-steps { padding: 0; list-style: none; }
.benefit-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--contact-line); }
.benefit-steps li:first-child { padding-top: 0; }
.benefit-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.benefit-steps p { margin-top: 5px; }
.benefit-step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--benefit-chip); font-weight: 800; }

.benefit-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: clamp(18px, 3vw, 34px); }
.benefit-product { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(18px, 2.5vw, 30px); background: var(--contact-card); border: 1px solid var(--contact-line); border-radius: 18px; }
.benefit-product-brand { display: flex; align-items: center; gap: 12px; }
.benefit-product-brand img { display: block; width: 44px; height: 44px; border-radius: 10px; }
.benefit-product p strong { display: block; margin-bottom: 3px; }
.benefit-product-link { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; font-weight: 700; }
.benefit-product-link svg { flex: none; }
.benefit-support { display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 18px; margin-top: clamp(24px, 4vw, 48px); }
.benefit-support-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--benefit-chip); }
.benefit-support p { margin-top: 6px; max-width: 94ch; }
.benefit-page .benefit-inline-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding: 0; list-style: none; font-weight: 700; }

.benefit-reading { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 18px 40px; padding-block: 26px; border-top: 1px solid var(--contact-line); }
.benefit-reading h2 { font-size: clamp(24px, 2.7vw, 38px); }
.benefit-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; list-style: none; padding: 0; }
.benefit-related a { font-weight: 800; }
.benefit-related p { margin-top: 4px; color: var(--contact-muted); font-size: .9em; }
.benefit-topic-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 20px 0; border-block: 1px solid var(--contact-line); font-weight: 700; }
.benefit-sources { margin-top: 14px; color: var(--contact-muted); font-size: .9em; }
.benefit-sources summary { width: fit-content; margin: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 700; }
.benefit-sources summary::after { display: none; }
.benefit-sources summary::-webkit-details-marker { display: revert; }
.benefit-sources ul { padding: 10px 0 0 20px; }
.benefit-sources li + li { margin-top: 5px; }

@media (max-width: 850px) {
  .benefit-page { width: min(calc(100% - 40px), 680px); }
  .benefit-hero, .benefit-exercise, .benefit-reading { grid-template-columns: 1fr; }
  .benefit-page h1 { text-wrap: initial; }
}

@media (max-width: 470px) {
  .benefit-page { width: calc(100% - 32px); }
  .benefit-page h1 { font-size: clamp(36px, 10vw, 46px); }
  .benefit-actions { gap: 12px 18px; }
  .benefit-example dl > div, .benefit-related { grid-template-columns: 1fr; }
  .benefit-steps li, .benefit-support { gap: 12px; }
}
