/* Subpage components. Loaded after site.css, which provides tokens, buttons,
   header, contact band and footer. */

/* Page hero: anthracite band, optional image on the right */
.page-hero { background: var(--ci-anthracite); color: var(--white); }
.page-hero-media { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.page-hero-copy { padding: 48px 0 64px; }
.page-hero-media .page-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 64px 64px max(16px, calc((100vw - 1200px) / 2));
}
.page-hero .eyebrow { color: var(--ci-green); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 20px; max-width: 62ch; font-size: 1.15rem; color: #d3d8dd; }
.page-hero .badge { margin: 0 0 16px; }
.page-hero-image { position: relative; }
.page-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 0.85rem; color: #aab2ba; }
.breadcrumb a { color: #d3d8dd; text-decoration: none; }
.breadcrumb a:hover { color: var(--ci-green); }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: #6d7780; }

/* Generic card grids */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--ci-green); border-radius: 6px; background: var(--white); }
.card h3 { font-size: 1.15rem; }
.card p { margin-top: 10px; color: var(--muted); }
.section-surface .card { border-color: transparent; border-top-color: var(--ci-green); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.chips-block { margin-top: 40px; }
.chips-block h3 { font-size: 1rem; margin-bottom: 12px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ci-green); font-weight: 600; font-size: 1.1rem;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -8px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.section-dark .steps li::after { background: #46505c; }
.section-dark .steps p { color: #c5cbd1; }

/* Project examples */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; padding: 26px; border-radius: 6px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(46, 54, 64, 0.07); }
.project .area { align-self: flex-start; margin-bottom: 12px; padding: 2px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); font-size: 0.8rem; font-weight: 600; }
.project h3 { font-size: 1.1rem; }
.project dl { margin: 14px 0 0; }
.project dt { margin-top: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project dd { margin: 2px 0 0; font-size: 0.95rem; }
.project .tags { margin-top: auto; padding-top: 16px; justify-content: flex-start; }

/* Comparison: SAP world vs. your application */
.compare { border-top: 1px solid var(--line); }
.compare-head, .compare-row { display: grid; grid-template-columns: 2fr 5fr; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.compare-head { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.compare-row dt { font-weight: 600; padding-left: 16px; border-left: 4px solid var(--ci-green); }
.compare-row dd { margin: 0; color: var(--muted); }

/* Signs list */
.signs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.signs li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.signs li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 14px; background: var(--ci-green); }
.conclusion { margin-top: 32px; max-width: 70ch; font-size: 1.15rem; font-weight: 500; }

/* AI section */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.ai-grid article { padding: 28px; border: 1px solid #46505c; border-radius: 6px; }
.ai-grid h3 { color: var(--ci-green); font-size: 1.15rem; }
.ai-grid p { margin-top: 10px; color: #c5cbd1; }
.proof { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 32px; padding: 24px 28px; border-radius: 6px; background: var(--ci-green); color: var(--ci-anthracite); }
.proof strong { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.proof p { font-size: 1.1rem; font-weight: 500; }
.proof .btn { margin: 0; }
.privacy-note { margin-top: 20px; color: #aab2ba; font-size: 0.95rem; }
.approval-note {
  margin-top: 28px; padding: 18px 22px; max-width: 80ch;
  border-left: 4px solid var(--ci-green); background: rgba(255, 255, 255, 0.05); color: #d3d8dd;
}

/* Cost comparison */
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; }
.cost-card { padding: 30px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.cost-card h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cost-value { margin-top: 8px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; }
.cost-card ul { margin-top: 16px; padding-left: 1.2em; color: var(--muted); }
.cost-card ul li + li { margin-top: 6px; }
.cost-card ul.checks { padding-left: 0; color: var(--ci-anthracite); }
.cost-own { border: 2px solid var(--ci-green); box-shadow: 0 16px 40px rgba(46, 54, 64, 0.1); }
.cost-note { margin-top: 20px; max-width: 80ch; font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.6rem; font-weight: 300; color: var(--green-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

/* CTA box */
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 6px; background: var(--surface); border-left: 6px solid var(--ci-green); }
.cta-box p { margin-top: 8px; color: var(--muted); }
.cta-box .btn { margin: 0; }

/* Team profiles */
.profiles { display: grid; gap: clamp(48px, 6vw, 80px); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.profile > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 12px 12px 0 var(--ci-green); }
.profile h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.profile .role { margin-top: 2px; font-size: 1.1rem; }
.profile .summary { margin-top: 18px; max-width: 70ch; }
.note-chip { display: inline-block; margin-top: 14px; padding: 4px 12px; border: 1px dashed #c29b2c; border-radius: 4px; background: #fff6dc; color: #5f4a00; font-size: 0.85rem; }
.facts-list { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts-list > div { display: contents; }
.facts-list dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts-list dd { margin: 0; }
.facts-list .tags { justify-content: flex-start; margin: 0; }

/* Showcase: gallery, feature groups, stats */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: span 2; }
.gallery .full { grid-column: 1 / -1; max-width: 900px; justify-self: center; }
.gallery .shot { overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: 0 16px 40px rgba(46, 54, 64, 0.16); }
.gallery .shot .device-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--ci-anthracite); }
.gallery .shot .device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a6470; }
.gallery .phone { max-width: 260px; margin-inline: auto; border: 7px solid #1f252c; border-radius: 24px; overflow: hidden; background: #1f252c; box-shadow: 0 16px 40px rgba(46, 54, 64, 0.25); }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 0.92rem; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid article { padding: 26px; border-radius: 6px; background: var(--white); }
.feature-grid h3 { font-size: 1.1rem; }
.feature-grid .checks { margin-top: 14px; font-size: 0.95rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding-top: 16px; border-top: 4px solid var(--ci-green); }
.stat-value { font-size: 1.7rem; font-weight: 600; color: var(--white); }
.stat p:last-child { margin-top: 6px; color: #c5cbd1; }
.stat-extra { margin-top: 32px; max-width: 70ch; color: #c5cbd1; }
.stat-tech { margin-top: 12px; color: #c5cbd1; }
.stat-tech strong { color: var(--ci-green); }

.product-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 6px; background: var(--ci-green); }
.product-box p { margin-top: 8px; max-width: 60ch; }
.product-box .btn { margin: 0; }

.gallery.reports { margin-top: 48px; }
.more-box { margin-top: 24px; }
.tech-list { grid-template-columns: repeat(2, 1fr); gap: 14px 48px; max-width: 900px; font-size: 1.05rem; }

/* Legal text */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 2em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.1rem; }
.prose p { margin-top: 0.8em; }
.prose ul { margin-top: 0.8em; padding-left: 1.3em; }
.prose li + li { margin-top: 0.3em; }
.prose > :first-child { margin-top: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps li:nth-child(3)::after { display: none; }
  .card-grid.cols-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .page-hero-media { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-image { order: -1; height: 260px; }
  .page-hero-media .page-hero-copy { padding: 40px 16px 56px; }
  .card-grid, .project-grid, .feature-grid, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide, .gallery .full { grid-column: 1 / -1; }
  .profile { grid-template-columns: 220px 1fr; }
  .proof { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .project-grid, .feature-grid, .ai-grid, .signs, .stat-grid, .tech-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li::after { display: none; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; }
  .profile { grid-template-columns: 1fr; }
  .profile > img { max-width: 280px; }
  .facts-list { grid-template-columns: 1fr; gap: 4px; }
  .facts-list dd { margin-bottom: 10px; }
  .cta-box, .product-box, .cost-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
