/* ==========================================================================
   SILVER Platform – Public Landing Page
   ========================================================================== */

.home-page {
  background: var(--color-white);
  flex: 1 0 auto;
  padding: var(--space-6) 0 var(--space-12);
}

@media (min-width: 960px) {
  .home-page { padding: var(--space-8) 0 var(--space-16); }
}

.home-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 960px) {
  .home-content { gap: var(--space-12); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-teal-50);
  border: 1px solid #DCE9E7;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-hero-body {
  padding: var(--space-6) var(--space-5) var(--space-7, 28px);
}

@media (min-width: 860px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: stretch;
  }

  .home-hero-body {
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.home-hero .display-title {
  max-width: 15ch;
  margin-bottom: var(--space-3);
}

.home-hero-sub {
  color: var(--color-ink-600);
  font-size: var(--text-body);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: var(--space-5);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  max-width: 100%;
  margin-top: var(--space-6);
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #D9E7E4;
  border-radius: var(--radius-sm);
  color: var(--color-teal-800);
}

.home-hero-help .icon { flex-shrink: 0; }

.home-hero-help strong {
  display: block;
  font-size: calc(12px * var(--text-scale));
  line-height: 1.4;
  color: var(--color-teal-900);
}

.home-hero-help span span,
.home-hero-help .home-hero-hours {
  display: block;
  font-size: calc(10.5px * var(--text-scale));
  color: var(--color-ink-500);
  line-height: 1.4;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  order: 2;
}

@media (min-width: 860px) {
  .home-hero-img { order: 0; min-height: 320px; }
}

/* --------------------------------------------------------------------------
   Trust cards
   -------------------------------------------------------------------------- */
.home-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 820px) {
  .home-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.home-trust-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-5);
}

.home-trust-card > .icon { color: var(--color-teal-800); }

.home-trust-card h2 {
  font-size: var(--text-h3);
  margin: 2px 0 0;
}

.home-trust-card p {
  margin: 0;
  font-size: calc(13.5px * var(--text-scale));
  line-height: 1.6;
  color: var(--color-ink-600);
  flex: 1;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-size: calc(12.5px * var(--text-scale));
  font-weight: 700;
  color: var(--color-teal-700);
  text-decoration: none;
}

.home-link:hover {
  color: var(--color-teal-900);
  text-decoration: underline;
}

.home-link span[aria-hidden="true"] {
  transition: transform var(--motion-fast) ease-out;
}

.home-link:hover span[aria-hidden="true"] { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   Mint bands
   -------------------------------------------------------------------------- */
.home-band {
  background: var(--color-teal-50);
  border: 1px solid #DCE9E7;
  border-radius: var(--radius-lg);
  padding: var(--space-7, 28px) var(--space-5);
}

@media (min-width: 900px) {
  .home-band { padding: var(--space-8) var(--space-10); }
}

.home-band-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}

.home-band-head h2 {
  font-size: var(--text-h2);
  margin-bottom: 4px;
}

.home-band-head p {
  margin: 0;
  font-size: calc(13.5px * var(--text-scale));
  color: var(--color-ink-600);
}

/* --------------------------------------------------------------------------
   Impact stats
   -------------------------------------------------------------------------- */
.home-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--space-4) var(--space-3) var(--space-2);
}

.home-stat .icon {
  color: var(--color-teal-700);
  margin-bottom: 6px;
}

.home-stat-value {
  font-size: calc(22px * var(--text-scale));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-teal-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-stat-text {
  margin: 0;
  max-width: 24ch;
  font-size: calc(12px * var(--text-scale));
  line-height: 1.5;
  color: var(--color-ink-700);
}

.home-stat-source {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: calc(10.5px * var(--text-scale));
  color: var(--color-ink-500);
}

@media (min-width: 760px) {
  .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .home-stat {
    padding: var(--space-2) var(--space-5) 0;
  }

  .home-stat + .home-stat {
    border-left: 1px solid #D7E5E2;
  }
}

/* --------------------------------------------------------------------------
   Explore what matters
   -------------------------------------------------------------------------- */
.home-explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .home-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .home-explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1060px) {
  .home-explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

.home-explore-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-ink-900);
  transition: border-color var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out;
}

.home-explore-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-raised);
  text-decoration: none;
}

.home-explore-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-explore-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 14px 16px;
}

