/* ══════════════════════════════════════════════════════════════════
   Corbit — Services page.
   Base, shell, header, footer, the dark hero ground and the final CTA
   band all come from main.css; only what is specific to this page
   lives here.
   ══════════════════════════════════════════════════════════════════ */

/* ── 01 · Hero ────────────────────────────────────────────────────── */
.svc-hero__glow {
  position: absolute;
  top: -280px;
  left: 50%;
  width: 1100px;
  height: 820px;
  margin-left: -550px;
  background: radial-gradient(ellipse at center,
    rgba(1, 233, 197, .15) 0%,
    rgba(1, 233, 197, 0) 62%);
  pointer-events: none;
}
.svc-hero__body {
  position: relative;
  padding: 96px var(--gutter) 0;
}

.svc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  margin-bottom: 32px;
  border: 1px solid rgba(1, 233, 197, .32);
  background: rgba(1, 233, 197, .07);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--mint-7);
}
.svc-hero__title {
  margin: 0 0 26px;
  font-size: 64px;
  line-height: 1.26;
  font-weight: var(--fw-black);
  letter-spacing: -.035em;
  color: var(--white);
}
.svc-hero__title span {
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, .5);
}
.svc-hero__text {
  margin: 0 0 42px;
  font-size: 17.5px;
  line-height: 2.05;
  color: rgba(255, 255, 255, .7);
}
.svc-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.svc-hero__actions .btn--mint,
.svc-hero__actions .btn--ghost { height: 54px; }

/* Four promises, ruled off like a spec sheet under the hero copy */
.value-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.value-bar__cell {
  padding: 28px 0 34px 26px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.value-bar__cell:first-child { padding-right: 0; }
.value-bar__cell:not(:first-child) { padding-right: 26px; }
.value-bar__cell:last-child {
  padding-left: 0;
  border-left: 0;
}
.value-bar__title {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: var(--fw-bold);
  color: var(--mint-7);
}
.value-bar__text {
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, .62);
}

/* ── 02 · Service catalog ─────────────────────────────────────────── */
.catalog {
  background: var(--gray-50);
  border-top: 1px solid var(--border-main);
  padding: 104px 0;
}
.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.catalog__title {
  margin: 0;
  max-width: 640px;
  font-size: 40px;
  line-height: 1.42;
  font-weight: var(--fw-black);
  letter-spacing: -.02em;
  color: var(--black);
}
.catalog__note {
  margin: 0;
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 2;
  color: var(--gray-1000);
}

.catalog__frame {
  display: grid;
  grid-template-columns: 340px 1fr;
  margin-top: 34px;
  border: 1px solid var(--border-strong);
  background: var(--white);
}
.catalog__tabs {
  border-left: 1px solid var(--border-main);
  background: var(--gray-50);
}

.svc-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  text-align: right;
  background: transparent;
  border-bottom: 1px solid var(--border-main);
  border-right: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.svc-tab:last-child { border-bottom: 0; }
.svc-tab:hover { background: rgba(255, 255, 255, .6); }
.svc-tab.is-active {
  background: var(--white);
  border-right-color: var(--mint-7);
}
.svc-tab__num {
  direction: ltr;
  font-family: var(--font-fa);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gray-700);
}
.svc-tab__name {
  font-size: 14px;
  line-height: 1.7;
  font-weight: var(--fw-medium);
  color: var(--gray-1100);
}
.svc-tab__arrow {
  font-size: 15px;
  line-height: 1;
  color: transparent;
}
.svc-tab.is-active .svc-tab__num,
.svc-tab.is-active .svc-tab__arrow { color: var(--blue-8); }
.svc-tab.is-active .svc-tab__name {
  font-weight: var(--fw-bold);
  color: var(--black);
}

.svc-panel {
  display: none;
  flex-direction: column;
  padding: 38px 40px;
}
.svc-panel.is-active { display: flex; }
.svc-panel__axis {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--mint-10);
}
.svc-panel__title {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.5;
  font-weight: var(--fw-black);
  letter-spacing: -.02em;
  color: var(--black);
}
.svc-panel__lead {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 2;
  font-weight: var(--fw-medium);
  color: var(--blue-8);
}
.svc-panel__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border-main);
}
.svc-panel__label {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--gray-1000);
}
.svc-panel__problem {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--gray-1100);
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.svc-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.95;
}
.svc-list li::before { content: ""; }
/* scope reads as a boundary — a rule; outputs read as items — a mark */
.svc-list--scope li { color: var(--gray-1000); }
.svc-list--scope li::before {
  width: 14px;
  height: 1.5px;
  margin-top: 11px;
  background: var(--gray-500);
}
.svc-list--outputs { margin-bottom: 28px; }
.svc-list--outputs li { color: var(--gray-1100); }
.svc-list--outputs li::before {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--mint-7);
}

