/* Sans: one page, one fixed iPhone. The reading column scrolls, the phone stays. */

:root {
  --t-display: clamp(2.5rem, 4.7vw, 4.25rem);
  --t-judul: clamp(1.75rem, 2.8vw, 2.5rem);
  --t-lead: clamp(1.1875rem, 1.6vw, 1.375rem);
  --t-isi: 1.125rem;
  --t-kecil: 0.9375rem;
  --margin: clamp(20px, 4vw, 64px);
  --jarak-bab: clamp(72px, 12vh, 120px);
  --sudut: 16px;
  --tinta: #00302d;
  --halus: cubic-bezier(0.16, 1, 0.3, 1);
  --w: min(calc((100svh - 72px) / 2.17), 27vw, 400px);
}

body { color: var(--tinta); font-size: var(--t-isi); line-height: 1.55; }
h1, h2 { font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.06; }
h2 { font-size: var(--t-judul); line-height: 1.12; }
p { text-wrap: pretty; }
[data-ui] { font-variant-numeric: tabular-nums; }
:focus-visible { outline-color: var(--petrol-ink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The split. */
.pisah { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
.baca { padding-inline: var(--margin); padding-bottom: var(--jarak-bab); min-width: 0; }
.medan {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: var(--petrol);
}

/* Plain bar: wordmark, three links, one action. */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px; height: 72px;
  margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin);
  background: var(--mist); font-size: var(--t-kecil); font-weight: 500;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: var(--t-isi); font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; }
.bar nav a { text-decoration: none; }
.bar nav a, .brand { min-height: 44px; display: inline-flex; align-items: center; }
.bar-cta { padding: 9px 18px; border-radius: 999px; background: var(--gold); color: var(--tinta); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Reading column: one thought per stop. */
.bab { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; max-width: 34rem; padding-block: var(--jarak-bab); }
.bab h2 + p { margin-top: 16px; }
.bab > p { font-size: var(--t-lead); line-height: 1.45; }
.bab-atas { min-height: calc(100svh - 72px); padding-block: 24px 48px; }
.lead { margin-top: 24px; }

.kalimat { margin-top: clamp(28px, 5vh, 44px); font-size: var(--t-lead); line-height: 1.75; }
.utuh { white-space: nowrap; }
.kalimat input {
  margin-inline: 3px 1px; padding: 3px 8px; border: 0; border-radius: 8px; box-sizing: content-box; max-width: 100%;
  background: var(--fill); color: var(--petrol-ink); font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease-out;
}
.kalimat input:focus { background: var(--foam); outline: 2px solid var(--petrol); outline-offset: 0; }
.jawab { margin-top: 16px; font-size: var(--t-judul); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; color: var(--petrol); font-variant-numeric: tabular-nums; }

.aksi { margin-top: clamp(28px, 5vh, 40px); }

/* The waitlist form: one field and one action in a single pill. */
.daftar { max-width: 30rem; }
.daftar-baris {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--fill);
  transition: background-color 150ms ease-out;
}
.daftar-baris:focus-within { outline: 2px solid var(--petrol); outline-offset: 0; }
.daftar input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 8px 0 20px; border: 0; border-radius: 999px;
  background: none; color: var(--tinta); font-size: 1rem; outline: 0;
}
.daftar input::placeholder { color: var(--ink-soft); opacity: 1; }
.daftar input[aria-invalid="true"] { font-weight: 500; }
.daftar button {
  flex: none; min-width: 7.5rem; height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--tinta); font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: scale 150ms ease-out, background-color 150ms ease-out;
}
.daftar button[aria-busy="true"] { cursor: progress; }
.gerak .daftar button:active { scale: 0.96; }
.perangkap { position: absolute; left: -100vw; opacity: 0; }
.pesan { margin-top: 12px; padding-inline: 20px; font-size: var(--t-kecil); line-height: 1.45; }
.pesan a { text-underline-offset: 0.2em; }
.pesan.galat { color: var(--money-out); font-weight: 500; }
.pesan:focus { outline: 0; }
.daftar.selesai .daftar-baris { display: none; }
.daftar.selesai .pesan { margin-top: 0; padding-inline: 0; font-size: var(--t-lead); font-weight: 600; color: var(--petrol); }

