/* ============================================================
   AMP — Alight Motion Premium Activation
   Struktur responsive mengikuti cf.rifsxd.tech (CF Solver):
   satu frame kontinyu + cell dipisah border, grid collapse
   di breakpoint 880/720/640, semua fluid.
   Visual: Geist sans, aksen oranye, corner rounded halus.
   ============================================================ */

:root {
  --bg:           #0d0d0f;
  --ink:          #e4e4e7;
  --dim:          #8a8a93;
  --line:         #26262b;
  --line-hi:      #3e3e46;
  --panel:        #111114;
  --sunk:         #141417;
  --acc:          #ff6b35;
  --acc-ink:      #101012;
  --acc-soft:     rgba(255,107,53,.1);
  --ok:           #34d399;
  --err:          #f87171;
  --radius-sm:    8px;
  --font:         "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out:     cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
input, textarea { cursor: text; }
::selection { background: var(--acc); color: var(--acc-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a42; }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--acc-soft);
  border-color: var(--acc);
}

/* Latar grid halus (tekstur, bukan pemisah layout). */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, #0000 0 39px, #ffffff07 39px 40px),
    repeating-linear-gradient(90deg, #0000 0 39px, #ffffff07 39px 40px);
}

/* ---------- brandbar (sticky header) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
}
.mast { display: flex; align-items: center; gap: 12px; }
.mast-txt { display: flex; align-items: baseline; gap: 8px; }
.mast h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}
.ver {
  letter-spacing: 2px;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 700;
}
.block {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: var(--acc);
  color: var(--acc-ink);
  border-radius: 8px;
  flex-shrink: 0;
}
.block svg { width: 20px; height: 20px; stroke: var(--acc-ink); stroke-width: 2px; }

/* status LIVE (svcBadge) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  letter-spacing: 2px;
  color: var(--dim);
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}
.status i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4a52;
}
.status.online { color: var(--ok); }
.status.online i {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: mlpulse 1.6s ease-in-out infinite;
}
@keyframes mlpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- frame & cells (pola CF) ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: clamp(14px, 3vw, 36px) auto;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.hero, .sec, .strip, .foot {
  border-top: 1px solid var(--line);
}
.hero { border-top: 0; }

/* ---------- hero (centered) ---------- */
.hero {
  text-align: center;
  padding: clamp(26px, 5vw, 52px) 22px clamp(18px, 3vw, 28px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-hi);
  padding: 5px 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: mlpulse 1.6s ease-in-out infinite;
}
.hero__title {
  margin: 18px auto 12px;
  font-size: clamp(24px, 5.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 640px;
  overflow-wrap: anywhere;
}
.hero__grad {
  background: linear-gradient(90deg, #ff8a5c, #ff6b35, #ff4d1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* area verifikasi — full-width, box tetap ada */
.hero__card {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  text-align: left;
}

/* ---------- progress ---------- */
.prog { margin-bottom: 18px; }
.prog__track { height: 2px; background: var(--sunk); overflow: hidden; }
.prog__fill {
  height: 100%;
  width: 33%;
  background: var(--acc);
  transition: width .4s var(--ease-out);
}
.prog__labels { display: flex; justify-content: space-between; margin-top: 12px; }
.prog__labels span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s;
}
.prog__labels b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: var(--sunk);
  border: 1px solid var(--line-hi);
  color: var(--dim);
  transition: .25s;
}
.prog__labels .is-active { color: var(--acc); }
.prog__labels .is-active b { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.prog__labels .is-done { color: var(--ink); }
.prog__labels .is-done b { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); opacity: .55; }

/* ---------- stages / forms ---------- */
.stage { display: none; animation: fade .35s both; }
.stage.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.main__h {
  font-weight: 700;
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: .5px;
  color: var(--ink);
}
.main__p { color: var(--dim); font-size: 12px; margin: 8px 0 16px; overflow-wrap: break-word; }

label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 14px 0 5px;
}
.field { position: relative; }
.field__ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.field textarea { padding-top: 12px; }
.field input, .field textarea { padding-left: 40px; }
input, textarea {
  width: 100%;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .12s linear, box-shadow .12s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px var(--acc-soft); }
input::placeholder, textarea::placeholder { color: #55555e; }

/* saran koreksi typo domain email */
.email-fix {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.email-fix[hidden] { display: none; }
.email-fix__btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--acc);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Turnstile ---------- */
.cf-turnstile-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  min-height: 65px;
  max-width: 100%;
  overflow-x: auto;
}
.cf-turnstile-wrap:empty { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-height: 46px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .1s linear, color .1s linear, border-color .1s linear, transform 50ms linear;
}
.btn--block { width: 100%; }
.btn--primary { background: var(--bg); border-color: var(--acc); color: var(--acc); }
.btn--primary:hover:not(:disabled) { background: var(--acc); color: var(--acc-ink); }
.btn--primary:active:not(:disabled) { transform: translateY(2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.btn:disabled { opacity: .45; cursor: default; }
.stage .btn { margin-top: 18px; }
.stage .btn + .btn { margin-top: 10px; }

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .15s;
}
.link-back:hover { color: var(--acc); }
.link-back svg { transform: rotate(180deg); }

/* ---------- message / status ---------- */
.msg {
  margin-top: 12px;
  min-height: 22px;
  font-size: 12px;
  white-space: pre-line;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.msg[hidden] { display: none; }
.msg.ok   { color: var(--ok); }
.msg.err  { color: var(--err); }
.msg.wait { color: var(--dim); }

.dots {
  display: inline-block;
  width: 1.6em;
  text-align: left;
  white-space: pre;
}

/* ---------- done ---------- */
.stage--done { text-align: center; }
.burst { position: relative; width: 84px; height: 84px; margin: 6px auto 16px; display: grid; place-items: center; }
.burst__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--acc); opacity: .2; animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: .4; } 100% { transform: scale(1.5); opacity: 0; } }
.done-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(255,107,53,.3);
  animation: pop .45s both;
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.summary {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--sunk);
  margin: 18px 0;
  font-size: 12px;
}
.summary div { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border-bottom: none; }
.summary .k { color: var(--dim); letter-spacing: 1px; }
.summary .v { color: var(--ink); font-weight: 700; word-break: break-word; text-align: right; }

