body.page-template-page-service .svc-body {
  max-width: none !important;
  padding: 0 !important;
}

.optdx,
.optmx {
  --opt-brand: #0EA5B7;
  --opt-brand-dark: #0A7F8D;
  --opt-brand-soft: #E8F8FB;
  --opt-ink: #0F172A;
  --opt-text: #334155;
  --opt-muted: #64748B;
  --opt-line: #DCE7EC;
  --opt-bg: #F4F8FA;
  --opt-white: #FFFFFF;
  --opt-navy: #071B3A;
  --opt-shadow-sm: 0 10px 30px rgba(15, 23, 42, .06);
  --opt-shadow-md: 0 18px 44px rgba(15, 23, 42, .10);
  --opt-shadow-lg: 0 28px 70px rgba(2, 12, 27, .16);
  color: var(--opt-ink);
  background: var(--opt-bg);
}

.optdx *,
.optmx * {
  box-sizing: border-box;
}

.optdx p,
.optmx p,
.optdx h1,
.optmx h1,
.optdx h2,
.optmx h2,
.optdx h3,
.optmx h3 {
  margin-bottom: 0;
}

.optdx ul,
.optmx ul,
.optdx ol,
.optmx ol {
  margin: 0;
  padding: 0;
}

.optdx a,
.optmx a {
  text-decoration: none;
}

.optdx-wrap {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 0 34px;
}

.optmx-wrap {
  width: min(100%, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Desktop Hero */
.optdx-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: linear-gradient(135deg, #05152F 0%, #08224A 48%, #0C5F76 100%);
}

.optdx-hero__bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/generatepress-child/assets/images/service-optimization-hero.jpg') center center / cover no-repeat;
  opacity: .18;
  transform: scale(1.06);
}

.optdx-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(115deg, rgba(14, 165, 183, .64) 0%, rgba(7, 27, 58, .82) 54%, rgba(5, 21, 47, .96) 100%);
}

.optdx-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1360px);
  min-height: 640px;
  margin: 0 auto;
  padding: 116px 34px 108px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: end;
}

.optdx-hero__content {
  max-width: 920px;
}

.optdx-hero__eyebrow,
.optdx-kicker,
.optdx-cta__eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.optdx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  color: #EAFDFF;
}

.optdx-hero__title {
  margin-top: 20px;
  font-size: clamp(46px, 4.7vw, 67px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 900;
  color: #FFFFFF;
  word-break: keep-all;
}

.optdx-hero__lead {
  margin-top: 24px;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.95;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  word-break: keep-all;
}

.optdx-hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.optdx-hero__primary,
.optdx-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.optdx-hero__primary {
  background: #FFFFFF;
  color: #0B2236;
  box-shadow: 0 16px 30px rgba(6, 22, 44, .18);
}

.optdx-hero__secondary {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
}

.optdx-hero__primary:hover,
.optdx-hero__secondary:hover {
  transform: translateY(-3px);
}

.optdx-hero__panel {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .16);
}

.optdx-hero__panel-label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.optdx-hero__panel-list {
  margin-top: 18px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.optdx-hero__panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
}

.optdx-hero__panel-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

.optdx-hero__panel-list strong {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: #FFFFFF;
}

/* Problem */
.optdx-problem {
  padding: 88px 0 62px;
  background: var(--opt-bg);
}

.optdx-kicker {
  color: var(--opt-brand-dark);
}

.optdx-problem__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: end;
}

