/* DM Digital Marketing — shared page design system
   Loaded on every page after home.css. Part 1 styles the new page components
   (page hero, feature grid, FAQ, related links). Part 2 restyles the older inner-page
   components (tool shells, cards, bands, tables, legal pages) in the home-page look. */

/* ============ PART 1: new components ============ */
.page-hero {
  position: relative;
  margin-top: -86px;
  padding-top: 86px;
  isolation: isolate;
}

.page-hero .h2-bg {
  bottom: -68px;
}

.page-hero .h2-arc {
  left: calc(52% - 90px);
}

.ph-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: 1.6rem 4.5rem;
}

.ph-grid>* {
  min-width: 0;
}

.ph-copy h1 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.ph-copy .lead {
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 56ch;
}

.ph-bullets {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: .55rem;
}

.ph-bullets li {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-weight: 700;
  font-size: .95rem;
}

.ph-bullets .i {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  stroke-width: 3;
  flex: none;
}

.ph-visual {
  display: grid;
  gap: .9rem;
}

.h2-kpis.k3 {
  grid-template-columns: repeat(3, 1fr);
}

.crumbs2 {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.crumbs2 a {
  color: var(--ink-2);
}

.crumbs2 a:hover {
  color: var(--brand);
}

.crumbs2 .sep {
  opacity: .5;
}

.crumbs2 [aria-current] {
  color: var(--brand);
  font-weight: 700;
}

.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.intro-grid>* {
  min-width: 0;
}

.intro-grid h2 {
  margin-top: .9rem;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.rule-label.left {
  justify-content: flex-start;
}

.rule-label.left::before {
  display: none;
}

section.section.intro-sec {
  margin-top: 50px;
}

.prose2 p {
  color: var(--ink-2);
  line-height: 1.8;
}

.prose2 p+p {
  margin-top: 1rem;
}

.prose2 .who-t {
  margin-top: 1.6rem;
  font-weight: 900;
  color: var(--ink);
}

.prose2 .ticks {
  margin-top: .8rem;
}

.feat-sec {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
  margin-top: 1rem;
}

.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  display: grid;
  gap: .7rem;
  align-content: start;
  scroll-margin-top: 110px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.fcard:hover {
  border-color: rgba(78, 69, 227, .4);
  box-shadow: var(--soft-shadow);
  transform: translateY(-3px);
}

.fcard:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--tint-2);
}

.fcard h3 {
  font-size: 1.1rem;
}

.fcard p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

.facts.f3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.trust-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem .6rem;
}

.trust-mini>div {
  padding-inline: 1rem;
  border-left: 1px solid var(--line);
}

.trust-mini>div:first-child {
  border-left: 0;
}

.trust-mini b {
  display: block;
  font: 900 1.8rem/1 var(--f-display);
  color: var(--brand);
}

.trust-mini span {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--muted);
}

.faq2-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq2-grid>* {
  min-width: 0;
}

.faq2-head h2 {
  margin-top: .9rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.faq2-head .lead {
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1rem;
}

img.somt-gital {
  height: 280px;
  width: 500px;
  border-radius: 20px;
  margin-top: 10px;
}

img.en-gag {
  height: 270px;
  width: 500px;
  border-radius: 20px;
  margin-top: 20px;
}

.faq2-list {
  display: grid;
  gap: .8rem;
}

.qa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.qa[open] {
  border-color: rgba(78, 69, 227, .35);
  box-shadow: var(--soft-shadow);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 900;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa-i {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--tint-2);
  color: var(--brand);
  flex: none;
  transition: transform .25s var(--ease), background .2s, color .2s;
}

.qa[open] .qa-i {
  transform: rotate(90deg);
  background: var(--brand);
  color: #fff;
}

.qa-a {
  padding: 0 1.3rem 1.2rem;
}

.qa-a p {
  color: var(--muted);
  line-height: 1.75;
  font-size: .95rem;
}

.rel-sec {
  padding-block: 0 4.5rem;
}

.rel-box {
  background: var(--tint-2);
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
}

.rel-box h2 {
  font-size: 1.35rem;
}

.rel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.rel-pills .pill>.i:first-child {
  display: none;
}

/* services mega menu: services list + locations */
.mega-services {
  width: min(980px, calc(100vw - 40px));
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem 1.6rem;
  left: -140px;
}

.mega-svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem .6rem;
  align-content: start;
}

.mega-loc {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1rem;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.mega-loc .mega-col:last-child {
  grid-template-columns: 1fr 1fr;
  column-gap: .4rem;
}

.mega-loc .mega-col:last-child h6 {
  grid-column: 1 / -1;
}

.mega-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.mega-ico svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 1060px) {
  .mega-services {
    grid-template-columns: 1fr;
  }

  .mega-svc {
    grid-template-columns: 1fr;
  }

  .mega-loc {
    border-left: 0;
    padding-left: 0;
    grid-template-columns: 1fr;
  }
}

