/* Gaya halaman akses awal Wawancarai. Warna mengikuti token DESIGN.md (terang dan gelap). */
:root {
  --bg: #fbfcf8;
  --fg: #0f172a;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-fg: #64748b;
  --soft-fg: #475569;
  --border: #e2e8f0;
  --primary: #aff33e;
  --primary-fg: #000000;
  --flyer-bg: #0f172a;
  --flyer-fg: #fbfcf8;
  --flyer-ring: none;
  --strong-bg: #f0fdf4;
  --strong-fg: #166534;
  --unwritten-bg: #fff7ed;
  --unwritten-fg: #9a3412;
  --adjacent-bg: #eff6ff;
  --adjacent-fg: #1e40af;
  --error: #b91c1c;
  --error-solid: #b91c1c;
  --video-bg: #000000;
  --on-error-solid: #ffffff;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --fg: #f8fafc;
    --card: #0f172a;
    --muted: #1e293b;
    --muted-fg: #94a3b8;
    --soft-fg: #cbd5e1;
    --border: #1e293b;
    --flyer-bg: #020617;
    --flyer-fg: #f8fafc;
    --flyer-ring: 0 0 0 1px #1e293b;
    --strong-bg: #052e16;
    --strong-fg: #86efac;
    --unwritten-bg: #431407;
    --unwritten-fg: #fdba74;
    --adjacent-bg: #172554;
    --adjacent-fg: #93c5fd;
    --error: #fca5a5;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Header */
.site-header {
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Tulisan sejajar bagian bawah huruf W di logo, bukan di tengahnya. */
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-text {
  line-height: 1;
}

.wordmark-ai {
  color: var(--primary);
}

/* Logo sama dengan aplikasi: huruf W di logo.png menempati 324x199 px pada kanvas 500x500; wadah ini memangkas ruang kosongnya. */
.logo-mark {
  position: relative;
  flex: none;
  height: 28px;
  aspect-ratio: 324 / 199;
  overflow: hidden;
}

.logo-mark img {
  position: absolute;
  top: -82.41%;
  left: -27.16%;
  width: 154.32%;
  max-width: none;
  height: auto;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px);
}

/* Sorotan kata di judul hero. Di mode terang lime hanya sebagai stabilo di belakang huruf, karena teks lime
   di latar terang kontrasnya 1,3:1 (DESIGN.md bagian 1). Di mode gelap hurufnya sendiri berwarna lime. */
.hl {
  padding: 0 0.06em;
  background: linear-gradient(transparent 52%, var(--primary) 52%, var(--primary) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-color-scheme: dark) {
  .hl {
    padding: 0;
    background: none;
    color: var(--primary);
  }
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.hero .lede {
  margin: 0 0 30px;
  max-width: 34rem;
  font-size: 18px;
  color: var(--soft-fg);
  text-align: justify;
}

/* Form */
.signup {
  max-width: 34rem;
  scroll-margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 14px;
  color: var(--soft-fg);
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #65a30d;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn .spinner {
  display: none;
  flex: none;
}

.btn[aria-busy="true"],
.btn-primary[aria-busy="true"]:disabled {
  gap: 10px;
  opacity: 1;
  cursor: progress;
}

/* Form dan kartu sukses menerima fokus dari skrip, bukan dari pengguna; garis fokus tidak perlu. */
.signup:focus,
.success:focus,
#survey-thanks-title:focus {
  outline: none;
}

.btn[aria-busy="true"] .spinner {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy="true"] .spinner {
    animation: spin 0.8s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tombol kecil di header, sama dengan ukuran sm di aplikasi (tinggi 44 px). */
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}

.offer-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--strong-bg);
  color: var(--strong-fg);
  font-size: 14px;
  line-height: 1.5;
}

.offer-note svg {
  flex: none;
  margin-top: 2px;
}

.form-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--error);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ukuran "flexible": widget mengikuti lebar form (Cloudflare memberi lebar minimal 300 px). */
.turnstile {
  width: 100%;
  min-height: 65px;
  margin: 0 0 14px;
}

.survey {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}

.survey-intro {
  margin: 0;
}

.consent a,
.faq a,
.site-footer a {
  text-underline-offset: 3px;
}