.home-explore-card h3 {
  font-size: calc(13px * var(--text-scale));
  line-height: 1.35;
  margin: 0;
}

.home-explore-card p {
  margin: 0;
  flex: 1;
  font-size: calc(11.5px * var(--text-scale));
  line-height: 1.5;
  color: var(--color-ink-600);
}

.home-explore-card .home-link {
  margin-top: 4px;
  font-size: calc(11.5px * var(--text-scale));
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.home-steps {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.home-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 700px) {
  .home-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
}

@media (min-width: 1000px) {
  .home-steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
}

.home-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.home-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-teal-50);
  color: var(--color-teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-step-copy h3 {
  font-size: calc(13.5px * var(--text-scale));
  margin: 4px 0;
}

.home-step-copy p {
  margin: 0;
  font-size: calc(12px * var(--text-scale));
  line-height: 1.5;
  color: var(--color-ink-600);
}

.home-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-teal-800);
  color: var(--color-white);
  font-size: calc(11.5px * var(--text-scale));
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Voices carousel
   -------------------------------------------------------------------------- */
.home-voices .home-band-head { margin-bottom: var(--space-5); }

.home-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .home-carousel { grid-template-columns: auto minmax(0, 1fr) auto; }
}

.testi-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  margin: 0;
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid #DCE9E7;
  border-radius: var(--radius-card);
}

@media (min-width: 760px) {
  .testi-card { flex-basis: calc((100% - var(--space-4)) / 2); }
}

@media (min-width: 1000px) {
  .testi-card { flex-basis: calc((100% - var(--space-4) * 2) / 3); }
}

.testi-card blockquote { margin: 0; }

.testi-quote {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(28px * var(--text-scale));
  line-height: 0.9;
  color: #B7CFCA;
  margin-bottom: 8px;
}

.testi-card p {
  margin: 0;
  font-size: calc(12.5px * var(--text-scale));
  line-height: 1.55;
  color: var(--color-ink-700);
}

.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
  font-size: calc(11.5px * var(--text-scale));
  font-weight: 600;
  color: var(--color-ink-700);
}

.testi-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testi-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-ink-700);
  cursor: pointer;
}

@media (min-width: 700px) {
  .testi-arrow { display: inline-flex; }
}

.testi-arrow:hover {
  border-color: var(--color-teal-700);
  color: var(--color-teal-700);
}

.testi-arrow[disabled] {
  opacity: 0.4;
  cursor: default;
}

.testi-arrow .icon-flip { transform: rotate(180deg); }

.testi-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-4);
}

.testi-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #BDD3CF;
  cursor: pointer;
  transition: background-color var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
}

.testi-dot:hover { background: var(--color-teal-600); }

.testi-dot[aria-current="true"] {
  background: var(--color-teal-800);
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Help call-to-action
   -------------------------------------------------------------------------- */
.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: var(--color-teal-900);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  color: var(--color-white);
}

@media (min-width: 760px) {
  .home-cta { padding: var(--space-6) var(--space-8); }
}

.home-cta-main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.home-cta-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
}

.home-cta h2 {
  color: var(--color-white);
  font-size: calc(17px * var(--text-scale));
  margin: 0 0 2px;
  letter-spacing: -0.005em;
}

.home-cta p {
  margin: 0;
  font-size: calc(12.5px * var(--text-scale));
  color: #C2D9D5;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-white {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-teal-900);
}

.btn-white:hover {
  background: #EFF5F4;
  border-color: #EFF5F4;
  color: var(--color-teal-900);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.home-partners { text-align: center; }

.home-partners .home-band-head { margin-bottom: var(--space-6); }

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-5) var(--space-8);
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 210px;
  text-align: center;
  color: var(--color-ink-700);
}

.partner-logo {
  display: block;
  width: auto;
  height: 88px;
  max-width: 210px;
  object-fit: contain;
}

.partner-name {
  font-size: calc(11px * var(--text-scale));
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink-700);
}

@media (max-width: 599px) {
  .partner-list { gap: var(--space-5) var(--space-6); }
  .partner { width: 100%; }
}

/* --------------------------------------------------------------------------
   High contrast adjustments
   -------------------------------------------------------------------------- */
[data-contrast="high"] .home-hero,
[data-contrast="high"] .home-band,
[data-contrast="high"] .testi-card {
  border-width: 2px;
  border-color: var(--color-border);
}
