/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #8ADAF8;
  --ink: #0F2A43;
  --sun: #FFD23F;
  --hill: #62CF75;
  --hill-far: #8FDE8E;
  --action: #D92C47;
  --action-ink: #FFFFFF;
  --focus: #0F2A43;
  --font: 'Fredoka', 'Trebuchet MS', Arial, sans-serif;
}

@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-500.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-600.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
input, button { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }

.alert { font-weight: 600; }
.trial { display: inline-block; padding: 10px 0; }
.more summary { cursor: pointer; padding: 10px 0; }
.more label { display: block; }
.more input { width: 100%; padding: 10px 12px; margin-top: 4px; }

/* Halaman setelah login: alogin, status, logout, error */
.sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh; min-height: 100svh;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 32px 20px;
}
.sheet h1 { font-size: 44px; line-height: 1.02; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.action {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: var(--action);
  color: var(--action-ink);
  transition: transform .15s ease;
}
.action:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

body { font-weight: 500; }
.ceria {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100vh; min-height: 100svh; padding: 22px 18px 18px;
}
.sapa, .kartu, .catatan { position: relative; z-index: 1; }
.matahari {
  position: absolute; top: -46px; right: -34px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--sun);
  animation: terbit .7s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes terbit { from { transform: translateY(-36px); } }
.bukit { position: absolute; inset: 0; }
.bukit i { position: absolute; border-radius: 50%; }
.bukit i:first-child { left: -30%; right: 18%; bottom: -96px; height: 210px; background: var(--hill-far); }
.bukit i:last-child { left: 24%; right: -34%; bottom: -112px; height: 210px; background: var(--hill); }

.sapa { margin-top: auto; }
h1 { max-width: 88%; font-size: 12.8vw; font-weight: 600; line-height: 1.03; letter-spacing: -.01em; }
.sekolah { margin-top: 6px; font-size: 19px; font-weight: 600; }

.kartu { width: 100%; max-width: 520px; padding: 16px; border-radius: 22px; background: #fff; }
@media (min-width: 600px) { h1 { font-size: 64px; } }
.form { display: grid; gap: 5px; }
label { font-size: 16px; font-weight: 600; }
.form input:not([type=hidden]) {
  width: 100%; height: 48px; margin-bottom: 8px; padding: 0 14px;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff; font-size: 18px; font-weight: 500;
}
.form input:not([type=hidden]):focus { outline: 0; border-color: var(--action); }
.action { border-radius: 14px; font-size: 21px; font-weight: 600; padding: 12px; transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
.action:hover { transform: translateY(-2px); }
.alert { color: #B21F37; font-size: 16px; line-height: 1.25; margin-bottom: 6px; }
.trial { padding: 10px 0 0; }
.catatan { margin-top: auto; }

@media (min-width: 900px) {
  .ceria {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto; column-gap: 64px; align-items: center;
    padding: 56px max(64px, calc(50vw - 560px)) 48px;
  }
  .matahari { top: -90px; right: auto; left: 44%; width: 280px; height: 280px; }
  .bukit i:first-child { bottom: -190px; height: 400px; }
  .bukit i:last-child { bottom: -230px; height: 400px; }
  .sapa { margin-top: 0; }
  .sekolah { margin-top: 14px; font-size: 24px; }
  h1 { max-width: none; font-size: 76px; line-height: 1; }
  .kartu { padding: 28px; border-radius: 28px; }
  .form input:not([type=hidden]) { height: 54px; margin-bottom: 12px; }
  .action { font-size: 24px; padding: 14px; }
  .catatan { grid-column: 1; margin: 0; font-size: 20px; }
}

.sheet { gap: 14px; }
.sheet h1 { max-width: none; font-size: 42px; font-weight: 600; }
.facts div { padding: 10px 14px; border-radius: 14px; background: #fff; }
.sheet .action { font-size: 20px; }
