/* ===== Token ===== */
:root {
  --ink: #12302d;
  --muted: #4f6663;
  --teal: #1b998b;
  --teal-dark: #127368;
  --orange: #e85600;
  --orange-dark: #c24700;
  --mist: #eaf4f2;
  --line: #cfe3df;
  --paper: #ffffff;
  --radius: 14px;
  --lebar: 1120px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.kecil {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===== Tombol & tautan ===== */
.tombol {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.5em;
  cursor: pointer;
}

.tombol:hover {
  background: var(--orange-dark);
}

.tautan {
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ===== Header ===== */
.bilah-promo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  min-height: 2.2rem;
  padding: 0.35rem max(1.25rem, (100% - var(--lebar)) / 2);
  background: var(--orange);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.bilah-promo[hidden] {
  display: none;
}

.bilah-promo p {
  margin: 0;
}

.bilah-promo del {
  margin-left: 0.35rem;
  opacity: 0.8;
}

.bilah-promo b {
  margin-left: 0.25rem;
  font-size: 1.05em;
}

.bilah-promo a {
  color: #fff;
  font-weight: 800;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: var(--offset-bilah-promo, 0px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0;
  padding: 0.9rem max(1.25rem, (100% - var(--lebar)) / 2);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: 44px;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.tombol-daftar {
  padding: 0.55em 1.2em;
}

/* ===== Bagian umum ===== */
.bagian {
  padding: clamp(3.5rem, 8vw, 6rem) max(1.25rem, (100% - var(--lebar)) / 2);
}

.bagian-tint {
  background: var(--mist);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) max(1.25rem, (100% - var(--lebar)) / 2);
}

.aksi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.perjalanan {
  margin: 0;
}

.browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgb(18 48 45 / 0.45);
  background: var(--paper);
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.perjalanan figcaption {
  margin-top: 1.25rem;
}

.geser-label {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.geser-label strong {
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}

/* slider: bagian yang sudah dilewati berwarna teal */
#geser {
  --isi: 100%;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#geser::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--teal) var(--isi), var(--line) var(--isi));
}

#geser::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--teal) var(--isi), var(--line) var(--isi));
}

#geser::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--teal);
}

#geser::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--teal);
}

.geser-skala {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.tombol-ulangi {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.5em 1em;
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
  font-size: 0.9rem;
}

.ikon-putar {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  flex: 0 0 auto;
}

.ikon-jeda {
  display: none;
}

.tombol-ulangi.sedang-putar .ikon-play {
  display: none;
}

.tombol-ulangi.sedang-putar .ikon-jeda {
  display: block;
}

.tombol-ulangi:hover {
  background: var(--mist);
  color: var(--teal-dark);
}

/* ===== Kelas ===== */
.kelas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2rem;
}

.fakta {
  margin: 0 0 2rem;
}

.fakta div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.fakta dt {
  font-weight: 600;
}

.fakta dd {
  margin: 0;
  color: var(--muted);
}

.silabus {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pertemuan;
  display: grid;
  gap: 0.35rem;
}

.silabus li {
  counter-increment: pertemuan;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
}

.silabus li::before {
  content: counter(pertemuan, decimal-leading-zero);
  font-weight: 800;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.silabus li:nth-child(n + 11) {
  font-weight: 600;
}

.prosa {
  max-width: 70ch;
}

.prosa p + p {
  margin-top: 1rem;
}

.kartu-harga .harga-promo {
  margin: 0 0 0.15rem;
  color: var(--orange-dark);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.baris-harga-normal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.baris-harga-normal del {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.kartu-harga .hemat-harga {
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f5ee;
  color: #176b45;
  font-size: 0.82rem;
  font-weight: 800;
}

.promo-hari-ini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff4ec;
  border: 1px solid #f4c4a7;
  border-radius: var(--radius);
}

.promo-hari-ini > div:first-child {
  display: grid;
  gap: 0.1rem;
}

.promo-hari-ini strong {
  color: var(--orange-dark);
}

.promo-hari-ini span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hitung-mundur {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.hitung-mundur > span {
  display: grid;
  min-width: 3.8rem;
  padding: 0.45rem 0.5rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid #f4c4a7;
  border-radius: 10px;
}

.hitung-mundur strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.hitung-mundur small {
  color: var(--muted);
  font-size: 0.7rem;
}

.berikutnya {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 70ch;
}

.berikutnya p {
  color: var(--muted);
}

.berikutnya-intro {
  margin-bottom: 1.25rem;
}

.persiapan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.kartu-persiapan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -24px rgb(18 48 45 / 0.7);
  transition: transform 160ms ease, border-color 160ms ease;
}

.kartu-persiapan:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.label-persiapan {
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kartu-persiapan h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.kartu-persiapan p {
  margin: 0;
  font-size: 0.92rem;
}

.persiapan-cta {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

/* ===== Cara belajar ===== */
.langkah {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: langkah;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.langkah li {
  counter-increment: langkah;
  border-top: 4px solid var(--teal);
  padding-top: 1.25rem;
}

.langkah li::before {
  content: counter(langkah);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.langkah p {
  color: var(--muted);
}

/* ===== Mentor ===== */
.mentor {
  display: block;
}

.mentor-list {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2rem;
}

.mentor-profil {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.mentor-foto {
  background: var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.mentor-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.daftar {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

.daftar li {
  margin-bottom: 0.4rem;
}

.sosial {
  display: flex;
  gap: 1.5rem;
}

/* ===== FAQ ===== */
.faq {
  max-width: 75ch;
  margin-top: 2rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* ===== Cek sertifikat ===== */
.cek {
  min-height: 60vh;
}

.form-cek {
  max-width: 640px;
  margin-top: 2rem;
}

.form-cek label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.baris-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.baris-input input {
  flex: 1 1 260px;
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 0.7em 1em;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.baris-input input:focus {
  border-color: var(--teal);
  outline: none;
}

.hasil {
  max-width: 640px;
  margin-top: 2rem;
}

.hasil:empty {
  display: none;
}

.hasil.valid,
.hasil.tidak-ada {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid;
}

.hasil.valid {
  border-color: var(--teal);
  background: var(--mist);
}

.hasil.tidak-ada {
  border-color: var(--orange);
  background: #fff4ec;
}

.hasil .status {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hasil.valid .status {
  color: var(--teal-dark);
}

.hasil.tidak-ada .status {
  color: var(--orange-dark);
}

.hasil .fakta {
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2rem max(1.25rem, (100% - var(--lebar)) / 2);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer p:not(.kecil) {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

/* ===== HP ===== */
@media (max-width: 860px) {
  .bilah-promo {
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.65rem;
  }

  .nav {
    display: none;
  }

  .tombol-daftar {
    margin-left: auto;
  }

  .hero,
  .kelas,
  .mentor-profil {
    grid-template-columns: 1fr;
  }

  .langkah {
    grid-template-columns: 1fr;
  }

  .persiapan-grid {
    grid-template-columns: 1fr;
  }

  .mentor-foto {
    max-width: 320px;
  }

  .fakta div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .promo-hari-ini {
    align-items: flex-start;
    flex-direction: column;
  }

  .hitung-mundur {
    width: 100%;
  }

  .hitung-mundur > span {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kartu-persiapan {
    transition: none;
  }

  .kartu-persiapan:hover {
    transform: none;
  }
}