.gerak .bar-cta:active { scale: 0.96; }
@media (hover: hover) and (pointer: fine) {
  :is(.bar-cta, .daftar button):hover { background: #f4ca78; }
  .bar nav a:hover, .kaki a:hover { color: var(--petrol); }
  .tutup .daftar button:hover { background: var(--petrol-ink); }
}

.potongan { width: 100%; margin-top: 20px; border-radius: var(--sudut); }
.bab > p + .potongan { margin-top: 28px; }
.hitungan { width: 100%; margin-top: 28px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.hitungan th { font-weight: 400; text-align: start; }
.hitungan td { text-align: end; font-weight: 500; white-space: nowrap; }
.hitungan th, .hitungan td { padding: 11px 16px; }
.hitungan .minus { color: var(--money-out); }
.hitungan .total :is(th, td) { background: var(--foam); font-weight: 600; }
.hitungan .total th { border-radius: var(--sudut) 0 0 var(--sudut); }
.hitungan .total td { border-radius: 0 var(--sudut) var(--sudut) 0; }

/* The phone. */
.phone {
  position: relative; width: var(--w); padding: calc(var(--w) * 0.028); border-radius: calc(var(--w) * 0.165);
  border: 1.5px solid #3a4a48; background: #060c0c;
}
.phone::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.05); translate: -50% 0;
  width: 29%; height: calc(var(--w) * 0.085); border-radius: 999px; background: #060c0c;
}
.layar { position: relative; container-type: inline-size; overflow: hidden; border-radius: calc(var(--w) * 0.137); background: var(--mist); }
.layar img { width: 100%; }
.tiang { position: relative; }
.gerak .tiang { animation: naik 900ms var(--halus) both; }
@keyframes naik { from { opacity: 0; translate: 0 28px; } }
.tumpuk { aspect-ratio: 804 / 1748; }
.lembar { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 420ms ease-out, visibility 0s 420ms; }
.gerak .lembar { scale: 1.02; transition: opacity 420ms ease-out, scale 620ms var(--halus), visibility 0s 420ms; }
.lembar.aktif { opacity: 1; scale: 1; visibility: visible; transition-delay: 0s; }

