/* ============================================================
   GRASSIK — Hero Section
   hero.css · imported separately in <head>
   ============================================================ */

/* ── layout ── */

.hero {
  min-height: min(calc(100svh - 75px - 95px), 735px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 calc(clamp(24px, 3vw, 40px) + 15px);
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 280px);
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

@media (max-width: 940px) {
  .hero {
    min-height: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
  }
}

/* ── headline ── */

.hero h1 {
  font-family: var(--display);
  font-weight: var(--dweight);
  color: var(--ink);
  font-size: calc(clamp(38px, 5.2vw, 76px) * var(--ds));
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 clamp(24px, 2.6vw, 34px);
}

/* one sentence per line; wraps naturally on narrow screens */

.hero h1 > span {
  display: block;
  text-wrap: balance;
}

/* second sentence steps down in size */

.hero h1 > span:last-child {
  font-size: .9em;
  font-style: italic;
  line-height: 1.2;
  margin-top: 0;
}

/* phone: size so "Most searches end when" still fits on one line */

@media (max-width: 560px) {
  .hero h1 {
    font-size: calc(clamp(30px, 9.6vw - 4px, 38px) * var(--ds));
  }
}

@media (min-width: 561px) {
  .hero h1 > span {
    white-space: nowrap;
  }
}

.hero h1 em {
  font-style: var(--dital);
  color: var(--accent);
  font-weight: 400;
  position: relative;
  display: inline-block;
}

/* animated underline draws in on load */

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-lift));
  transition: width 1.05s cubic-bezier(.65, 0, .35, 1) .55s;
}

body.lit .hero h1 em::after {
  width: 100%;
}

/* ── body copy ── */

.hero p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  max-width: 52ch;
  color: var(--body);
  opacity: .92;
  margin: 0 0 clamp(30px, 3vw, 40px);
  text-wrap: pretty;
}

/* ── CTAs ── */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta .btn {
  padding: 17px 32px;
  font-size: 15px;
}

@media (max-width: 540px) {
  .hero-cta .btn {
    padding: 15px 26px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}

/* ── stats column ── */

.hero-meta {
  border-left: 1px solid var(--hair);
  padding-left: clamp(24px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
}

.hero-meta dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* fill the left column's height */
}

.hero-meta dl > div {
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--hair);
}

.hero-meta dl > div:first-child {
  padding-top: 0;
}

.hero-meta dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-meta dd {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--dweight);
  font-size: calc(clamp(26px, 2.3vw, 32px) * var(--ds));
  color: var(--ink);
  line-height: 1.1;
}

.hero-meta dd small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--body);
  opacity: .88;
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
}

/* desktop: equal space above and below each divider.
   rows = stat / gap / rule / gap / stat / gap / rule / gap / stat,
   with the two rules drawn by the dl's own pseudo-elements */

@media (min-width: 941px) {
  .hero-meta dl {
    display: grid;
    grid-template-rows: auto 1fr 1px 1fr auto 1fr 1px 1fr auto;
    row-gap: 0;
  }
  .hero-meta dl::before,
  .hero-meta dl::after {
    content: "";
    background: var(--hair);
  }
  .hero-meta dl::before {
    grid-row: 3;
  }
  .hero-meta dl::after {
    grid-row: 7;
  }
  .hero-meta dl > div,
  .hero-meta dl > div:first-child,
  .hero-meta dl > div:last-child {
    padding: 0;
    border: 0;
  }
  .hero-meta dl > div:nth-child(1) {
    grid-row: 1;
  }
  .hero-meta dl > div:nth-child(2) {
    grid-row: 5;
  }
  .hero-meta dl > div:nth-child(3) {
    grid-row: 9;
  }
}

/* tablet: stats sit in a three-up row under the copy */

@media (max-width: 940px) {
  .hero-meta {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding: 32px 0 0;
  }
  .hero-meta dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .hero-meta dl > div {
    padding: 0;
    border-bottom: none;
  }
}

/* phone: stacked rows, hairline between each */

@media (max-width: 560px) {
  .hero-meta {
    padding-top: 8px;
  }
  .hero-meta dl {
    display: flex;
    gap: 0;
  }
  .hero-meta dl > div,
  .hero-meta dl > div:first-child {
    padding: 20px 0;
    border-bottom: 1px solid var(--hair);
  }
  .hero-meta dl > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ── reduced-motion: suppress underline animation ── */

@media (prefers-reduced-motion: reduce) {
  .hero h1 em::after {
    transition: none;
  }
  body.lit .hero h1 em::after {
    width: 0;
  }
}
