/* Solutions page (/services/). Loaded after site.css and page-motif.css.
   One vertical rhythm, balanced layouts, equal-height cards, pillar colour + pathway nodes. */

/* ---------- hero ---------- */
.sv-hero { padding-bottom: 56px; }
.sv-hero .lede { max-width: 56ch; }
.sv-hero .hero-trust { max-width: 64ch; margin-top: 14px; }

/* ---------- rhythm ---------- */
.sv-section { padding: 72px 0; }
.sv-section .section-head { max-width: 640px; margin-bottom: 36px; }
.sv-section .section-head h2 { margin: 12px 0 0; }

/* area tiles sit on a faint node-grid that fades out downwards */
.sv-areas { position: relative; isolation: isolate; }
.sv-areas::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(14, 26, 51, 0.11) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

/* ---------- area tiles: pillar colour, station node on the top edge ---------- */
.svc-tiles--page .svc-tile[data-pillar] {
  border-top: 2px solid var(--pc);
  background: var(--card);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 7%, var(--card)), var(--card) 60%);
}
.svc-tiles--page .svc-tile::before {
  content: ""; position: absolute; left: 22px; top: -7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--pc); box-sizing: border-box;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-tiles--page .svc-tile:hover { border-color: var(--pc); }
.svc-tiles--page .svc-tile:hover::before { background: var(--pc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc) 16%, transparent); }
.svc-tiles--page .svc-num { color: var(--pc-t); }
.svc-tiles--page .svc-link { color: var(--pc-t); }
.svc-tiles--page .svc-link { border-top-color: color-mix(in srgb, var(--pc) 22%, var(--line-soft)); }

/* ---------- packages: dark band, copy left, stations right ---------- */
.sv-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.sv-copy .label { margin-bottom: 14px; color: var(--accent-on-navy); }
.sv-copy h2 { margin: 0 0 16px; max-width: 18ch; color: #fff; }
.sv-copy p { max-width: 46ch; margin: 0 0 22px; color: var(--text-on-navy); }
.sv-copy .highlight-note {
  margin: 0 0 28px; color: #dfe5f5;
  background: rgba(255, 255, 255, 0.06); border-left-color: var(--accent-on-navy);
}

.sv-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-on-navy);
  border-radius: var(--radius);
  padding: 8px 32px 8px 68px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sv-stations { position: relative; list-style: none; margin: 0; padding: 0; }
.sv-stations::before {                      /* the pathway */
  content: ""; position: absolute; left: -38px; top: 34px; bottom: 34px; width: 1px;
  background: linear-gradient(180deg, var(--c-presence-l), var(--c-systems-l), var(--c-insight-l)); opacity: 0.5;
}
.sv-stations::after {                       /* the pulse travelling along it */
  content: ""; position: absolute; left: -39px; top: 34px; bottom: 34px; width: 3px; border-radius: 3px; opacity: 0.6;
  background-image: linear-gradient(180deg, transparent, #fff, transparent);
  background-repeat: no-repeat; background-size: 100% 90px;
  animation: pathway 6.5s linear infinite;
}
.sv-stations li {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  padding: 21px 0; border-top: 1px solid var(--line-on-navy);
}
.sv-stations li:first-child { border-top: 0; }
.sv-stations li::before {                   /* a station per package */
  content: ""; position: absolute; left: -43.5px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--pc-l); box-sizing: border-box; z-index: 1;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sv-stations li:hover::before { background: var(--pc-l); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07); }