.optdx-problem__title {
  margin-top: 12px;
  max-width: 820px;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-problem__desc {
  margin-top: 20px;
  max-width: 860px;
  font-size: 17px;
  line-height: 2;
  font-weight: 500;
  color: var(--opt-text);
  word-break: keep-all;
}

.optdx-problem__note {
  padding: 30px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optdx-problem__note-title {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--opt-ink);
}

.optdx-problem__note-text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

/* Section Common */
.optdx-sectionhead {
  max-width: 850px;
}

.optdx-sectionhead--center {
  margin: 0 auto;
  text-align: center;
}

.optdx-sectionhead__title {
  margin-top: 12px;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-sectionhead__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

/* Reasons */
.optdx-reasons {
  padding: 72px 0 84px;
  background: #FFFFFF;
}

.optdx-reasons__stack {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.optdx-reason {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 30px;
  border-radius: 28px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.optdx-reason:hover {
  transform: translateY(-6px);
  box-shadow: var(--opt-shadow-md);
  border-color: rgba(14, 165, 183, .28);
}

.optdx-reason--wide {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  background:
    radial-gradient(circle at 85% 20%, rgba(14, 165, 183, .18) 0%, rgba(14, 165, 183, 0) 38%),
    linear-gradient(135deg, #F8FEFF 0%, #FFFFFF 100%);
}

.optdx-reason__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--opt-brand-dark) 0%, var(--opt-brand) 100%);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(14, 165, 183, .22);
}

.optdx-reason--wide .optdx-reason__number {
  width: 62px;
  height: 62px;
  font-size: 15px;
}

.optdx-reason__title {
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: -.04em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-reason--wide .optdx-reason__title {
  margin-top: 28px;
  font-size: 42px;
  line-height: 1.08;
}

.optdx-reason__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optdx-reason--wide .optdx-reason__desc {
  font-size: 16px;
  max-width: 620px;
}

/* Diagnosis */
.optdx-diagnosis {
  padding: 88px 0;
  background: var(--opt-bg);
}

.optdx-diagnosis__layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.optdx-diagnosis__sticky {
  position: sticky;
  top: calc(var(--header-h, 84px) + 28px);
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #08224A 0%, #0B6E84 45%, #0EA5B7 100%);
  box-shadow: var(--opt-shadow-md);
}

.optdx-diagnosis__sticky .optdx-kicker {
  color: rgba(255, 255, 255, .72);
}

.optdx-diagnosis__title {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 900;
  color: #FFFFFF;
  word-break: keep-all;
}

.optdx-diagnosis__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
  color: rgba(255, 255, 255, .84);
  word-break: keep-all;
}

.optdx-diagnosis__steps {
  display: grid;
  gap: 16px;
}

.optdx-diagnosis-step {
  position: relative;
  padding: 30px 30px 30px 92px;
  border-radius: 26px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.optdx-diagnosis-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--opt-shadow-md);
  border-color: rgba(14, 165, 183, .28);
}

.optdx-diagnosis-step__no {
  position: absolute;
  left: 30px;
  top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--opt-brand-soft);
  color: var(--opt-brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.optdx-diagnosis-step__title {
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-diagnosis-step__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

/* Before After */
.optdx-beforeafter {
  padding: 84px 0;
  background: #FFFFFF;
}

.optdx-ba {
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(180deg, #F8FEFF 0%, #FFFFFF 100%);
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optdx-ba__head {
  max-width: 820px;
}

.optdx-ba__title {
  margin-top: 12px;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-ba__columns {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.optdx-ba__card {
  padding: 32px;
  border-radius: 28px;
  overflow: hidden;
}

.optdx-ba__card--before {
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
}

.optdx-ba__card--after {
  background: linear-gradient(135deg, #071B3A 0%, #0A7F8D 48%, #0EA5B7 100%);
  box-shadow: var(--opt-shadow-md);
}

.optdx-ba__label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--opt-brand-dark);
}

.optdx-ba__card--after .optdx-ba__label {
  color: rgba(255, 255, 255, .72);
}

.optdx-ba__card-title {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-ba__card--after .optdx-ba__card-title {
  color: #FFFFFF;
}

.optdx-ba__list {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.optdx-ba__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
  color: var(--opt-text);
  word-break: keep-all;
}

.optdx-ba__card--after .optdx-ba__list li {
  color: rgba(255, 255, 255, .92);
}

.optdx-ba__list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--opt-brand);
}

.optdx-ba__card--after .optdx-ba__list li:before {
  background: #FFFFFF;
}

/* Prep */
.optdx-prep {
  padding: 84px 0;
  background: var(--opt-bg);
}

.optdx-prep__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.optdx-prep__title {
  margin-top: 12px;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-prep__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optdx-prep__items {
  display: grid;
  gap: 12px;
}

.optdx-prep-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optdx-prep-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--opt-brand-soft);
  color: var(--opt-brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.optdx-prep-item p {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

/* FAQ */
.optdx-faq {
  padding: 84px 0;
  background: #FFFFFF;
}

.optdx-faq__list {
  max-width: 980px;
  margin: 32px auto 0;
  display: grid;
  gap: 12px;
}

.optdx-faq__item {
  border: 1px solid var(--opt-line);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--opt-shadow-sm);
  overflow: hidden;
}

.optdx-faq__item summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optdx-faq__item summary::-webkit-details-marker {
  display: none;
}

.optdx-faq__item summary:after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #94A3B8;
  border-top: 2px solid #94A3B8;
  transform: rotate(135deg);
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.optdx-faq__item[open] summary:after {
  transform: rotate(-45deg);
}

.optdx-faq__answer {
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

/* CTA */
.optdx-cta {
  padding: 0 0 86px;
  background: var(--opt-bg);
}

.optdx-cta__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, #071B3A 0%, #0A7F8D 48%, #0EA5B7 100%);
  box-shadow: var(--opt-shadow-lg);
}

.optdx-cta__inner:before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.optdx-cta__content,
.optdx-cta__action {
  position: relative;
  z-index: 1;
}

.optdx-cta__eyebrow {
  color: rgba(255, 255, 255, .72);
}

.optdx-cta__title {
  margin-top: 10px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.14;
  letter-spacing: -.04em;
  font-weight: 900;
  color: #FFFFFF;
  max-width: 13em;
  word-break: keep-all;
}

.optdx-cta__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
  color: rgba(255, 255, 255, .84);
  max-width: 48em;
  word-break: keep-all;
}

.optdx-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  color: #0B2236;
  box-shadow: 0 16px 30px rgba(6, 22, 44, .18);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.optdx-cta__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(6, 22, 44, .22);
  background: #F8FEFF;
}

.optdx-foot {
  padding: 0 0 50px;
  background: var(--opt-bg);
}

.optdx-foot p {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
  color: #758696;
  word-break: keep-all;
}

/* Mobile */
.optmx {
  background: var(--opt-bg);
}

.optmx-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #061731 0%, #082550 45%, #0EA5B7 100%);
}

.optmx-hero__bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/generatepress-child/assets/images/service-optimization-hero.jpg') center center / cover no-repeat;
  opacity: .16;
  transform: scale(1.08);
}

.optmx-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14, 165, 183, .32) 0%, rgba(7, 27, 58, .20) 36%, rgba(7, 27, 58, .88) 100%);
}

