/* ==========================================================================
   Home page only (21 Nov 2026, third pass). Loaded by index.html after styles.css.
   Brings the hub's rhythm closer to Better Explora v0 (better-finder/website/variants/v0):
   the same title scale and section spacing, one 12-column grid shared by "Mới cập nhật" and
   "Người làm", shorter sub-lines, and tidier phone layouts. Shared pieces stay in styles.css.
   ========================================================================== */

/* Section titles and spacing: Explora's `main h2` and v0 `.block` */
.sec-h { font-size: clamp(28px, 3vw, 40px); }
.maker h2.sec-h, .support h2.sec-h { font-size: clamp(28px, 3vw, 40px); }
.sec { padding-top: clamp(96px, 12vw, 168px); }
.feature-sec { padding-top: clamp(64px, 8vw, 110px); }     /* first block after the hero, like Explora's .space-sec */
.sec-sub { max-width: 34em; text-wrap: pretty; }

/* Hero: Explora's title size and the 26px step between the "for" line and the title.
   The title keeps line-height 1.2 because the rotating word is clipped to 1.2em. */
.hero-title { margin-top: 18px; font-size: clamp(44px, 6.6vw, 84px); }
.hero-lead { text-wrap: balance; }
.hero-trust { text-wrap: balance; }

/* Cards: Explora's work-card radius and a little more air in the body */
.card { border-radius: var(--radius); }
.card-body { padding: 16px 18px 20px; }
.card-tags .tag { white-space: nowrap; }

/* "Mới cập nhật" and "Người làm" share Explora's 12-column grid, so their text starts on the same line */
.maker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.maker-pic { grid-column: 1 / span 4; padding-right: 24px; }
.maker > div { grid-column: 5 / -1; }
.maker p { max-width: 34em; text-wrap: pretty; }
.maker-sign { flex-wrap: wrap; row-gap: 8px; }
.maker-sign a { white-space: nowrap; }

/* Promises: Explora's feature names (15–17px, regular weight on a thin rule) */
.promise h3 { font-weight: 500; }

/* Closing panel: two even lines, and the trust line at Explora's 14px
   (styles.css's `.support > p` made it 17px like the paragraph above it) */
.support > p { max-width: 40em; text-wrap: balance; }
.support > .hero-trust { max-width: none; font-size: 14px; text-wrap: balance; }

/* Dark: Explora's work cards keep their picture a step lighter than the page, so the card reads as one block
   (a near-black picture on the near-black page lost the card's top edge) */
:root[data-theme="dark"] .card-thumb {
  background: radial-gradient(55% 65% at 50% 58%, color-mix(in srgb, var(--glow, #8a8780) 26%, transparent) 0%, transparent 72%), #1e1e23; }
:root[data-theme="dark"] .card-soon .card-thumb { background: none; }
:root[data-theme="dark"] .card-soon .card-icon { opacity: .35; }   /* its light grey tile glared on the dark page */

@media (max-width: 900px) {
  .maker { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .maker-pic, .maker > div { grid-column: auto; padding: 0; }
}

@media (max-width: 640px) {
  .sec { padding-top: 88px; }
  .feature-sec { padding-top: 64px; }

  /* Both buttons the same width when they stack, like Explora's phone hero */
  .hero .cta-row { flex-direction: column; align-items: center; }
  .hero .cta-row .btn { width: min(100%, 260px); justify-content: center; }
  .feature-sec .cta-row { width: 100%; flex-direction: column; }
  .feature-sec .cta-row .btn { justify-content: center; }

  /* Two cards a row, like Explora's work cards on a phone: smaller tags so none breaks inside its pill */
  .card-body { padding: 12px 12px 14px; }
  .card-tags { gap: 4px; }
  .card-tags .tag { font-size: 11px; padding: 2px 7px; }

  .maker { grid-template-columns: 1fr; gap: 24px; }
  .maker-pic img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .maker-sign a { margin-left: 0; flex-basis: 100%; }

  .support { padding-left: 18px; padding-right: 18px; }
  .support .support-ways { gap: 12px; }
}
