/* ---------------------------------------------------------------------------
   Spoke page template. /document-automation is the calibration page; the
   remaining three service pages reuse this stylesheet unchanged, which is
   the point of calibrating one before scaling the pattern.
   Depends on styles.css for the shell, header, buttons and footer.
   --------------------------------------------------------------------------- */

.spoke-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 0 0;
}

/* breadcrumbs: visible trail matching the BreadcrumbList in the page schema */
.spoke-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(195, 203, 214, 0.5);
}

.spoke-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(230, 126, 34, 0.5);
}

.spoke-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(195, 203, 214, 0.7);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 180ms ease;
}

.spoke-crumbs a:hover,
.spoke-crumbs a:focus-visible {
  color: var(--copper);
}

.spoke-crumbs a:active {
  transform: scale(0.97);
  opacity: 0.75;
}

.spoke-crumbs [aria-current="page"] {
  color: rgba(195, 203, 214, 0.45);
}

/* --- hero ---------------------------------------------------------------- */

.spoke-hero h1 {
  margin: 14px 0 20px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.spoke-lead {
  max-width: 62ch;
  margin: 0 0 30px;
  color: rgba(195, 203, 214, 0.9);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.spoke-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- sections ------------------------------------------------------------ */

.spoke-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.spoke-label {
  margin: 0 0 12px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.spoke-section h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.spoke-section p {
  max-width: 66ch;
  margin: 0 0 18px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.spoke-section p:last-child {
  margin-bottom: 0;
}

/* the positioning section that explains the deterministic design decision */
.spoke-section--feature {
  padding: 34px 32px;
  border: 1px solid rgba(230, 126, 34, 0.2);
  border-radius: 14px;
  background: rgba(230, 126, 34, 0.045);
}

.spoke-callout {
  padding: 18px 20px;
  border-left: 2px solid var(--copper);
  background: rgba(255, 255, 255, 0.02);
}

.spoke-callout strong {
  color: var(--white);
}

/* --- example workflows --------------------------------------------------- */

.spoke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.spoke-card {
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.spoke-card h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.spoke-card p {
  margin: 0;
  font-size: 15px;
}

/* --- deliverable lists --------------------------------------------------- */

.spoke-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spoke-list li {
  position: relative;
  padding-left: 22px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.spoke-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--copper);
}

/* --- build steps --------------------------------------------------------- */

.spoke-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.spoke-step h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spoke-step p {
  margin: 0;
  font-size: 15px;
}

.spoke-timeline {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.spoke-timeline strong {
  color: var(--white);
}

/* --- proof --------------------------------------------------------------- */

.spoke-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.spoke-proof__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.spoke-proof__item:hover,
.spoke-proof__item:focus-visible {
  border-color: rgba(230, 126, 34, 0.45);
  background: rgba(230, 126, 34, 0.05);
  transform: translateY(-2px);
}

.spoke-proof__item:active {
  transform: scale(0.97);
  opacity: 0.75;
}

.spoke-proof__kind {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spoke-proof__name {
  color: var(--white);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.spoke-proof__meta {
  color: rgba(195, 203, 214, 0.62);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

/* --- FAQs ---------------------------------------------------------------- */

.spoke-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spoke-faq details:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.spoke-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
  list-style: none;
  transition: color 180ms ease;
}

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

.spoke-faq summary::after {
  content: "+";
  flex: none;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
}

.spoke-faq details[open] summary::after {
  content: "\2013";
}

.spoke-faq summary:hover,
.spoke-faq summary:focus-visible {
  color: var(--copper);
}

.spoke-faq details p {
  max-width: 66ch;
  margin: 0 0 20px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* --- final CTA ----------------------------------------------------------- */

.spoke-cta {
  margin: 64px 0 0;
  padding: 40px 36px;
  border: 1px solid rgba(230, 126, 34, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(11, 19, 32, 0.6), rgba(46, 40, 37, 0.35));
}

.spoke-cta h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.spoke-cta p {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.spoke-back {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(195, 203, 214, 0.45);
}

.spoke-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(195, 203, 214, 0.72);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 180ms ease;
}

.spoke-back a:hover,
.spoke-back a:focus-visible {
  color: var(--copper);
}

.spoke-back a:active {
  transform: scale(0.97);
  opacity: 0.75;
}

@media (max-width: 720px) {
  .spoke-shell {
    padding-top: 40px;
  }

  .spoke-section {
    margin-top: 48px;
    padding-top: 32px;
  }

  .spoke-section--feature {
    padding: 26px 22px;
  }

  .spoke-cta {
    padding: 30px 22px;
  }

  .spoke-lead {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spoke-proof__item,
  .spoke-crumbs a,
  .spoke-back a,
  .spoke-faq summary {
    transition: none;
  }

  .spoke-proof__item:hover,
  .spoke-proof__item:focus-visible {
    transform: none;
  }

  .spoke-proof__item:active,
  .spoke-crumbs a:active,
  .spoke-back a:active {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Engagement details: the four commercial fields every spoke must state, in
   the same order and the same shape. These moved off the /systems hub when it
   became comparison-and-routing only, and they live here so the numbers cannot
   drift between service pages.
   --------------------------------------------------------------------------- */

.spoke-engagement {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(3, 8, 15, 0.55);
  overflow: hidden;
}

.spoke-engagement div {
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.spoke-engagement div:last-child {
  border-right: 0;
}

.spoke-engagement dt {
  margin: 0 0 8px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spoke-engagement dd {
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .spoke-engagement {
    grid-template-columns: 1fr 1fr;
  }

  .spoke-engagement div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .spoke-engagement div:nth-child(2n) {
    border-right: 0;
  }

  .spoke-engagement div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
