/* Landing-page styles are isolated from the compact search/results layout. */
.page-home {
  --home-notice: color-mix(in srgb, var(--home-amber) 12%, var(--bg));
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.page-home .home-container {
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}

.page-home a.link {
  color: var(--home-accent);
  text-decoration-color: color-mix(in srgb, var(--home-accent) 40%, transparent);
}

.page-home a.link:hover { text-decoration-color: currentColor; }

.page-home :is(a, button, select, summary):focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 5px;
}

.page-home .sponsor-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 1.5rem;
  background: var(--home-notice);
  color: var(--home-accent);
  font-size: 0.875rem;
  text-align: center;
}

.page-home .sponsor-notice-message-mobile { display: none; }
.page-home .sponsor-notice-cta { font-weight: 600; }
.page-home .sponsor-notice-cta:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.page-home .home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  min-height: clamp(26rem, 55svh, 34rem);
  padding-block: 6rem;
}

.page-home .home-brand { display: block; width: 360px; max-width: 100%; }
.page-home .home-brand img { display: block; width: 100%; height: auto; }
.page-home .home-search { width: min(100%, 38rem); }

.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: start;
}

.page-home .home-intro { padding-bottom: 5.5rem; align-items: stretch; }
.page-home .home-intro-left { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }

.page-home h2 { color: color-mix(in srgb, var(--fg) 50%, var(--muted)); font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.025em; font-weight: 550; text-wrap: balance; }
.page-home .home-split > h2 { max-width: 12em; }
.page-home .home-split p { color: var(--muted); }
.page-home .home-copy > * + * { margin-top: 1.25rem; }

.page-home .home-stats { width: 22rem; max-width: 100%; align-self: flex-start; }
.page-home .home-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.page-home .home-stats-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  padding-inline-start: 1rem;
  padding-inline-end: 0.5rem;
}
.page-home .home-stats-grid li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: var(--home-amber);
}
.page-home .home-stats-grid b { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.page-home .home-stats-grid span { color: color-mix(in srgb, var(--fg) 80%, var(--bg)); font-size: 0.875rem; }

.page-home .home-principles {
  padding-block: 6.5rem 7rem;
  color: #2b2b2b;
  background: linear-gradient(135deg, #e2e2e2 0%, #f3f3f3 48%, #e9e9e9 100%);
}

.page-home .home-principles h2 { margin-bottom: 3rem; }
.page-home .home-principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem; }
.page-home .home-principles-grid > li::before {
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  margin-bottom: 1.25rem;
  border-radius: 1px;
  background: var(--home-amber);
}
.page-home .home-principles h3 { margin-bottom: 0.75rem; font-size: 1.125rem; line-height: 1.4; }
.page-home .home-principles b { font-weight: 500; }
.page-home .home-principles p { color: #5b5b57; font-size: 1rem; }

.page-home .home-section { padding-block: 4.5rem; }
.page-home .home-section-divided { border-top: 1px solid var(--line); }
.page-home .home-closing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
.page-home .home-closing p { color: var(--muted); }
.page-home .home-faq details { border-bottom: 1px solid var(--line); }
.page-home .home-faq details:last-child { border-bottom: 0; }

.page-home .home-faq summary {
  position: relative;
  padding: 1.125rem 2rem 1.125rem 0;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.page-home .home-faq summary::-webkit-details-marker { display: none; }
.page-home .home-faq summary::marker { content: ""; }
.page-home .home-faq summary::after { content: "+"; position: absolute; right: 0.125rem; top: 1.125rem; color: var(--muted); font-size: 1.25rem; line-height: 1.2; font-weight: 400; }
.page-home .home-faq details[open] summary::after { content: "−"; }
.page-home .home-faq summary:hover { color: var(--home-accent); }
.page-home .home-faq-answer { padding-bottom: 1.25rem; font-size: 0.9375rem; }
.page-home .home-faq-answer p + p { margin-top: 1rem; }

.page-home .home-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--home-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (prefers-color-scheme: dark) {
  .page-home {
    --home-notice: color-mix(in srgb, var(--home-amber) 10%, var(--bg));
  }
  .page-home .home-principles {
    color: #efefeb;
    background: linear-gradient(135deg, #444444 0%, #343434 48%, #292929 100%);
  }
  .page-home .home-principles p { color: #c4c4be; }
}

@media (max-width: 48rem) {
  .page-home .home-split { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .page-home .home-hero { padding-block: 5rem; }
  .page-home .home-intro { padding-bottom: 3.5rem; }
  .page-home .home-section { padding-block: 3.5rem; }
  .page-home .home-closing { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-home .home-principles { padding-block: 5rem; }
  .page-home .home-principles-grid { gap: 2rem; }
}

@media (max-width: 36rem) {
  .page-home { font-size: 1rem; }
  .page-home .sponsor-notice { flex-wrap: nowrap; gap: 0.5rem; padding-inline: 0.75rem; font-size: 0.75rem; white-space: nowrap; }
  .page-home .sponsor-notice-message { display: none; }
  .page-home .sponsor-notice-message-mobile { display: inline; }
  .page-home .home-container { width: calc(100% - 2.5rem); }
  .page-home .home-brand { width: 240px; }
  .page-home .home-stats-grid { gap: 0.5rem; }
  .page-home .home-stats-grid b { font-size: 1.25rem; }
  .page-home .home-hero { min-height: 24rem; padding-block: 4rem; }
  .page-home h2 { font-size: 1.5rem; }
  .page-home .home-principles h2 { margin-bottom: 2.5rem; }
  .page-home .home-principles-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-home .home-principles-grid > li::before { width: 100%; }
}
