/* ──────────────────────────────────────────────────────────────────────────
   Lapuni docs portal — landing page styles.
   Brand tokens mirror the Keycloak login theme / apps/web/src/styles.css:
   tri-stop gradient #F96A81 → #AF45D4 → #30CED7, purple primary, Segoe UI,
   20px cards, soft shadow.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --gradient: linear-gradient(135deg, #f96a81 0%, #af45d4 48%, #30ced7 100%);
  --purple: #af45d4;
  --coral: #f96a81;
  --teal: #30ced7;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --radius-card: 20px;
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient);
  color: #fff;
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.brand-badge img {
  height: 84px;
  width: auto;
  display: block;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero .lede {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 1.1rem;
  opacity: 0.95;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 980px;
  margin: -3.5rem auto 0;
  padding: 0 1.5rem 4rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.6rem 1.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gradient);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.12);
}
.card h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card .arrow {
  color: var(--purple);
  font-weight: 700;
}

/* Disabled "coming soon" cards. */
.card.soon {
  opacity: 0.6;
  cursor: default;
}
.card.soon::before {
  background: var(--line);
}

/* Pills. */
.pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
}
.pill.muted {
  background: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1.5rem 3rem;
}
.foot a {
  color: var(--purple);
  text-decoration: none;
}
.foot a:hover {
  color: var(--coral);
  text-decoration: underline;
}
