/* SPDX-License-Identifier: AGPL-3.0-only
 * Copyright (C) 2026 G ROX EOOD
 *
 * FR-87 (#1776) P6 — the static homepage, on top of docs.css (whose tokens,
 * top bar, footer, chips and buttons it reuses). Loaded by `/` and by the
 * link hub, `/links/` (FR-88), which reuses its buttons and wrap.
 */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.home-body { background: linear-gradient(180deg, #f5faf9 0%, #ffffff 40%); }
.home-wrap { max-width: 1160px; margin: 0 auto; padding: 0 18px; }

.btn--lg { padding: 12px 22px; font-size: 1rem; }
.btn--light { background: #fff; color: var(--teal-deep); border-color: #fff; }
.btn--light:hover { background: var(--teal-soft); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.home-hero { padding: 48px 0 24px; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .home-hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; } }
.home-hero__title { font-size: 3rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
@media (max-width: 600px) { .home-hero__title { font-size: 2.1rem; } }
.home-accent { color: var(--teal); }
.home-hero__lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-muted); margin: 0 0 26px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 900px) { .home-actions { justify-content: center; } }
.home-hero__art { margin: 0; }
.home-hero__art img { display: block; width: 100%; height: auto; }

.home-caps { padding: 8px 0 20px; }
.home-caps .chips { justify-content: center; margin: 0 auto; }

/* ── sections ─────────────────────────────────────────────────────────── */
.home-section { padding: 56px 0; }
.home-section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-h2 { font-size: 2rem; line-height: 1.2; text-align: center; letter-spacing: -0.015em; margin: 0 0 8px; }
.home-sub { text-align: center; color: var(--ink-muted); font-size: 1.05rem; margin: 0 auto 32px; max-width: 680px; }
.home-pillar + .home-pillar { margin-top: 56px; }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.home-card {
  padding: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}
.home-card__icon { display: inline-flex; margin-bottom: 12px; }
.home-card__title { font-size: 1.1rem; margin: 0 0 8px; }
.home-card__text { color: var(--ink-muted); margin: 0; }
.home-os { display: flex; align-items: center; gap: 8px; }
.home-os svg { color: var(--teal); }
.home-muted { color: var(--ink-muted); font-size: .9rem; margin: 8px 0 6px; }
.home-cmd {
  margin: 0; padding: 10px 12px; flex-grow: 1; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius); font-family: var(--font-mono); font-size: .8rem;
}
.home-more { text-align: center; margin: 24px 0 0; }
.home-more a { text-decoration: underline; text-underline-offset: 2px; }

/* ── pricing ──────────────────────────────────────────────────────────── */
.home-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.home-plan {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg);
  display: flex; flex-direction: column;
}
.home-plan--featured { border-color: var(--teal); box-shadow: var(--shadow-card); }
.home-plan__badge {
  align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep); font-size: .78rem; font-weight: 700;
}
.home-plan__name { font-size: 1.3rem; margin: 0; }
.home-plan__price { margin: 12px 0 16px; }
.home-plan__amount { font-size: 2.4rem; font-weight: 700; }
.home-plan__unit { color: var(--ink-muted); }
.home-plan__features { list-style: none; margin: 0 0 20px; padding: 0; flex-grow: 1; }
.home-plan__features li { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.home-plan__features svg { flex: 0 0 auto; color: var(--teal); margin-top: 3px; }
.home-plan__cta { justify-content: center; }

/* ── call to action ───────────────────────────────────────────────────── */
.home-cta { padding: 64px 0; background: linear-gradient(135deg, var(--teal-deep) 0%, #00897b 100%); color: #fff; }
.home-cta__inner { text-align: center; }
.home-cta .home-h2 { color: #fff; }
.home-cta__lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin: 0 0 22px; }
.home-news { max-width: 540px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .25); }
.home-news p { color: rgba(255, 255, 255, .88); }
.home-news a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.home-news__form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.home-news__form input {
  flex: 1 1 240px; min-width: 0; padding: 10px 12px; font: inherit;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.home-news__fine { font-size: .82rem; }

/* ── the link hub (FR-88 P2, `/links/`) ─────────────────────────────────
 * One narrow column: most visitors arrive from a profile on a phone. */
.links-wrap { max-width: 560px; text-align: center; }
.links-title { font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.links-lead { font-size: 1.1rem; line-height: 1.55; color: var(--ink-muted); margin: 0 0 24px; }
.links-actions, .links-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links-btn { width: 100%; justify-content: center; }
.links-note { color: var(--ink-muted); font-size: .9rem; margin: 16px 0 36px; }
.links-h2 { font-size: 1.3rem; margin: 0 0 12px; }
.links-channel {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.links-channel:hover { border-color: var(--teal); text-decoration: none; }
.links-channel__name { font-weight: 600; }
.links-channel__handle { color: var(--ink-muted); flex: 1 1 auto; }
.links-channel svg { color: var(--teal); }
