/*
  Amerta ERP, landing page.

  Arah visual
  - Ungu aplikasi (#6d28d9 / #7c3aed) sebagai warna merek, supaya landing terasa satu keluarga dengan tangkapan layar produknya.
  - Amber "lentera" (#f2a33a) hanya untuk AI: ikon kilau, kartu briefing, dan blok AI. Nama perusahaannya Amerta Lentera Persada.
  - Tinta ungu gelap (#161030) untuk satu blok kontras (AI) dan teks.
  - Satu huruf: Plus Jakarta Sans (karya desainer Indonesia, juga dipakai aplikasi), disimpan lokal di assets/fonts.
  - Gerak otomatis hanya di hero (satu alur peristiwa ERP). Bagian lain hanya bergerak saat pengunjung berinteraksi.
*/

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfaff;
  --field: #f4f1fc;
  --card: #ffffff;
  --ink: #17122e;
  --ink-soft: #3a3356;
  --muted: #5c5672;
  --line: #e7e3f2;
  --line-strong: #d6cfea;

  --violet: #6d28d9;
  --violet-500: #7c3aed;
  --violet-hover: #5b21b6;
  --violet-soft: #efe9ff;
  --violet-ink: #5b21b6;

  --amber: #f2a33a;
  --amber-light: #ffc56e;

  --night: #161030;
  --night-2: #211a40;
  --night-line: #342b5c;
  --night-text: #f2eefc;
  --night-muted: #b9b0d6;

  --green: #15803d;
  --green-soft: #e3f5e9;
  --rose: #be3455;
  --rose-soft: #fdecef;

  --r-xl: 1.75rem;
  --r-lg: 1.125rem;
  --r-md: 0.875rem;
  --r-btn: 0.75rem;

  --sh-lg: 0 50px 100px -45px rgb(49 20 110 / 0.42), 0 18px 36px -20px rgb(23 18 46 / 0.2);
  --sh-md: 0 24px 48px -24px rgb(49 20 110 / 0.32), 0 2px 6px rgb(23 18 46 / 0.05);
  --sh-sm: 0 1px 2px rgb(23 18 46 / 0.05), 0 10px 24px -14px rgb(49 20 110 / 0.18);

  color-scheme: light;
}

/* ── Dasar ─────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.25rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.45rem + 2.6vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
figcaption { margin-top: 0.8rem; font-size: 0.875rem; color: var(--muted); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--violet-soft); color: var(--violet-ink); padding: 0.05em 0.35em; border-radius: 0.35rem; overflow-wrap: anywhere; }

a { color: var(--violet-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--violet); }
a[href], button, summary, [role="tab"] { cursor: pointer; }

:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 3px; border-radius: 0.4rem; }

.nowrap { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--card); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--r-md); box-shadow: var(--sh-sm);
}
.skip:focus { top: 1rem; }

/* ── Tombol ────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 44px; padding: 0.6rem 1.1rem; border-radius: var(--r-btn);
  font: inherit; font-weight: 700; font-size: 0.975rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; background: transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0.85rem 1.4rem; font-size: 1.025rem; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 22px -12px rgb(109 40 217 / 0.8); }
.btn--primary:hover { background: var(--violet-hover); color: #fff; }
.btn--ghost { color: var(--violet-ink); border-color: var(--line-strong); background: var(--card); }
.btn--ghost:hover { border-color: var(--violet-500); color: var(--violet-ink); }
.btn--quiet { color: var(--violet-ink); border-color: var(--line); background: var(--card); }
.btn--quiet:hover { border-color: var(--violet-500); color: var(--violet-ink); }
.btn--quiet:disabled { opacity: 0.45; cursor: default; }
.btn--light { background: #fff; color: #3b1380; }
.btn--light:hover { background: #f1ebff; color: #3b1380; }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

/* ── Header ────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6), 0 6px 20px -18px rgb(23 18 46 / 0.35);
  transition: box-shadow .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .top { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(12px); }
}
.top.is-scrolled { box-shadow: 0 10px 28px -20px rgb(23 18 46 / 0.45); }
.top__bar { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand__mark { width: auto; height: 2.85rem; margin-right: 0.35rem; flex: none; }
.brand:hover { color: var(--ink); }
.brand__word { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand__erp { font-weight: 800; font-size: 0.75rem; color: #fff; background: var(--violet); padding: 0.16rem 0.42rem; border-radius: 0.42rem; letter-spacing: 0.03em; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: var(--r-btn);
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:not(.btn):hover { background: var(--violet-soft); color: var(--violet-ink); }
.nav a:not(.btn).is-active { color: var(--violet-ink); background: var(--violet-soft); }
.nav__cta-li { margin-left: 0.6rem; }

.menu-btn {
  display: none; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.85rem; margin-left: auto;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  font: inherit; font-weight: 700; font-size: 0.95rem;
}
.menu-btn .ico { width: 1.35rem; height: 1.35rem; }

@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgb(23 18 46 / 0.4);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.25rem; gap: 0.1rem; }
  .nav a:not(.btn) { width: 100%; }
  .nav__cta-li { margin: 0.6rem 0 0; }
  .nav__cta { width: 100%; }
}

/* ── Hero ──────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) 0 clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
.hero::before {
  /* Kisi tipis seperti kertas buku besar, memudar ke tepi. Hanya di belakang ilustrasi. */
  content: ""; position: absolute; inset: 0 0 0 38%; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(60% 65% at 55% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 65% at 55% 45%, #000 20%, transparent 75%);
  opacity: 0.75;
}