.optmx-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.optmx-hero__eyebrow,
.optmx-kicker,
.optmx-cta__eyebrow {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.optmx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #EAFDFF;
}

.optmx-hero__title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 900;
  color: #FFFFFF;
  word-break: keep-all;
}

.optmx-hero__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  word-break: keep-all;
}

.optmx-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  margin-top: 20px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0B2236;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(6, 22, 44, .18);
}

.optmx-panel {
  margin-top: -40px;
  padding-bottom: 24px;
}

.optmx-panel__box {
  padding: 22px 20px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(14, 165, 183, .18);
  box-shadow: var(--opt-shadow-md);
}

.optmx-panel__label {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--opt-brand-dark);
}

.optmx-panel__list {
  margin-top: 14px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.optmx-panel__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F8FEFF;
  border: 1px solid var(--opt-line);
}

.optmx-panel__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--opt-brand-soft);
  color: var(--opt-brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.optmx-panel__list strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--opt-ink);
}

.optmx-kicker {
  color: var(--opt-brand-dark);
}

.optmx-problem,
.optmx-reasons,
.optmx-diagnosis,
.optmx-ba,
.optmx-prep,
.optmx-faq {
  padding: 30px 0;
}

.optmx-problem {
  background: var(--opt-bg);
}

.optmx-reasons,
.optmx-ba,
.optmx-faq {
  background: #FFFFFF;
}

.optmx-diagnosis,
.optmx-prep {
  background: var(--opt-bg);
}

.optmx-problem__title,
.optmx-section-title {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -.04em;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optmx-problem__desc,
.optmx-section-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optmx-problem__note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--opt-text);
  word-break: keep-all;
}

.optmx-reasons__list,
.optmx-diagnosis__list,
.optmx-prep__list,
.optmx-faq__list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.optmx-reason {
  padding: 22px 18px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optmx-reason__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--opt-brand-dark) 0%, var(--opt-brand) 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
}

.optmx-reason__title {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--opt-ink);
}

.optmx-reason__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optmx-diagnosis-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid #DDEBF0;
  box-shadow: var(--opt-shadow-sm);
}