.success {
  position: relative;
  max-width: 34rem;
  padding: clamp(18px, 5vw, 24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.success h2 {
  margin: 0 0 6px;
  padding-right: 40px;
  line-height: 1.2;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
}

#after-survey p {
  margin-bottom: 20px;
}

.success p {
  margin: 0 0 16px;
  color: var(--soft-fg);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted-fg);
  cursor: pointer;
}

.close-btn:hover {
  background: var(--muted);
  color: var(--fg);
}

/* Toast di bawah layar: kabar hasil kirim form. Elemennya selalu ada supaya pembaca layar mengumumkan isinya. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  transform: translate(-50%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
}

.toast.is-error {
  background: var(--error-solid);
  color: var(--on-error-solid);
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    transform: translate(-50%, 12px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .toast.is-visible {
    transform: translate(-50%, 0);
  }
}

/* Dua tombol berdampingan: pilihan sekunder di kiri selebar labelnya, aksi utama (lime) di kanan mengisi sisa. */
.share-row,
.survey .actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.share-row .btn,
.survey .actions .btn {
  padding: 0 14px;
  white-space: nowrap;
}

.wa-short {
  display: none;
}

@media (max-width: 400px) {
  .wa-long {
    display: none;
  }

  .wa-short {
    display: inline;
  }
}

/* Pilihan berbentuk chip (radio). Fieldset dan legend dikembalikan ke tampilan label biasa. */
.chips-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips-field legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-field .chip {
  position: relative;
  font-weight: 400;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.35;
}

.chip:hover span {
  background: var(--muted);
}

.chip input:checked + span {
  border-color: var(--strong-fg);
  background: var(--strong-bg);
  color: var(--strong-fg);
  font-weight: 600;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Demo hero, sama dengan halaman depan aplikasi (comp.home-hero-demo.tsx dan keyframes hero-* di globals.css). */
.demo-player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.demo svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Flyer dan persyaratan selalu berdampingan supaya flyer tetap tegak seperti lembar aslinya.
   Di ponsel flyer setinggi daftar persyaratan, dan pill status turun ke bawah labelnya. */
.demo-top {
  display: grid;
  grid-template-columns: minmax(124px, 2fr) minmax(0, 3fr);
  align-items: stretch;
  gap: 12px;
}

/* Meniru flyer lowongan yang beredar di WhatsApp: gelap di mode terang, latar halaman di mode gelap. */
.flyer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 14px 12px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--flyer-bg);
  box-shadow: var(--flyer-ring);
}

.flyer-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.flyer-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--flyer-fg);
}

.flyer-line {
  display: block;
  flex: none;
  height: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--flyer-fg) 20%, transparent);
}

.flyer-line.l1 {
  width: 82%;
}
.flyer-line.l2 {
  width: 64%;
}
.flyer-line.l3 {
  width: 74%;
}
.flyer-line.l4 {
  width: 58%;
}

.flyer-cta {
  display: flex;
  flex: none;
  align-items: center;
  height: 22px;
  margin-top: auto;
  padding: 0 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--flyer-fg) 10%, transparent);
}

.flyer-cta span {
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--flyer-fg) 60%, transparent);
}

.flyer-scan {
  position: absolute;
  inset: 0 0 auto;
  display: none;
  height: 34px;
}

.flyer-scan div:first-child {
  height: 32px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.flyer-scan div:last-child {
  height: 2px;
  background: var(--primary);
}

.demo-reqs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-fg);
}

.demo-reqs .demo-label {
  padding-bottom: 6px;
}

.demo-req {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 0;
}

.demo-req:not(:last-child) {
  border-bottom: 1px solid var(--muted);
}

.demo-req-label {
  font-size: 13px;
  line-height: 1.4;
}

/* Di ponsel skeleton menutupi baris label (padding 8 px + setengah tinggi baris); di layar lebar di tengah baris. */
.demo-skel {
  position: absolute;
  top: 17px;
  left: 0;
  display: none;
  height: 10px;
  margin-top: -5px;
  border-radius: 6px;
  background: var(--muted);
}

