/* Services page only. Palette and nav/footer rules in site.css stay untouched.
   These variables override the shared palette for body.page-services so this
   page follows the services mockup. Sampled from that mockup:

   #0C1430 page navy          #0A1028 deeper navy edge
   #161E44 card surface       #1C2756 raised card edge
   #F4F7FF text               #C5D0E8 muted text
   #A9B6D4 faint text         #3D7BFF electric blue
   #8B6CFF violet accent      #6EB6FF headline gradient start
   #8B7CFF headline mid       #C084FC headline gradient end
   #67E8F9 check marks

   Primary button fills are #2E58F8 to #5B3ED0 so white labels stay WCAG AA
   (5.4:1 and 6.9:1). The neon edge is the brighter glow around them.
*/

body.page-services {
  --bg: #0b1230;
  --text: #f4f7ff;
  --muted: #c5d0e8;
  --faint: #a9b6d4;
  --card: rgba(22, 30, 68, 0.62);
  --card-2: rgba(14, 20, 48, 0.55);
  --line: rgba(140, 170, 255, 0.46);
  --line-strong: rgba(176, 150, 255, 0.82);
  --blue: #3d7bff;
  --violet: #8b6cff;
  --green: #c4b5fd;
  --gold: #dbe7ff;
  --svc-glow: rgba(90, 130, 255, 0.45);
  --svc-violet-glow: rgba(140, 100, 255, 0.42);
  color: var(--text);
}

body.page-services .shell {
  width: min(1180px, calc(100% - 32px));
}

body.page-services header {
  background: rgba(12, 20, 48, 0.9);
  border-bottom-color: rgba(130, 160, 255, 0.18);
}

body.page-services .links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #6eb6ff;
}

body.page-services .mark {
  box-shadow: 0 0 18px rgba(80, 130, 255, 0.45);
}

body.page-services .svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px 18px;
  align-items: center;
  padding-top: 8px;
}

body.page-services .svc-hero > * {
  min-width: 0;
}

body.page-services .svc-hero h1 {
  margin: 0.08em 0 0;
  font-size: clamp(2.15rem, 4.7vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.page-services .grad {
  background: linear-gradient(105deg, #6eb6ff 0%, #8b7cff 48%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.page-services .lede {
  margin: 14px 0 0;
  max-width: 38rem;
}

body.page-services .hero-actions {
  margin-top: 22px;
}

body.page-services .btn-primary {
  background: linear-gradient(100deg, #2e58f8 0%, #5b3ed0 100%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 8px 22px rgba(46, 88, 248, 0.38),
    0 0 18px rgba(120, 100, 255, 0.48);
}

body.page-services .btn:not(.btn-primary) {
  background: rgba(16, 26, 58, 0.72);
  color: #f4f7ff;
  border-color: rgba(130, 170, 255, 0.48);
  box-shadow: 0 0 16px rgba(80, 130, 255, 0.18);
}

body.page-services .svc-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

body.page-services .svc-art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 22%;
  background: radial-gradient(circle, rgba(70, 130, 255, 0.5), rgba(140, 80, 255, 0.22) 46%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

body.page-services .svc-art picture,
body.page-services .svc-art .pay-note {
  position: relative;
  z-index: 1;
}

body.page-services .svc-art picture {
  display: block;
  height: clamp(340px, 46vw, 520px);
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
body.page-services .svc-art img {
  display: block;
  width: 118%;
  max-width: none;
  height: 118%;
  margin-left: -6%;
  object-fit: cover;
  object-position: 62% 28%;
}

body.page-services .pay-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
  background: linear-gradient(180deg, rgba(16, 20, 52, 0.82), rgba(14, 16, 48, 0.74));
  border: 1px solid rgba(120, 170, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(90, 140, 255, 0.12),
    0 0 24px rgba(70, 120, 255, 0.22);
  color: #e7efff;
}

body.page-services .pay-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  color: #6eb6ff;
}

body.page-services .pay-note p {
  margin: 0;
}

body.page-services .group h2,
body.page-services .section-title,
body.page-services .closing h2 {
  overflow-wrap: anywhere;
}

body.page-services .price-grid,
body.page-services .terms-grid {
  align-items: stretch;
}

body.page-services .price-grid {
  padding-top: 14px;
}

body.page-services .plan-card,
body.page-services .term,
body.page-services .closing {
  background:
    linear-gradient(180deg, rgba(18, 22, 58, 0.74), rgba(14, 16, 48, 0.66)) padding-box,
    linear-gradient(135deg, rgba(150, 180, 255, 0.72), rgba(140, 100, 255, 0.55) 55%, rgba(120, 160, 255, 0.7)) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 24px rgba(110, 90, 255, 0.35);
}

body.page-services .plan-card {
  position: relative;
  gap: 12px;
  padding: 22px 20px 20px;
}

body.page-services .plan-card.featured {
  overflow: hidden;
  border-color: rgba(170, 160, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(140, 160, 255, 0.45),
    0 0 28px rgba(90, 140, 255, 0.5),
    0 0 56px var(--svc-violet-glow),
    0 18px 40px rgba(4, 10, 30, 0.38);
}
body.page-services .flag {
  position: absolute;
  top: 22px;
  right: -38px;
  left: auto;
  z-index: 2;
  padding: 6px 46px;
  border-radius: 2px;
  transform: rotate(35deg);
  background: linear-gradient(90deg, #6d28d9, #c084fc);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.75);
}
@media (max-width: 980px) {
  body.page-services .flag {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    transform: none;
    letter-spacing: 0.08em;
  }
}

body.page-services .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #e7eeff;
  background: linear-gradient(160deg, rgba(70, 130, 255, 0.45), rgba(140, 90, 255, 0.28));
  border: 1px solid rgba(160, 190, 255, 0.35);
  box-shadow: 0 0 16px rgba(80, 130, 255, 0.28);
}

body.page-services .card-icon svg {
  width: 22px;
  height: 22px;
}

body.page-services .plan-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
}

body.page-services .plan-card .price {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: #f4f7ff;
}

body.page-services .features li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8'%3E%3Cpath d='M5 12.5 9.2 17 19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    radial-gradient(circle at 40% 35%, #ddd4ff, #7c4dff 64%, #5b35c4);
  box-shadow: 0 0 8px rgba(150, 110, 255, 0.7);
}

body.page-services .wide-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-services .terms-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-services .term {
  padding: 18px 16px;
}

body.page-services .section-head,
body.page-services .closing-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}
body.page-services .closing-head {
  align-items: center;
  justify-content: center;
}
body.page-services .section-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex: none;
  color: #f7f9ff;
  background: linear-gradient(160deg, rgba(90, 160, 255, 0.75), rgba(160, 80, 255, 0.55));
  border: 1px solid rgba(210, 220, 255, 0.6);
  box-shadow: 0 0 22px rgba(90, 150, 255, 0.7), 0 0 48px rgba(140, 80, 255, 0.4);
}
body.page-services .section-icon svg {
  width: 34px;
  height: 34px;
}
body.page-services .section-head .section-title {
  margin-bottom: 4px;
}
body.page-services .plan-card.has-art {
  display: grid;
  grid-template-columns: minmax(180px, 42%) minmax(0, 1fr);
  gap: 8px 8px;
  align-items: stretch;
  overflow: hidden;
  padding: 0 20px 0 0;
}
body.page-services .plan-card.has-art .card-icon { display: none; }
body.page-services #custom-dev.plan-card.has-art {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 44%);
  padding: 0 0 0 20px;
}
body.page-services #custom-dev .plan-body { order: 1; }
body.page-services #custom-dev .plan-art { order: 2; }
body.page-services .plan-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 22px 8px 22px 12px;
}
body.page-services #custom-dev .plan-body {
  padding: 22px 12px 22px 8px;
}
body.page-services .plan-art {
  position: relative;
  min-width: 0;
  min-height: 280px;
  height: 100%;
}
body.page-services .plan-art picture {
  display: block;
  height: 100%;
  min-height: 280px;
}
body.page-services .plan-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 98%);
}
body.page-services #custom-dev .plan-art img {
  object-position: center 40%;
  -webkit-mask-image: linear-gradient(270deg, #000 46%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 46%, transparent 100%);
}
body.page-services .float-gear {
  position: absolute;
  left: 10px;
  top: 18%;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #f4f7ff;
  background: linear-gradient(160deg, rgba(90, 150, 255, 0.85), rgba(140, 70, 255, 0.7));
  border: 1px solid rgba(220, 230, 255, 0.65);
  box-shadow: 0 0 22px rgba(100, 150, 255, 0.75), 0 0 40px rgba(150, 80, 255, 0.4);
}
body.page-services .float-gear svg { width: 30px; height: 30px; }
body.page-services .term .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

