/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #FF7F57;
  --ink: #2B0E0B;
  --krem: #FFF1E6;
  --r: 26px;
  --action: #2B0E0B;
  --action-ink: #FFF1E6;
  --focus: #2B0E0B;
  --font: 'Hanken Grotesk', Arial, sans-serif;
  --judul: 'Fredoka', 'Hanken Grotesk', 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'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('fonts/hanken-grotesk-700.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 { background: radial-gradient(70vmax 60vmax at 0% 0%, #FFB36B, transparent 60%), radial-gradient(60vmax 60vmax at 100% 100%, #FF4F7B, transparent 60%), var(--ground); font-size: 16px; }

/* Bokeh: lingkaran terang yang membuat kaca di depannya terlihat bening */
.bokeh { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bokeh i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 70%); animation: apung 14s ease-in-out infinite alternate; }
.bokeh i:nth-child(1) { left: 6%; top: 8%; width: 220px; height: 220px; }
.bokeh i:nth-child(2) { right: 8%; top: 20%; width: 340px; height: 340px; animation-duration: 19s; animation-delay: -5s; }
.bokeh i:nth-child(3) { left: 30%; bottom: 8%; width: 180px; height: 180px; animation-duration: 16s; animation-delay: -9s; }
.bokeh i:nth-child(4) { right: 26%; bottom: 14%; width: 120px; height: 120px; animation-duration: 12s; }
.bokeh i:nth-child(5) { left: -80px; top: 52%; width: 260px; height: 260px; animation-duration: 21s; animation-delay: -3s; }
@keyframes apung { to { transform: translate3d(30px, -50px, 0) scale(1.1); } }

.kilau { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 24px 14px 28px; }
h2 { font-family: var(--judul); font-weight: 600; font-size: 22px; line-height: 1.15; }
.kepala { padding: 20px 4px 8px; animation: naik .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes naik { from { opacity: 0; transform: translateY(20px); } }
h1 { font-family: var(--judul); font-weight: 600; font-size: 64px; line-height: .9; letter-spacing: -.03em; color: var(--krem); text-shadow: 0 4px 0 rgba(43,14,11,.22), 0 18px 40px rgba(120,20,30,.35); }
.kepala p { margin-top: 12px; max-width: 24ch; font-size: 18px; font-weight: 700; }

.kaca { position: relative; overflow: hidden; border-radius: var(--r); background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -12px 24px rgba(255,255,255,.1), 0 22px 40px -16px rgba(110,20,30,.5); }
.kaca::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .kaca { background: rgba(255,241,230,.85); } }
.masuk, .kontak { padding: 20px; animation: naik .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.masuk h2 { margin-bottom: 10px; }
.form { display: grid; gap: 10px; }
label { font-weight: 700; }
#username { width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: rgba(255,255,255,.6); box-shadow: inset 0 2px 6px rgba(110,20,30,.2); font-family: var(--judul); font-size: 24px; letter-spacing: .08em; color: var(--ink); }
.action { border-radius: 999px; font-family: var(--judul); font-size: 20px; font-weight: 600; box-shadow: inset 0 2px 2px rgba(255,255,255,.3), 0 14px 26px -8px rgba(43,14,11,.6); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.action:hover { transform: translateY(-2px) scale(1.02); }
.alert { color: #7A0A18; font-weight: 700; line-height: 1.3; }
.trial { color: var(--ink); font-weight: 700; }
.more { font-size: 15px; }
.more input { border: 0; border-radius: 14px; background: rgba(255,255,255,.6); }

/* Kartu voucher berbentuk kartu SIM dengan lapisan hologram yang mengikuti sentuhan */
.paket h2 { margin-bottom: 12px; }
.paket ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; perspective: 900px; }
.paket li { animation: naik .7s cubic-bezier(.2,.8,.2,1) both; }
.paket li:nth-child(1) { animation-delay: .15s; }
.paket li:nth-child(2) { animation-delay: .22s; }
.paket li:nth-child(3) { animation-delay: .29s; }
.paket li:nth-child(4) { animation-delay: .36s; }
.kartu { position: relative; display: grid; align-content: end; gap: 2px; width: 100%; aspect-ratio: 1 / 1.05; padding: 14px; overflow: hidden; border: 0; border-radius: 20px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); text-align: left; color: var(--ink); background: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.4); transform: rotateX(calc(var(--py, 0) * -9deg)) rotateY(calc(var(--px, 0) * 9deg)); transition: transform .25s ease-out, background .3s; }
.kartu::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: soft-light; background: linear-gradient(115deg, transparent 15%, rgba(255,0,160,.8) 35%, rgba(0,230,255,.8) 50%, rgba(255,240,0,.8) 65%, transparent 85%) 0 0 / 260% 100%; background-position: calc(var(--mx, 20%) * 1.3) 0; transition: opacity .3s; }
.kartu:hover::after { opacity: .9; }
.kartu:active { transform: scale(.97); }
.cip { position: absolute; left: 14px; top: 14px; width: 42px; height: 32px; border-radius: 7px; background: #FFD76A; box-shadow: inset 0 0 0 2px rgba(120,70,0,.4), inset 0 2px 2px rgba(255,255,255,.8); }
.cip::before { content: ''; position: absolute; inset: 9px 0; border: 2px solid rgba(120,70,0,.4); border-width: 2px 0; }
.cip::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(120,70,0,.4); }
.lama { font-family: var(--judul); font-weight: 600; font-size: 26px; line-height: 1; }
.kartu b { font-weight: 700; font-size: 17px; white-space: nowrap; }
.kartu[aria-pressed="true"] { background: rgba(255,255,255,.62); box-shadow: inset 0 2px 2px #fff, inset 0 0 0 3px var(--ink); }

.kontak { display: grid; gap: 10px; }
.kontak h2 { margin-bottom: 2px; }
.kontak a { display: block; padding: 15px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.kontak a:hover { transform: translateY(-2px); }
.wa { background: #0F8A47; color: #fff; box-shadow: inset 0 2px 2px rgba(255,255,255,.4), 0 12px 24px -8px rgba(0,60,20,.6); }
.telp { background: rgba(255,255,255,.55); box-shadow: inset 0 1px 2px #fff; }

@media (min-width: 760px) {
  .kilau { grid-template-columns: 1fr 1.1fr; grid-template-areas: "kepala paket" "masuk paket" "kontak paket"; gap: 22px 40px; padding: 56px 24px; align-items: start; }
  .kepala { grid-area: kepala; padding: 30px 0 10px; }
  h1 { font-size: 120px; }
  .kepala p { font-size: 22px; }
  .masuk { grid-area: masuk; padding: 26px; }
  .kontak { grid-area: kontak; padding: 26px; }
  .paket { grid-area: paket; align-self: stretch; display: grid; grid-template-rows: auto 1fr; padding-top: 34px; }
  .paket ul { gap: 18px; grid-auto-rows: 1fr; }
  .kartu { padding: 20px; aspect-ratio: auto; height: 100%; }
  .cip { left: 20px; top: 20px; width: 54px; height: 40px; }
  .lama { font-size: 38px; }
  .kartu b { font-size: 22px; }
}

.sheet h1 { font-size: 44px; color: var(--krem); }
.sheet { min-height: 0; margin: 10vh auto; border-radius: var(--r); background: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 22px 40px -16px rgba(110,20,30,.5); }
.facts div { padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.55); }

body:not(.page-login)::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 16% 24%, rgba(255,255,255,.85) 0 16vmax, transparent 16.3vmax), radial-gradient(circle at 84% 76%, rgba(255,255,255,.7) 0 20vmax, transparent 20.3vmax); }