.r1 .demo-skel {
  width: 58%;
}
.r2 .demo-skel {
  width: 46%;
}
.r3 .demo-skel {
  width: 52%;
}
.r4 .demo-skel {
  width: 50%;
}

/* Pill status selalu ikon 14px + label, jangan hanya warna (DESIGN.md). */
.status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.status svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.status.strong {
  background: var(--strong-bg);
  color: var(--strong-fg);
}

.status.unwritten {
  background: var(--unwritten-bg);
  color: var(--unwritten-fg);
}

.status.adjacent {
  background: var(--adjacent-bg);
  color: var(--adjacent-fg);
}

.demo-score {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.demo-score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-fg);
}

.demo-score-value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.demo-score-value span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-fg);
}

.demo-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.demo-bar div {
  width: 72%;
  height: 8px;
  border-radius: 999px;
  background: var(--fg);
  transform-origin: left;
}

.demo-question {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.demo-question-body {
  position: relative;
}

.demo-skel-q {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.demo-skel-q > i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--muted);
}

.demo-skel-q > i:first-child {
  width: 88%;
  margin-top: 4px;
}

.demo-skel-q > i:nth-child(2) {
  width: 62%;
}

.demo-skel-q div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.demo-skel-q b {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.demo-skel-q div i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--muted);
}

.demo-question-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-question-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.demo-recording {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
}

.demo-mic svg {
  width: 18px;
  height: 18px;
}

.demo-wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  height: 32px;
}

.demo-wave i {
  width: 4px;
  height: 28px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 80%, transparent);
}

/* Dua batang terakhir belum terputar. */
.demo-wave i:nth-child(n + 9) {
  background: color-mix(in srgb, var(--muted-fg) 60%, transparent);
}

.demo-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-left: 4px;
}

.demo-caption p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-fg);
}

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--muted);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn .icon-play,
.icon-btn[data-state="paused"] .icon-pause {
  display: none;
}

.icon-btn[data-state="paused"] .icon-play {
  display: block;
}