/* ============ PART 2: older inner-page components, restyled ============ */
.hero.gridpaper, .hero.compact {
  position: relative;
  margin-top: -86px;
  padding-top: calc(86px + 2rem);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(90% 90% at 10% 20%, #FFFFFF 0%, #F6F6FC 45%, #EEEDF8 100%);
}



.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
}

.hero .lead {
  color: var(--ink-2);
}

.crumbs {
  font-size: .82rem;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand);
}

.section .head.center::after {
  content: "";
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  margin-top: .3rem;
}

.section .head.center .lead {
  margin-inline: auto;
  color: var(--muted);
}

.head .bar-mark {
  display: none;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.ico {
  background: var(--tint-2);
  color: var(--brand);
  border-radius: 12px;
}

.section.alt {
  background: var(--paper);
}

.stats {
  border-radius: 20px;
  /* box-shadow: var(--soft-shadow); */
}

.stats b {
  font-weight: 900;
}

.chip {
  border-radius: 999px;
}

.chip.accent {
  background: var(--tint-2);
  color: var(--brand);
  border-color: transparent;
}

.section.band {
  background: var(--tint) !important;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.section.band.wave::before {
  display: none;
}

.section.band.wave {
  margin-top: 0;
}

.section.band h2, .section.band h3, .section.band h4 {
  color: var(--ink) !important;
}

.section.band .lead, .section.band .muted, .section.band p {
  color: var(--muted);
}

.section.band .eyebrow {
  color: var(--brand) !important;
  background: #fff;
  border: 1px solid var(--line);
  padding: .5rem .9rem;
  border-radius: 999px;
}

.section.band .eyebrow::before {
  display: inline-block !important;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.section.band .stats {
  background: #fff;
  border-color: var(--line);
}

.section.band .stats b {
  color: var(--brand) !important;
}

.section.band .stats span {
  color: var(--muted);
}

.section.band .stats>div {
  border-color: var(--line) !important;
  padding: 32px;
}

.section.band .btn-primary {
  background: var(--brand);
  color: #fff;
}

.section.band .btn-primary:hover {
  background: #000;
  color: #fff;
}

.section.band .btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: rgba(78, 69, 227, .4);
}

.section.band .card {
  background: #fff;
  border-color: var(--line);
}

.section.band .card p {
  color: var(--muted);
}

.section.band .ico {
  background: var(--tint-2) !important;
  color: var(--brand) !important;
  border: 0 !important;
  border-radius: 10px !important;
}

.section.band .info-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}

.section.band .info-item span, .section.band .info-item a {
  color: var(--muted);
}

.section.band .info-item b {
  color: var(--ink);
}

.band .form {
  box-shadow: 0 30px 60px -30px rgba(20, 18, 60, .35);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.form .btn-primary {
  width: 100%;
  height: 52px;
}

.field label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
}

input, select, textarea {
  border-color: var(--line);
}

.tool-shell {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(20, 18, 60, .35);
  overflow: hidden;
}

.tool-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.tool-out, .metric-box, .editable {
  background: var(--paper);
  border-radius: 14px;
}

.metric-box b {
  color: var(--brand);
  font-weight: 900;
}

.seg, .seg button, .tool-chip {
  border-radius: 999px;
}

.notice {
  background: var(--tint-2);
  border-color: rgba(78, 69, 227, .25);
  border-radius: 14px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .2rem 1.2rem;
  margin-bottom: .7rem;
}

.faq details[open] {
  border-color: rgba(78, 69, 227, .35);
  box-shadow: var(--soft-shadow);
}

.faq summary {
  font-weight: 900;
}

.table-wrap {
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.table th {
  background: var(--paper);
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
}

.price {
  border-radius: 22px;
}

.price.featured {
  box-shadow: 0 30px 60px -30px rgba(78, 69, 227, .5);
}

.legal .toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.prose h2 {
  font-size: 1.4rem;
}

.prose p, .prose li {
  color: var(--ink-2);
  line-height: 1.8;
}

.cs-thumb {
  border-radius: 16px;
  background: linear-gradient(135deg, #F5F4FF, #DEDCFB);
}

@media (max-width: 960px) {
  .ph-grid, .intro-grid, .faq2-grid {
    grid-template-columns: 1fr;
  }

  .fgrid, .facts.f3 {
    grid-template-columns: 1fr 1fr;
  }

  /* .hero.gridpaper::before, .hero.compact::before {
    left: 35%;
    top: 75%;
  } */
}

@media (max-width: 600px) {
  .fgrid, .facts.f3 {
    grid-template-columns: 1fr;
  }

  .h2-kpis.k3 {
    gap: .4rem;
  }

  .h2-kpis.k3 .h2-kpi {
    padding: .6rem .5rem;
  }

  .h2-kpis.k3 .h2-kpi b {
    font-size: 1.05rem;
  }

  .trust-mini b {
    font-size: 1.4rem;
  }

  .rel-box {
    padding: 1.3rem;
  }
}

.mega a.mega-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .7rem;
  align-items: center;
}

.mega-loc .mega-col a {
  white-space: nowrap;
}