/* ==========================================================================
   Base — reset, typography helpers, and reusable component classes
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--bg-1);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Layout container ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad-y); }

/* Anchor targets clear the sticky header when jumped to from the nav */
main [id] { scroll-margin-top: 88px; }

/* Full-bleed helper for bars that span the whole viewport width */
.bleed { width: 100%; }

/* ---- Typography helpers -------------------------------------------------- */
.overline {
  font-size: var(--title-2);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.h1 { font-size: var(--h1); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.h2 { font-size: var(--h2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.h3 { font-size: var(--h3); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.h4 { font-size: var(--h4); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.section-title { font-size: var(--h3); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.section-lead {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);   /* Figma "Double Titlle" subtitle: 24px bold */
  font-weight: 700;
  color: var(--white-soft);
  max-width: 900px;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Accent-colored inline text (e.g. the tagline dots line) */
.accent { color: var(--primary); }

/* ---- Buttons (Actions Big CTAs) ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.125rem 1.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

@media (max-width: 480px) {
  .btn {
    font-size: 0.75rem;
    padding: 1rem 1.25rem;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}

.btn--primary { background: var(--primary); color: var(--black); border: 2px solid transparent; }
.btn--primary:hover { background: var(--primary-hover); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);   /* Figma: border-2 */
}
.btn--outline:hover { background: var(--primary); color: var(--black); }

/* Header CTAs — "Actions Small CTAs" (Figma node 1313:75577):
   px-16 py-10, 13px / Bold / 1.17px tracking (0.09em), rounded-12px. */
.btn--sm {
  padding: 0.625rem 1rem;          /* 10px 16px */
  font-size: 0.8125rem;            /* 13px */
  letter-spacing: 0.09em;          /* 1.17px @ 13px */
}

/* Header CTAs only "light up" on hover (color change from the base .btn
   transition) — no resizing. Uniform width is enforced by the equal-column
   grid on .menubar__actions (see sections.css). */
.menubar__actions .btn { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row--center { justify-content: center; }

/* ---- Cards --------------------------------------------------------------- */
/* Figma card: 1px white border, faint Transparent-2 fill, 12px radius */
.card {
  background: var(--transparent-2);
  border: 1px solid var(--white-soft);
  border-radius: 12px;
  padding: 2rem;
}

/* ---- Key-points bar (lime) ---------------------------------------------- */
.keypoints {
  background: var(--primary-light-active);
  color: var(--black);
}
.keypoints__inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.keypoints__item {
  flex: 1;
  text-align: center;
  padding: 10px 0.75rem;                 /* Figma Wrapper Keypoints: py-10 */
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  font-weight: 700;
  letter-spacing: 0.16em;                /* Figma tracking 2.88px on 18px */
  text-transform: uppercase;
  font-size: 1.125rem;                   /* Figma 18px */
  line-height: 1.15;                     /* Figma leading 20px */
}
.keypoints__item:first-child { border-left: none; }
.keypoints__num { display: block; }

/* ---- Glow beam divider --------------------------------------------------- */
/* Figma node 1313:75390 "Glow Beam": solid #E6FF59 line, 4px, no blur */
.glow-beam {
  height: 4px;
  width: 100%;
  background: var(--primary-light-active);
}

/* ---- Section heading block (centered title + lead) ---------------------- */
.section-head { text-align: center; margin-inline: auto; margin-bottom: 3.5rem; }
.section-head .section-lead { margin-inline: auto; }
.section-head .section-title { margin-bottom: 1rem; }

/* ---- Reusable icon-card grid (Why / Audience / Become partner) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.icon-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--primary);
}
.icon-card__icon svg,
.practice-card__icon svg,
.practice-card__icon img { display: block; width: 100%; height: 100%; }
.icon-card__title { font-size: var(--title-1); font-weight: 700; margin-bottom: 0.75rem; }
.icon-card__body { font-size: var(--body-2); color: var(--muted-2); line-height: 1.55; }

/* ---- Responsive: grids collapse ----------------------------------------- */
@media (max-width: 899px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .icon-card__title { font-size: 1.25rem; }
  .keypoints__inner { flex-wrap: wrap; }
  .keypoints__item { flex: 1 1 33%; border-left: none; }
}