@media (min-width: 640px) {
  .demo {
    padding: 24px;
  }

  .demo-top {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .flyer {
    height: 210px;
    padding: 16px 14px;
  }

  .demo-req {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
  }

  .demo-req .demo-skel {
    top: 50%;
  }

  .demo-req-label {
    font-size: 14px;
  }
}

/* Animasi berjalan lebih dari 5 detik, jadi WCAG 2.2.2 mewajibkan tombol jeda. Tanpa gerak, kartu tampil dalam keadaan akhir. */
@media (prefers-reduced-motion: no-preference) {
  .icon-btn {
    display: inline-flex;
  }

  .flyer-scan {
    display: block;
    animation: hero-scan 14s ease-in-out infinite;
  }

  .demo-skel {
    display: block;
  }

  .demo-skel-q {
    display: flex;
    animation: hero-skel-q 14s ease-out infinite;
  }

  .r1 .demo-skel {
    animation: hero-skel-1 14s ease-out infinite;
  }
  .r2 .demo-skel {
    animation: hero-skel-2 14s ease-out infinite;
  }
  .r3 .demo-skel {
    animation: hero-skel-3 14s ease-out infinite;
  }
  .r4 .demo-skel {
    animation: hero-skel-4 14s ease-out infinite;
  }
  .r1 .demo-req-label {
    animation: hero-row-1 14s ease-out infinite;
  }
  .r2 .demo-req-label {
    animation: hero-row-2 14s ease-out infinite;
  }
  .r3 .demo-req-label {
    animation: hero-row-3 14s ease-out infinite;
  }
  .r4 .demo-req-label {
    animation: hero-row-4 14s ease-out infinite;
  }
  .r1 .status {
    animation: hero-pill-1 14s ease-out infinite;
  }
  .r2 .status {
    animation: hero-pill-2 14s ease-out infinite;
  }
  .r3 .status {
    animation: hero-pill-3 14s ease-out infinite;
  }
  .r4 .status {
    animation: hero-pill-4 14s ease-out infinite;
  }

  .demo-bar div {
    animation: hero-bar 14s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  }

  .demo-score-value {
    animation: hero-score 14s ease-out infinite;
  }

  .demo-question-content {
    animation: hero-question 14s ease-out infinite;
  }

  .demo-wave i {
    animation: hero-wave 1.1s ease-in-out infinite;
  }

  /* Delay negatif membuat batang gelombang bergerak tidak serempak sejak awal. */
  .demo-wave i:nth-child(2) {
    animation-delay: -0.2s;
  }
  .demo-wave i:nth-child(3) {
    animation-delay: -0.5s;
  }
  .demo-wave i:nth-child(4) {
    animation-delay: -0.8s;
  }
  .demo-wave i:nth-child(5) {
    animation-delay: -0.3s;
  }
  .demo-wave i:nth-child(6) {
    animation-delay: -0.6s;
  }
  .demo-wave i:nth-child(7) {
    animation-delay: -0.1s;
  }
  .demo-wave i:nth-child(8) {
    animation-delay: -0.9s;
  }
  .demo-wave i:nth-child(9) {
    animation-delay: -0.4s;
  }
  .demo-wave i:nth-child(10) {
    animation-delay: -0.7s;
  }

  /* Dijeda lewat tombol, atau otomatis saat kartu tidak terlihat di layar. */
  .demo-stage[data-paused="true"] * {
    animation-play-state: paused;
  }
}

@keyframes hero-scan {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  22% {
    transform: translateY(220px);
    opacity: 1;
  }
  25%,
  100% {
    transform: translateY(220px);
    opacity: 0;
  }
}

@keyframes hero-skel-1 {
  0%,
  14% {
    opacity: 1;
  }
  18%,
  92% {
    opacity: 0;
  }
  97%,
  100% {
    opacity: 1;
  }
}
@keyframes hero-skel-2 {
  0%,
  18% {
    opacity: 1;
  }
  22%,
  92% {
    opacity: 0;
  }
  97%,
  100% {
    opacity: 1;
  }
}
@keyframes hero-skel-3 {
  0%,
  22% {
    opacity: 1;
  }
  26%,
  92% {
    opacity: 0;
  }
  97%,
  100% {
    opacity: 1;
  }
}
@keyframes hero-skel-4 {
  0%,
  26% {
    opacity: 1;
  }
  30%,
  92% {
    opacity: 0;
  }
  97%,
  100% {
    opacity: 1;
  }
}
@keyframes hero-skel-q {
  0%,
  64% {
    opacity: 1;
  }
  70%,
  92% {
    opacity: 0;
  }
  97%,
  100% {
    opacity: 1;
  }
}
@keyframes hero-row-1 {
  0%,
  14% {
    opacity: 0;
    transform: translateY(6px);
  }
  18%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-row-2 {
  0%,
  18% {
    opacity: 0;
    transform: translateY(6px);
  }
  22%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-row-3 {
  0%,
  22% {
    opacity: 0;
    transform: translateY(6px);
  }
  26%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-row-4 {
  0%,
  26% {
    opacity: 0;
    transform: translateY(6px);
  }
  30%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-pill-1 {
  0%,
  34% {
    opacity: 0;
    transform: scale(0.85);
  }
  38%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-pill-2 {
  0%,
  38% {
    opacity: 0;
    transform: scale(0.85);
  }
  42%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-pill-3 {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.85);
  }
  46%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-pill-4 {
  0%,
  46% {
    opacity: 0;
    transform: scale(0.85);
  }
  50%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-bar {
  0%,
  52% {
    transform: scaleX(0);
  }
  62%,
  92% {
    transform: scaleX(1);
  }
  97%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes hero-score {
  0%,
  54% {
    opacity: 0;
  }
  60%,
  92% {
    opacity: 1;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-question {
  0%,
  64% {
    opacity: 0;
    transform: translateY(10px);
  }
  70%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes hero-wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Section dasar */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.section-intro {
  max-width: 40rem;
  margin: 0 0 36px;
  color: var(--soft-fg);
  font-size: 17px;
  text-align: justify;
}

/* Fitur */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
}

.feature-card p {
  flex: 1;
}

.cost {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--soft-fg);
  font-size: 13px;
  font-weight: 600;
}

.cost-free {
  background: var(--strong-bg);
  color: var(--strong-fg);
}

.features h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.features p {
  margin: 0;
  color: var(--soft-fg);
  font-size: 15.5px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--strong-bg);
  color: var(--strong-fg);
  display: grid;
  place-items: center;
}

/* Disebar dan disiapkan */
.contrast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contrast-col {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 22px;
}

.contrast-col.scattered {
  background: var(--muted);
}

.contrast-col.ready {
  background: var(--card);
  border: 2px solid var(--fg);
}

.contrast-col h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.contrast-col.scattered h3 {
  color: var(--soft-fg);
}

.contrast-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.contrast-col li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.contrast-col.scattered li {
  color: var(--soft-fg);
}

.contrast-col svg {
  flex: none;
  margin-top: 3px;
}

/* Tentang */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about h2 {
  margin-bottom: 18px;
}

.icon-strong {
  color: var(--strong-fg);
}

/* Kutipan pendiri selebar konten, di atas penjelasan dan prinsip. */
.founder-quote {
  margin: 0 0;
  margin-top: 32px;
  padding: 4px 0 4px clamp(20px, 3vw, 32px);
  border-left: 4px solid var(--primary);
}

.about-text {
  margin: 0;
  color: var(--soft-fg);
  font-size: 17px;
  text-align: justify;
}

.founder-quote blockquote {
  margin: 0;
}

.founder-quote blockquote p {
  max-width: 34em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-align: justify;
}

.founder-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  font-size: 15px;
}

.founder-quote figcaption span {
  color: var(--soft-fg);
}

.founder-quote figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}

.principles li {
  display: flex;
  gap: 14px;
}

.principles svg {
  flex: none;
  margin-top: 3px;
}

.principles strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.principles span {
  color: var(--soft-fg);
  font-size: 15.5px;
}

/* Akses awal */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--fg);
  border-radius: 28px;
  background: var(--card);
}

.access h2 {
  max-width: 16ch;
}

.access .intro {
  margin: 0;
  color: var(--soft-fg);
  max-width: 34rem;
  font-size: 17px;
}

.access-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--muted);
}

.quota-meter {
  margin: 0 0 20px;
}

.quota-meter-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--soft-fg);
}

