/* ===========================================================================
   Paynovate Brand Hub — shared content + template styles
   =========================================================================== */

/* ---------- Page intro ---------- */
.page-intro { margin-bottom: var(--sp-7); }
.page-intro p { color: var(--pv-ink-soft); max-width: 64ch; margin: var(--sp-2) 0 0; }

/* ---------- Section ---------- */
.section { margin-bottom: var(--sp-8); }
.section__label {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .13em;
  color: var(--pv-magenta); font-weight: 600; margin-bottom: var(--sp-2);
}
.section__title {
  font-size: var(--fs-h2); color: var(--pv-purple);
  margin: 0 0 var(--sp-2); letter-spacing: -.02em;
}
.section__note {
  font-size: var(--fs-small); color: var(--pv-ink-soft);
  margin: 0 0 var(--sp-5); max-width: 62ch;
}

/* ---------- Template stage (frames a rendered template) ---------- */
.stage {
  background:
    linear-gradient(45deg, #e7e4ec 25%, transparent 25%) -9px 0/18px 18px,
    linear-gradient(-45deg, #e7e4ec 25%, transparent 25%) -9px 0/18px 18px,
    linear-gradient(45deg, transparent 75%, #e7e4ec 75%) -9px 0/18px 18px,
    linear-gradient(-45deg, transparent 75%, #e7e4ec 75%) -9px 0/18px 18px,
    #f3f1f6;
  border: 1px solid var(--pv-line);
  border-radius: var(--radius);
  padding: var(--sp-7);
  display: flex; justify-content: center; align-items: flex-start;
  overflow: auto;
}
.stage--plain { background: #f3f1f6; }

/* ---------- Spec caption ---------- */
.spec {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--pv-ink-soft);
}
.spec b { color: var(--pv-ink); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card {
  background: var(--pv-white); border: 1px solid var(--pv-line);
  border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm);
}

/* ---------- Colour swatch ---------- */
.swatch { border: 1px solid var(--pv-line); border-radius: var(--radius); overflow: hidden; }
.swatch__chip { height: 96px; }
.swatch__body { padding: var(--sp-3) var(--sp-4); background: var(--pv-white); }
.swatch__name { font-weight: 600; color: var(--pv-ink); }
.swatch__hex {
  font-size: var(--fs-small); color: var(--pv-ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: var(--fs-micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
.badge--json { background: #e6f1e7; color: #2f6b32; }
.badge--todo { background: #fdeede; color: #9a5a12; }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: #fdf6ea; border: 1px solid #f1ddb8; color: #7a5413;
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-small); margin-bottom: var(--sp-6);
}

/* ---------- Content typography ---------- */
.page-intro h1 {
  font-size: var(--fs-display); color: var(--pv-purple);
  letter-spacing: -.03em; line-height: var(--lh-tight); margin: 0;
}

/* ---------- Type specimen ---------- */
.type-row {
  display: flex; align-items: baseline; gap: var(--sp-5);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--pv-line);
}
.type-row:last-child { border-bottom: 0; padding-bottom: 0; }
.type-row:first-child { padding-top: 0; }
.type-row__meta {
  flex: 0 0 110px; font-size: var(--fs-small); color: var(--pv-ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.type-row__sample { color: var(--pv-ink); line-height: 1.25; }

/* ---------- Spacing scale ---------- */
.spacing-row { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.spacing-row:last-child { margin-bottom: 0; }
.spacing-bar { height: 18px; background: var(--pv-blue); border-radius: 3px; flex: none; }
.spacing-label {
  font-size: var(--fs-small); color: var(--pv-ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Logo board ---------- */
.logo-board { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.logo-tile {
  border: 1px solid var(--pv-line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; min-height: 190px;
}
.logo-tile--light { background: var(--pv-surface); }
.logo-tile--dark  { background: var(--pv-purple); border-color: var(--pv-purple); }
.logo-lockup { height: 42px; width: auto; }

/* ---------- Applications grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: var(--sp-4); }
.app-card {
  display: block; text-decoration: none;
  background: var(--pv-white); border: 1px solid var(--pv-line);
  border-radius: var(--radius); padding: var(--sp-5);
  transition: transform .14s ease, box-shadow .14s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card__group {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em;
  color: var(--pv-magenta); font-weight: 600;
}
.app-card__name { color: var(--pv-purple); font-weight: 600; font-size: var(--fs-h3); margin-top: 4px; }
.app-card__count { font-size: var(--fs-small); color: var(--pv-ink-soft); margin-top: var(--sp-2); }
