/*
 * Direct Meds acquisition page.
 * The design is intentionally scoped so the neutral directory UI remains unchanged.
 */

body.page-template-page-direct-meds {
  background: #f4f1e9;
}

.page-template-page-direct-meds .site-header {
  position: absolute;
}

.page-template-page-direct-meds .site-nav__menu,
.page-template-page-direct-meds .nav-cta,
.page-template-page-direct-meds .menu-toggle {
  display: none;
}

.page-template-page-direct-meds .site-nav {
  justify-content: flex-start;
}

.page-template-page-direct-meds .site-footer {
  padding-top: 0;
}

.page-template-page-direct-meds .site-footer .footer-grid {
  display: none;
}

.page-template-page-direct-meds .site-footer .footer-meta {
  padding-top: 30px;
}

.dm-page {
  overflow: clip;
  background: #fffdf8;
  color: var(--ink);
}

.dm-hero {
  padding: 108px 0 64px;
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 245, 107, .28), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(121, 233, 218, .18), transparent 26%),
    #f4f1e9;
}

.dm-offer-strip {
  margin-bottom: 18px;
}

.dm-offer-strip .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  color: #3c5147;
  font-size: 12px;
}

.dm-offer-strip strong {
  color: var(--ink);
}

.dm-review-banner {
  display: flex;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #e4c56a;
  border-radius: 12px;
  background: #fff6d8;
  gap: 16px;
  align-items: center;
}

.dm-review-banner strong {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dm-disclosure {
  display: grid;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: center;
}

.dm-disclosure > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dm-disclosure span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dm-disclosure strong {
  font-size: 13px;
  line-height: 1.45;
}

.dm-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.dm-page-nav {
  display: flex;
  margin-bottom: 36px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dm-page-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.dm-page-nav a {
  color: #315d49;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.dm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.dm-hero__copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 640;
  letter-spacing: -.06em;
  line-height: .96;
}

.dm-hero__dek {
  max-width: 640px;
  margin: 22px 0 28px;
  color: #3c5147;
  font-size: 18px;
  line-height: 1.6;
}

.dm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.dm-cta {
  white-space: nowrap;
}

.dm-text-link {
  color: #244f3e;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.dm-cta-note {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dm-proof {
  display: grid;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.dm-proof b,
.dm-proof span {
  display: block;
}

.dm-proof b {
  margin-bottom: 4px;
  font-size: 13px;
}

.dm-proof span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.dm-hero__visual {
  margin: 0;
}

.dm-compare-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 19, 15, .12);
  border-radius: 28px;
  background: #e8e4dc;
  box-shadow: 0 24px 65px rgba(24, 32, 28, .12);
  isolation: isolate;
  cursor: ew-resize;
  touch-action: none;
}

.dm-compare-slider::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: calc(100% * 4 / 3);
}

.dm-compare-slider__before,
.dm-compare-slider__after,
.dm-compare-slider__after img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: 0 0;
  pointer-events: none;
}

.dm-compare-slider__after {
  z-index: 2;
  clip-path: inset(0 0 0 var(--dm-split));
}

.dm-compare-label {
  position: absolute;
  top: 16px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 19, 15, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.dm-compare-label--before {
  left: 16px;
}

.dm-compare-label--after {
  right: 16px;
  background: rgba(245, 255, 249, .92);
  color: var(--ink);
}

.dm-compare-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--dm-split);
  z-index: 7;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.dm-compare-slider__handle i {
  position: absolute;
  top: 52%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-style: normal;
  place-items: center;
  transform: translate(-50%, -50%);
}

.dm-compare-slider > input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
}

.dm-illustration-note {
  margin: 10px 4px 0;
  color: #68776f;
  font-size: 11px;
  line-height: 1.5;
}

.dm-section {
  padding: 72px 0;
}

.dm-section--paper {
  background: #fffdf8;
}

.dm-section--ivory {
  background: #f4f1e9;
}

.dm-section__head {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  gap: 24px;
  align-items: end;
}

.dm-section__head h2,
.dm-process-copy h2,
.dm-cost-copy h2,
.dm-faq-layout h2,
.dm-terms-layout h2,
.dm-watch__copy h2,
.dm-final h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.05em;
  line-height: 1.05;
}

.dm-section__head p,
.dm-process-copy > p,
.dm-cost-copy > p {
  color: #3c5147;
  font-size: 16px;
  line-height: 1.6;
}

.dm-process-layout,
.dm-cost-layout,
.dm-faq-layout,
.dm-terms-layout,
.dm-watch__inner,
.dm-final__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.dm-process-phone {
  margin-top: 22px;
  max-width: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #111c18;
  color: #fff;
}

.dm-process-phone__top {
  display: flex;
  padding: 12px 16px;
  justify-content: space-between;
  color: #9eb2a8;
  font-size: 10px;
}