.st-name { font-size: 1rem; font-weight: 500; color: #fff; }
.st-price { font-family: var(--display); font-weight: 600; color: var(--pc-l); white-space: nowrap; }

/* ---------- rate card: one ruled ledger on a pathway ---------- */
.service-grid {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-grid::after {                      /* pulse travelling down the ledger */
  content: ""; position: absolute; left: 39px; top: 46px; bottom: 46px; width: 3px; border-radius: 3px; opacity: 0.55; pointer-events: none; z-index: 2;
  background-image: linear-gradient(180deg, transparent, var(--accent), transparent);
  background-repeat: no-repeat; background-size: 100% 110px;
  animation: pathway 9s linear infinite;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "head body" "blurb body" "foot body" ". body";
  column-gap: 56px;
  align-items: start;
  margin: 0;
  padding: 36px 40px 36px 88px;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: background-color 0.25s var(--ease);
}
.service-card + .service-card { border-top: 1px solid var(--line); }
.service-card:hover { background: #fffefb; background: color-mix(in srgb, var(--pc) 4%, var(--card)); box-shadow: none; border-color: var(--line); }
.service-card + .service-card:hover { border-top-color: var(--line); }

.service-card::before {                     /* station node */
  content: ""; position: absolute; left: 34px; top: 40px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--pc); box-sizing: border-box; z-index: 3;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover::before { background: var(--pc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc) 16%, transparent); }
.service-card::after {                      /* pathway segment, joined row to row */
  content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 1px; background: var(--rule); opacity: 0.8;
}
.service-card:first-child::after { top: 46px; }
.service-card:last-child::after { bottom: auto; height: 46px; }
.service-card:only-child::after { display: none; }

.sc-head { grid-area: head; margin-bottom: 12px; }
.pillar-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.8rem; font-weight: 600; color: var(--pc-t); }
.pillar-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.sc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sc-title h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.service-card .svc-title-link:hover, .service-card .svc-title-link:focus-visible { color: var(--pc-t); }
.service-card .svc-title-link::after { color: var(--pc); }
.sc-head .from { display: block; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--pc-t); }
.service-card .popular-badge { margin: 0; letter-spacing: 0.04em; color: var(--pc-t); background: color-mix(in srgb, var(--pc) 13%, var(--card)); }

.sc-blurb { grid-area: blurb; max-width: 46ch; margin: 0 0 22px; font-size: 0.97rem; line-height: 1.6; color: var(--ink-soft); }

.sc-body { grid-area: body; }
.service-card .price-table { margin: 0; }
.service-card .price-table td { padding: 13px 0; }
.service-card .price-table tr:first-child td { padding-top: 0; border-top: 0; }
.service-card .price-table td:first-child { padding-right: 20px; }
.service-card .highlight-note {
  margin: 22px 0 0;
  background: color-mix(in srgb, var(--pc) 8%, var(--card)); border-left-color: var(--pc);
}

.sc-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sc-foot .text-link { font-size: 0.93rem; color: var(--pc-t); }

/* ---------- closing band ---------- */
.sv-cta { padding: 80px 0; }
.sv-cta h2 { margin-bottom: 12px; }
.sv-cta p { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sv-split { grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
  .service-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head" "blurb" "body" "foot";
    padding: 30px 24px 30px 60px;
  }
  .service-card::before { left: 18px; top: 36px; }
  .service-card::after { left: 24px; }
  .service-card:first-child::after { top: 42px; }
  .service-card:last-child::after { height: 42px; }
  .service-grid::after { left: 23px; top: 42px; bottom: 42px; }
  .sc-blurb { margin-bottom: 22px; }
  .sc-body { margin-bottom: 24px; }
  .service-card .price-table tr:first-child td { padding-top: 13px; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .sv-hero { padding: 56px 0 44px; }
  .sv-section { padding: 52px 0; }
  .sv-section .section-head { margin-bottom: 28px; }
  .sv-panel { padding: 2px 20px 2px 52px; }
  .sv-stations::before { left: -30px; }
  .sv-stations::after { left: -31px; }
  .sv-stations li::before { left: -35.5px; }
  .service-card { padding: 26px 20px 26px 52px; }
  .service-card::before { left: 14px; }
  .service-card::after { left: 20px; }
  .service-grid::after { left: 19px; }
  .sv-cta { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .service-grid::after, .sv-stations::after { display: none; }
}