.quota-meter-top strong {
  color: var(--fg);
}

.quota-meter-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.quota-meter-bar div {
  height: 100%;
  border-radius: 999px;
  background: var(--fg);
}

.access-facts {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.access-facts li {
  display: flex;
  gap: 12px;
  font-size: 15px;
}

.access-facts svg {
  flex: none;
  margin-top: 4px;
}

.access-value {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.access-value small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--soft-fg);
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  transition: transform 200ms ease;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 20px;
  padding-right: 40px;
  color: var(--soft-fg);
}

.site-footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted-fg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: var(--muted-fg);
}

@media (max-width: 860px) {
  .hero,
  .about,
  .access,
  .contrast {
    grid-template-columns: minmax(0, 1fr);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .btn-full-sm {
    width: 100%;
  }
}

/* Bagian dan kartu muncul perlahan saat masuk layar, dan memudar saat keluar. Kelas js-reveal dipasang oleh
   js/app.js hanya bila gerak diizinkan, jadi tanpa JavaScript atau dengan gerak dikurangi semua isi langsung tampil. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js-reveal .features .reveal:nth-child(2),
  .js-reveal .contrast .reveal:nth-child(2),
  .js-reveal .principles .reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .js-reveal .features .reveal:nth-child(3),
  .js-reveal .principles .reveal:nth-child(3) {
    transition-delay: 0.2s;
  }
}

/* Bagian video demo: pilihan video berbentuk pil dan satu pemutar 16:9 yang lebar, karena rekamannya mode desktop. */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.demo-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.demo-tab:hover {
  background: var(--muted);
}

.demo-tab[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--video-bg);
}

.video iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: block;
  padding: 0;
  background: none;
  cursor: pointer;
}

.video-facade[hidden] {
  display: none;
}

.video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(56px, 9vw, 76px);
  height: clamp(56px, 9vw, 76px);
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%);
}

.video-play svg {
  margin-left: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .video-play {
    transition: transform 0.2s ease;
  }

  .video-facade:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.video-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted-fg);
}

/* Kaki kartu fitur: label biaya di kiri, tautan ke video demonya di kanan. */
.feature-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 18px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}