.layar-hari {
  position: absolute; left: 2.4%; top: 10.9%; width: 60%; height: 2.5%; padding-left: 2.8%;
  background: #f7fbfb; color: var(--ink); font-size: 4.9cqw; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
}
.layar-kartu {
  position: absolute; left: 5%; right: 5%; top: 15%; height: 21%; padding: 7cqw 5cqw 5cqw;
  display: flex; flex-direction: column; border-radius: 8cqw; background: #066a62; color: #fff;
}
.lk-atas { display: flex; justify-content: space-between; align-items: baseline; font-size: 3.7cqw; color: var(--foam); line-height: 1.2; }
.lk-atas b { font-size: 3.3cqw; font-weight: 700; color: #fff; }
.lk-angka { display: flex; align-items: baseline; gap: 0.6cqw; margin-top: 2cqw; font-size: 11.4cqw; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.lk-angka small { font-size: 6cqw; font-weight: 500; color: var(--foam); letter-spacing: 0; }
.lk-bar { display: block; height: 1.4cqw; margin-top: 3cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.lk-bar span { display: block; width: 50%; height: 100%; background: var(--gold); transition: width 400ms var(--halus); }
.lk-bawah { margin-top: 2.4cqw; font-size: 3.2cqw; line-height: 1.3; color: var(--foam); white-space: pre-line; }

/* Pelan keeps you company beside the phone. */
.pelan { position: absolute; right: 92%; bottom: 3%; width: calc(var(--w) * 0.36); aspect-ratio: 1; }
.pelan img { position: absolute; inset: 0; width: 100%; opacity: 0; transition: opacity 240ms ease-out; }
.gerak .pelan img { translate: 0 8px; transition: opacity 240ms ease-out, translate 420ms var(--halus); }
.pelan img.aktif { opacity: 1; translate: none; }

/* The one section that breaks the split. */
.privat {
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: end;
  background: var(--petrol-night); color: var(--on-dark); overflow: hidden;
}
.privat-kata { padding: var(--jarak-bab) var(--margin); align-self: center; }
.privat-kata h2 { max-width: 12em; font-size: var(--t-display); line-height: 1.06; }
.privat-kata > p { margin-top: 20px; font-size: var(--t-lead); line-height: 1.45; }
.privat ul { display: grid; gap: 12px; margin-top: 36px; max-width: 34rem; }
.privat li b { font-weight: 600; color: var(--gold); }
.privat :focus-visible { outline-color: var(--gold); }
.privat-hp { justify-self: center; height: calc(var(--w) * 1.62); margin-top: 72px; overflow: hidden; }

.tanya { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: var(--jarak-bab) var(--margin); }
.jawaban { columns: 2; column-gap: 56px; }
.jawaban p { margin-bottom: 20px; break-inside: avoid; }
.jawaban b { font-weight: 600; }

.tutup {
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  padding: var(--jarak-bab) var(--margin) 0; background: var(--gold); color: var(--tinta); overflow: hidden;
}
.tutup > div { padding-bottom: var(--jarak-bab); }
.tutup h2 { font-size: var(--t-display); line-height: 1.06; }
.tutup > div > p { margin-top: 16px; font-size: var(--t-lead); line-height: 1.45; }
.tutup .daftar { margin-top: 28px; }
.tutup .daftar-baris { background: var(--mist); }
.tutup .daftar button { background: var(--tinta); color: #fff; }
.tutup .pesan, .tutup .pesan.galat, .tutup .daftar.selesai .pesan { color: var(--tinta); }
.tutup .daftar-baris:focus-within { outline-color: var(--tinta); }
.tutup img { width: clamp(180px, 24vw, 340px); margin-bottom: -2%; }
.tutup :focus-visible { outline-color: var(--tinta); }

.kaki { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 24px; padding: 28px var(--margin); font-size: var(--t-kecil); }
.kaki p:last-child { text-align: end; }
.kaki a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Section entrances, once. */
.gerak [data-muncul] {
  opacity: 0; translate: 0 20px;
  transition: opacity 700ms ease-out, translate 900ms var(--halus);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.gerak [data-muncul].is-in { opacity: 1; translate: none; }

.bingkai { display: none; }

@media (max-width: 360px) {
  :root { --t-display: 2.125rem; }
  .daftar input[type="email"] { padding-left: 14px; padding-right: 0; }
  .daftar button { min-width: 0; padding-inline: 16px; }
  .daftar input::placeholder { font-size: 0.875rem; }
}

@media (max-width: 999px) {
  :root { --w: min(68vw, 300px); --jarak-bab: 56px; }
  .pisah { display: block; }
  .medan { display: none; }
  .baca { padding-bottom: 0; }
  .bar { height: 64px; }
  .bar nav { display: none; }
  .bar-cta { margin-left: auto; }
  .bab { max-width: none; min-height: 0; padding-block: var(--jarak-bab) 0; }
  .bab-atas { min-height: 0; padding-top: 24px; }
  .bingkai {
    display: block; height: calc(var(--w) * 1.42); margin: 36px calc(-1 * var(--margin)) 0; padding-top: 40px; overflow: hidden;
    background: var(--petrol);
  }
  .bingkai .phone { margin-inline: auto; }
  .privat { grid-template-columns: minmax(0, 1fr); }
  .privat-kata { padding-bottom: 0; }
  .privat-hp { margin-top: 40px; }
  .tanya { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .jawaban { columns: 1; }
  .tutup { flex-direction: column; align-items: flex-start; gap: 0; }
  .tutup > div { padding-bottom: 24px; }
  .tutup img { align-self: flex-end; width: 200px; }
  .kaki { grid-template-columns: minmax(0, 1fr); }
  .kaki p:last-child { text-align: start; }
}

.makasih { display: grid; align-content: center; justify-items: start; gap: 16px; min-height: 100svh; max-width: 40rem; padding: var(--margin); }
.makasih .lead { margin-top: 0; font-size: var(--t-lead); }
.makasih a { text-underline-offset: 0.2em; }
