/* Homepage modules. Tokens come from layout.css. */

.home-hero {
  position: relative;
  padding: 72px 0 120px;
  background:
    radial-gradient(circle at 88% 8%, rgba(220, 89, 48, 0.22), transparent 28%),
    radial-gradient(circle at 0% 80%, rgba(220, 89, 48, 0.08), transparent 24%),
    linear-gradient(180deg, #0c0d0e 0%, #141210 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 89, 48, 0.55), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: end;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.4vw, 74px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--cream);
}

.hero-copy > p {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: 19px;
  color: var(--text-muted);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  padding: 8px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
}

.finder-card {
  padding: 28px 26px 26px;
  background: var(--cream);
  color: var(--text-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.finder-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.2;
}

.finder-card > p {
  margin: 0 0 20px;
  color: var(--text-ink-muted);
}

.challenge-legend {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.challenge-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.challenge-list button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e4d6cc;
  border-radius: 6px;
  background: var(--white);
  color: var(--text-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.challenge-list button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #fff1ea;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.challenge-list b {
  flex: 0 0 22px;
  color: var(--accent);
}

.finder-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.finder-card .btn {
  width: 100%;
}

.band {
  padding: 96px 0;
}

.band-ink {
  background: var(--ink-raised);
}

.band-soft {
  background: #121110;
}

.band-cream {
  background: var(--paper);
  color: var(--text-ink);
}

.band-cream .section-lead,
.band-cream .process-card p,
.band-cream .faq-item p,
.band-cream .longform p {
  color: var(--text-ink-muted);
}

.band-cream .section-title,
.band-cream .process-card h3,
.band-cream .faq-item h3,
.band-cream .longform h2 {
  color: var(--text-ink);
}

.process-grid,
.trade-grid,
.city-grid,
.tool-grid,
.guide-grid,
.benefit-grid {
  display: grid;
  gap: 16px;
}

.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-card,
.trade-card,
.city-card,
.tool-card,
.guide-card,
.benefit-card {
  padding: 24px 22px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: var(--ink-card);
  text-decoration: none;
  color: inherit;
}

.band-cream .process-card,
.band-cream .benefit-card,
.band-cream .faq-item {
  background: var(--white);
  border-color: #eadfd6;
}

.process-index,
.benefit-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-card h3,
.trade-card h3,
.city-card h3,
.tool-card h3,
.guide-card h3,
.benefit-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
}

.process-card p,
.trade-card p,
.city-card p,
.tool-card p,
.guide-card p,
.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.trade-grid {
  grid-template-columns: repeat(4, 1fr);
}

.city-grid {
  grid-template-columns: repeat(5, 1fr);
}

.trade-card:hover,
.city-card:hover,
.tool-card:hover,
.guide-card:hover {
  border-color: var(--accent);
  color: inherit;
  transform: translateY(-2px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.city-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(220, 89, 48, 0.08), transparent 42%),
    var(--ink-card);
}

.tool-grid,
.guide-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat-row article {
  padding: 28px 24px;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.stat-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1;
}

.stat-row span {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
}

.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: var(--ink-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-serif);
  font-size: 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
}

.workflow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
}

.workflow li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-line);
}

.workflow strong {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
}

.workflow h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.workflow p {
  margin: 0;
  color: var(--text-muted);
}

.longform {
  display: grid;
  gap: 48px;
}

.longform article h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
}

.longform article p + p {
  margin-top: 14px;
}

.search-panel {
  position: relative;
}

.search-panel input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d7cfc7;
  border-radius: 4px;
  font: inherit;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: none;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid #eadfd6;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: block;
  padding: 10px 12px;
  color: var(--text-ink);
  text-decoration: none;
  border-radius: 6px;
}

.search-results a:hover,
.search-results a.is-active {
  background: #fff1ea;
  color: var(--text-ink);
}

.search-results small {
  display: block;
  color: var(--text-ink-muted);
}

@media (max-width: 1100px) {
  .process-grid,
  .trade-grid,
  .city-grid,
  .tool-grid,
  .guide-grid,
  .benefit-grid,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .finder-fields {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 48px 0 72px;
  }
}

@media (max-width: 640px) {
  .process-grid,
  .trade-grid,
  .city-grid,
  .tool-grid,
  .guide-grid,
  .benefit-grid,
  .stat-row,
  .workflow li {
    grid-template-columns: 1fr;
  }
}
