
/* ============================================================
   HYPOTENUSE EDU — KOMPONEN v1 (locked)
   Wajib dimuat SETELAH tokens.css.
   Semua class memakai prefix .he- .
   ============================================================ */

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

.he-body {
  font-family: var(--he-font-body);
  color: var(--he-ink);
  background: var(--he-white);
  line-height: 1.6;
  margin: 0;
}

.he-h1, .he-h2, .he-h3,
.he-body h1, .he-body h2, .he-body h3 {
  font-family: var(--he-font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}

.he-h1 { font-size: 52px; font-weight: 800; }
.he-h2 { font-size: 38px; font-weight: 800; }
.he-h3 { font-size: 19px; }

.he-muted { color: var(--he-muted); }

.he-container {
  max-width: var(--he-container);
  margin: 0 auto;
  padding: 0 24px;
}

.he-body a:focus-visible,
.he-body button:focus-visible,
.he-body input:focus-visible,
.he-body select:focus-visible,
.he-body textarea:focus-visible {
  outline: 2px solid var(--he-forest);
  outline-offset: 2px;
}

/* ── SECTION ── */
.he-section { padding: var(--he-section-y) 0; background: var(--he-white); }
.he-section--cream  { background: var(--he-cream); }
.he-section--forest { background: var(--he-forest); }
.he-section--deep   { background: var(--he-deep); }

.he-section--forest .he-h2,
.he-section--deep .he-h2 { color: #fff; }
.he-section--forest .he-muted,
.he-section--deep .he-muted { color: var(--he-muted-2); }

/* ── TOMBOL ── */
.he-btn {
  font-family: var(--he-font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--he-r-pill);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: background var(--he-ease), border-color var(--he-ease),
              color var(--he-ease), transform var(--he-ease);
}

.he-btn:hover { transform: translateY(-1px); }

.he-btn--forest { background: var(--he-forest); color: #fff; border-color: var(--he-forest); }
.he-btn--forest:hover { background: #16362F; border-color: #16362F; }

.he-btn--lime { background: var(--he-lime); color: var(--he-ink); border-color: var(--he-lime); }
.he-btn--lime:hover { background: var(--he-lime-2); border-color: var(--he-lime-2); }

.he-btn--line { background: transparent; color: var(--he-ink); border-color: var(--he-border-2); }
.he-btn--line:hover { border-color: var(--he-forest); color: var(--he-forest); }

.he-btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.he-btn--line-light:hover { border-color: #fff; }

.he-btn--lg { font-size: 15px; padding: 14px 30px; }
.he-btn--sm { font-size: 13px; padding: 9px 18px; }
.he-btn--block { width: 100%; }

/* ── KARTU ── */
.he-card {
  background: var(--he-white);
  border-radius: var(--he-r);
  padding: 26px;
  box-shadow: var(--he-shadow-sm);
}

.he-card--lg { border-radius: var(--he-r-lg); }

.he-card--forest {
  background: var(--he-forest-2);
  box-shadow: none;
  transition: background var(--he-ease), transform var(--he-ease);
}
.he-card--forest:hover { background: var(--he-forest-3); transform: translateY(-3px); }
.he-card--forest .he-h3 { color: #fff; }
.he-card--forest p { color: var(--he-muted-2); }

.he-card--deep {
  background: var(--he-deep-2);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: none;
}
.he-card--deep .he-h3 { color: #fff; }

.he-card--lime { background: var(--he-lime); box-shadow: none; }
.he-card--lime p { color: #47523A; }

.he-card--outline {
  box-shadow: none;
  border: 1px solid var(--he-border);
}

/* header kartu gelap: ikon kiri-atas + panah kanan-atas */
.he-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}

.he-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--he-r-sm);
  background: var(--he-lime-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.he-icon-box svg { width: 20px; height: 20px; stroke: var(--he-forest); fill: none; }

.he-card--forest .he-icon-box,
.he-card--deep .he-icon-box { background: rgba(219,243,166,.12); }
.he-card--forest .he-icon-box svg,
.he-card--deep .he-icon-box svg { stroke: var(--he-lime); }

.he-card-arrow svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,.4);
  fill: none;
  transition: stroke var(--he-ease), transform var(--he-ease);
}

.he-card--forest:hover .he-card-arrow svg { stroke: var(--he-lime); transform: translate(2px,-2px); }

/* ── CHIP ── */
.he-chip {
  font-family: var(--he-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--he-ink);
  background: var(--he-white);
  border-radius: var(--he-r-pill);
  padding: 11px 20px;
  box-shadow: 0 6px 16px rgba(18,39,34,.10);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.he-chip i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--he-forest);
}

.he-chip--dark { background: var(--he-forest); color: #fff; }
.he-chip--dark i { background: var(--he-lime); }

/* ── BADGE ── */
.he-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--he-forest);
  background: var(--he-lime-soft);
  border-radius: var(--he-r-pill);
  padding: 4px 12px;
  display: inline-block;
}

.he-badge--lime-on-dark { color: var(--he-lime); background: rgba(219,243,166,.12); }
.he-badge--success { color: var(--he-success); }

/* ── PROGRESS ── */
.he-progress { height: 7px; border-radius: var(--he-r-pill); background: #ECEFE9; overflow: hidden; }
.he-progress > i { display: block; height: 100%; border-radius: var(--he-r-pill); background: var(--he-forest); }

/* ── FORM ── */
.he-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.he-label {
  font-family: var(--he-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--he-ink);
}

.he-input, .he-select, .he-textarea {
  font-family: var(--he-font-body);
  font-size: 14px;
  color: var(--he-ink);
  background: var(--he-white);
  border: 1.5px solid var(--he-border-2);
  border-radius: var(--he-r-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--he-ease);
}

.he-input::placeholder, .he-textarea::placeholder { color: var(--he-muted-2); }

.he-input:focus, .he-select:focus, .he-textarea:focus {
  border-color: var(--he-forest);
  outline: none;
}

.he-input--error { border-color: var(--he-danger); }

.he-hint { font-size: 12.5px; color: var(--he-muted); }
.he-hint--error { color: var(--he-danger); }

/* ── TABEL ── */
.he-table { width: 100%; border-collapse: collapse; }

.he-table th {
  font-family: var(--he-font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--he-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--he-border);
}

.he-table td {
  font-size: 13.5px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--he-border);
}

.he-table tr:last-child td { border-bottom: none; }

.he-table tr.is-highlight td { background: var(--he-lime-soft); }

/* ── NAV ── */
.he-nav {
  position: sticky;
  top: 0;
  background: rgba(244,246,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  z-index: 100;
}

.he-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ── UTIL ── */
.he-center { text-align: center; }
.he-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.he-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 1024px) {
  .he-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .he-h1 { font-size: 34px; }
  .he-h2 { font-size: 28px; }
  .he-grid-2, .he-grid-3 { grid-template-columns: 1fr; }
  :root { --he-section-y: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .he-btn:hover, .he-card--forest:hover { transform: none; }
}