/* Ranking Advisors brand — logo colors & gradient */
:root {
  --ra-cyan: #00aeef;
  --ra-blue: #0072ce;
  --ra-purple: #6f2dbd;
  --ra-navy: #0a1b33;
  --ra-grad: linear-gradient(135deg, #00aeef 0%, #0072ce 52%, #6f2dbd 100%);
  --ra-soft: #f3f8ff;
  --ra-soft-blue: #e6f4fd;
  --ra-soft-purple: #f3eaff;

  --dm-blue: #0072ce;
  --dm-blue-dark: #005bb0;
  --dm-ink: #0a1b33;
  --dm-gray: #4a5568;
  --dm-tint: #f3f8ff;
  --dm-tint-blue: #e6f4fd;

  --dmc-gold: #0072ce;
  --dmc-text: #0a1b33;
  --dmc-muted: #4a5568;
  --dmc-bg: #ffffff;
  --dmc-cream: #f3f8ff;
  --dmc-border: #d7e6f5;
  --dmc-foot: #0a1b33;
  --gold: #0072ce;
  --gold-light: #e6f4fd;
  --gold-hover: #005bb0;

  --ast-global-color-0: #0072ce;
  --ast-global-color-1: #005bb0;
  --ast-global-color-2: #0a1b33;
  --e-global-color-astglobalcolor0: #0072ce;
  --e-global-color-astglobalcolor1: #005bb0;
  --e-global-color-astglobalcolor2: #0a1b33;
}

.dm-home,
.dm-page,
.dm-page-wrap {
  --blue: #0072ce;
  --blue-2: #00aeef;
  --blue-dark: #005bb0;
  --red: #6f2dbd;
  --yellow: #00aeef;
  --green: #0072ce;
  --ink: #0a1b33;
  --gray: #4a5568;
  --gray-2: #718096;
  --bg: #ffffff;
  --tint: #f3f8ff;
  --tint-blue: #e6f4fd;
  --tint-green: #efe8ff;
  --tint-yellow: #e6f4fd;
  --tint-red: #f3eaff;
}

/* ========== HEADER ========== */
.dmh-top {
  background: var(--ra-grad) !important;
  color: #fff !important;
}
.dmh-top a,
.dmh-top span,
.dmh-hours {
  color: #fff !important;
}
.dmh-top-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}
.dmh-top-l {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dmh-top-l a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}
.dmh-top-l svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.dmh-top .sep {
  opacity: 0.45;
}
.dmh-soc {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dmh-soc a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s, transform 0.2s;
}
.dmh-soc a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.dmh-soc svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.dmh {
  background: #fff !important;
  border-bottom: none !important;
  box-shadow: 0 8px 28px rgba(10, 27, 51, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
}
.dmh-in {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 82px;
  padding: 10px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header.dmh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px !important;
  background: var(--ra-grad) !important;
  opacity: 1 !important;
  pointer-events: none;
}
.dmh-logo {
  flex: 0 0 auto;
}
.dmh-logo img,
.dmh-logo-img {
  max-height: 58px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
@media (min-width: 922px) {
  .dmh-nav {
    display: flex;
    align-items: center;
    gap: 26px;
  }
}
.dmh-nav > a,
.dmh-ddt {
  color: var(--ra-navy) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
}
.dmh-nav > a:hover,
.dmh-ddt:hover,
.dmh-item:hover .dmh-ddt {
  color: var(--ra-blue) !important;
}
.dmh-nav > a::after,
.dmh-ddt::after {
  background: var(--ra-grad) !important;
}
.dmh-cta {
  background: var(--ra-grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 11px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(0, 114, 206, 0.28);
}
.dmh-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(111, 45, 189, 0.32) !important;
  color: #fff !important;
}
.dmh-cta::after {
  display: none !important;
}
.dmh-dd {
  border-color: #d7e6f5 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(10, 27, 51, 0.12) !important;
}
.dmh-dd a:hover {
  background: var(--ra-soft-blue) !important;
}
.dmh-dd .pr,
.dmh-dd .s {
  color: var(--ra-blue) !important;
}
.dmh-burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ra-navy);
  cursor: pointer;
}
.dmh-item {
  position: relative;
  display: flex;
  align-items: center;
}
.dmh-dd {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 300px;
  background: #fff;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.dmh-dd::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}
.dmh-item:hover .dmh-dd,
.dmh-item:focus-within .dmh-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dmh-dd a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  text-decoration: none;
}
.dmh-dd a::after {
  display: none !important;
}
.dmh-car {
  width: 9px;
  height: 6px;
  fill: currentColor;
  opacity: 0.6;
}

@media (max-width: 921px) {
  .dmh-top-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dmh-soc {
    display: none;
  }
  .dmh-burger {
    display: block;
  }
  .dmh-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5%;
    border-bottom: 1px solid #d7e6f5;
    gap: 14px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .dmh-nav.open {
    display: flex;
  }
  .dmh-item {
    display: block;
  }
  .dmh-dd,
  .dmh-dd-wide {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none !important;
    border: none !important;
    padding: 2px 0 6px 10px;
    min-width: 0;
    margin: 6px 0 0;
    background: transparent;
  }
  .dmh-dd::before {
    display: none;
  }
  .dmh-car {
    display: none;
  }
}