.hero__grid { display: grid; grid-template-areas: "head" "visual" "body"; gap: 1.5rem; }
.hero__head { grid-area: head; }
.hero__visual { grid-area: visual; }
.hero__body { grid-area: body; }
@media (min-width: 1080px) {
  .hero__body .lead { margin-top: 1.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head visual" "body visual"; grid-template-rows: auto 1fr; column-gap: 3rem; row-gap: 0; }
  .hero__head { align-self: end; }
  .hero__body { align-self: start; }
  .hero__visual { align-self: center; margin-right: calc(-1 * clamp(0px, (100vw - 1240px) / 2 - 1.5rem, 3rem)); }
}

.hero h1 { max-width: 15ch; text-wrap: wrap; font-size: clamp(2.4rem, 1rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.lead { margin-top: 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.62; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__assure { list-style: none; margin: 1.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; font-size: 0.925rem; color: var(--ink-soft); font-weight: 500; }
.hero__assure li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__assure .ico { color: var(--violet); stroke-width: 2.4; width: 1rem; height: 1rem; }

.hero__visual { container-type: inline-size; position: relative; min-width: 0; }
.hero__cap { margin-top: 0.75rem; font-size: 0.8rem; }
@media (min-width: 1080px) { .hero__cap { text-align: right; } }

/* Panggung ilustrasi: semua ukuran di dalamnya memakai em, sehingga ikut menyusut bersama lebar kolom. */
.stage { position: relative; font-size: clamp(7.5px, 1.78cqi, 13.5px); padding: 1.2em 0 6em 2.6em; line-height: 1.4; }

.mock {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 1.3em; overflow: hidden;
  box-shadow: var(--sh-lg);
}
.mock__bar { display: flex; align-items: center; gap: 1.4em; height: 3.5em; padding: 0 1.2em; border-bottom: 1px solid #eeeaf6; font-size: 0.92em; }
.mock__logo { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: -0.02em; font-size: 1.1em; white-space: nowrap; }
.mock__logo img { width: auto; height: 1.65em; margin-right: 0.35em; }
.mock__logo b { margin-left: 0.25em; background: var(--violet); color: #fff; font-size: 0.62em; padding: 0.12em 0.35em; border-radius: 0.35em; vertical-align: 0.2em; }
.mock__nav { display: flex; gap: 0.15em; color: #4b4560; font-weight: 600; white-space: nowrap; overflow: hidden; font-size: 0.92em; }
.mock__nav span { padding: 0.45em 0.7em; border-radius: 0.6em; }
.mock__nav .is-on { background: var(--violet-soft); color: var(--violet-ink); }
.mock__tools { margin-left: auto; display: flex; align-items: center; gap: 0.7em; color: #4b4560; }
.mock__tools .ico { width: 1.35em; height: 1.35em; display: block; }
.mock__ai { color: #d48712; }
.mock__avatar { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85em; }

.mock__body { padding: 1.2em 1.3em 1.35em; background: #f8f7fc; }
.mock__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: 1em; }
.mock__head strong { display: block; font-size: 1.3em; font-weight: 800; letter-spacing: -0.02em; }
.mock__head span { color: var(--muted); font-size: 0.85em; }
.mock__pills { display: flex; gap: 0.45em; }
.mock__pills span { background: #fff; border: 1px solid #e3def0; padding: 0.45em 0.8em; border-radius: 0.6em; font-weight: 600; color: var(--ink); white-space: nowrap; }

.mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7em; }
.kpi {
  --k-bg: #f0ebff; --k-ico: #7c3aed;
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.65em; align-items: center;
  padding: 0.85em 0.8em; border-radius: 1em; background: var(--k-bg);
  transition: box-shadow .35s ease, transform .35s ease;
}
.kpi--teal { --k-bg: #e2f4f2; --k-ico: #0d9488; }
.kpi--amber { --k-bg: #fff0dc; --k-ico: #d97706; }
.kpi--rose { --k-bg: #fde8f0; --k-ico: #db2777; }
.kpi__ico { grid-row: 1 / span 2; width: 2.35em; height: 2.35em; border-radius: 50%; background: var(--k-ico); color: #fff; display: grid; place-items: center; }
.kpi__ico .ico { width: 1.2em; height: 1.2em; }
.kpi__label { font-size: 0.78em; color: #4b4560; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { font-size: 1.2em; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.kpi__delta {
  position: absolute; top: -0.7em; right: 0.5em; font-size: 0.72em; font-weight: 800; padding: 0.2em 0.55em; border-radius: 99em;
  background: #fff; color: var(--green); box-shadow: 0 4px 12px -4px rgb(23 18 46 / 0.25);
  opacity: 0; transform: translateY(0.4em); transition: opacity .3s ease, transform .3s ease; pointer-events: none; white-space: nowrap;
}
.kpi__delta.is-down { color: var(--rose); }
.kpi__delta.is-show { opacity: 1; transform: none; }
.kpi.is-hit { box-shadow: 0 0 0 0.16em var(--k-ico), 0 10px 20px -10px var(--k-ico); transform: translateY(-0.15em); }

.mock__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0.7em; margin-top: 0.7em; }
.mcard { background: #fff; border: 1px solid #ece8f5; border-radius: 1em; padding: 0.95em 1em; min-width: 0; }
.mcard__head { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; font-size: 0.85em; margin-bottom: 0.7em; }
.mcard__head strong { font-weight: 700; white-space: nowrap; }
.mcard__legend { color: var(--muted); font-size: 0.88em; display: flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.mcard__legend i { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--violet-500); }
.mcard__legend i.is-dash { width: 1em; height: 0; border-radius: 0; background: none; border-top: 2px dashed #a8a2bd; margin-left: 0.5em; }

.chart { display: block; width: 100%; height: 10.5em; overflow: visible; }
.chart__grid path { stroke: #efecf6; stroke-width: 1; fill: none; }
.chart__cmp { fill: none; stroke: #b2acc6; stroke-width: 1.6; stroke-dasharray: 4 4; }
.chart__area { fill: url(#chart-fill); }
.chart__line { fill: none; stroke: var(--violet-500); stroke-width: 2.4; stroke-linecap: round; }
.chart__dot { fill: var(--violet-500); stroke: #fff; stroke-width: 2; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li {
  display: grid; grid-template-columns: 2.3em minmax(0, 1fr) auto; gap: 0.6em; align-items: center;
  padding: 0.5em 0.15em; border-top: 1px solid #f1eef7; font-size: 0.8em;
}
.feed li:first-child { border-top: 0; }
.feed__ico { width: 2.3em; height: 2.3em; border-radius: 0.65em; display: grid; place-items: center; background: #f0ebff; color: var(--violet-500); }
.feed__ico .ico { width: 1.15em; height: 1.15em; }
.feed__ico--teal { background: #e2f4f2; color: #0d9488; }
.feed__ico--amber { background: #fff0dc; color: #c26a04; }
.feed__ico--rose { background: #fde8f0; color: #db2777; }
.feed__txt { display: grid; min-width: 0; }
.feed__txt b, .feed__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__txt b { font-weight: 700; }
.feed__txt small { font-size: 0.88em; color: var(--muted); }
.feed__amt { display: grid; justify-items: end; }
.feed__amt b { font-weight: 700; white-space: nowrap; }
.feed__amt small { font-size: 0.78em; font-weight: 700; color: var(--green); }
.feed li.is-new { animation: feed-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-0.8em); background: var(--violet-soft); }
  60% { background: var(--violet-soft); }
  to { opacity: 1; transform: none; background: transparent; }
}

/* Kartu peristiwa posting */
.post {
  position: absolute; left: 0; bottom: 0; width: 21.5em;
  background: #fff; border: 1px solid #e9e4f6; border-radius: 1.15em; padding: 1.05em 1.1em 0.9em;
  box-shadow: 0 30px 60px -28px rgb(49 20 110 / 0.5), 0 4px 10px rgb(23 18 46 / 0.06);
}
.post__head { display: flex; align-items: center; gap: 0.7em; }
.post__ico { width: 2.5em; height: 2.5em; border-radius: 0.75em; background: var(--violet-soft); color: var(--violet-500); display: grid; place-items: center; flex: none; }
.post__ico .ico { width: 1.25em; height: 1.25em; }
.post__title { display: grid; min-width: 0; }
.post__title strong { font-size: 1em; font-weight: 800; letter-spacing: -0.01em; }
.post__title span { font-size: 0.78em; color: var(--muted); }
.post__chip { margin-left: auto; font-size: 0.72em; font-weight: 800; color: var(--green); background: var(--green-soft); padding: 0.3em 0.65em; border-radius: 99em; white-space: nowrap; }
.post__meta { display: flex; justify-content: space-between; gap: 1em; margin-top: 0.8em; padding: 0.6em 0.8em; background: #f8f7fc; border-radius: 0.7em; font-size: 0.86em; }
.post__meta span { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__meta strong { white-space: nowrap; }
.post__label { margin-top: 0.85em; font-size: 0.74em; font-weight: 700; color: var(--muted); }
.post__fx { list-style: none; margin: 0.35em 0 0; padding: 0; display: grid; }
.post__fx li { display: flex; align-items: center; gap: 0.6em; padding: 0.32em 0; font-size: 0.84em; color: #a19bb6; transition: color .3s ease; }
.post__tick { width: 1.4em; height: 1.4em; flex: none; border-radius: 50%; border: 1.5px solid #d8d2e8; display: grid; place-items: center; transition: background-color .3s ease, border-color .3s ease; }
.post__tick .ico { width: 0.9em; height: 0.9em; color: #fff; stroke-width: 3; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.post__fx li.is-done { color: var(--ink); }
.post__fx li.is-done .post__tick { background: var(--violet-500); border-color: var(--violet-500); }
.post__fx li.is-done .post__tick .ico { transform: scale(1); }
.post__in.is-swap { animation: post-swap .55s ease; }
@keyframes post-swap {
  0% { opacity: 1; transform: none; }
  40% { opacity: 0; transform: translateY(0.5em); }
  100% { opacity: 1; transform: none; }
}

/* Kartu briefing AI */
.brief {
  position: absolute; right: 0; bottom: 1.3em; width: 19em;
  background: var(--night); color: var(--night-text); border: 1px solid #2f2656; border-radius: 1.15em; padding: 1em 1.1em 0.95em;
  box-shadow: 0 34px 60px -26px rgb(22 16 48 / 0.65);
}
.brief__head { display: flex; align-items: center; gap: 0.5em; font-size: 0.86em; }
.brief__head .ico { color: var(--amber); width: 1.3em; height: 1.3em; }
.brief__head span { margin-left: auto; color: var(--night-muted); font-size: 0.9em; }
.brief__text { margin-top: 0.6em; font-size: 0.86em; line-height: 1.5; min-height: 6em; }
@container (max-width: 600px) { .brief__text { min-height: 4.5em; } }
.brief__text.is-typing::after { content: ""; display: inline-block; width: 0.45em; height: 1em; margin-left: 0.1em; vertical-align: -0.12em; background: var(--amber); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.brief__foot { margin-top: 0.7em; display: flex; justify-content: space-between; align-items: center; gap: 0.5em; font-size: 0.72em; }
.brief__chip { background: rgb(242 163 58 / 0.16); color: var(--amber-light); padding: 0.3em 0.7em; border-radius: 99em; font-weight: 700; white-space: nowrap; }
.brief__src { color: var(--night-muted); white-space: nowrap; }

/* Urutan masuk saat halaman dibuka: satu-satunya gerak otomatis di halaman, murni CSS sehingga tetap jalan bila JS gagal. */
@media (prefers-reduced-motion: no-preference) {
  .stage .mock { animation: rise-in .9s cubic-bezier(.2,.8,.2,1) both; }
  .stage .post { animation: left-in .8s .9s cubic-bezier(.2,.8,.2,1) both; }
  .stage .brief { animation: rise-in .8s 1.5s cubic-bezier(.2,.8,.2,1) both; }
  .chart__line { stroke-dasharray: 1; animation: draw 1.6s .5s ease-out both; }
  .chart__area { animation: fade .8s 1.4s ease both; }
  .chart__dot { transform-box: fill-box; transform-origin: center; animation: fade .3s 2s ease both, pulse 2.4s 2.3s ease-in-out infinite; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(1.5em) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes left-in { from { opacity: 0; transform: translateX(-1.5em); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Kolom sempit (HP, tablet kecil): tata ulang isi ilustrasi */
@container (max-width: 760px) {
  .mock__nav span:nth-child(n + 5) { display: none; }
}
@container (max-width: 600px) {
  .stage { font-size: clamp(9.5px, 2.75cqi, 13px); padding: 0; }
  .mock__nav span:not(.is-on) { display: none; }
  .mock__pills span:last-child { display: none; }
  .mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__row { grid-template-columns: minmax(0, 1fr); }
  .mcard--chart { display: none; }
  .post { position: relative; left: auto; bottom: auto; width: auto; margin: -2em 0.9em 0; }
  .brief { position: relative; right: auto; bottom: auto; width: auto; margin: 0.75em 0.9em 0 2.5em; }
}

/* ── Bukti & kecocokan ─────────────────────────────── */

.proof {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: grid; gap: 1rem 2.5rem; align-items: center;
}
.proof > p { color: var(--ink-soft); max-width: 46ch; }
.proof__fit { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.proof__fit li { padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 99em; background: var(--card); font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.proof__fit .proof__label { border: 0; background: none; padding: 0.4rem 0.25rem 0.4rem 0; color: var(--muted); font-weight: 600; }
@media (min-width: 1080px) { .proof { grid-template-columns: auto minmax(0, 1fr); } .proof__fit { justify-content: flex-end; } }

/* ── Bagian umum ───────────────────────────────────── */

.sec { padding: clamp(2.75rem, 2rem + 2.5vw, 4.5rem) 0; }
.sec--field { background: var(--field); }
.sec__head { max-width: 48rem; margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.sec__head p { margin-top: 0.75rem; color: var(--muted); font-size: 1.075rem; max-width: 62ch; }
.sec__head--split { max-width: none; display: grid; gap: 0.75rem 3.5rem; align-items: end; }
@media (min-width: 960px) {
  .sec__head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .sec__head--split p { margin-top: 0; }
}

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.ticks li { position: relative; padding-left: 1.85rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.75 4.5 4.5L19 7.25'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.frame img { width: 100%; }
@media (max-width: 640px) {
  .frame--crop { aspect-ratio: 1 / 1; }
  .frame--crop img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
}

/* ── Masalah: tabel perbandingan ───────────────────── */

.versus { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.versus__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.versus__row + .versus__row { border-top: 1px solid var(--line); }
.versus__row--head span { padding: 1rem 1.5rem; font-weight: 800; font-size: 0.95rem; }
.versus__row--head span:first-child { color: var(--muted); background: #faf9fd; }
.versus__row--head span:last-child { color: var(--violet-ink); background: var(--violet-soft); }
.versus__row p { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1.15rem 1.5rem; }
.versus__row p:first-child { color: var(--muted); }
.versus__row p:last-child { color: var(--ink); font-weight: 600; background: #fcfbff; border-left: 1px solid var(--line); }
.versus .ico { width: 1.45rem; height: 1.45rem; padding: 0.22rem; border-radius: 50%; margin-top: 0.05rem; stroke-width: 2.6; }
.versus p:first-child .ico { background: var(--rose-soft); color: var(--rose); }
.versus p:last-child .ico { background: var(--violet); color: #fff; }
@media (max-width: 720px) {
  .versus__row--head { display: none; }
  .versus__row { grid-template-columns: minmax(0, 1fr); }
  .versus__row + .versus__row { border-top: 1px solid var(--line-strong); }
  .versus__row p { padding: 0.95rem 1.15rem; }
  .versus__row p:last-child { border-left: 0; border-top: 1px dashed var(--line); }
}

/* ── Alur kerja antarunit ──────────────────────────── */

.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem); box-shadow: var(--sh-sm); }
.flow__rail { --p: 0%; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.flow__rail::before, .flow__rail::after {
  content: ""; position: absolute; top: 1.6rem; left: calc(100% / 12); height: 2px; border-radius: 2px;
}
.flow__rail::before { right: calc(100% / 12); background: var(--line-strong); }
.flow__rail::after { width: calc((100% - 100% / 6) * var(--p-num, 0)); background: var(--violet-500); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.flow__rail [role="tab"] {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 0.55rem;
  padding: 0 0.25rem 0.5rem; background: none; border: 0; font: inherit; color: var(--muted); text-align: center; border-radius: var(--r-md);
}
.flow__rail [role="tab"] > .ico {
  width: 3.2rem; height: 3.2rem; padding: 0.8rem; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); color: var(--muted);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.flow__name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; display: inline-flex; align-items: baseline; gap: 0.35rem; }
.flow__num { position: absolute; top: -0.35rem; left: calc(50% + 0.85rem); z-index: 1; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 99em; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--violet-ink); background: var(--violet-soft); border: 2px solid var(--card); }
.flow__rail [role="tab"][aria-selected="true"] .flow__num { background: var(--ink); color: #fff; }
.flow__rail [role="tab"]:hover > .ico { border-color: var(--violet-500); color: var(--violet-500); }
.flow__rail [role="tab"].is-done > .ico { border-color: var(--violet-500); color: var(--violet-500); }
.flow__rail [role="tab"][aria-selected="true"] { color: var(--ink); }
.flow__rail [role="tab"][aria-selected="true"] > .ico { background: var(--violet); border-color: var(--violet); color: #fff; transform: scale(1.08); box-shadow: 0 10px 22px -10px rgb(109 40 217 / 0.8); }

.flow__panel { display: grid; gap: 1.25rem 2.5rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.flow__panel:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) { .flow__panel:not([hidden]) { animation: panel-in .4s cubic-bezier(.2,.8,.2,1); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
.flow__col h3 { font-size: 0.95rem; font-weight: 800; color: var(--muted); }
.flow__col ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.flow__col li { position: relative; padding-left: 1.6rem; }
.flow__col li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 2px solid var(--line-strong); }
.flow__col--auto { background: #f7f3ff; border: 1px solid #e6dcff; border-radius: var(--r-md); padding: 1.25rem 1.4rem; }
.flow__col--auto h3 { color: var(--violet-ink); }
.flow__col--auto li::before {
  left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border: 0;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.75 4.5 4.5L19 7.25'/%3E%3C/svg%3E") center / 0.68rem no-repeat;
}
.flow__gain { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); font-weight: 700; letter-spacing: -0.01em; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid var(--violet-500); }
@media (min-width: 860px) {
  .flow__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__gain { grid-column: 1 / -1; }
}
.flow__nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.75rem; }

@media (max-width: 860px) {
  .flow__rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(7.25rem, 1fr);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -0.5rem; padding-inline: 0.5rem;
  }
  .flow__rail::-webkit-scrollbar { display: none; }
  .flow__rail::before, .flow__rail::after { display: none; }
  .flow__rail [role="tab"] { scroll-snap-align: center; }
}
@media (max-width: 520px) {
  .flow__nav .btn span { display: none; }
  .flow__nav .btn { min-width: 48px; }
}

/* ── Tab owner ─────────────────────────────────────── */

.tabs__list {
  display: inline-flex; gap: 0.25rem; padding: 0.3rem; margin-bottom: 2rem; max-width: 100%;
  background: var(--field); border: 1px solid var(--line); border-radius: 0.95rem;
}
.tabs__list [role="tab"] {
  min-height: 44px; padding: 0 1.15rem; border: 0; border-radius: 0.7rem; background: transparent;
  font: inherit; font-weight: 700; font-size: 0.975rem; color: var(--muted); transition: background-color .15s ease, color .15s ease;
}
.tabs__list [role="tab"]:hover { color: var(--ink); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--card); color: var(--violet-ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), inset 0 -2px 0 var(--violet-500); }
.tabs__panel:focus-visible { outline-offset: 6px; }

.owner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .owner { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); gap: 3.5rem; } }
.qa { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.qa li { padding-left: 1rem; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 0.985rem; }
.qa strong { display: block; color: var(--ink); font-weight: 700; font-size: 1.025rem; margin-bottom: 0.1rem; }

/* ── AI (blok gelap) ───────────────────────────────── */

.sec--night { background: var(--night); color: var(--night-text); position: relative; isolation: isolate; overflow: hidden; }
.sec--night::before {
  /* Cahaya lentera: satu sumber cahaya hangat di pojok kanan atas blok AI. */
  content: ""; position: absolute; z-index: -1; right: -18rem; top: -22rem; width: 48rem; height: 48rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(242 163 58 / 0.18), transparent 62%);
}
.sec--night h2 { color: #fff; }
.sec--night .sec__head p { color: var(--night-muted); }
.sec--night :focus-visible { outline-color: var(--amber-light); }

.aitabs { display: grid; gap: 1.75rem; }
@media (min-width: 1080px) { .aitabs { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.62fr); gap: 3.5rem; align-items: start; } }
.aitabs__list { display: grid; gap: 0.5rem; }
.aitabs__list [role="tab"] {
  position: relative; display: grid; gap: 0.25rem; text-align: left; padding: 1rem 1.15rem 1rem 1.35rem;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-md); font: inherit; color: var(--night-muted);
  transition: background-color .15s ease, border-color .15s ease;
}
.aitabs__list [role="tab"] strong { color: var(--night-text); font-size: 1.05rem; font-weight: 700; }
.aitabs__list [role="tab"] span { font-size: 0.925rem; line-height: 1.45; }
.aitabs__list [role="tab"]:hover { background: rgb(255 255 255 / 0.04); }
.aitabs__list [role="tab"][aria-selected="true"] { background: var(--night-2); border-color: var(--night-line); }
.aitabs__list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 3px; background: var(--amber); }

@media (max-width: 1079px) {
  .aitabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aitabs__list [role="tab"] { padding: 0.8rem 0.95rem 0.8rem 1.1rem; border-color: var(--night-line); }
  .aitabs__list [role="tab"] strong { font-size: 0.95rem; line-height: 1.3; }
  .aitabs__list [role="tab"] span { display: none; }
}
.aitabs__panel > p:first-child, .aitabs__text > p:first-child { color: var(--night-muted); max-width: 64ch; }
.aitabs__points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.aitabs__points li { padding-left: 1rem; border-left: 2px solid var(--night-line); color: var(--night-muted); font-size: 0.975rem; }
.aitabs__points strong { display: block; color: var(--night-text); }
@media (min-width: 760px) {
  .aitabs__panel--tall { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .aitabs__panel--tall .aitabs__shot { order: -1; margin-top: 0; }
}
.aitabs__panel:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) { .aitabs__panel:not([hidden]) { animation: panel-in .4s cubic-bezier(.2,.8,.2,1); } }
.aitabs__shot { margin-top: 1.5rem; }
.aitabs__shot--tall { max-width: 25rem; }
.aitabs__shot figcaption, .aitabs__note { color: var(--night-muted); font-size: 0.85rem; margin-top: 0.8rem; }
.frame--night { border-color: var(--night-line); background: #121016; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8); }

/* Ilustrasi baca nota */
.nota { margin-top: 1.75rem; display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 700px) { .nota { grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.2fr); gap: 1.5rem; } }
.nota__paper {
  background: #fffdf6; color: #2b2420; padding: 1.25rem 1.25rem 1.4rem; border-radius: 0.3rem;
  font-family: "Courier New", ui-monospace, monospace; font-size: 0.84rem; line-height: 1.45;
  transform: rotate(-2deg); box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.7);
}
.nota__paper strong { display: block; letter-spacing: 0.06em; }
.nota__paper dl { margin: 0.85rem 0; padding: 0.6rem 0; border-block: 1px dashed #b8ad97; display: grid; gap: 0.45rem; }
.nota__paper dl div { display: flex; justify-content: space-between; gap: 0.75rem; }
.nota__paper dt { white-space: nowrap; }
.nota__paper dd { margin: 0; white-space: nowrap; }
.nota__paper > p { display: flex; justify-content: space-between; }
.nota__arrow { display: grid; justify-items: center; gap: 0.35rem; color: var(--amber-light); font-size: 0.8rem; font-weight: 700; }
.nota__arrow .ico { width: 2rem; height: 2rem; color: var(--amber); }
.nota__form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 1.15rem 1.2rem; display: grid; gap: 0.7rem; font-size: 0.9rem; }
.nota__title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: #fff; }
.nota__title span { font-size: 0.72rem; background: rgb(242 163 58 / 0.16); color: var(--amber-light); border-radius: 99em; padding: 0.15rem 0.6rem; font-weight: 700; }
.nota__field { display: grid; gap: 0.2rem; }
.nota__field span { color: var(--night-muted); font-size: 0.78rem; }
.nota__field b { background: #130e28; border: 1px solid rgb(242 163 58 / 0.45); border-radius: 0.5rem; padding: 0.4rem 0.65rem; color: #fff; font-weight: 600; }
.nota__lines div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--night-line); font-size: 0.85rem; }
.nota__lines div span:not(:first-child) { text-align: right; }
.nota__total { display: flex; justify-content: space-between; font-weight: 800; color: #fff; padding-top: 0.55rem; border-top: 1px solid var(--night-line); }
.nota__save { justify-self: end; background: var(--violet-500); color: #fff; padding: 0.45rem 0.9rem; border-radius: 0.6rem; font-weight: 700; font-size: 0.85rem; }
@media (max-width: 699px) { .nota__arrow .ico { transform: rotate(90deg); } .nota__paper { transform: rotate(-1deg); } }

/* Ilustrasi asisten WhatsApp */
.wa { margin-top: 1.75rem; max-width: 27rem; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--night-line); background: #120d26; }
.wa__top { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: var(--night-2); border-bottom: 1px solid var(--night-line); }
.wa__top strong { display: block; color: #fff; }
.wa__top small { color: var(--night-muted); font-size: 0.8rem; }
.wa__avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--amber); color: var(--night); display: grid; place-items: center; }
.wa__avatar .ico { width: 1.3rem; height: 1.3rem; stroke-width: 1.8; }
.wa__chat { padding: 1.1rem 1rem 1.25rem; display: grid; gap: 0.6rem; }
.wa__msg { max-width: 86%; padding: 0.6rem 0.85rem; border-radius: 0.95rem 0.95rem 0.95rem 0.3rem; background: var(--night-2); color: var(--night-text); font-size: 0.92rem; line-height: 1.5; justify-self: start; }
.wa__msg--me { justify-self: end; background: #4f2ab0; color: #fff; border-radius: 0.95rem 0.95rem 0.3rem 0.95rem; }

.ai-principles { list-style: none; margin: clamp(2rem, 1.5rem + 1.5vw, 2.75rem) 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--night-line); display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 860px) { .ai-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-principles li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ai-principles .ico { width: 1.6rem; height: 1.6rem; color: var(--amber); margin-top: 0.1rem; }
.ai-principles strong { color: #fff; }
.ai-principles p { color: var(--night-muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* ── Dua kolom: stok, keuangan ─────────────────────── */

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; } }
.split__lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.075rem; max-width: 58ch; }

.trail { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--sh-md); }
.trail__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.925rem; color: var(--ink-soft); padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px dashed var(--line-strong); }
.trail__tag .ico { color: var(--violet); }
.trail__tag span { background: var(--violet-soft); color: var(--violet-ink); padding: 0.15rem 0.55rem; border-radius: 0.4rem; letter-spacing: 0.04em; }
.trail ol { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: t; }
.trail ol::before { content: ""; position: absolute; left: 1.05rem; top: 1.6rem; bottom: 1.6rem; width: 2px; background: repeating-linear-gradient(180deg, var(--violet-500) 0 6px, transparent 6px 12px); opacity: 0.5; }
.trail li { counter-increment: t; position: relative; display: grid; gap: 0.1rem; padding: 0.85rem 0 0.85rem 3.25rem; }
.trail li::before {
  content: counter(t); position: absolute; left: 0; top: 0.9rem; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 2px solid var(--violet-500); color: var(--violet-ink); font-weight: 800; font-size: 0.9rem;
}
.trail__step { font-size: 0.8rem; font-weight: 800; color: var(--violet-ink); }
.trail strong { font-size: 1.05rem; }
.trail li > span:last-child { color: var(--muted); font-size: 0.95rem; }

/* ── Kasir ─────────────────────────────────────────── */

.kasir { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .kasir { grid-template-columns: 300px minmax(0, 1fr); gap: 3.5rem; } }
.kasir__phone { justify-self: center; width: min(290px, 78vw); text-align: center; }
.phone { border-radius: 2.5rem; border: 9px solid var(--ink); overflow: hidden; box-shadow: var(--sh-lg); background: var(--ink); }
.facts { margin: 1.5rem 0 0; display: grid; gap: 1.1rem 2rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts dt { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.facts dt .ico { color: var(--violet); width: 1.35rem; height: 1.35rem; }
.facts dd { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.975rem; }

/* ── Keuangan ──────────────────────────────────────── */

.keu { display: grid; gap: 1rem; margin-top: 1.5rem; }
.keu > div { padding-left: 1.1rem; border-left: 2px solid var(--line-strong); }
.keu h3 { font-size: 1.05rem; }
.keu p { margin-top: 0.3rem; color: var(--muted); font-size: 0.975rem; }

.journal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.journal__head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.journal__ico { width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.journal__ico .ico { width: 1.4rem; height: 1.4rem; }
.journal__head strong { display: block; }
.journal__head span { font-size: 0.875rem; color: var(--muted); }
.journal__label { margin-top: 1.1rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.journal table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.95rem; }
.journal th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 700; padding: 0.5rem; border-bottom: 1px solid var(--line); }
.journal td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #f0edf7; }
.journal th:not(:first-child), .journal td:not(:first-child) { text-align: right; white-space: nowrap; }
.journal td.is-cr { padding-left: 1.75rem; }
.journal tr.is-gap td { border-top: 1px dashed var(--line-strong); }
.journal tfoot th, .journal tfoot td { font-weight: 800; color: var(--violet-ink); border-bottom: 0; padding-top: 0.8rem; font-size: 0.95rem; }
.journal__note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 480px) { .journal table { font-size: 0.82rem; } .journal td.is-cr { padding-left: 1rem; } .journal th, .journal td { padding-inline: 0.3rem; } }

/* ── Modul ─────────────────────────────────────────── */

.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
.modules li { display: grid; gap: 0.35rem; align-content: start; padding: 1.15rem 0 1.25rem; border-top: 1px solid var(--line-strong); }
.modules .ico { width: 1.65rem; height: 1.65rem; color: var(--violet); margin-bottom: 0.3rem; }
.modules h3 { font-size: 1.1rem; }
.modules p { color: var(--muted); font-size: 0.96rem; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Integrasi ─────────────────────────────────────── */

.integr { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
.integr li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.integr .ico { width: 2.7rem; height: 2.7rem; padding: 0.65rem; border-radius: 0.85rem; background: var(--violet-soft); color: var(--violet); }
.integr h3 { font-size: 1.05rem; }
.integr h3 span { font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.integr p { margin-top: 0.25rem; color: var(--muted); font-size: 0.955rem; }
@media (min-width: 760px) { .integr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Keamanan ──────────────────────────────────────── */

.kontrol { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) {
  .kontrol { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 3.5rem; }
  .kontrol__lead { position: sticky; top: 7rem; }
}
.kontrol__lead h2 { font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.4rem); }
.kontrol__lead p { margin-top: 1rem; color: var(--muted); font-size: 1.075rem; }
.kontrol__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 640px) { .kontrol__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kontrol__list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line-strong); }
.kontrol__list .ico { width: 1.55rem; height: 1.55rem; color: var(--violet); margin-top: 0.1rem; }
.kontrol__list strong { display: block; }
.kontrol__list p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }

/* ── Cara mulai ────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.75rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.25rem; top: 3.1rem; bottom: -1.3rem; width: 2px; background: var(--line-strong); }
.steps h3 { font-size: 1.1rem; padding-top: 0.4rem; }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 0.975rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 3.75rem; }
  .steps li:not(:last-child)::after { left: 3.25rem; right: -1.25rem; top: 1.3rem; bottom: auto; width: auto; height: 2px; }
  .steps h3 { padding-top: 0; }
}
.steps__cta { margin-top: 2rem; }

/* ── Tanya jawab ───────────────────────────────────── */

.faq { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.3fr); gap: 3.5rem; align-items: start; } .faq__lead { position: sticky; top: 7rem; } }
.faq__lead p { margin-top: 1rem; color: var(--muted); }
.faq__list { display: grid; gap: 0.7rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 0.9rem 1.25rem; font-weight: 700; border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.2rem;
  border-right: 2px solid var(--violet-ink); border-bottom: 2px solid var(--violet-ink); transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { background: var(--violet-soft); }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ── Kontak ────────────────────────────────────────── */

.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 3.25rem);
  border-radius: var(--r-xl); background: #3a1a7c; color: #fff;
}
.contact::after {
  /* Cahaya lentera yang sama dengan blok AI, menandai ajakan akhir. */
  content: ""; position: absolute; z-index: -1; right: -12rem; top: -16rem; width: 38rem; height: 38rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(242 163 58 / 0.32), transparent 64%);
}
.contact h2 { color: #fff; max-width: 18ch; }
.contact__main > p { margin-top: 1.1rem; color: #e4daff; max-width: 52ch; font-size: 1.075rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact :focus-visible { outline-color: #fff; }
.contact__card { font-style: normal; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--sh-md); }
.contact__card :focus-visible { outline-color: var(--violet-500); outline-offset: 0; }
.contact__co { display: flex; align-items: center; gap: 0.8rem; padding: 0.25rem 0.5rem 1rem; border-bottom: 1px solid var(--line); }
.contact__co img { width: auto; height: 2.4rem; flex: none; }
.contact__co strong { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.contact__co span { font-size: 0.85rem; color: var(--muted); }
.contact__list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.contact__row {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.85rem;
  min-height: 52px; padding: 0.55rem 0.5rem; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none;
  transition: background-color .15s ease;
}
a.contact__row:hover { background: var(--violet-soft); color: var(--ink); }
.contact__ico { width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.contact__ico .ico { width: 1.2rem; height: 1.2rem; }
a.contact__row:hover .contact__ico { background: var(--violet); color: #fff; }
.contact__txt { display: grid; min-width: 0; line-height: 1.35; }
.contact__txt small { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.contact__txt span { font-weight: 700; font-size: 0.975rem; overflow-wrap: anywhere; }
.contact__go { width: 1.1rem; height: 1.1rem; color: var(--line-strong); transition: color .15s ease, transform .15s ease; }
a.contact__row:hover .contact__go { color: var(--violet); transform: translate(2px, -2px); }
@media (max-width: 520px) {
  .contact { padding: 1.5rem 1rem 1rem; border-radius: var(--r-lg); }
  .contact__main { padding-inline: 0.25rem; }
  .contact__card { padding: 0.9rem 0.75rem; }
  .contact__row { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.75rem; padding-inline: 0.35rem; }
  .contact__go { display: none; }
}
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; } }

/* ── Footer ────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 1.75rem 0 2.25rem; font-size: 0.925rem; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; justify-content: space-between; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.brand--foot { font-weight: 800; }
.brand--foot .brand__mark { height: 2rem; }
.brand--foot .brand__word { font-size: 1.15rem; }
.foot__row > p:first-of-type { margin-right: auto; }
/* Sisakan ruang untuk tombol kembali ke atas yang melayang di pojok kanan bawah. */
@media (min-width: 721px) { .foot__row { padding-right: 4.5rem; } }
@media (max-width: 720px) { .foot { padding-bottom: 5.5rem; } }

/* ── Tombol melayang: jadwalkan demo + kembali ke atas ── */

.dock {
  position: fixed; right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); z-index: 40;
  display: flex; align-items: center; gap: 0.75rem; pointer-events: none;
}
.wa-float {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 56px; padding: 0 1.5rem 0 1.25rem;
  border-radius: 99em; background: var(--violet); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 18px 36px -14px rgb(76 29 149 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.18);
  opacity: 0; transform: translateY(1rem); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s, background-color .15s ease;
}
.wa-float .ico { width: 1.35rem; height: 1.35rem; }
.wa-float:hover { background: var(--violet-hover); color: #fff; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease, background-color .15s ease; }
.no-js .wa-float { display: none; }

.to-top {
  position: relative; width: 56px; height: 56px; flex: none; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--violet);
  box-shadow: 0 14px 30px -14px rgb(49 20 110 / 0.55), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(1rem); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s, background-color .15s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s ease, transform .25s ease, background-color .15s ease; }
.to-top:hover { background: var(--violet-soft); }
.to-top:focus-visible { border-radius: 50%; }
.to-top > .ico { width: 1.4rem; height: 1.4rem; stroke-width: 1.9; transition: transform .2s ease; }
.to-top:hover > .ico { transform: translateY(-2px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.to-top__track { stroke: var(--line); stroke-width: 2.5; }
.to-top__bar { stroke: var(--violet-500); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
@media (max-width: 520px) {
  .dock { gap: 0.5rem; }
  .wa-float { min-height: 50px; padding: 0 1.1rem 0 0.95rem; font-size: 0.95rem; }
  .to-top { width: 50px; height: 50px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .contact__actions .btn { width: 100%; }
  .brand__word { font-size: 1.25rem; }
  .brand__mark { height: 2.5rem; }
}

/* ── Gerak dikurangi ───────────────────────────────── */

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