.optmx-diagnosis-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--opt-brand-soft);
  color: var(--opt-brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.optmx-diagnosis-step h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--opt-ink);
}

.optmx-diagnosis-step p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optmx-ba__card {
  margin-top: 14px;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optmx-ba__card--before {
  background: #FFFFFF;
}

.optmx-ba__card--after {
  background: linear-gradient(135deg, #071B3A 0%, #0A7F8D 48%, #0EA5B7 100%);
  border-color: transparent;
  box-shadow: var(--opt-shadow-md);
}

.optmx-ba__label {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--opt-brand-dark);
}

.optmx-ba__card--after .optmx-ba__label {
  color: rgba(255, 255, 255, .72);
}

.optmx-ba__card h3 {
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--opt-ink);
}

.optmx-ba__card--after h3 {
  color: #FFFFFF;
}

.optmx-ba__card ul {
  margin-top: 14px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.optmx-ba__card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
  color: var(--opt-text);
  word-break: keep-all;
}

.optmx-ba__card--after li {
  color: rgba(255, 255, 255, .92);
}

.optmx-ba__card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--opt-brand);
}

.optmx-ba__card--after li:before {
  background: #FFFFFF;
}

.optmx-prep__list div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--opt-line);
  box-shadow: var(--opt-shadow-sm);
}

.optmx-prep__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--opt-brand-soft);
  color: var(--opt-brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.optmx-prep__list p {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--opt-ink);
}

.optmx-faq__item {
  border: 1px solid var(--opt-line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--opt-shadow-sm);
  overflow: hidden;
}

.optmx-faq__item summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 900;
  color: var(--opt-ink);
  word-break: keep-all;
}

.optmx-faq__item summary::-webkit-details-marker {
  display: none;
}

.optmx-faq__item summary:after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #94A3B8;
  border-top: 2px solid #94A3B8;
  transform: rotate(135deg);
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.optmx-faq__item[open] summary:after {
  transform: rotate(-45deg);
}

.optmx-faq__answer {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--opt-muted);
  word-break: keep-all;
}

.optmx-cta {
  padding: 0 0 36px;
  background: var(--opt-bg);
}

.optmx-cta__inner {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #071B3A 0%, #0A7F8D 48%, #0EA5B7 100%);
  box-shadow: var(--opt-shadow-lg);
}

.optmx-cta__inner:before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.optmx-cta__eyebrow,
.optmx-cta__title,
.optmx-cta__desc,
.optmx-cta__link {
  position: relative;
  z-index: 1;
}

.optmx-cta__eyebrow {
  color: rgba(255, 255, 255, .72);
}

.optmx-cta__title {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -.04em;
  font-weight: 900;
  color: #FFFFFF;
  word-break: keep-all;
}

.optmx-cta__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  word-break: keep-all;
}

.optmx-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 52px;
  padding: 0 24px;
  margin-top: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  color: #0B2236;
  box-shadow: 0 14px 24px rgba(6, 22, 44, .18);
}

.optmx-foot {
  padding: 0 0 30px;
  background: var(--opt-bg);
}

.optmx-foot p {
  font-size: 12px;
  line-height: 1.8;
  font-weight: 600;
  color: #758696;
  word-break: keep-all;
}

/* Reveal */
.optdx .is-reveal,
.optmx .is-reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}

.optdx .is-reveal.is-visible,
.optmx .is-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 1280px) {
  .optdx-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: end;
  }

  .optdx-hero__panel {
    max-width: 760px;
  }

  .optdx-problem__layout {
    grid-template-columns: 1fr;
  }

  .optdx-reasons__stack {
    grid-template-columns: 1fr;
  }

  .optdx-reason--wide {
    min-height: auto;
  }

  .optdx-diagnosis__layout {
    grid-template-columns: 1fr;
  }

  .optdx-diagnosis__sticky {
    position: relative;
    top: auto;
  }

  .optdx-prep__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .optdx-hero {
    min-height: 680px;
  }

  .optdx-hero__inner {
    padding: 96px 28px 72px;
  }

  .optdx-wrap {
    padding: 0 28px;
  }

  .optdx-ba__columns {
    grid-template-columns: 1fr;
  }

  .optdx-cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .optdx {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .optmx {
    display: none !important;
  }
}