body.page-services .term .card-icon svg {
  width: 18px;
  height: 18px;
}

body.page-services .term strong {
  display: block;
  margin-bottom: 6px;
}

body.page-services .closing {
  box-shadow:
    0 0 0 1px rgba(140, 130, 255, 0.28),
    0 0 32px rgba(100, 90, 255, 0.28);
}

body.page-services .closing p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body.page-services .foot-brand p {
  margin: 8px 0 0;
  color: var(--faint);
  line-height: 1.45;
}

body.page-services #setup,
body.page-services #hosting,
body.page-services #support,
body.page-services #terms {
  scroll-margin-top: 92px;
}

@media (max-width: 980px) {
  body.page-services .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-services .shell {
    width: min(1180px, calc(100% - 24px));
  }

  body.page-services .svc-hero,
  body.page-services .wide-cards,
  body.page-services .plan-card.has-art,
  body.page-services #custom-dev.plan-card.has-art {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-services .plan-card.has-art,
  body.page-services #custom-dev.plan-card.has-art {
    padding: 0 0 16px;
  }
  body.page-services .plan-art,
  body.page-services #custom-dev .plan-art {
    order: -1;
    max-width: none;
    min-height: 200px;
  }
  body.page-services .plan-body { padding: 0 16px; }
  body.page-services .plan-art picture,
  body.page-services .plan-art img {
    min-height: 200px;
    max-height: 240px;
  }
  body.page-services .section-icon {
    width: 56px;
    height: 56px;
  }
  body.page-services .section-icon svg { width: 28px; height: 28px; }
}

@media (max-width: 640px) {
  body.page-services .terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  body.page-services .shell {
    width: min(1180px, calc(100% - 16px));
  }

  body.page-services .brand {
    font-size: 0.88rem;
    gap: 8px;
  }

  body.page-services .mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  body.page-services .nav-cta {
    padding: 8px 10px;
    font-size: 0.8rem;
    gap: 6px;
  }

  body.page-services .links a {
    padding: 8px 8px;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-services .svc-art::before {
    filter: none;
  }

  body.page-services .btn:hover,
  body.page-services .plan-card:hover {
    transform: none;
  }
}
