* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #183427;
  background: linear-gradient(180deg, #edf7f0, #faf7ed);
  min-height: 100vh;
}
.wrap {
  width: min(720px, 92%);
  margin: auto;
  padding: 24px 0 42px;
}
.card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 38px #163c2524;
}
.hero {
  width: 100%;
  display: block;
  max-height: 720px;
  object-fit: cover;
}
.body {
  padding: 26px 22px 30px;
  text-align: center;
}
h1 {
  color: #176b3a;
  margin: 0 0 8px;
  font-size: clamp(26px, 6vw, 38px);
}
.lead {
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 570px;
}
.buttons {
  display: grid;
  gap: 13px;
}
.btn {
  display: block;
  padding: 17px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
}
.daftar {
  background: #176b3a;
  color: #fff;
}
.cek {
  background: #edf7f0;
  color: #176b3a;
  border: 1px solid #badbc7;
}
.akun {
  background: #183427;
  color: #fff;
}
.note {
  font-size: 13px;
  line-height: 1.55;
  color: #68756e;
  margin: 22px 0 0;
}
footer {
  text-align: center;
  font-size: 13px;
  color: #65746b;
  padding: 18px 8px 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.footer-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #badbc7;
  border-radius: 999px;
  background: #edf7f0;
  color: #176b3a;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-doc:hover,
.footer-doc:focus-visible {
  transform: translateY(-1px);
  background: #e3f2e8;
  border-color: #8ec5a3;
  box-shadow: 0 8px 20px #163c2514;
  outline: 0;
}
@media (max-width: 480px) {
  .wrap {
    width: 94%;
    padding-top: 12px;
  }
  .body {
    padding: 22px 16px 26px;
  }
  .btn {
    font-size: 15px;
  }
}

/* ===== Accessibility TTS Floating Action Button ===== */

.tts-fab-wrap {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  font-family: inherit;
}

.tts-fab {
  width: 54px;
  height: 54px;
  border: 1px solid #ffcc45;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd04d, #eaa400);
  color: #07131c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 32px #0008, 0 0 0 0 #ffb51b55;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  padding: 0;
}

.tts-fab:hover,
.tts-fab:focus-visible {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 18px 38px #0009, 0 0 0 5px #ffb51b18;
  outline: 0;
}

.tts-fab:active {
  transform: translateY(0) scale(0.96);
}

.tts-fab.is-speaking {
  animation: ttsPulse 1.45s infinite;
}

.tts-fab svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.tts-fab-label {
  position: absolute;
  left: calc(100% + 11px);
  right: auto;
  white-space: nowrap;
  background: #031a2d;
  color: #dceaf2;
  border: 1px solid #1c5c7b;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: 0.2s;
  box-shadow: 0 10px 25px #0007;
}

.tts-fab:hover .tts-fab-label,
.tts-fab:focus-visible .tts-fab-label {
  opacity: 1;
  transform: translateX(0);
}

.tts-stop {
  width: 34px;
  height: 34px;
  border: 1px solid #245f7f;
  border-radius: 50%;
  background: #06243a;
  color: #c7dce8;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
  transition: 0.2s;
  padding: 0;
}

.tts-fab-wrap:hover .tts-stop,
.tts-fab-wrap:focus-within .tts-stop,
.tts-fab-wrap.is-active .tts-stop {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.tts-stop:hover,
.tts-stop:focus-visible {
  border-color: #ffcc45;
  color: #ffcc45;
  outline: 0;
}

.tts-stop svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.tts-read-highlight {
  background: rgba(255, 204, 69, 0.34) !important;
  color: inherit !important;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 204, 69, 0.14);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
