/* Scripts/services page visual refresh — aligned with the Writer's Room and Tools proposals */
body.page-scripts {
  --scripts-bg: #E2E4E9;
  --scripts-ink: #111317;
  --scripts-yellow: #F8D000;
  --scripts-paper: #F0F2F5;
  --scripts-blue: #D6E4EE;
  background: var(--scripts-bg) !important;
  color: var(--scripts-ink);
}

/* Header and footer */
body.page-scripts > header {
  background: rgba(248, 208, 0, .96) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--scripts-ink) !important;
  box-shadow: 0 4px 20px -4px rgba(17, 19, 23, .06) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.page-scripts > header img[src*="drlogo"],
body.page-scripts > footer img[src*="drlogo"] {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.page-scripts > header nav a,
body.page-scripts > header > div a,
body.page-scripts > header button {
  box-shadow: 0 2px 4px rgba(17, 19, 23, .06) !important;
  border-radius: 10px !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.page-scripts > header nav a:hover,
body.page-scripts > header > div a:hover,
body.page-scripts > header button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(17, 19, 23, .14) !important;
}
body.page-scripts > footer {
  background: var(--scripts-blue) !important;
  border: 0 !important;
  border-top: 1px solid var(--scripts-ink) !important;
  box-shadow: none !important;
}
body.page-scripts > footer .border-b-2 { border-bottom-width: 1px !important; }
body.page-scripts > footer .border-t-2 { border-top-width: 1px !important; }
body.page-scripts > footer a:hover { color: var(--scripts-ink); }
body.page-scripts > footer > div > div:first-child > div:last-child > span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .55rem 1rem;
  border: 1px solid var(--scripts-ink);
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .035em;
  box-shadow: none;
}
@media (max-width: 767px) {
  body.page-scripts > header nav { gap: .5rem; }
  body.page-scripts > footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Hero stays prominent without the heavy frame */
body.page-scripts main > div:first-child {
  border: 1px solid var(--scripts-ink) !important;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(17, 19, 23, .055) !important;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
}
body.page-scripts main > div:first-child h1 {
  max-width: 900px;
  line-height: 1.04;
  letter-spacing: -.045em;
}
body.page-scripts main > div:first-child p {
  line-height: 1.65;
  max-width: 760px;
}

/* Budget assurance panel */
body.page-scripts main > div:nth-child(2) {
  border: 1px solid rgba(17, 19, 23, .55) !important;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(17, 19, 23, .025) !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}
body.page-scripts main > div:nth-child(2) p {
  line-height: 1.65;
}
body.page-scripts main > div:nth-child(2) a {
  border-width: 1px !important;
  border-radius: 999px;
  box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
body.page-scripts main > div:nth-child(2) a:hover {
  transform: translateY(-1px);
}

/* Package cards: thinner borders, softer shadows, clear pricing hierarchy */
body.page-scripts main > div.grid > div {
  border-width: 1px !important;
  border-color: rgba(17, 19, 23, .65) !important;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(17, 19, 23, .025) !important;
  padding: 1.35rem !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-scripts main > div.grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(17, 19, 23, .07) !important;
}
body.page-scripts main > div.grid > div > div > div:first-child {
  border-radius: 6px;
  letter-spacing: .045em;
}
body.page-scripts main > div.grid > div h2 {
  line-height: 1.15;
  letter-spacing: -.035em;
}
body.page-scripts main > div.grid > div ul {
  line-height: 1.6;
}
body.page-scripts main > div.grid > div a {
  border-width: 1px !important;
  border-radius: 999px;
  box-shadow: none !important;
  padding: .8rem 1rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
body.page-scripts main > div.grid > div a:hover {
  transform: translateY(-1px);
  box-shadow: none !important;
}

/* Long-form CTA becomes a calm secondary feature */
body.page-scripts main > div:last-child {
  border-width: 1px !important;
  border-color: rgba(17, 19, 23, .65) !important;
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(17, 19, 23, .035) !important;
  padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}
body.page-scripts main > div:last-child h3 {
  line-height: 1.15;
  letter-spacing: -.035em;
}
body.page-scripts main > div:last-child p {
  line-height: 1.65;
}
body.page-scripts main > div:last-child a {
  border-width: 1px !important;
  border-radius: 999px;
  box-shadow: none !important;
}
body.page-scripts main > div:last-child a:hover {
  transform: translateY(-1px);
  box-shadow: none !important;
}

@media (max-width: 640px) {
  body.page-scripts main { padding-top: 1.5rem !important; }
  body.page-scripts main > div:first-child { border-radius: 18px; }
  body.page-scripts main > div:nth-child(2) { border-radius: 16px; }
  body.page-scripts main > div.grid > div { padding: 1.1rem !important; }
  body.page-scripts main > div:last-child { border-radius: 16px; }
  body.page-scripts > footer > div > div:first-child > div:last-child > span {
    min-height: 34px;
    padding: .45rem .8rem;
    font-size: .68rem;
  }
}
