/* ============================================================
   SAINT INTELLIGENCE | main stylesheet (v3)
   Mobile first. Navy = warna utama, putih = warna kedua,
   aksen = putih di latar navy, navy di section terang. Hijau WhatsApp cuma di dalam mockup chat.
   Warna komponen diatur lewat variabel per permukaan:
   default navy, section terang pakai .on-light (maks 3 per halaman).
   ============================================================ */

/* Font di-host sendiri (lisensi SIL OFL): Inter & JetBrains Mono, subset latin */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/Inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* palet dasar */
  --navy: #0A1A3F;
  --navy-deep: #060F26;
  --navy-panel: #10244F;
  --white: #FFFFFF;
  --gray: #F5F7FB;

  /* variabel permukaan (default = latar navy) */
  --bg: #0A1A3F;
  --fg: #FFFFFF;
  --muted: #C9D3E8;
  --dim: #A3B1CC;
  --border: rgba(201, 211, 232, .16);
  --border-strong: rgba(201, 211, 232, .32);
  --surface: #10244F;
  --tile: rgba(255, 255, 255, .05);
  --on-fg: #0A1A3F;          /* warna teks di atas blok berwarna --fg */
  --accent: #FFFFFF;          /* tombol utama, indikator, garis */
  --on-accent: #0A1A3F;       /* teks di atas blok --accent */
  --accent-hover: #DCE3F0;
  --accent-text: #FFFFFF;
  --accent-icon: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, .1);
  --thumb: #FFFFFF;
  --warn-fg: #FFD279;
  --warn-bg: rgba(255, 210, 121, .1);
  --focus: #FFFFFF;

  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);

  /* jarak judul ke teks (dipakai global) */
  --gap-eyebrow: 12px;   /* label kecil ke judul */
  --gap-h1: 22px;        /* H1 ke paragraf */
  --gap-h2: 18px;        /* H2 ke pengantar */
  --gap-card: 8px;       /* judul kartu ke isi */

  /* WhatsApp (dark theme), khusus mockup */
  --wa-bg: #0B141A;
  --wa-bar: #202C33;
  --wa-in: #202C33;
  --wa-out: #005C4B;
  --wa-text: #E9EDEF;
  --wa-meta: #8696A0;
  --wa-tick: #53BDEB;
  --wa-green: #00A884;
}

.on-light {
  --bg: #FFFFFF;
  --fg: #0A1A3F;
  --muted: #3F4B66;
  --dim: #5A6680;
  --border: #E1E6F0;
  --border-strong: #C9D1E1;
  --surface: #FFFFFF;
  --tile: #F5F7FB;
  --on-fg: #FFFFFF;
  --accent: #0A1A3F;
  --on-accent: #FFFFFF;
  --accent-hover: #1A2D5C;
  --accent-text: #0A1A3F;
  --accent-icon: #0A1A3F;
  --accent-soft: #EEF1F7;
  --thumb: var(--navy);
  --warn-fg: #8A5A00;
  --warn-bg: #FFF8E8;
  --focus: #0A1A3F;
  background: var(--bg);
  color: var(--fg);
}
.on-light.alt { --bg: #F5F7FB; --tile: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--fg); background: var(--navy);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }
h1 { font-size: clamp(36px, 9vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 6.4vw, 42px); letter-spacing: -0.03em; }
h3 { font-size: 19px; }
p { color: var(--muted); }
strong { color: var(--fg); font-weight: 600; }
.hl { color: var(--accent-icon); }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 300; background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 10px 16px; border-radius: 10px; transform: translateY(-80px); transition: transform .2s; }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