.dm-process-phone__screen {
  padding: 22px 18px 18px;
}

.dm-process-phone__screen small {
  color: #8cf5c2;
  font-size: 10px;
  letter-spacing: .08em;
}

.dm-process-phone__screen strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 22px;
  letter-spacing: -.04em;
}

.dm-process-phone > small {
  display: block;
  padding: 0 18px 16px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
}

.dm-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-steps li {
  display: grid;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.dm-steps li > span {
  color: #2b8061;
  font-size: 13px;
  font-weight: 800;
}

.dm-steps h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -.03em;
}

.dm-steps p,
.dm-steps small {
  color: #52685d;
  font-size: 14px;
  line-height: 1.55;
}

.dm-js .dm-steps li:not(.is-active) {
  opacity: .48;
}

.dm-price-card,
.dm-card-price {
  margin: 18px 0;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0b9, #f4d7ee);
}

.dm-card-price span,
.dm-price-card span {
  display: block;
  color: #5c654d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dm-card-price strong,
.dm-price-card strong {
  display: block;
  margin-top: 4px;
  font-size: 42px;
  letter-spacing: -.05em;
}

.dm-card-price small,
.dm-price-card small {
  display: block;
  margin-top: 8px;
  color: #52685d;
  font-size: 12px;
  line-height: 1.5;
}

.dm-faq-price {
  color: #52685d;
  font-size: 14px;
}

.dm-checklist-card,
.dm-terms-card,
.dm-fit-card,
.dm-format-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.dm-checklist-card__section + .dm-checklist-card__section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dm-checklist-card span,
.dm-fit-card__label,
.dm-format-card span {
  display: block;
  margin-bottom: 10px;
  color: #71867c;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dm-checklist-card ul,
.dm-fit-card ul,
.dm-terms-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dm-checklist-card li,
.dm-fit-card li,
.dm-terms-card li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: #3c5147;
  font-size: 14px;
  line-height: 1.5;
}

.dm-checklist-card li::before,
.dm-fit-card--positive li::before {
  position: absolute;
  left: 0;
  color: #2b8061;
  content: "✓";
  font-weight: 850;
}

.dm-format-grid,
.dm-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dm-format-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.dm-format-card p,
.dm-format-card small,
.dm-scope-note p {
  color: #52685d;
  font-size: 14px;
  line-height: 1.55;
}

.dm-scope-note {
  margin-top: 22px;
}

.dm-watch {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
}

.dm-watch__copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .62);
}

.dm-watch__copy > a {
  color: var(--mint);
}

.dm-watch__form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.dm-watch__form > span {
  display: block;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 780;
}

.dm-faq details {
  border-bottom: 1px solid var(--line);
}

.dm-faq summary {
  padding: 16px 0;
  font-size: 17px;
  font-weight: 720;
  cursor: pointer;
}

.dm-faq p {
  margin: 0 0 16px;
  color: #52685d;
  font-size: 15px;
  line-height: 1.6;
}

.dm-final {
  padding: 72px 0;
  background: #0d2b20;
  color: #fff;
}

.dm-sources {
  padding: 28px 0 40px;
}

.dm-sources__inner,
.dm-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.dm-source-links a {
  color: #315e4b;
  font-size: 12px;
}

.dm-return-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(320px, calc(100vw - 24px));
  padding: 20px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(7, 19, 15, .2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

.dm-return-prompt.is-visible {
  opacity: 1;
  transform: none;
}

.dm-mobile-cta {
  display: none;
}

.dm-partner-preview {
  display: none;
}

.dm-page a:focus-visible,
.dm-page summary:focus-visible {
  outline: 3px solid #3aab7a;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .dm-disclosure,
  .dm-hero__grid,
  .dm-section__head,
  .dm-process-layout,
  .dm-cost-layout,
  .dm-faq-layout,
  .dm-terms-layout,
  .dm-watch__inner,
  .dm-final__inner,
  .dm-format-grid,
  .dm-fit-grid {
    grid-template-columns: 1fr;
  }

  .dm-disclosure p,
  .dm-page-nav {
    text-align: left;
  }

  .dm-page-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  :root {
    --dm-mobile-cta-height: 78px;
  }

  body.page-template-page-direct-meds {
    padding-bottom: calc(var(--dm-mobile-cta-height) + env(safe-area-inset-bottom));
  }

  .dm-hero {
    padding: 86px 0 42px;
  }

  .dm-hero__copy h1 {
    font-size: 40px;
  }

  .dm-proof,
  .dm-offer-strip .shell {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dm-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    min-height: var(--dm-mobile-cta-height);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .dm-return-prompt {
    bottom: calc(var(--dm-mobile-cta-height) + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-return-prompt,
  .dm-steps li {
    transition: none;
  }
}
