:root {
  --kafi-forest: #0f3d2e;
  --kafi-lime: #84cc16;
  --kafi-white: #ffffff;
  --kafi-title-tint: #f8fafc;
  --kafi-card: #f1f5f9;
  --kafi-muted: #64748b;
  --kafi-ink: #0f1729;
  --kafi-tint: #d7e5dd;
  --kafi-border: #dbe5df;
  --kafi-warm: #fbfaf6;
  --header-height: 70px;
  --shadow-soft: 0 18px 44px rgba(15, 23, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--kafi-ink);
  background: var(--kafi-warm);
  font-family: Calibri, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 61, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 46, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.42;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--kafi-lime);
  color: var(--kafi-forest);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: var(--header-height);
  background: var(--kafi-warm);
  border-bottom: 1px solid var(--kafi-border);
  box-shadow: 0 1px 0 rgba(15, 61, 46, 0.04);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand img {
  width: 112px;
  height: auto;
}

.nav-actions,
.hero-actions,
.link-row,
.footer-links,
.survey-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.footer-links a,
.footer-links button,
.link-row a {
  color: var(--kafi-forest);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.nav-link:hover,
.footer-links a:hover,
.footer-links button:hover,
.link-row a:hover {
  text-decoration: underline;
  text-decoration-color: var(--kafi-lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 78px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--kafi-border);
  border-radius: 8px;
  background: var(--kafi-white);
  color: var(--kafi-muted);
  cursor: pointer;
}

.language-toggle span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 6px;
  font-weight: 700;
}

html[lang="id"] .language-toggle span:first-child,
html[lang="en"] .language-toggle span:last-child {
  background: var(--kafi-forest);
  color: var(--kafi-white);
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 70px);
  padding-top: 48px;
  padding-bottom: 70px;
}

.hero h1,
.section h2,
.scene-card h3,
.step-card h3,
.stat-row strong,
.deck-dialog h2 {
  margin: 0;
  color: var(--kafi-forest);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.section h2 {
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--kafi-forest);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-subhead {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--kafi-muted);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: var(--kafi-forest);
  background: var(--kafi-lime);
}

.button-secondary {
  color: var(--kafi-white);
  background: var(--kafi-forest);
}

.hero-actions {
  margin-top: 30px;
}

.reassurance,
.form-note,
.form-state,
.persona,
.center-note,
.section-subtext,
.signature {
  color: var(--kafi-muted);
}

.reassurance,
.form-note,
.center-note,
.section-subtext,
.signature {
  font-style: italic;
}

.form-state {
  min-height: 1.4em;
  margin: 0;
  font-weight: 800;
}

.form-state.is-error {
  color: #b91c1c;
}

.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone-wrap::before,
.phone-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.phone-wrap::before {
  width: min(560px, 118%);
  height: min(520px, 92%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 22%, rgba(132, 204, 22, 0.36), transparent 36%),
    radial-gradient(circle at 72% 66%, rgba(15, 61, 46, 0.34), transparent 44%),
    linear-gradient(135deg, rgba(215, 229, 221, 0.68), rgba(132, 204, 22, 0.14));
  filter: blur(32px);
  opacity: 0.72;
  transform: translate3d(8px, 16px, 0);
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

.phone-wrap::after {
  width: min(430px, 92%);
  height: 1px;
  bottom: 7%;
  background: linear-gradient(90deg, transparent, rgba(132, 204, 22, 0.7), transparent);
  opacity: 0.7;
  animation: glow-line 5.8s ease-in-out infinite;
}

.phone {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 0.62;
  overflow: hidden;
  border: 10px solid #1f2937;
  border-radius: 8px;
  background: var(--kafi-white);
  box-shadow: var(--shadow-soft);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  color: var(--kafi-white);
  background: #517da2;
}

.phone-bar span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--kafi-forest);
  background: var(--kafi-lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.chat-loop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: calc(100% - 58px);
  padding: 18px;
  overflow: hidden;
  background: #edf4ee;
}

.chat-loop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.45) 48%, transparent 68%);
  opacity: 0;
  transform: translateX(-70%);
  animation: chat-scan 14s ease-in-out infinite;
}

