/* ============================================
   Five Stacks — Services / Modern Ops Program
   Extends style.css
   ============================================ */

/* ── Hero ── */

.services-hero {
  padding: 140px 24px 100px;
  background: var(--bg);
}

.services-hero .container {
  max-width: 960px;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.services-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.services-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.1;
  text-align: left;
  max-width: 640px;
}

.services-hero-hook {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 640px;
}

.services-hero-roi {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  font-style: italic;
  max-width: 640px;
}

.services-hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 640px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.services-hero-ctas {
  padding-top: 4px;
}

.services-hero-micro {
  font-size: 0.75rem;
  color: var(--subtle);
  margin-top: 10px;
}

.services-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero card */
.services-hero-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.services-hero-card-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-item {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: none;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Framework mini stacks ── */

.stacks-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stack-mini {
  background: var(--surface);
  padding: 20px 16px;
}

.stack-mini-num {
  width: 24px;
  height: 24px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.stack-mini h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.stack-mini p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Commercial logic box ── */

.logic-box {
  max-width: 680px;
  margin: 0 auto;
  border-left: 4px solid var(--ink);
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logic-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.logic-box > p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.logic-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logic-tier {
  font-size: 0.88rem;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 6px;
}

.logic-tier strong {
  color: var(--ink);
}

/* ── Pricing — Tier 3 hero full width, 1 & 2 below ── */

.tier-hero-wrap {
  margin-bottom: 1px;
}

.tier-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tier-hero-left {
  display: flex;
  flex-direction: column;
}

.tier-hero-right {
  display: flex;
  flex-direction: column;
}

.tier-hero-wrap .tier-hero {
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Deliverables box */
.tier-deliverables {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.tier-deliverables h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 12px;
}

.tier-deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-deliverables li {
  font-size: 0.85rem;
  color: #D4D4D4;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}

.tier-deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--subtle);
}

/* Lower tiers side by side */
.pricing-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.pricing-lower .tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

/* Tier shared */
.tier {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-hero {
  background: var(--ink);
  color: white;
}

.tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.tier-header {
  margin-bottom: 20px;
}

.tier-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--ink);
  text-align: left;
}

.tier-hero .tier-name {
  color: white;
  font-size: 1.3rem;
}

.tier-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.tier-hero .tier-tagline {
  color: var(--subtle);
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tier-hero .tier-price {
  color: white;
  font-size: 2.4rem;
}

.tier-price-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--subtle);
}

/* Body */
.tier-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tier-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tier-hero .tier-description {
  color: #D4D4D4;
  font-size: 0.92rem;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex: 1;
}

.tier-list li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.5;
}

.tier-hero .tier-list li {
  color: #D4D4D4;
}

.tier-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink);
}

.tier-hero .tier-list li::before {
  background: var(--subtle);
}

/* Outcome box */
.tier-outcome-box {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tier-outcome-box strong {
  color: var(--ink);
}

.tier-hero .tier-outcome-box {
  background: rgba(255,255,255,0.08);
  color: #D4D4D4;
}

.tier-hero .tier-outcome-box strong {
  color: white;
}

/* Cohort */
.tier-cohort {
  font-size: 0.82rem;
  color: var(--subtle);
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tier-cohort strong {
  color: white;
}

/* CTA overrides */
.tier .cta-button {
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.tier-hero .cta-button {
  background: white;
  color: var(--ink);
}

.tier-hero .cta-button:hover {
  background: #E5E5E5;
}

/* ── ROI line ── */

.tier-roi {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid rgba(255,255,255,0.3);
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
}

/* ── Differentiation ── */

.diff-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.diff-card {
  background: var(--surface);
  padding: 24px;
}

.diff-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 8px;
}

.diff-problem {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.diff-card-dark {
  background: var(--ink);
}

.diff-card-dark h3 {
  color: var(--subtle);
}

.diff-answer {
  font-size: 0.9rem;
  color: #D4D4D4;
  line-height: 1.6;
  font-weight: 500;
}

/* ── Process Steps ── */

.process-steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.process-step {
  background: var(--surface);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.process-step-num {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 2px;
}

.process-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.process-step-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.process-output {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* ── Comparison Table ── */

.compare-table-wrap {
  max-width: 820px;
  margin: 0 auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-label {
  font-weight: 600;
  color: var(--ink);
}

.compare-table td strong {
  color: var(--ink);
}

/* ── Value Strip ── */

.value-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.value-item {
  background: var(--surface);
  padding: 28px 24px;
}

.value-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.value-item-dark {
  background: var(--ink);
}

.value-item-dark h3 {
  color: white;
}

.value-item-dark p {
  color: var(--subtle);
}

/* ── FAQ Grid ── */

.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-card {
  background: var(--surface);
  padding: 24px;
}

.faq-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .services-hero-grid {
    grid-template-columns: 1fr;
  }

  .tier-hero-inner {
    grid-template-columns: 1fr;
  }

  .pricing-lower {
    grid-template-columns: 1fr;
  }

  .stacks-mini {
    grid-template-columns: 1fr 1fr;
  }

  .stacks-mini .stack-mini:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .stacks-mini {
    grid-template-columns: 1fr;
  }

  .stacks-mini .stack-mini:last-child {
    grid-column: auto;
  }

  .services-hero {
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .tier-hero-wrap .tier-hero {
    padding: 24px;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .process-step-num {
    margin-bottom: -8px;
  }
}
