/* ============================================================
   Proven Path Academy — V4 design tokens & shared components
   Everything is driven by CSS variables: change the brand by
   editing the :root block (or via the Tweaks panel).
   ============================================================ */

:root {
  /* Brand palette ------------------------------------------- */
  --brand:        #14604a;   /* deep evergreen — primary */
  --brand-2:      #1c7d5f;   /* lighter evergreen */
  --brand-ink:    #0d3d2f;   /* darkest green, for text */
  --brand-wash:   #e8f1ec;   /* faint green tint surface */
  --gold:         #b9802b;   /* points / membership accent */
  --gold-wash:    #f6ecd9;

  /* Neutrals (warm) ----------------------------------------- */
  --ink:          #1a1c1f;
  --ink-soft:     #3c4046;
  --muted:        #6c7178;
  --faint:        #9aa0a6;
  --line:         #e6e1d7;
  --line-strong:  #d4cdbf;
  --bg:           #faf8f2;
  --surface:      #ffffff;
  --surface-2:    #f4f1e9;
  --surface-3:    #efeadf;

  /* Status -------------------------------------------------- */
  --ok:           #1c7d5f;
  --warn:         #b9802b;
  --danger:       #b23b34;
  --danger-wash:  #f8e9e7;

  /* Type ---------------------------------------------------- */
  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Radii & shadow ------------------------------------------ */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(26,28,31,.05), 0 1px 3px rgba(26,28,31,.06);
  --shadow-md: 0 4px 14px rgba(26,28,31,.07), 0 2px 6px rgba(26,28,31,.05);
  --shadow-lg: 0 18px 50px rgba(13,61,47,.13), 0 6px 18px rgba(26,28,31,.07);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* Eyebrow / kicker --------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  display: inline-block;
}

/* Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.02); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(.94); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger-wash); color: var(--danger); }
.btn-danger:hover { background: #f3ddda; }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Logo --------------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand);
  display: grid; place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { line-height: 1.05; }
.logo-text strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16.5px; letter-spacing: -0.02em; color: var(--ink);
  display: block;
}
.logo-text span {
  font-size: 11.5px; color: var(--muted); letter-spacing: .01em;
}

/* Pills / badges ----------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
}
.pill-brand { background: var(--brand-wash); color: var(--brand-ink); }
.pill-gold  { background: var(--gold-wash); color: var(--gold); }
.pill-ok    { background: var(--brand-wash); color: var(--brand); }
.pill-warn  { background: var(--gold-wash); color: var(--gold); }
.pill-danger{ background: var(--danger-wash); color: var(--danger); }

/* Points chip -------------------------------------------------- */
.points-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-wash); color: var(--gold);
  font-family: var(--font-display); font-weight: 700;
  border-radius: 999px; padding: 7px 13px 7px 9px; font-size: 14px;
}
.points-chip .coin {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center; font-size: 11px;
}

/* Cards -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Utility ------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Forms -------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13.5px; color: var(--ink-soft); letter-spacing: -0.005em;
}
.field .hint { font-size: 12.5px; color: var(--faint); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Scrollbar polish --------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); }

@media (max-width: 720px) {
  body { font-size: 16px; }
}