.chat-sequence {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.bubble {
  width: fit-content;
  max-width: min(100%, 330px);
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.36;
  white-space: pre-line;
}

.bubble span {
  color: var(--kafi-muted);
}

.bubble-user {
  margin-left: auto;
  background: #dcf8c6;
}

.bubble-kafi {
  color: var(--kafi-ink);
  background: #ecf7e3;
  border: 1px solid rgba(132, 204, 22, 0.7);
}

.bubble.short {
  max-width: 180px;
}

.bubble.pulse {
  animation: soft-pulse 6s infinite ease-in-out;
}

.chat-sequence > .bubble,
.chat-sequence > .typing-dots {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.98);
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.2, 0.76, 0.18, 1);
  animation-fill-mode: both;
  will-change: opacity, transform;
}

.message-one {
  animation-name: message-one-cycle;
}

.typing-one {
  animation-name: typing-one-cycle;
}

.message-two {
  animation-name: message-two-cycle;
}

.typing-two {
  animation-name: typing-two-cycle;
}

.bubble.message-three {
  animation-name: message-three-cycle, soft-pulse;
  animation-duration: 14s, 6s;
  animation-timing-function: cubic-bezier(0.2, 0.76, 0.18, 1), ease-in-out;
}

.message-four {
  animation-name: message-four-cycle;
}

.typing-dots {
  display: flex;
  gap: 5px;
  width: fit-content;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 8px;
  background: #ecf7e3;
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kafi-muted);
  animation: dots 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

.trust-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trust-strip span,
.status-pills span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--kafi-border);
  border-left: 4px solid var(--kafi-lime);
  border-radius: 8px;
  color: var(--kafi-forest);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.scene-grid,
.steps,
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scene-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scene-card,
.step-card,
.stat-row article,
.waitlist-form,
.survey-panel,
.single-chat,
.deck-dialog {
  border-radius: 8px;
  background: var(--kafi-white);
  box-shadow: 0 1px 0 var(--kafi-border);
}

.scene-card,
.step-card,
.stat-row article {
  padding: 22px;
  border-top: 6px solid var(--kafi-forest);
}

.scene-card h3,
.step-card h3 {
  font-size: 1.6rem;
}

.persona {
  margin: 6px 0 18px;
  font-weight: 700;
}

.center-note {
  margin: 28px auto 0;
  color: var(--kafi-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  text-align: center;
}

.step-card {
  display: grid;
  gap: 12px;
  border-top-color: var(--kafi-lime);
}

.step-card > span {
  color: var(--kafi-lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.mini-chat {
  padding-top: 10px;
}

.mini-chat .bubble {
  font-size: 0.82rem;
}

.wedge,
.waitlist,
.status {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-left: 4px solid var(--kafi-lime);
  border-radius: 8px;
  background: var(--kafi-white);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--kafi-forest);
}

.single-chat {
  padding: 22px;
  background: #edf4ee;
}

.proof {
  width: 100%;
  max-width: none;
  padding-top: 112px;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: var(--kafi-forest);
}

.proof .eyebrow,
.proof h2,
.proof .section-subtext {
  color: var(--kafi-white);
}

.proof .stat-row article {
  border-top-color: var(--kafi-lime);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.stat-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--kafi-lime);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.stat-row strong a {
  color: inherit;
  text-decoration: none;
}

.stat-row strong a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.stat-row span {
  color: var(--kafi-tint);
  font-weight: 700;
}

.section-subtext {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.status {
  grid-template-columns: 0.7fr 1fr;
}

.status-pills {
  display: grid;
  gap: 10px;
}

.waitlist {
  align-items: start;
}

.waitlist-copy p:not(.eyebrow) {
  max-width: 420px;
  color: var(--kafi-muted);
  font-size: 1.1rem;
}

.waitlist-form,
.survey-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-top: 6px solid var(--kafi-lime);
}

label,
fieldset {
  display: grid;
  gap: 8px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label > span {
  color: var(--kafi-forest);
  font-weight: 800;
}

fieldset label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--kafi-border);
  border-radius: 8px;
  background: var(--kafi-title-tint);
}

.consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--kafi-border);
  border-radius: 8px;
  background: #f7fbf1;
}

.consent-check input {
  margin-top: 4px;
}