.svc-panel__result {
  padding-top: 22px;
  border-top: 1px solid var(--border-main);
}
.svc-panel__result-text {
  font-size: 14px;
  line-height: 2.05;
  color: var(--gray-1100);
}
.svc-panel__cta {
  align-self: flex-start;
  height: 48px;
  padding: 0 24px;
  margin-top: 32px;
  font-weight: var(--fw-medium);
}

/* ── 03 · Path ────────────────────────────────────────────────────── */
.path {
  background: var(--white);
  padding: 104px 0;
}
.path__head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}
.path__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.42;
  font-weight: var(--fw-black);
  letter-spacing: -.02em;
  color: var(--black);
}
.path__note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--gray-1000);
}

/* the scale row and every lane share one 270px / rest grid, so the
   week markers line up with the bars underneath them */
.path__scale {
  display: grid;
  grid-template-columns: 270px 1fr;
  border-top: 1px solid var(--border-strong);
}
.path__scale-label {
  padding: 14px 8px 14px 0;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--gray-800);
}
.path__scale-track {
  position: relative;
  padding: 16px 0;
  border-right: 1px solid var(--border-main);
}
.path__tick {
  position: absolute;
  top: 14px;
  padding-right: 8px;
  font-size: 11.5px;
  color: var(--gray-800);
  white-space: nowrap;
}
.path__tick--end {
  padding-right: 0;
  margin-left: 8px;
}

.lane {
  display: grid;
  grid-template-columns: 270px 1fr;
  border-bottom: 1px solid var(--border-main);
  transition: background .2s ease;
}
.lane:hover { background: var(--gray-50); }
.lane__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 8px 17px 22px;
}
.lane__title {
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: var(--fw-bold);
  letter-spacing: -.015em;
  color: var(--black);
}
.lane__dur {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--gray-800);
}
.lane--dark .lane__dur { color: var(--mint-10); }

.lane__track {
  position: relative;
  padding: 16px 0 17px;
  border-right: 1px solid var(--border-main);
}
.lane__gauge {
  position: relative;
  display: block;
  height: 10px;
  margin-bottom: 9px;
}
.lane__bar {
  position: absolute;
  top: 2px;
  height: 6px;
  background: var(--gray-300);
  transition: background .2s ease;
}
.lane--dark .lane__bar { background: var(--blue-8); }
.lane:hover .lane__bar { background: var(--blue-8); }
.lane__cap {
  position: absolute;
  top: 0;
  width: 2px;
  height: 10px;
  background: var(--gray-500);
}
.lane--dark .lane__cap { background: var(--mint-7); }

/* focus and gate share one line — the gate is a short label, not a paragraph */
.lane__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 0 24px;
}
.lane__focus {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--gray-1000);
}
.lane__gate {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.7;
  font-weight: var(--fw-medium);
  color: var(--gray-900);
  white-space: nowrap;
}
.lane--dark .lane__gate {
  font-weight: var(--fw-bold);
  color: var(--blue-8);
}

/* ══════════════════════════════════════════════════════════════════
   Responsive — the source design is desktop-only.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .catalog__frame { grid-template-columns: 280px 1fr; }
  .svc-panel { padding: 32px 28px; }
}

@media (max-width: 980px) {
  .svc-hero__body { padding: 72px var(--gutter) 0; }
  .svc-hero__title { font-size: 40px; }
  .svc-hero__text { font-size: 16px; }

  .value-bar { grid-template-columns: 1fr 1fr; }
  .value-bar__cell:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }
  .value-bar__cell:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }

  .catalog,
  .path { padding: 72px 0; }
  .catalog__title,
  .path__title { font-size: 30px; }

  /* Accordion. A horizontal strip would hide eight of the ten services
     off-screen with nothing to say they are there; services.js moves each
     panel to sit directly under its own tab. */
  .catalog__frame { grid-template-columns: 1fr; }
  .catalog__tabs {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-left: 0;
  }
  .svc-tab {
    width: 100%;
    flex: none;
    padding: 16px 18px;
  }
  .svc-tab__arrow { transition: transform .2s ease; }
  .svc-tab.is-active .svc-tab__arrow { transform: rotate(-90deg); }
  .svc-panel {
    border-bottom: 1px solid var(--border-main);
    background: var(--gray-50);
  }
  .svc-panel__cols { grid-template-columns: 1fr; }
  .svc-list--outputs { margin-top: 0; }
  .svc-panel__label { margin-top: 4px; }

  .path__head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .path__scale { display: none; }
  .lane { grid-template-columns: 1fr; }
  .lane__head { padding: 16px 0 6px; }
  .lane__track {
    padding: 0 0 18px;
    border-right: 0;
  }
  .lane__body {
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }
  .lane__gate { white-space: normal; }
}

@media (max-width: 620px) {
  .svc-hero__title { font-size: 31px; }
  .value-bar { grid-template-columns: 1fr; }
  .value-bar__cell,
  .value-bar__cell:not(:first-child) {
    padding: 22px 0 24px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .value-bar__cell:first-child { border-top: 0; }
  .svc-panel { padding: 28px 20px; }
}
