/* MG House Digital - landing page */

:root {
  --ink: #1c2230;
  --ink-soft: #4b5466;
  --line: #e1e6ef;
  --paper: #f7f9fc;
  --white: #ffffff;
  --brand: #172b6b;      /* biru navy logo */
  --brand-2: #2b5cb0;
  --accent: #2a68b9;     /* biru logo, untuk label kecil */
  --tint: #eef2f9;
  --radius: 10px;
  --wrap: 1140px;
  --heading: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1, h2 { font-family: var(--heading); font-weight: 700; letter-spacing: -.02em; }
h3 { font-family: var(--heading); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--brand-2); }
.btn-sm { padding: 8px 16px; font-size: .94rem; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--tint); }
.btn-block { width: 100%; }
.link-arrow { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-color: var(--ink); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .9em;
}
.eyebrow-light { color: #9cc3f2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 252, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--brand); color: #fff;
  font-family: var(--heading); font-weight: 700; font-size: .9rem;
  border-radius: 7px;
}
.brand-name { font-family: var(--heading); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name b { font-weight: 600; color: var(--brand-2); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; padding: 0 9px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle .bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 20ch; text-wrap: balance; margin-bottom: .45em; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: .96rem; }
.hero-points li { padding-left: 24px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}

/* Mock layar CBT */
.hero-visual { position: relative; }
.exam {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -18px rgba(23, 43, 107, .25);
  overflow: hidden;
  font-size: .92rem;
}
.exam-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e6; }
.exam-url { font-size: .78rem; color: var(--ink-soft); background: var(--white); padding: 3px 10px; border-radius: 5px; border: 1px solid var(--line); }
.exam-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--brand); color: #fff; }
.exam-head small { display: block; opacity: .75; font-size: .76rem; }
.exam-head strong { font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; background: rgba(255,255,255,.14); padding: 5px 10px; border-radius: 6px; font-size: .88rem; }
.exam-body { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; }
.question small { color: var(--ink-soft); font-size: .78rem; }
.question p { margin: 6px 0 14px; font-weight: 500; }
.options { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.options li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.options b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.options .picked { border-color: var(--brand-2); background: #eaf1fb; }
.options .picked b { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.numbers { display: grid; grid-template-columns: repeat(5, 26px); gap: 5px; align-content: start; }
.numbers span { display: grid; place-items: center; height: 26px; font-size: .72rem; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-soft); }
.numbers .d { background: #eaf1fb; border-color: #c9daf3; color: var(--brand-2); }
.numbers .r { background: #fbefe2; border-color: #efd0ae; color: #9a5518; }
.numbers .now { background: var(--brand); border-color: var(--brand); color: #fff; }
.note-card {
  position: absolute; right: -14px; bottom: -22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 14px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.25);
  display: grid; font-size: .84rem;
}
.note-label { color: var(--ink-soft); font-size: .74rem; }
.note-value { font-weight: 600; }
@media (max-width: 480px) {
  .exam-body { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(10, 1fr); }
  .note-card { right: 10px; }
  .exam-body { padding-bottom: 44px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-tint { background: var(--tint); }

/* Layanan */
.services { display: grid; gap: 20px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.service-num { font-family: var(--heading); font-weight: 600; color: var(--accent); font-size: .95rem; margin-bottom: 18px; }
.service h3 { font-size: 1.25rem; font-family: var(--heading); font-weight: 700; }
.service > p { color: var(--ink-soft); }
.service ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .95rem; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--ink); }

/* CBT */
.section-dark { background: var(--brand); color: #e8eef9; }
.section-dark h2 { color: #fff; }
.muted-light { color: #b8c6e3; margin-bottom: 28px; }
.cbt-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .cbt-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.features { display: grid; gap: 0; margin: 0; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
.features div { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.features dt { font-weight: 600; color: #fff; margin-bottom: 6px; }
.features dd { margin: 0; color: #b8c6e3; font-size: .95rem; }

/* Alur */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before { content: "Langkah " counter(step); display: block; font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* Alasan */
.why-grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.why { display: grid; gap: 32px; }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
.why p { color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 500; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--ink-soft); font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding-right: 36px; margin-bottom: 20px; }

/* Kontak */
.section-contact { background: var(--tint); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-grid > div > p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: .97rem; }
.contact-list span { color: var(--ink-soft); }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--ink); word-break: break-word; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cfd6e3; border-radius: 7px;
  padding: 11px 12px; background: var(--white); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(43, 92, 176, .18); }
.form-error { color: #a33a1c; font-size: .9rem; margin: 0; }

/* Footer */
.site-footer { background: #0f1838; color: #a9b5d0; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-name b { color: #8fbaf0; }
.brand-footer .brand-mark { background: #2b5cb0; }
.footer-grid p { max-width: 38ch; }
.footer-title { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-grid nav a, .footer-grid div > a:not(.brand) { display: block; color: #a9b5d0; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; }

/* WhatsApp mengambang */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
}
.wa-float:hover { background: #1fb457; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Honeypot anti-spam (disembunyikan dari manusia) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Testimoni klien */
.btn-accent { background: #fff; color: var(--brand); }
.btn-accent:hover { background: #e8eef9; }

.testi-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .testi-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.section .testi-intro h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .5em; }
.testi-intro .muted-light { max-width: 34ch; font-size: 1.15rem; margin-bottom: 32px; }
.testi-slider { min-width: 0; }

.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.testi-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }

.stars { display: flex; gap: 4px; color: #f0b44c; margin-bottom: 18px; }
.stars .off { color: rgba(255,255,255,.22); }
.testi-quote { margin: 0 0 28px; }
.testi-quote p { margin: 0; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.7; }
.testi-person { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: #fff; color: var(--brand); font-weight: 600; font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,.85);
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-avatar img.is-logo { object-fit: contain; padding: 8px; }
.testi-who { display: grid; gap: 2px; }
.testi-who strong { color: #fff; font-weight: 600; font-size: 1.05rem; }
.testi-who span { color: #b8c6e3; font-size: .92rem; }

.testi-controls { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.testi-controls[hidden] { display: none; }
.carousel-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  transition: background .2s, border-color .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: width .25s, background .25s;
}
.carousel-dots button.active { width: 22px; background: #fff; }

.logo-strip { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.logo-strip:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section .logo-strip-title {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px;
}
.logo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  height: 68px; min-width: 130px; padding: 10px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
}
a.logo-chip:hover { border-color: #c5cede; }
.logo-chip img { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; }
.logo-chip-name { font-family: var(--heading); font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 480px) {
  .logo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-chip { min-width: 0; }
  .logo-chip-name { white-space: normal; text-align: center; line-height: 1.25; }
}

/* Logo unggahan (header & footer) */
.brand-logo { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.brand-footer .brand-logo { background: #fff; padding: 3px; }
.form-note { margin: 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