/* ---------- trust row ---------- */
.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--acc); }

/* ---------- strip stats (grid collapse 880) ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip__item { text-align: center; padding: 16px 8px; }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__num { display: block; font-size: 20px; font-weight: 700; color: var(--acc); line-height: 1; font-variant-numeric: tabular-nums; }
.strip__label { display: block; margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }

/* ---------- section cells ---------- */
.sec { padding: 22px; }
.sec__head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sec__head > div { flex: 1; min-width: 0; }
.sec__icon {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: var(--acc-soft);
  color: var(--acc);
}
.sec__title { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.sec__desc { margin-top: 2px; color: var(--dim); font-size: 12px; }
.sec__head .activity__live { margin-left: auto; align-self: center; }

/* ---------- how it works (grid collapse 720) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { border: 1px solid var(--line); padding: 16px; }
.step__ic {
  width: 34px;
  height: 34px;
  background: var(--acc-soft);
  color: var(--acc);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.step h3 { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 5px; }
.step p { font-size: 12px; color: var(--dim); line-height: 1.55; }

/* ---------- what you get ---------- */
.feats { display: flex; flex-wrap: wrap; gap: 8px; }
.feat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.feat svg { color: var(--acc); }

/* ---------- activity / history ---------- */
.activity__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--acc);
}
.activity__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: mlpulse 1.6s ease-in-out infinite;
}
.history { display: flex; flex-direction: column; }
.history__empty {
  text-align: center;
  color: var(--dim);
  font-size: 11.5px;
  letter-spacing: 1px;
  padding: 14px 0;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  overflow: hidden;
}
.hrow:last-child { border-bottom: 0; }
.hrow__ic { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; }
.hrow--ok  .hrow__ic { color: var(--ok); }
.hrow--err .hrow__ic { color: var(--err); }
.hrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hrow__email {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrow__email.is-typing {
  border-right: 1.5px solid var(--acc);
  padding-right: 2px;
  animation: caret-blink .7s steps(1) infinite;
}
@keyframes caret-blink { 50% { border-right-color: transparent; } }
.hrow__txt { font-size: 10.5px; color: var(--dim); transition: opacity .3s ease, transform .3s ease; }
.hrow__txt.is-pending { opacity: 0; transform: translateY(3px); }
.hrow__txt.is-reveal { animation: txt-reveal .34s ease both; }
@keyframes txt-reveal { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.hrow__time { flex-shrink: 0; font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hrow--enter {
  height: 0;
  transition: height .38s var(--ease-out), margin-bottom .38s var(--ease-out);
  animation: hrow-in .42s var(--ease-out);
}
@keyframes hrow-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- support ---------- */
.support { text-align: center; }
.support .sec__icon { display: none; }
.support .sec__head { justify-content: center; }
.support .btn { max-width: 320px; width: 100%; }

/* ---------- footer ---------- */
.foot {
  background: var(--panel);
  text-align: center;
  letter-spacing: 1.5px;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 12px;
  font-size: 9.5px;
}
.foot .foot-brand {
  color: var(--ink);
  letter-spacing: 2.5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
  padding-bottom: 4px;
  font-weight: 700;
}
.foot-link { color: var(--dim); text-decoration: none; transition: color .15s; }
.foot-link:hover { color: var(--acc); }

/* ---------- toast ---------- */
.toasts {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0,0,0,.55);
  font-size: 12px;
  color: var(--ink);
  max-width: calc(100vw - 32px);
  white-space: normal;
  overflow-wrap: anywhere;
  animation: toast-in .35s var(--ease-out);
}
.toast > span { min-width: 0; }
.toast.leaving { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.toast__ic { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.toast--ok  .toast__ic { color: var(--ok); }
.toast--err .toast__ic { color: var(--err); }
.toast__email { color: var(--ink); font-weight: 700; }
.toast__txt { color: var(--dim); }

/* ---------- spin ---------- */
.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,107,53,.35);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: rot .7s linear infinite;
  flex-shrink: 0;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ============================================================
   Responsive — pola CF (breakpoint 880 / 720 / 640)
   ============================================================ */
@media (width <= 880px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip__item { border-left: 0; }
  .strip__item:nth-child(even) { border-left: 1px solid var(--line); }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 720px) {
  .steps { grid-template-columns: 1fr; }
  .sec { padding: 18px; }
  .hero__card { padding: 18px; }
  .hrow__time { font-size: 10px; }
}

@media (width <= 640px) {
  .site-header { padding: 10px 12px; }
  .prog__labels span { font-size: 0; gap: 0; }
  .prog__labels b { font-size: 11px; }
  .hero__title { font-size: clamp(22px, 7.5vw, 30px); }
}

/* hormati preferensi hemat-animasi */
@media (prefers-reduced-motion: reduce) {
  .hrow--enter { animation: none; transition: none; height: auto !important; }
  .hrow__email.is-typing { border-right-color: transparent; animation: none; }
  .hrow__txt.is-pending { opacity: 1; transform: none; }
  .hrow__txt.is-reveal { animation: none; }
}
