/* ============================================================
   DESIGN TOKENS
   Konsep: dunia guru SD — pena merah koreksi, stempel nilai,
   kertas tugas, dan tab buku catatan mapel.
   ============================================================ */
:root {
  --paper: #fbf7ef;
  --paper-card: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #55524a;
  --pine: #1e4638;
  --pine-2: #163429;
  --mint: #d9ede1;
  --mint-line: #afd8c1;
  --sun: #f6b93b;
  --redpen: #e14a2b;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-hand: "Kalam", cursive;

  --wrap: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}
p {
  margin: 0;
}
button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--redpen);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}
.nav a {
  position: relative;
  padding-block: 4px;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--redpen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--redpen);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--ink);
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: 72px 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--mint);
  border: 1.5px solid var(--mint-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
.hero-title .degree {
  color: var(--pine);
}
.hero-tagline {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin-top: 16px;
  font-weight: 700;
}
.redpen-wrap {
  position: relative;
  color: var(--redpen);
  display: inline-block;
}
.redpen-underline {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 12px;
}
.redpen-underline path {
  fill: none;
  stroke: var(--redpen);
  stroke-width: 3;
  stroke-linecap: round;
}
.hero-desc {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-lg {
  padding: 17px 30px;
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.avatar-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.avatar-placeholder {
  width: min(320px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--pine) 0%, var(--pine-2) 100%);
  border: 4px dashed var(--sun);
  display: grid;
  place-items: center;
  box-shadow: 10px 10px 0 var(--ink);
  object-fit: cover;
  object-position: center 20%;
}
.avatar-placeholder span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: #fff;
  font-weight: 700;
}
.avatar-note {
  font-family: var(--font-hand);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.stamp {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 108px;
  height: 108px;
  color: var(--redpen);
  transform: rotate(-8deg);
  animation: stampFloat 7s ease-in-out infinite;
}
.stamp svg {
  width: 100%;
  height: 100%;
}
.stamp path {
  fill: none;
}
.stamp text {
  fill: var(--redpen);
}
.stamp-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--redpen);
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2.5px dashed var(--redpen);
  border-radius: 50%;
}
@keyframes stampFloat {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-6px);
  }
}
.doodle {
  position: absolute;
  color: var(--sun);
  font-size: 1.6rem;
}
.doodle-star {
  bottom: 18px;
  left: -6px;
}
.doodle-star2 {
  top: 40%;
  right: -22px;
  font-size: 1.1rem;
  color: var(--pine);
}

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section {
  padding-block: 88px;
}
.section-mint {
  background: var(--mint);
  border-block: 2px solid var(--ink);
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  max-width: 22ch;
  margin-top: 6px;
}
.avatar-placeholder {
  object-fit: cover;
}

/* Tentang */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.about-body p + p {
  margin-top: 16px;
}
.note-annotation {
  font-family: var(--font-hand);
  color: var(--redpen) !important;
  font-size: 1.15rem;
  transform: rotate(-1deg);
  display: inline-block;
}

/* Mapel */
.subject-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.subject-tab {
  position: relative;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 22px 18px 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.2s var(--ease);
}
.subject-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--tab-color, var(--pine));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.subject-tab:hover {
  transform: translateY(-4px);
}
.subject-icon {
  font-size: 1.6rem;
}
.subject-tab h3 {
  margin-top: 10px;
  font-size: 1.08rem;
}
.subject-tab p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Kenapa / benefit */
.benefit-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 5px 5px 0 var(--mint-line);
}
.benefit-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pine);
  font-size: 1.15rem;
}
.benefit-card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* Kontak */
.section-dark {
  background: var(--pine-2);
  color: #fff;
  border-block: 2px solid var(--ink);
}
.contact-wrap {
  text-align: center;
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sun);
  border-color: rgba(255, 255, 255, 0.25);
}
.title-light {
  color: #fff;
  margin-inline: auto;
}
.contact-desc {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
  font-size: 1.05rem;
}
.contact-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.section-dark .btn-primary {
  box-shadow: 5px 5px 0 var(--sun);
  border-color: #fff;
}
.section-dark .btn-primary:hover {
  box-shadow: 7px 7px 0 var(--sun);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  font-weight: 600;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}
.contact-links a:hover {
  opacity: 1;
  color: var(--sun);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 24px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding-block: 10px;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-visual {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
}
