/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #0F4C5C;
  --ink: #12242A;
  --card: #FFFFFF;
  --strap: #F26B21;
  --on-ground: #EAF4F6;
  --action: #0F4C5C;
  --action-ink: #FFFFFF;
  --focus: #F26B21;
  --font: 'Hanken Grotesk', 'Segoe UI', Arial, sans-serif;
}

@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; }
}

.lobi { display: flex; flex-direction: column-reverse; min-height: 100vh; min-height: 100svh; }
.gantungan { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.tali { width: 30px; height: 26px; background: var(--strap); }
.kartu {
  position: relative; width: 100%; max-width: 340px; padding: 18px 20px 16px;
  background: var(--card); border-radius: 12px;
  animation: ayun .7s cubic-bezier(.2,.9,.3,1) both; transform-origin: top center;
}
@keyframes ayun { from { transform: rotate(-3deg); } }
.lubang { width: 54px; height: 10px; margin: 0 auto 14px; border-radius: 5px; background: var(--ground); }
.tamu { font-size: 62px; font-weight: 700; line-height: .95; letter-spacing: -.03em; color: var(--ground); }
.form { display: grid; gap: 10px; margin-top: 14px; }
label { font-weight: 700; font-size: 16px; }
#username {
  width: 100%; height: 54px; padding: 0 12px;
  border: 2px solid var(--ground); background: #fff;
  font-size: 22px; font-weight: 700; letter-spacing: .04em;
}
.setuju { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.3; }
.setuju input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ground); }
.action { font-size: 18px; }
.alert { color: #B3261E; line-height: 1.3; font-size: 16px; }
.perangkat { margin-top: 12px; font-size: 14px; color: #4C5F65; font-variant-numeric: tabular-nums; }

.sambutan { padding: 28px 20px 32px; color: var(--on-ground); }
h1 { font-size: 26px; line-height: 1.12; letter-spacing: -.02em; }
h2 { margin-top: 20px; font-size: 17px; }
.sambutan li { margin-top: 8px; }

@media (min-width: 1000px) {
  .lobi { flex-direction: row; align-items: stretch; }
  .sambutan { flex: 1.15; padding: 7vh 56px; display: flex; flex-direction: column; }
  h1 { font-size: min(4.6vw, 64px); line-height: 1.04; }
  h2 { margin-top: auto; font-size: 20px; }
  .sambutan li { font-size: 19px; }
  .gantungan { flex: 1; background: #0B3C49; padding: 0 40px; }
  .tali { height: 14vh; }
  .kartu { max-width: 420px; padding: 24px 32px 26px; }
  .tamu { font-size: 104px; }
  label { font-size: 18px; }
  #username { height: 62px; font-size: 26px; }
  .setuju { font-size: 17px; }
  .action { font-size: 20px; padding: 18px; }
}

.sheet { color: var(--on-ground); }
.sheet h1 { font-size: 46px; }
.facts div { padding-bottom: 8px; border-bottom: 2px solid #2F6B7A; }
.sheet .action { background: var(--strap); color: #12242A; }