.consent-check span {
  color: var(--kafi-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.terms-details {
  border: 1px solid var(--kafi-border);
  border-radius: 8px;
  background: var(--kafi-title-tint);
  color: var(--kafi-muted);
  font-size: 0.88rem;
}

.terms-details summary {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--kafi-forest);
  cursor: pointer;
  font-weight: 800;
}

.terms-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px 30px;
}

input[type="email"],
input[type="text"],
textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--kafi-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--kafi-ink);
  background: var(--kafi-white);
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(132, 204, 22, 0.78);
  outline-offset: 2px;
}

.survey-panel {
  grid-column: 2;
  margin-top: -18px;
}

.survey-panel h3 {
  margin: 0;
  color: var(--kafi-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.link-row {
  margin-top: 18px;
}

.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 36px 16px;
  color: var(--kafi-muted);
  background: var(--kafi-white);
  border-top: 1px solid var(--kafi-border);
  text-align: center;
}

.footer-links button {
  padding: 0;
}

.deck-dialog {
  width: min(480px, calc(100vw - 32px));
  border: 0;
  padding: 24px;
}

.deck-dialog::backdrop {
  background: rgba(15, 23, 41, 0.45);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--kafi-forest);
  background: var(--kafi-card);
  cursor: pointer;
}

.deck-form {
  display: grid;
  gap: 12px;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.76, 0.18, 1),
    transform 760ms cubic-bezier(0.2, 0.76, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes ambient-drift {
  0% {
    opacity: 0.58;
    transform: translate3d(-12px, 10px, 0) scale(0.96);
  }
  48% {
    opacity: 0.82;
    transform: translate3d(18px, -6px, 0) scale(1.02);
  }
  100% {
    opacity: 0.68;
    transform: translate3d(10px, 18px, 0) scale(1);
  }
}

@keyframes ambient-drift-mobile {
  0% {
    opacity: 0.58;
    transform: translate3d(0, 12px, 0) scale(0.96);
  }
  50% {
    opacity: 0.8;
    transform: translate3d(0, -4px, 0) scale(1.02);
  }
  100% {
    opacity: 0.68;
    transform: translate3d(0, 18px, 0) scale(1);
  }
}

@keyframes glow-line {
  0%, 100% {
    opacity: 0.34;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

@keyframes chat-scan {
  0%, 58%, 100% {
    opacity: 0;
    transform: translateX(-70%);
  }
  64%, 72% {
    opacity: 0.55;
  }
  82% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes message-one-cycle {
  0%, 2% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  5%, 88% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.99);
  }
}

@keyframes typing-one-cycle {
  0%, 8%, 20%, 100% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }
  11%, 16% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes message-two-cycle {
  0%, 17% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  22%, 88% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.99);
  }
}

@keyframes typing-two-cycle {
  0%, 45%, 58%, 100% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }
  48%, 54% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes message-three-cycle {
  0%, 55% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  60%, 88% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.99);
  }
}

@keyframes message-four-cycle {
  0%, 68% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.98);
  }
  73%, 88% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.99);
  }
}

@keyframes dots {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes soft-pulse {
  0%, 48%, 100% {
    box-shadow: 0 0 0 0 rgba(132, 204, 22, 0);
  }
  56%, 68% {
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal-item,
  .chat-sequence > .bubble {
    opacity: 1;
    transform: none;
  }

  .chat-sequence > .typing-dots {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .wedge,
  .waitlist,
  .status {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .scene-grid,
  .steps,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-strip {
    position: static;
    margin-top: 28px;
  }

  .survey-panel {
    grid-column: auto;
    margin-top: 0;
  }

}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    width: 92px;
  }

  .nav-link {
    display: none;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 56px 0;
  }

  .proof {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 80px 16px 56px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

  .phone {
    width: min(330px, 100%);
  }

  .phone-wrap::before {
    width: 100%;
    height: 78%;
    animation-name: ambient-drift-mobile;
  }

  .bubble {
    font-size: 0.84rem;
  }

  .scene-card,
  .step-card,
  .stat-row article,
  .waitlist-form,
  .survey-panel {
    padding: 18px;
  }

  .footer-links {
    justify-content: center;
  }
}
