/* ==========================================================
   XTC Home - homepage composition
   ========================================================== */

.xtc-shell--home-refined .xtc-section__intro {
  max-width: 46rem;
  margin-bottom: var(--xtc-space-5);
}

.xtc-shell--home-refined .xtc-section__intro h2 {
  max-width: 20ch;
}

.xtc-shell--home-refined .xtc-section__intro p {
  max-width: 42rem;
  color: var(--xtc-muted);
}

.xtc-shell--home-refined .xtc-hero--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(24px, 4vw, 36px);
  align-items: start;
  background: linear-gradient(165deg, var(--xtc-surface-1) 0%, var(--xtc-surface-3) 100%);
}

.xtc-hero__main {
  display: flex;
  flex-direction: column;
}

.xtc-shell--home-refined .xtc-hero--home h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 12px;
}

.xtc-shell--home-refined .xtc-hero--home .xtc-lead {
  max-width: 38rem;
  margin-bottom: var(--xtc-space-4);
  font-size: 1.02rem;
  line-height: 1.64;
}

.xtc-hero__support {
  margin: 0 0 var(--xtc-space-4);
  max-width: 36rem;
  color: var(--xtc-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.xtc-shell--home-refined .xtc-hero--home .xtc-actions {
  margin: 0 0 var(--xtc-space-4);
}

.xtc-shell--home-refined .xtc-hero--home .xtc-btn--primary {
  min-height: 48px;
  padding: 0 22px;
  font-size: 1rem;
  border-color: var(--xtc-accent-3);
  box-shadow: 0 5px 16px rgba(41, 92, 69, 0.18);
}

.xtc-shell--home-refined .xtc-hero--home .xtc-btn--ghost {
  min-height: 48px;
  padding: 0 18px;
}

.xtc-hero-trust,
.xtc-hero-signals,
.xtc-home-overview {
  list-style: none;
  padding: 0;
}

.xtc-hero-trust {
  margin: 0 0 14px;
  display: grid;
  gap: 7px;
}

.xtc-hero-trust li {
  font-size: 0.9rem;
  color: var(--xtc-ink-soft);
  line-height: 1.4;
}

.xtc-hero-signals {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xtc-hero-signals li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(41, 92, 69, 0.18);
  border-radius: 999px;
  background: var(--xtc-surface-1);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--xtc-ink-soft);
}

.xtc-hero-signals li + li::before {
  content: none;
}

.xtc-shell--home-refined .xtc-hero__aside {
  padding: var(--xtc-space-5);
  background: var(--xtc-surface);
  border: 1px solid var(--xtc-border);
  box-shadow: var(--xtc-shadow-md);
}

.xtc-shell--home-refined .xtc-hero__aside h2 {
  font-size: 1rem;
  margin: 0 0 var(--xtc-space-3);
  color: var(--xtc-ink-strong);
}

.xtc-home-overview {
  margin: 0 0 var(--xtc-space-4);
  display: grid;
  gap: 6px;
}

.xtc-home-overview li {
  padding: 8px 10px;
  border: 1px solid var(--xtc-border);
  border-radius: var(--xtc-radius-sm);
  background: var(--xtc-surface-2);
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--xtc-ink-strong);
  line-height: 1.35;
}

.xtc-shell--home-refined .xtc-quick-actions {
  padding: var(--xtc-space-4);
  border: 1px solid var(--xtc-border);
  border-radius: var(--xtc-radius);
  background: var(--xtc-surface-2);
}

.xtc-shell--home-refined .xtc-quick-actions__grid,
.xtc-shell--home-refined .xtc-grid--services,
.xtc-shell--home-refined .xtc-trust-grid,
.xtc-shell--home-refined .xtc-article-grid,
.xtc-shell--home-refined .xtc-link-grid--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.xtc-shell--home-refined .xtc-quick-action {
  display: grid;
  gap: 6px;
  padding: var(--xtc-space-3);
  border: 1px solid var(--xtc-border);
  border-radius: var(--xtc-radius);
  background: var(--xtc-surface-1);
  box-shadow: var(--xtc-shadow-soft);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.xtc-shell--home-refined .xtc-quick-action:hover,
.xtc-shell--home-refined .xtc-quick-action:focus-visible {
  border-color: rgba(41, 92, 69, 0.2);
  background: #fcfbf8;
}

.xtc-shell--home-refined .xtc-quick-action__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--xtc-ink-strong);
}

