/* Trei Digital service pages.
   Same minimal language as the homepage: one measure, hairline rules instead
   of stacked cards, generous section rhythm, no shadows or tinted panels. */

.agency-page {
  --agency-measure: 900px;
}

.agency-page .container {
  max-width: var(--agency-measure);
}

.agency-page main {
  padding-bottom: 0;
}

.agency-hero {
  padding: 88px 0 72px;
}

.agency-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.agency-hero-grid {
  display: block;
}

.agency-hero .eyebrow-inline {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agency-hero h1 {
  max-width: 17ch;
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.agency-lede {
  max-width: 58ch;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.agency-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agency-hero .hero-trust {
  margin: 28px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.agency-hero .hero-trust svg {
  display: none;
}

/* "Best for" / summary list: plain, below the hero copy. */
.agency-summary {
  max-width: 58ch;
  margin: 44px 0 0;
  padding: 24px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.agency-summary h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.agency-summary ul,
.agency-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.agency-summary li,
.agency-section li {
  margin: 0 0 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.agency-summary li {
  font-size: 14px;
}

.agency-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.agency-section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.agency-section > .container > p,
.agency-section header p,
.package-card p,
.process-card p,
.faq-block p {
  max-width: 58ch;
  color: var(--text-muted);
  line-height: 1.65;
}

.split-grid,
.package-grid,
.process-grid-page,
.faq-grid {
  display: grid;
  gap: 0;
}

.split-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.package-grid,
.process-grid-page,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* No cell dividers: an odd item count would leave a half-width rule hanging
   under the last row. Row spacing carries the separation instead. */
.package-card,
.process-card,
.faq-block {
  padding: 20px 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.package-card h3,
.process-card h3,
.faq-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.package-price {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.process-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.agency-final-cta {
  max-width: 56ch;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.agency-final-cta h2 {
  margin-bottom: 12px;
}

.agency-final-cta p {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--text-muted);
}

.agency-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.agency-link-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.agency-link-list a::after {
  content: " →";
  margin-left: 6px;
  transition: transform 200ms ease;
}

.agency-link-list a:hover::after {
  transform: translateX(3px);
}

.agency-page .site-footer {
  background: none;
}

.agency-page .footer-nav {
  margin-left: -12px;
}

@media (max-width: 860px) {
  .agency-hero {
    padding: 64px 0 56px;
  }

  .agency-section {
    padding: 56px 0;
  }

  .split-grid,
  .package-grid,
  .process-grid-page,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .process-grid-page,
  .faq-grid {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .agency-hero {
    padding-top: 48px;
  }

  .agency-hero h1 {
    max-width: 100%;
  }
}
