/*
 * Home-only presentation.
 *
 * Shared colors, controls, typography primitives and navigation stay in styles.css. These rules
 * shorten the introduction and bring the real registry-backed Tool card into the first section.
 * No breakpoint here changes other pages. The browser still receives the same static-site build.
 */

.home-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0 var(--space-6);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.home-hero-copy {
  max-width: 680px;
}

.home-hero h1 {
  max-width: 21ch;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.home-hero .lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.95;
}

.home-hero .hero-actions {
  margin-top: var(--space-4);
}

.home-note {
  margin: var(--space-4) 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.9;
}

.home-tool-panel {
  min-width: 0;
}

.home-tool-card {
  display: block;
  min-height: 0;
  padding: clamp(1.15rem, 2vw, 1.65rem);
}

.home-tool-card .section-kicker {
  direction: rtl;
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.home-tool-card .tool-card-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.65;
  letter-spacing: 0;
}

.home-tool-card .meta-row {
  margin-top: var(--space-4);
}

.home-tool-summary {
  display: grid;
  gap: 0.8rem;
  margin: var(--space-4) 0 0;
}

.home-tool-summary > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.home-tool-summary dt {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.home-tool-summary dd {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.85;
}

.home-tool-card .tool-actions {
  margin-top: var(--space-4);
}

.home-tool-card .tool-actions .button {
  width: 100%;
}

.home-use {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.home-use h2,
.home-feedback-card h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.6;
  letter-spacing: 0;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-step {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}

.home-step-number {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.home-step h3 {
  font-size: 1rem;
  line-height: 1.7;
}

.home-step p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.home-feedback-card .section-header {
  margin-bottom: 0;
  align-items: center;
}

.home-feedback-card p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .home-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .home-hero-copy {
    max-width: none;
  }

  .home-hero h1 {
    max-width: 25ch;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding-top: 1.5rem;
  }

  .home-hero h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.3rem);
    line-height: 1.4;
  }

  .home-hero .eyebrow {
    font-size: 0.7rem;
    line-height: 1.8;
  }

  .home-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .home-hero .hero-actions .button {
    width: 100%;
  }

  .home-tool-summary > div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .home-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .home-feedback-card .section-header {
    align-items: flex-start;
  }
}