.xtc-shell--home-refined .xtc-quick-action__meta {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--xtc-muted);
}

.xtc-shell--home-refined .xtc-card--service {
  display: flex;
  flex-direction: column;
  gap: var(--xtc-space-2);
}

.xtc-shell--home-refined .xtc-card--service h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--xtc-ink-strong);
}

.xtc-shell--home-refined .xtc-card--service p {
  margin: 0;
  color: var(--xtc-muted);
  line-height: 1.6;
}

.xtc-shell--home-refined .xtc-card--service .xtc-card__cta,
.xtc-shell--home-refined .xtc-card--service a:last-child {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--xtc-accent);
  text-decoration: none;
}

.xtc-shell--home-refined .xtc-card--service .xtc-card__cta::after,
.xtc-shell--home-refined .xtc-card--service a:last-child::after {
  content: "->";
  font-size: 0.9em;
  line-height: 1;
}

.xtc-shell--home-refined .xtc-trust-grid .xtc-card {
  background: var(--xtc-surface-2);
  box-shadow: var(--xtc-shadow-soft);
}

.xtc-shell--home-refined .xtc-trust-grid .xtc-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.xtc-shell--home-refined .xtc-trust-grid .xtc-card p {
  margin: 0;
  line-height: 1.6;
}

.xtc-shell--home-refined .xtc-section--home-cta,
.xtc-section--home-final-cta {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--xtc-radius);
  border: 1px solid var(--xtc-border);
  background: linear-gradient(165deg, var(--xtc-surface-1) 0%, var(--xtc-surface-3) 100%);
}

.xtc-shell--home-refined .xtc-section--home-cta p {
  max-width: 34rem;
  color: var(--xtc-muted);
}

.xtc-shell--home-refined .xtc-article-card {
  display: flex;
  flex-direction: column;
}

.xtc-shell--home-refined .xtc-article-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.xtc-shell--home-refined .xtc-article-card__media {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--xtc-surface-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.xtc-shell--home-refined .xtc-article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.xtc-shell--home-refined .xtc-article-card__media-link:hover img,
.xtc-shell--home-refined .xtc-article-card__media-link:focus-visible img {
  transform: scale(1.03);
}

.xtc-shell--home-refined .xtc-article-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.xtc-shell--home-refined .xtc-article-card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--xtc-ink-faint);
}

.xtc-shell--home-refined .xtc-article-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--xtc-ink-strong);
}

.xtc-shell--home-refined .xtc-article-card__excerpt {
  margin: 0;
  color: var(--xtc-muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.xtc-shell--home-refined .xtc-article-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.xtc-shell--home-refined .xtc-article-card__cta,
.xtc-shell--home-refined .xtc-article-card a:last-child,
.xtc-article-card__cta--secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--xtc-accent-3);
  text-decoration: none;
  box-shadow: none;
}

.xtc-article-card__cta--secondary {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(41, 92, 69, 0.18);
  border-radius: 999px;
  background: var(--xtc-surface-1);
  font-weight: 600;
  white-space: nowrap;
  color: var(--xtc-ink-strong);
}

.xtc-article-card__cta--secondary:hover {
  color: var(--xtc-accent-3);
  border-color: rgba(41, 92, 69, 0.24);
  background: #fdfaf4;
}

.xtc-home-teaser {
  display: flex;
  flex-direction: column;
  gap: var(--xtc-space-5);
}

.xtc-home-teaser__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--xtc-space-3);
  flex-wrap: wrap;
}

.xtc-home-teaser__header h2 {
  margin: 0;
  max-width: 18ch;
}

.xtc-shell--home-refined .xtc-article-card__footer .xtc-article-card__cta {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(41, 92, 69, 0.12);
  border-radius: 999px;
  background: rgba(246, 243, 235, 0.9);
}

.xtc-shell--home-refined .xtc-article-card__footer .xtc-article-card__cta:hover,
.xtc-shell--home-refined .xtc-article-card__footer .xtc-article-card__cta:focus-visible {
  color: var(--xtc-accent);
  border-color: rgba(41, 92, 69, 0.2);
  background: var(--xtc-surface-soft);
}

.xtc-section--home-final-cta .xtc-section__intro {
  margin-bottom: var(--xtc-space-4);
}

.xtc-cta-reassurance {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--xtc-muted);
}