/* ========== FOOTER ========== */
.dmf {
  background: #0a1b33 !important;
  color: #ffffff;
}
.dmf-grad {
  height: 3px;
  background: var(--ra-grad);
}
.dmf-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 5% 36px;
}
.dmf-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.75fr 1.05fr;
  gap: 36px 40px;
}
.dmf-logo-link {
  display: inline-block;
}
.dmf-logo-img {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.dmf-brand p {
  margin: 18px 0 0;
  color: #d8dee8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}
.dmf-tag {
  margin-top: 12px !important;
  color: #8ecfff !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dmf h5 {
  color: #9aa6b8 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700 !important;
  margin: 8px 0 18px !important;
  padding: 0 !important;
  border: none !important;
}
.dmf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dmf li {
  margin: 0 0 11px;
  color: #fff;
  font-size: 0.95rem;
}
.dmf a {
  color: #ffffff !important;
  text-decoration: none;
}
.dmf a:hover {
  color: #7ad4ff !important;
}
.dmf-soc {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.dmf-soc a {
  width: auto;
  height: auto;
  background: none !important;
  border: none !important;
  border-radius: 0;
  padding: 0;
}
.dmf-soc a:hover {
  background: none !important;
}
.dmf-soc svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.dmf-soc a:hover svg {
  fill: #7ad4ff;
}
.dmf-bot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 5% 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #c5ceda;
  font-size: 0.88rem;
}
.dmf-legal a {
  margin-left: 18px;
  color: #ffffff !important;
}
.dmf-legal a:hover {
  color: #7ad4ff !important;
}

@media (max-width: 900px) {
  .dmf-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .dmf-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.pill-blue,
.dm-home .pill-blue,
.dm-page .pill-blue {
  background: var(--ra-grad) !important;
  color: #fff !important;
  border: none !important;
}
.pill-blue:hover,
.dm-home .pill-blue:hover,
.dm-page .pill-blue:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(0, 114, 206, 0.35) !important;
  transform: translateY(-1px);
}
.pill-line,
.dm-home .pill-line,
.dm-page .pill-line {
  color: var(--ra-blue) !important;
  border-color: var(--ra-blue) !important;
}
.pill-white {
  background: #fff !important;
  color: var(--ra-navy) !important;
}

/* Gradient accent text */
.g,
.dm-home .g,
.dm-page .g,
.dm-home .hero h1 .g,
.dm-page .hero h1 .g,
.cta-band h2 .g {
  background: var(--ra-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Hero / blobs / sections */
.hero {
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 62%) !important;
}
.blob.b1 { background: #00aeef !important; }
.blob.b2 { background: #0072ce !important; }
.blob.b3 { background: #6f2dbd !important; }
.blob.b4 { background: #00aeef !important; }

.kicker {
  color: var(--ra-blue) !important;
}

.chip,
.stat-chips .sc,
.hero-note {
  border-color: #cfe4f8 !important;
}
.chip {
  background: #fff !important;
  color: var(--ra-navy) !important;
}

.cta-band,
.dm-home .cta-band,
.dm-page .cta-band {
  background: linear-gradient(135deg, #0a1b33 0%, #123056 48%, #2a1848 100%) !important;
}

/* Cards / icons / pricing */
.ic-b { background: var(--ra-soft-blue) !important; }
.ic-g { background: #efe8ff !important; }
.ic-y { background: #e6f4fd !important; }
.ic-r { background: #f3eaff !important; }

.svc,
.fcard,
.plan,
.pcard {
  border-color: #d7e6f5 !important;
}
.svc:hover,
.fcard:hover,
.plan:hover {
  border-color: #00aeef !important;
  box-shadow: 0 10px 28px rgba(0, 114, 206, 0.12) !important;
}

.from b,
.pr,
.more {
  color: var(--ra-blue) !important;
}

/* Forms */
.dm-contact-form button[type="submit"],
.audit-form button[type="submit"],
.frm button[type="submit"] {
  background: var(--ra-grad) !important;
  color: #fff !important;
  border: none !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ra-blue) !important;
  outline-color: var(--ra-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18) !important;
}

/* Links in content */
.dm-home a.more,
.dm-page a.more {
  color: var(--ra-blue) !important;
}

/* Homepage pain section — numbered steps */
.ra-pain {
  padding: 20px 5% 70px;
}
.ra-pain-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  background: #f4f8ff;
  border: 1px solid #d7e6f5;
  border-radius: 28px;
}
.ra-pain-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}
.ra-pain-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: #fff;
  color: var(--ra-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #cfe4f8;
}
.ra-pain-head h2 {
  margin: 16px 0 12px;
  color: var(--ra-navy);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ra-pain-head h2 span {
  background: var(--ra-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ra-pain-head p {
  margin: 0;
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ra-pain-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.ra-pain-step {
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px 24px;
  box-shadow: 0 10px 28px rgba(10, 27, 51, 0.06);
  border-top: 4px solid transparent;
  border-image: var(--ra-grad) 1;
}
.ra-pain-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--ra-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.ra-pain-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ra-pain-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ra-pain-ic-a { background: #efe8ff; color: #6f2dbd; }
.ra-pain-ic-b { background: #e6f4fd; color: #0072ce; }
.ra-pain-ic-c { background: #e8f7ff; color: #00aeef; }
.ra-pain-step h3 {
  margin: 0 0 8px;
  color: var(--ra-navy);
  font-size: 1.15rem;
}
.ra-pain-step p {
  margin: 0;
  color: #5a6574;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ra-pain-cta {
  display: table;
  margin: 28px auto 0;
  color: var(--ra-blue) !important;
  font-weight: 700;
}
.ra-pain-cta:hover {
  color: var(--ra-purple) !important;
}
@media (max-width: 800px) {
  .ra-pain-inner { padding: 32px 20px 28px; }
  .ra-pain-steps { grid-template-columns: 1fr; }
}

/* Homepage services — bento */
.ra-svc {
  padding: 10px 5% 80px;
}
.ra-svc-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.ra-svc-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ra-svc-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: #e6f4fd;
  color: var(--ra-blue);
  font-size: 0.78rem;
  font-weight: 700;
}
.ra-svc-head h2 {
  margin: 14px 0 12px;
  color: var(--ra-navy);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ra-svc-head h2 span {
  background: var(--ra-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ra-svc-head p {
  margin: 0;
  color: #5a6574;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ra-svc-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ra-svc-card {
  background: #fff;
  border: 1px solid #e4eef8;
  border-radius: 22px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ra-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 27, 51, 0.1);
  border-color: #b9d8f5;
}
.ra-svc-feat {
  grid-column: 1 / 3;
  background: linear-gradient(135deg, #0a1b33 0%, #123056 48%, #2a1848 100%);
  border: none;
  color: #fff;
  justify-content: flex-end;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.ra-svc-feat::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.35), transparent 70%);
  pointer-events: none;
}
.ra-svc-feat:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(10, 27, 51, 0.28);
}
.ra-svc-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f4fd;
  color: var(--ra-blue);
  margin-bottom: 16px;
}
.ra-svc-feat .ra-svc-ic {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ra-svc-ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ra-svc-card h3 {
  margin: 0 0 8px;
  color: var(--ra-navy);
  font-size: 1.18rem;
}
.ra-svc-feat h3 {
  color: #fff;
  font-size: 1.55rem;
}
.ra-svc-card p {
  margin: 0 0 18px;
  color: #5a6574;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.ra-svc-feat p {
  color: #c9d6e6;
  max-width: 420px;
  font-size: 1.02rem;
}
.ra-svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.ra-svc-price {
  color: #6b7787;
  font-size: 0.9rem;
}
.ra-svc-price b {
  color: var(--ra-blue);
  font-size: 1.05rem;
}
.ra-svc-feat .ra-svc-price,
.ra-svc-feat .ra-svc-price b {
  color: #fff;
}
.ra-svc-card a {
  color: var(--ra-blue) !important;
  font-weight: 700;
  font-size: 0.92rem;
}
.ra-svc-feat a {
  color: #7ad4ff !important;
}
.ra-svc-all {
  display: table;
  margin: 28px auto 0;
  font-weight: 700;
  color: var(--ra-blue) !important;
}
@media (max-width: 860px) {
  .ra-svc-bento,
  .ra-svc-feat {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

/* Why Ranking Advisors */
.ra-why {
  padding: 20px 5% 80px;
}
.ra-why-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(0, 174, 239, 0.16), transparent 55%),
    radial-gradient(600px 220px at 0% 100%, rgba(111, 45, 189, 0.14), transparent 50%),
    #0a1b33;
}
.ra-why-top {
  text-align: center;
  margin-bottom: 32px;
}
.ra-why-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: #7ad4ff;
  font-size: 0.78rem;
  font-weight: 700;
}
.ra-why-top h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.ra-why-top h2 span {
  background: var(--ra-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ra-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ra-why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 20px 20px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.ra-why-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(122, 212, 255, 0.35);
}
.ra-why-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ra-grad);
  margin-bottom: 14px;
}
.ra-why-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ra-why-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.08rem;
}
.ra-why-card p {
  margin: 0;
  color: #c5d0de;
  font-size: 0.93rem;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .ra-why-inner { padding: 32px 18px 26px; }
  .ra-why-grid { grid-template-columns: 1fr; }
}

/* Show page sections immediately (used-css hid [data-rv] until delayed JS) */
.dm-home [data-rv],
.dm-page [data-rv],
.bw [data-rv] {
  opacity: 1 !important;
  transform: none !important;
}
.page-template-page-dmoons #content .ast-container,
.page-template-page-dmoons .site-content > .ast-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.dmh-dd-wide {
  min-width: 720px !important;
}
.dmh-dd-grid {
  grid-template-columns: 1fr 1fr 1fr !important;
}
@media (max-width: 880px) {
  .dmh-dd-wide { min-width: 0 !important; }
  .dmh-dd-grid { grid-template-columns: 1fr !important; }
}
