/* ============================================================
   minatbakatindonesia — Homepage design system (scoped .page-home)
   Direction: CLEAR · CLEAN · FLAT · CONSISTENT.
   - No gradients, no heavy shadows, no glassmorphism, no tilt.
   - One accent (teal) + neutral scale. Amber removed.
   - One standardized icon component (.hm-ic) used everywhere.
   - 1px borders + whitespace do the separating (not shadows).
   Loaded only on "/" (see head.ejs). Non-destructive: overrides
   tokens only inside .page-home; shared app pages untouched.
   ============================================================ */

.page-home {
  /* ---- type ---- */
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* ---- color: single teal accent + warm-neutral monochrome ---- */
  --brand: #0d9488;          /* also drives shared .btn-primary  */
  --brand-ink: #0f766e;      /* teal text on light               */
  --brand-deep: #115e59;
  --brand-pale: #e9f5f2;     /* flat tint for icon tiles / tags  */

  --ink: #17211d;            /* off-black (never pure #000)      */
  --slate: #5a6a64;          /* secondary text                   */
  --muted: #8b978f;          /* meta / captions                  */

  --bg: #ffffff;
  --bg-soft: #f6f8f7;        /* section alternation              */
  --line: #e6ebe9;           /* the one border color             */
  --line-strong: #d8e0dd;

  /* ---- shape ---- */
  --r: 12px;                 /* cards                            */
  --r-sm: 8px;               /* inner elements / icon tiles      */
  --r-btn: 10px;

  /* ---- elevation: practically none (flat) ---- */
  --hover: 0 2px 10px rgba(17, 33, 29, .05);

  /* ---- rhythm ---- */
  --pad-sec: 88px;

  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page-home .site-main { overflow-x: clip; }

/* ---------- shared primitives ---------- */
.hm-sec { padding: 64px 0; }
.hm-sec-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.hm-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-pale);
  padding: .35rem .7rem; border-radius: 999px;   /* pill OK for tiny tags only */
}
.hm-title {
  font-size: clamp(1.75rem, 1rem + 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.12;
  margin: .75rem 0 0; color: var(--ink); text-wrap: balance;
}
.hm-lead {
  margin: .8rem 0 0; max-width: 56ch;
  font-size: 1.05rem; line-height: 1.65; color: var(--slate); font-weight: 400;
  text-wrap: pretty;
}
.hm-head-center { text-align: center; }
.hm-head-center .hm-lead { margin-inline: auto; }
.hm-ink-teal { color: var(--brand-ink); }

/* ---------- THE standardized icon tile (consistency core) ---------- */
.hm-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-pale); color: var(--brand-ink);
  font-size: 1.05rem;   /* uniform glyph size everywhere */
}

/* ---------- buttons: flat, crisp, consistent ---------- */
.page-home .btn { border-radius: var(--r-btn); font-weight: 700; }
.page-home .btn-primary {
  background: var(--brand); color: #fff; box-shadow: none; border-color: var(--brand);
}
.page-home .btn-primary:hover { background: var(--brand-ink); box-shadow: none; }
.page-home .btn:active { transform: scale(.985); }
.hm-btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.hm-btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ============================================================
   1. HERO — flat, left-aligned, copy-first (preview card removed)
   ============================================================ */
.hm-hero { padding: 40px 0 8px; }
.hm-hero-top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hm-hero-copy { max-width: 40ch; }
.hm-hero-visual { display: none; }
.hm-hero-visual svg { width: 100%; height: auto; display: block; }
.hm-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-pale); padding: .4rem .8rem; border-radius: 999px;
}
.hm-badge .hm-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--brand); }
.hm-hero-title {
  font-size: clamp(2.2rem, 1rem + 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
  margin: 1rem 0 0; text-wrap: balance;
}
.hm-hero-sub {
  margin: 1rem 0 0; max-width: 48ch;
  font-size: 1.1rem; line-height: 1.6; color: var(--slate);
}
.hm-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hm-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  margin-top: 1.3rem; font-size: .9rem; color: var(--muted); font-weight: 500;
}
.hm-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hm-trust i { color: var(--brand); }