/* Pola titik: cuma di hero, sangat tipis */
.bg-dots { position: relative; isolation: isolate; overflow: hidden; }
.bg-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(201, 211, 232, .13) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); } }
.btn-ghost { border: 1.5px solid var(--fg); color: var(--fg); background: transparent; }
@media (hover: hover) { .btn-ghost:hover { background: var(--fg); color: var(--on-fg); } }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Kepala section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--gap-eyebrow);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.section { padding: 96px 0; position: relative; background: var(--bg); }
.section.alt:not(.on-light) { --bg: #060F26; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--gap-h2); font-size: 18px; max-width: 65ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .section { padding: 120px 0; } }

/* Judul kartu ke isi kartu: jarak rapat & seragam (kartu flex pakai gap lebih besar antar blok lain) */
.problem-card h3 + p, .ads-step h3 + p, .feat h3 + p, .feat h4 + p { margin-top: calc(var(--gap-card) - 16px); }
.ads-step h3 + p { margin-top: calc(var(--gap-card) - 14px); }
@media (min-width: 960px) { :root { --gap-h1: 28px; } }

/* ---------- Kartu: satu gaya, border tipis tanpa shadow ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s; }
.on-light.alt .card { background: #FFFFFF; }
@media (hover: hover) { .card-hover:hover { border-color: var(--border-strong); } }

.icon-box {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-icon); flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal (halus) ---------- */
/* ---------- Hero masuk berurutan (sekali saat load, total < 1,1 detik) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
.hero h1 .line { display: block; }
.js .hero-badge { animation: rise .6s var(--ease-soft) both; }
.js .hero h1 .line { animation: rise .7s var(--ease-soft) both; }
.js .hero h1 .line:nth-child(1) { animation-delay: .08s; }
.js .hero h1 .line:nth-child(2) { animation-delay: .2s; }
.js .hero-sub { animation: rise .6s var(--ease-soft) .34s both; }
.js .hero-ctas { animation: rise .6s var(--ease-soft) .44s both; }
.js .hero-note { animation: rise .6s var(--ease-soft) .5s both; }
.js .hero-visual { animation: rise-phone .8s var(--ease-soft) .25s both; }

/* Parallax tipis, cuma desktop (diaktifkan JS lewat .parallax di <html>) */
.parallax .hero.bg-dots::before { transform: translate3d(0, var(--py-bg, 0px), 0); will-change: transform; }
.parallax .hero-visual .phone { transform: translate3d(0, var(--py-phone, 0px), 0); will-change: transform; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease-soft), transform .65s var(--ease-soft); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; background: rgba(10, 26, 63, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { background: rgba(6, 15, 38, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-primary { display: none; }

.menu-btn { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border-strong); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(3, 8, 22, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer {
  position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; background: var(--navy-deep); border-top: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .35s var(--ease); visibility: hidden; max-height: 88vh; overflow-y: auto;
}
.drawer-handle { width: 44px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 14px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-head .mono { font-size: 13px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); font-size: 22px; color: var(--fg); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--fg); }
.drawer nav a::after { content: "→"; font-family: var(--mono); color: var(--accent); font-size: 16px; }
.drawer .btn { margin-top: 22px; width: 100%; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-open .drawer { transform: none; visibility: visible; }

@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .07); }
  .nav-actions .btn-primary { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--nav-h) + 44px) 0 80px; background: var(--navy); }
.hero-grid { display: grid; gap: 52px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent;
  font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-sub { margin-top: var(--gap-h1); font-size: 18px; max-width: 34em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--accent-icon); width: 16px; height: 16px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { height: 560px; }

@media (min-width: 640px) { .hero-ctas { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 120px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero-visual .phone { height: 600px; }
}
@media (max-width: 599px) { .hero-visual .phone { height: 520px; } }

/* ============================================================
   PHONE / WHATSAPP MOCKUP (hero & simulator), tetap seperti WA asli
   ============================================================ */
.phone {
  position: relative; width: 300px; max-width: 100%; height: 600px;
  border-radius: 44px; padding: 10px; background: #02060f;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(201, 211, 232, .14);
}
.phone-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; font-family: var(--font); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #02060f; z-index: 4; }
.wa-status { height: 34px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0; font-size: 12px; font-weight: 600; color: var(--wa-text); background: var(--wa-bar); }
.wa-header { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: var(--wa-bar); flex-shrink: 0; }
.wa-back { color: var(--wa-text); font-size: 18px; opacity: .8; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0B141A; background: linear-gradient(135deg, #FFFFFF, #C9D3E8); flex-shrink: 0; }
.wa-who { min-width: 0; flex: 1; }
.wa-name { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--wa-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-name svg { width: 14px; height: 14px; flex-shrink: 0; }
.wa-sub { font-size: 12px; color: var(--wa-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-sub.typing { color: var(--wa-green); }
.wa-chat {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px 14px;
  display: flex; flex-direction: column; gap: 6px; background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 18px 18px;
  scrollbar-width: none;
}
.wa-chat::-webkit-scrollbar { display: none; }
.wa-day { align-self: center; font-size: 12px; color: var(--wa-meta); background: #182229; padding: 4px 10px; border-radius: 8px; margin: 2px 0 6px; }
.wa-msg { position: relative; max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 15px; line-height: 1.4; color: var(--wa-text); white-space: pre-line; word-wrap: break-word; animation: msg-in .38s var(--ease-soft) both; }
.wa-msg.in { align-self: flex-start; transform-origin: 0 100%; background: var(--wa-in); border-top-left-radius: 3px; }
.wa-msg.out { align-self: flex-end; transform-origin: 100% 100%; background: var(--wa-out); border-top-right-radius: 3px; }
.wa-time { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: rgba(233, 237, 239, .6); margin-top: 2px; line-height: 1; }
.wa-time svg { width: 16px; height: 11px; color: var(--wa-tick); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.wa-typing { animation: msg-in .3s var(--ease-soft) both; transform-origin: 0 100%; align-self: flex-start; background: var(--wa-in); padding: 12px 14px; border-radius: 10px; border-top-left-radius: 3px; display: flex; gap: 4px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-meta); animation: blink 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.wa-ad { align-self: flex-end; max-width: 84%; background: var(--wa-out); border-radius: 10px; border-top-right-radius: 3px; padding: 4px; animation: msg-in .3s var(--ease) both; }
.wa-ad-card { background: rgba(0, 0, 0, .22); border-radius: 7px; padding: 8px 10px; border-left: 3px solid #7AE7C7; }
.wa-ad-label { font-size: 11px; color: rgba(233, 237, 239, .7); display: flex; align-items: center; gap: 4px; }
.wa-ad-label svg { width: 12px; height: 12px; }
.wa-ad-title { font-size: 14px; font-weight: 600; color: var(--wa-text); margin-top: 2px; }
.wa-ad-sub { font-size: 12px; color: rgba(233, 237, 239, .7); }
.wa-pay { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 9px 10px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--wa-tick); font-weight: 600; font-size: 14px; width: 100%; }
.wa-sys { align-self: center; max-width: 92%; text-align: center; font-size: 12px; color: #FFD279; background: #182229; padding: 6px 10px; border-radius: 8px; margin: 4px 0; animation: msg-in .3s var(--ease) both; }
.wa-compose { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: var(--wa-bg); flex-shrink: 0; }
.wa-input { flex: 1; height: 40px; border-radius: 20px; background: var(--wa-bar); color: var(--wa-meta); font-size: 14px; display: flex; align-items: center; padding: 0 14px; }
.wa-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--wa-green); display: grid; place-items: center; color: #0B141A; }
.wa-mic svg { width: 18px; height: 18px; }
.wa-replies { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 4px; background: var(--wa-bg); flex-shrink: 0; }
.wa-replies:empty { display: none; }
.wa-replies-label { font-size: 13px; color: var(--wa-text); text-align: center; font-weight: 600; animation: msg-in .3s var(--ease-soft) both; }
.wa-reply { position: relative; animation: msg-in .35s var(--ease-soft) both; min-height: 46px; padding: 8px 38px; border-radius: 22px; font-size: 15px; font-weight: 500; color: #7AE7C7; background: #1A262D; border: 1px solid rgba(122, 231, 199, .35); transition: background .2s, transform .15s; }
@media (hover: hover) { .wa-reply:hover { background: #22323B; } }
.wa-reply:active { transform: scale(.97); }
.wa-reply:nth-of-type(2) { animation-delay: .06s; }
.wa-reply:nth-of-type(3) { animation-delay: .12s; }
/* Denyut halus sampai user klik pertama kali */
@keyframes reply-ring { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.08, 1.35); } }
@keyframes tap-bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -4px); } }
.wa-replies.pulse .wa-reply::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid rgba(122, 231, 199, .7); pointer-events: none; animation: reply-ring 1.8s ease-out infinite; }
.wa-replies.pulse .wa-reply:nth-of-type(2)::after { animation-delay: .3s; }
.wa-replies.pulse .wa-reply:nth-of-type(3)::after { animation-delay: .6s; }
.tap-hint { position: absolute; right: 10px; top: 50%; margin-top: -11px; width: 22px; height: 22px; color: #fff; pointer-events: none; animation: tap-bob 1.1s ease-in-out infinite; }
.tap-hint svg { width: 22px; height: 22px; }
.wa-replies:not(.pulse) .tap-hint { display: none; }

/* Tab "Bisnis kamu?" di simulator */
.sim-yours { margin: auto 6px; padding: 22px 18px; border-radius: 14px; background: #182229; color: var(--wa-text); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sim-yours strong { color: #fff; font-size: 17px; }
.sim-yours p { color: #C4CDD3; font-size: 15px; line-height: 1.5; }
.sim-yours .btn { width: 100%; }

/* ============================================================
   MASALAH
   ============================================================ */
.problem-grid { display: grid; gap: 16px; }
.problem-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.problem-card h3 { font-size: 19px; }
.problem-card p { font-size: 16px; }
@media (min-width: 680px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   ADS KAMU, KAMI YANG PEGANG
   ============================================================ */
.ads-steps { display: grid; gap: 16px; counter-reset: ad; }
.ads-step { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.ads-step .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-text); }
.ads-step h3 { font-size: 19px; }
.ads-step p { font-size: 16px; }
.ads-note { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--dim); max-width: 65ch; }
.ads-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--accent-icon); }
@media (min-width: 680px) { .ads-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ads-steps { grid-template-columns: repeat(5, 1fr); } .ads-step { padding: 22px; } }

/* ============================================================
   CARA KERJA: garis mengalir (satu animasi menonjol)
   ============================================================ */
.flow { position: relative; --p: 0; }
.flow-track, .flow-fill { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; }
.flow-track { background: var(--border-strong); }
.flow-fill { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); }
.flow-steps { display: grid; gap: 14px; position: relative; }
.flow-step { position: relative; padding-left: 62px; }
.flow-node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--dim); transition: border-color .4s, color .4s, background .4s; z-index: 1;
}
.flow-node svg { width: 20px; height: 20px; }
.flow-step.on .flow-node { border-color: var(--accent); color: var(--accent-icon); background: #0B2B57; }
.flow-card { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); transition: border-color .25s; height: 100%; }
@media (hover: hover) { .flow-card:hover { border-color: var(--border-strong); } }
.flow-card.open { border-color: var(--accent-icon); }
.flow-btn { width: 100%; text-align: left; display: block; padding: 12px 16px 14px; min-height: 44px; border-radius: var(--radius-sm); }
.flow-num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); letter-spacing: .06em; }
.flow-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--fg); }
.flow-title .plus { font-family: var(--mono); color: var(--accent-icon); transition: transform .25s; flex-shrink: 0; }
.flow-btn[aria-expanded="true"] .plus { transform: rotate(45deg); }
.flow-detail { display: none; }
.flow-card.open .flow-detail { display: block; animation: fade-up .25s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.flow-detail p { font-size: 15.5px; padding: 0 16px 14px; }
@media (min-width: 1000px) {
  .flow-track, .flow-fill { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow-fill { transform-origin: left; transform: scaleX(var(--p)); }
  .flow-steps { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .flow-step { padding-left: 0; padding-top: 62px; }
}

/* ============================================================
   SIMULATOR (section navy)
   ============================================================ */
.sim-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted); transition: all .2s;
}
@media (hover: hover) { .chip:hover { color: var(--fg); border-color: var(--fg); } }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.chip.chip-yours { border-style: dashed; }
.sim-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sim-swipe { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 10px; display: none; }
@media (max-width: 959px) {
  .sim-swipe { display: block; }
  .sim-chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    margin-left: -20px; margin-right: -20px; padding: 2px 20px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .sim-chips::-webkit-scrollbar { display: none; }
  .sim-chips .chip { flex-shrink: 0; scroll-snap-align: start; white-space: nowrap; }
  .sim-chips.at-end { -webkit-mask-image: none; mask-image: none; }
}

.sim-layout { display: grid; gap: 24px; justify-items: center; }
.sim-phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sim-layout > * { min-width: 0; }
.sim-phone-col { width: 100%; }
.sim-phone-col .phone { width: min(340px, 100%); height: 640px; }
.sim-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sim-mode { font-family: var(--mono); font-size: 13px; color: var(--dim); text-align: center; }
@media (min-width: 960px) { .sim-label-row, .sim-chips { justify-content: center; } }

.sim-end-card { padding: 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.sim-end-card p { color: var(--fg); font-weight: 600; margin-bottom: 12px; }
.sim-end-card .btn { width: 100%; }
.sim-end { width: min(340px, 100%); }
.sim-end:empty { display: none; }
.sim-end-card { animation: msg-in .4s var(--ease) both; }
.sim-note { display: flex; gap: 8px; justify-content: center; align-items: flex-start; margin-top: 24px; font-size: 14px; color: var(--dim); text-align: center; }
.sim-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
@media (max-width: 380px) { .sim-phone-col .phone { height: 600px; } }

/* ============================================================
   FITUR
   ============================================================ */
.feat-group + .feat-group { margin-top: 56px; }
.feat-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.feat-group-head .mono { font-size: 13px; color: var(--accent-text); }
.feat-group-head h3 { font-size: 24px; }
.feat-grid { display: grid; gap: 16px; }
.feat { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.feat h3, .feat h4 { font-size: 18px; letter-spacing: -0.01em; }
.feat p { font-size: 16px; }
@media (min-width: 680px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } .feat-grid.four { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   KALKULATOR
   ============================================================ */
.calc { display: grid; gap: 20px; }
.calc-inputs { padding: 24px; display: grid; gap: 26px; }
.field label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-bottom: 4px; color: var(--fg); }
.field .hint { font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; }
.num-input { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--tile); padding: 0 10px; min-height: 48px; transition: border-color .2s; }
.num-input:focus-within { border-color: var(--accent-icon); }
.num-input span { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.num-input input { width: 100%; min-width: 0; background: none; border: 0; outline: none; padding: 10px 4px; font-family: var(--mono); font-size: 16px; text-align: right; color: var(--fg); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --fill: 50%; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-icon) var(--fill), var(--border-strong) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-icon) var(--fill), var(--border-strong) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 5px solid var(--thumb); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--thumb); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); }
.field-assume { padding-top: 22px; border-top: 1px dashed var(--border-strong); }
.assume-tag { font-family: var(--mono); font-size: 12px; color: var(--warn-fg); background: var(--warn-bg); padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.calc-out { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.out-label { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: .05em; text-transform: uppercase; }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.out-tile { padding: 14px; border-radius: 12px; background: var(--tile); }
.out-tile.wide { grid-column: 1 / -1; }
.out-tile .k { font-size: 14px; color: var(--muted); }
.out-tile .v { font-family: var(--mono); font-size: 22px; font-weight: 600; margin-top: 2px; word-break: break-word; color: var(--fg); }
.out-tile.wide .v { font-size: 26px; }
.out-scen { background: var(--accent-soft); }
.out-scen .v { color: var(--accent-text); }
.out-diff { font-size: 15px; color: var(--muted); }
.out-diff b { color: var(--accent-text); font-family: var(--mono); font-weight: 600; }
.disclaimer { display: flex; gap: 10px; font-size: 15px; color: var(--muted); padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); }
.disclaimer svg { width: 18px; height: 18px; color: var(--warn-fg); flex-shrink: 0; margin-top: 3px; }
@media (min-width: 960px) {
  .calc { grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
  .calc-inputs, .calc-out { padding: 30px; }
  .calc-out { position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* ============================================================
   STUDI KASUS (khusus /front-desk)
   ============================================================ */
.case { display: grid; gap: 28px; }
.case-intro { padding: 28px; }
.case-intro .who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.case-intro h3 { font-size: 22px; }
.case-intro .anon { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.case-stat { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.case-stat .big { font-family: var(--mono); font-size: 52px; font-weight: 600; color: var(--accent-icon); line-height: 1; }
.case-stat p { font-size: 15px; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding-left: 62px; }
.tl-item .flow-node { border-color: var(--accent); color: var(--accent-icon); }
.tl-item .card { padding: 18px 20px; }
.tl-item .mono { font-size: 12px; color: var(--accent-text); letter-spacing: .05em; text-transform: uppercase; }
.tl-item h3 { font-size: 17px; margin: 2px 0 var(--gap-card); }
.tl-item p { font-size: 15.5px; }
@media (min-width: 960px) {
  .case { grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
  .case-intro { position: sticky; top: calc(var(--nav-h) + 20px); padding: 32px; }
}

/* ============================================================
   PERBANDINGAN
   ============================================================ */
.compare { overflow: hidden; padding: 0; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 15px; }
.compare thead th { font-size: 16px; background: var(--tile); }
.compare thead th small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare tbody tr.key th { color: var(--fg); font-weight: 700; }
.compare td { text-align: center; width: 26%; }
.compare .yes { color: var(--accent-icon); }
.compare .no { color: var(--dim); }
.compare .yes svg, .compare .no svg { width: 22px; height: 22px; margin: 0 auto; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) {
  .compare th, .compare td { padding: 16px 22px; font-size: 16px; }
  .compare-ctas { flex-direction: row; justify-content: center; }
}

/* ============================================================
   PROSES MULAI
   ============================================================ */
.steps { display: grid; gap: 12px; }
.step { padding: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: var(--fg); background: var(--accent-soft); }
.step h3 { font-size: 18px; margin-bottom: var(--gap-card); }
.step p { font-size: 15.5px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } .step { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 20px; font-weight: 600; font-size: 17px; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent-icon); font-family: var(--mono); transition: transform .25s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 20px; max-width: 65ch; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }

/* ============================================================
   CTA / BANNER / FOOTER
   ============================================================ */
.cta-final { text-align: center; padding: 104px 0; }
.cta-final h2 { max-width: 760px; margin: 0 auto; }
.cta-final p { max-width: 560px; margin: var(--gap-h2) auto 0; font-size: 18px; }
.cta-final .eyebrow { justify-content: center; }
.cta-final .hero-ctas { justify-content: center; }
.banner { display: grid; gap: 18px; align-items: center; padding: 28px; }
.banner h2 { font-size: clamp(24px, 5vw, 32px); }
.banner p { margin-top: var(--gap-h2); max-width: 60ch; }
@media (min-width: 760px) { .banner { grid-template-columns: 1fr auto; padding: 36px; } }

.footer { background: var(--navy-deep); border-top: 1px solid var(--border); padding: 60px 0 calc(100px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 30px; }
.footer-logo img { height: 48px; width: auto; }
.footer p:not(.footer-h):not(.footer-copy) { font-size: 15px; margin-top: 14px; max-width: 360px; }
.footer .footer-h { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--accent); } }
.footer-copy { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 13px; color: var(--dim); }
@media (min-width: 760px) { .footer { padding-bottom: 56px; } .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Tombol WA sticky (mobile), pill di desktop */
.wa-sticky {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px;
  border: 1px solid rgba(10, 26, 63, .16); box-shadow: 0 10px 24px -10px rgba(6, 15, 38, .55);
  transition: transform .35s var(--ease), opacity .35s;
}
.wa-sticky svg { width: 22px; height: 22px; }
.wa-sticky.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 1000px) { .wa-sticky { left: auto; right: 24px; bottom: 24px; padding: 0 22px; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Teks isi minimal 16px (label mono kecil & isi mockup WA sengaja tetap kecil) */
.hero-note, .ads-note, .flow-detail p, .sim-note, .sim-yours p, .field .hint, .out-diff, .disclaimer,
.case-stat p, .tl-item p, .step p, .footer p:not(.footer-h):not(.footer-copy),
.compare tbody th, .compare td, .banner p { font-size: 16px; }
