/* ============================================================================
   Services section. The index is a "spec book" (numbered spec-rows plus the
   three-stage start-here selector). Each detail page is a "spec sheet" built on
   the shared page-header, titleblock, prose, sheet-nav, and cta-band components.
   Only layout glue that components.css does not already provide lives here.
   ========================================================================== */

/* -------------------------------------------------------- index: spec book */

.services-index__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}

.services-index__section-title {
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.services-index__section-title--sub {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* The start-here stage selector reuses .stages / .stage-card from home.css,
   but the services index has no dark hero above it, so give it a top rule. */
.services-index .stages {
  border-top: 1px solid var(--trace-faint);
}

/* --------------------------------------------------- detail: spec sheet */

.service-sheet__notes {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.service-sheet__notes-label {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.service-sheet__body {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

/* -------------------------------------------------------------- offer sheets */

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}

.offer-actions a:not(.button) {
  font-weight: 700;
}

.offer-section + .offer-section {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.offer-section .prose h2:first-child {
  margin-top: 0;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

.offer-cards--steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-cards--ladder {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stage-card .offer-card__step {
  margin-top: 0;
}

.offer-card__step,
.offer-card__price {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stage-card .offer-card__price {
  margin-top: auto;
}

.offer-callout ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.offer-card__price {
  margin-top: auto;
  padding-top: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}

.offer-card__kicker {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--ink-muted);
}

.offer-callout,
.offer-terms {
  max-width: 68ch;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.offer-callout p:last-child,
.offer-terms p:last-child {
  margin-bottom: 0;
}

.offer-plain {
  max-width: 68ch;
  margin-top: 1rem;
  font-style: italic;
}

.offer-form {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.offer-choices {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.offer-choices legend {
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.offer-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1rem;
}

.image-slot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.image-slot-row .trace-figure {
  margin: 0;
}

.image-slot__frame {
  display: grid;
  place-items: center;
  min-height: 12rem;
  aspect-ratio: 16 / 10;
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed var(--ink);
  background-color: rgba(255, 255, 255, 0.35);
  background-image:
    repeating-linear-gradient(to right, var(--trace-faint) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, var(--trace-faint) 0 1px, transparent 1px 32px);
}

.image-slot__frame p {
  max-width: 28rem;
}

.copy-todo {
  display: inline;
  padding: 0.12em 0.4em;
  background: var(--accent);
  border: 1px dashed var(--ink);
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  color: var(--ink);
  box-decoration-break: clone;
}

@media (max-width: 1099px) {
  .offer-cards--ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .offer-cards,
  .offer-cards--steps,
  .offer-cards--ladder,
  .offer-split,
  .image-slot-row {
    grid-template-columns: 1fr;
  }
}

/* small footnote line used on the diagnostic sheet */
.service-sheet__body .fn-text {
  margin-top: 2.5em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