/* stats — flat bordered grid */
.hm-stats {
  margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hm-stat { padding: 20px 16px; text-align: center; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hm-stat:nth-child(-n+2) { border-top: 0; }
.hm-stat:nth-child(odd) { border-left: 0; }
.hm-stat strong {
  display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand-ink);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.hm-stat span { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   2. CARA KERJA — numbered flat cards
   ============================================================ */
.hm-steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
.hm-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hm-step:hover { box-shadow: var(--hover); border-color: var(--line-strong); }
.hm-step-num { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-step .hm-ic { margin: 10px 0 14px; }
.hm-step h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.hm-step p { margin-top: .4rem; color: var(--slate); line-height: 1.6; font-size: .95rem; }
.hm-steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 28px; }
.hm-steps-note { font-size: .9rem; color: var(--muted); font-weight: 500; }
.hm-steps-note i { color: var(--brand); margin-right: .2rem; }

/* ============================================================
   3. 3 MODUL TES — flat cards, pinned footers
   ============================================================ */
.hm-mods { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hm-mod {
  display: flex; flex-direction: column; flex: 1 1 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hm-mod:hover { box-shadow: var(--hover); border-color: var(--line-strong); }
.hm-mod-top { display: flex; align-items: center; justify-content: space-between; }
.hm-mod-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-pale); border-radius: 999px; padding: .3rem .6rem;
}
.hm-mod h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-top: 18px; }
.hm-mod p { margin-top: .5rem; color: var(--slate); line-height: 1.6; font-size: .94rem; }
.hm-mod-viz { margin-top: 16px; }
.hm-riasec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hm-riasec span {
  text-align: center; font-weight: 700; font-size: .88rem; color: var(--slate);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem 0;
}
.hm-riasec span.on { color: #fff; background: var(--brand); border-color: var(--brand); }
.hm-vark { display: flex; align-items: flex-end; gap: 8px; height: 62px; }
.hm-vark span {
  flex: 1; border-radius: var(--r-sm) var(--r-sm) 3px 3px; background: var(--brand-pale);
  height: var(--bar, 50%); display: flex; align-items: flex-end; justify-content: center;
}
.hm-vark span b { font-size: .7rem; font-weight: 700; color: var(--brand-ink); padding-bottom: 3px; }
.hm-talent { display: grid; gap: 6px; }
.hm-talent span {
  font-size: .85rem; font-weight: 600; color: var(--slate);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .7rem;
}
.hm-mod-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  color: var(--brand-ink); font-weight: 700; font-size: .88rem;
}
.hm-mod-foot i { transition: transform .2s ease; }
.hm-mod:hover .hm-mod-foot i { transform: translateX(3px); }

/* ============================================================
   4. HASIL — flat split; result card (dark phone chrome removed)
   ============================================================ */
.hm-split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hm-benefits { display: grid; gap: 12px; margin-top: 24px; }
.hm-benefit {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  transition: border-color .2s ease;
}
.hm-benefit:hover { border-color: var(--line-strong); }
.hm-benefit h4 { font-size: 1rem; font-weight: 700; }
.hm-benefit p { margin-top: .2rem; color: var(--slate); font-size: .92rem; line-height: 1.55; }

/* flat result card — represents real product output */
.hm-result { justify-self: center; width: 100%; max-width: 340px; }
.hm-result-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; display: grid; gap: 8px;
}
.hm-result-row { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.hm-result-row.is-lead { background: var(--brand-pale); border-color: var(--line); }
.hm-result-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hm-result-row.is-lead .hm-result-label { color: var(--brand-ink); }
.hm-result-row strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin-top: 3px; }
.hm-result-row ul { margin: 8px 0 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.hm-result-row li { font-size: .88rem; color: var(--slate); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-chips span {
  font-size: .76rem; font-weight: 600; color: var(--brand-ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .28rem .6rem;
}

/* ============================================================
   5. KENAPA KAMI — flat bento, FA icons (emoji removed)
   ============================================================ */
.hm-bento { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
.hm-bento-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hm-bento-card:hover { box-shadow: var(--hover); border-color: var(--line-strong); }
.hm-bento-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-top: 14px; }
.hm-bento-card p { margin-top: .4rem; color: var(--slate); line-height: 1.6; font-size: .94rem; }
.hm-bento-hero { background: var(--bg-soft); }

/* ============================================================
   6. UNTUK GURU — flat split (teal band + glass removed)
   ============================================================ */
.hm-teacher-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hm-teacher-feats { display: grid; gap: 10px; margin: 20px 0 24px; }
.hm-teacher-feats div { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); }

.hm-dash { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.hm-dash-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hm-dash-head strong { display: block; font-size: 1rem; }
.hm-dash-head small { color: var(--muted); font-size: .76rem; }
.hm-dash-head em {
  font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-pale); padding: .3rem .55rem; border-radius: 999px;
}
.hm-dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.hm-dash-metrics div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 8px; text-align: center; }
.hm-dash-metrics i { display: block; margin-bottom: 6px; color: var(--brand); }
.hm-dash-metrics span { font-size: .74rem; color: var(--slate); }
.hm-dash-list { display: grid; gap: 6px; }
.hm-dash-list span { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--slate); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .75rem; }
.hm-dash-list i { color: var(--brand); }

/* ============================================================
   7. FAQ — flat rows (border-bottom), keeps JS hooks
   ============================================================ */
.hm-faq-shell { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }
.page-home .faq-guide { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.page-home .faq-guide-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.page-home .faq-guide h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-top: .5rem; }
.page-home .faq-guide-flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.page-home .faq-guide-flow span {
  font-size: .82rem; font-weight: 600; color: var(--slate);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .4rem .65rem;
}
.page-home .faq-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.page-home .faq-content-panel { display: grid; gap: 14px; }
.page-home .faq-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.page-home .faq-filter-row button {
  font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
  color: var(--slate); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .85rem; transition: border-color .18s ease, color .18s ease;
}
.page-home .faq-filter-row button:hover { border-color: var(--brand); color: var(--brand-ink); }
.page-home .faq-filter-row button.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.page-home .faq-list { border-top: 1px solid var(--line); }
.page-home .faq-item { border-bottom: 1px solid var(--line); }
.page-home .faq-item summary {
  display: flex; align-items: center; gap: .75rem; cursor: pointer; list-style: none;
  padding: 18px 4px; font-weight: 600; color: var(--ink);
}
.page-home .faq-item summary::-webkit-details-marker { display: none; }
.page-home .faq-question-icon { display: none; }   /* drop per-item topic icon for a cleaner list */
.page-home .faq-chevron { margin-left: auto; color: var(--muted); font-size: .85rem; transition: transform .2s ease; }
.page-home .faq-item[open] .faq-chevron { transform: rotate(180deg); }
.page-home .faq-body { padding: 0 4px 18px; }
.page-home .faq-body p { color: var(--slate); line-height: 1.65; font-size: .95rem; }

/* ============================================================
   8. FINAL CTA — flat bordered block (no colored band)
   ============================================================ */
.hm-cta { padding: 64px 0; }
.hm-cta-box {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 28px;
}
.hm-cta-box h2 { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hm-cta-box > div:first-child p { margin-top: .7rem; color: var(--slate); font-size: 1.05rem; }
.hm-cta-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hm-cta-checks li { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--ink); }
.hm-cta-checks i { color: var(--brand); }
.hm-cta-actions { display: grid; gap: 10px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .hm-stats { grid-template-columns: repeat(4, 1fr); }
  .hm-stat:nth-child(-n+2) { border-top: 0; }
  .hm-stat { border-top: 0; }
  .hm-stat:not(:first-child) { border-left: 1px solid var(--line); }
  .hm-steps { grid-template-columns: repeat(3, 1fr); }
  .hm-mods { justify-content: center; }
  .hm-mod { flex: 0 1 calc((100% - 32px) / 3); }
  .hm-teacher-feats { grid-template-columns: repeat(3, 1fr); }
  .hm-bento { grid-template-columns: repeat(2, 1fr); }
  .hm-bento-hero { grid-column: span 2; }
  .hm-cta-box { grid-template-columns: 1.5fr 1fr; padding: 44px; }
  .hm-cta-actions .btn { min-width: 210px; }
}
@media (min-width: 960px) {
  .hm-sec { padding: var(--pad-sec) 0; }
  .hm-hero { padding: 56px 0 12px; }
  .hm-hero-top { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hm-hero-visual { display: block; justify-self: end; width: 100%; max-width: 100%; }
  .hm-split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hm-split-media-first .hm-result { order: -1; }
  .hm-teacher-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hm-faq-shell { grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
  .hm-bento { grid-template-columns: repeat(3, 1fr); }
  .hm-bento-hero { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-step, .hm-mod, .hm-bento-card, .hm-benefit { transition: none; }
}
