/* ==========================================================
   Alkhaf landing page
   Palet: ink navy, cool paper, cobalt blue, amber (kasir), mint (WA)
   Font : Bricolage Grotesque (judul) + Figtree (isi)
   ========================================================== */

:root {
  --ink: #0B1B33;
  --ink-soft: #4A5A78;
  --paper: #F4F6FA;
  --white: #FFFFFF;
  --line: #DDE3EE;

  --blue: #1F4BFF;
  --blue-deep: #1636C4;
  --blue-tint: #E7ECFF;
  --amber: #FF7A1A;
  --mint: #12B76A;
  --rec: #FF4D3D;
  --tick: #34B7F1;

  --night: #08142A;
  --night-2: #0E2040;
  --on-night: #E9EFFC;
  --on-night-soft: #A9B9D8;

  --radius-lg: 1.5rem;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 4.25rem;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; max-width: 100%; }

.i {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.05rem, 1rem + 4.4vw, 3.9rem); overflow-wrap: break-word; letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: .8rem;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--blue-tint); }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: .6rem 1.05rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,250,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em;
}
.brand svg, .brand img { width: 2rem; height: 2rem; border-radius: .55rem; object-fit: cover; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: .4rem 0; }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .hide-sm { display: none; }
  .nav { flex-wrap: wrap; gap: .25rem 1.25rem; }
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .25rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  }
  .js .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .site-header.open .nav { display: flex; }
  .js .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 2.75rem; height: 2.75rem; border-radius: .8rem;
    background: #fff; border: 1.5px solid var(--line); cursor: pointer;
  }
  .menu-btn .i-shut { display: none; }
  .site-header.open .menu-btn .i-open { display: none; }
  .site-header.open .menu-btn .i-shut { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11,27,51,.16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 2.5rem; }
}
.hero-lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .98rem; color: var(--ink-soft); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .i { color: var(--mint); width: 1.1rem; height: 1.1rem; }
@media (max-width: 519px) {
  .hero-actions .btn { width: 100%; }
}

/* ----- Panggung perangkat (satuan 1em = 10px pada lebar 560px) ----- */
.stage {
  position: relative; width: 100%; max-width: 600px; margin-inline: auto;
  aspect-ratio: 560 / 540; container-type: inline-size;
}
.stage-in { position: absolute; inset: 0; font-size: calc(100cqw / 56); }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links path {
  stroke: var(--blue); stroke-opacity: .5; stroke-width: 1.5;
  stroke-dasharray: 5 7; vector-effect: non-scaling-stroke;
}
.pulse { fill: var(--blue); }

.dev {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background: #fff; border: 1px solid var(--line); border-radius: 1.4em; overflow: hidden;
  box-shadow: 0 2.2em 3.6em -2.4em rgba(11,27,51,.38);
}

/* Website */
.dev-web { --x: 0em; --y: 3em; --w: 30em; --h: 21em; }
.web-bar {
  display: flex; align-items: center; gap: .6em; height: 3.2em; padding: 0 1.2em;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.web-bar i { width: .9em; height: .9em; border-radius: 50%; background: #C9D2E3; }
.web-url {
  flex: 1; margin-left: .8em; padding: .3em .9em; border-radius: 2em;
  background: #fff; border: 1px solid var(--line);
  font-size: 1.2em; line-height: 1.2; color: var(--ink-soft);
}
.web-body { padding: 1.6em; }
.sk { border-radius: .4em; }
.sk-title { width: 70%; height: 2.2em; background: var(--ink); }
.sk-line { width: 92%; height: .9em; margin-top: 1em; background: var(--line); }
.sk-line.short { width: 64%; }
.sk-btn { width: 9em; height: 2.6em; margin-top: 1.4em; border-radius: .8em; background: var(--blue); }
.sk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.2em; }
.sk-tiles b { height: 3.4em; border-radius: .8em; background: var(--blue-tint); }

/* CCTV */
.dev-cam { --x: 33em; --y: 0em; --w: 23em; --h: 17em; background: #0B1830; border-color: #0B1830; }
.cam-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-label, .cam-rec, .cam-time {
  position: absolute; color: #fff; font-size: 1.1em; font-weight: 600; letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.cam-label { left: 1.2em; top: 1em; }
.cam-rec { right: 1.2em; top: 1em; display: flex; align-items: center; gap: .5em; }
.cam-rec i { width: .9em; height: .9em; border-radius: 50%; background: var(--rec); animation: rec 1.4s steps(1) infinite; }
.cam-time { left: 1.2em; bottom: 1em; font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes rec { 50% { opacity: .15; } }

/* WhatsApp gateway */
.dev-chat { --x: 2em; --y: 29em; --w: 25em; --h: 18em; background: #EEF3F8; }
.chat-head {
  display: flex; align-items: center; gap: .7em; padding: .85em 1em;
  background: #fff; border-bottom: 1px solid var(--line);
  font-size: 1.25em; font-weight: 600; color: var(--ink);
}
.chat-head .i { color: var(--mint); width: 1.1em; height: 1.1em; }
.bub {
  width: fit-content; max-width: 88%; margin: .9em 1.2em 0 auto; padding: .6em .8em;
  background: #DDF6E5; border-radius: 1em 1em .3em 1em;
  font-size: 1.2em; line-height: 1.35; color: var(--ink);
}
.bub em { display: block; margin-top: .25em; text-align: right; font-style: normal; font-size: .78em; color: var(--ink-soft); }
.bub em { letter-spacing: .02em; }

/* Aplikasi kasir */
.dev-pos { --x: 33em; --y: 35.5em; --w: 23em; --h: 18em; }
.pos-head {
  display: flex; align-items: center; gap: .6em; padding: .8em 1em;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3em;
}
.pos-head .i { color: var(--amber); width: 1em; height: 1em; }
.pos-head small { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: .75em; color: var(--ink-soft); }
.pos-row { display: flex; justify-content: space-between; padding: .45em 1.2em 0; font-size: 1.2em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pos-row b { font-weight: 600; color: var(--ink); }
.pos-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: .6em 1.1em 0; padding-top: .5em; border-top: 1px dashed var(--line);
  font-size: 1.3em; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pos-pay {
  margin: .6em 1.2em 0; padding: .45em; border-radius: .6em; text-align: center;
  background: var(--blue); color: #fff; font-size: 1.2em; font-weight: 600;
}

/* Jaringan (pusat) */
.dev-net { position: absolute; inset: 0; pointer-events: none; }
.net-orb {
  position: absolute; left: 29.6em; top: 25em; width: 8.4em; height: 8.4em; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  box-shadow: 0 0 0 1em var(--blue-tint), 0 1.6em 2.4em -1em rgba(31,75,255,.6);
}
.net-orb .i { width: 3.6em; height: 3.6em; stroke-width: 1.8; }
.net-pill {
  position: absolute; left: 39.2em; top: 27.9em; height: 2.6em; padding: 0 1.1em;
  display: flex; align-items: center; gap: .6em; border-radius: 2em;
  background: #fff; border: 1px solid var(--line);
}
.net-pill i { width: .8em; height: .8em; border-radius: 50%; background: var(--mint); }
.net-pill span { font-size: 1.2em; font-weight: 600; white-space: nowrap; }

/* Urutan masuk (sekali saat halaman dimuat) */
@media (prefers-reduced-motion: no-preference) {
  .js .dev, .js .net-orb, .js .net-pill { opacity: 0; transform: translateY(1.2em) scale(.97); }
  .js .links { opacity: 0; }
  .is-ready .dev, .is-ready .net-orb, .is-ready .net-pill {
    opacity: 1; transform: none;
    transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
  }
  .is-ready .links { opacity: 1; transition: opacity .8s ease .9s; }
  .dev-web { --d: .1s; } .dev-cam { --d: .25s; } .dev-chat { --d: .4s; } .dev-pos { --d: .55s; }
  .net-orb { --d: .7s; } .net-pill { --d: .85s; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .cam-rec i { animation: none; }
  .pulse { display: none; }
}

/* Panggung versi HP kecil: susunan grid tanpa garis */
@media (max-width: 519px) {
  .stage { aspect-ratio: auto; container-type: normal; max-width: none; }
  .stage-in { position: static; font-size: .56rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; }
  .links { display: none; }
  .dev { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .dev-web { order: 1; grid-column: 1 / -1; }
  .dev-net { order: 2; grid-column: 1 / -1; position: static; display: flex; align-items: center; gap: 1.4em; }
  .dev-cam { order: 3; min-height: 14em; }
  .dev-pos { order: 4; }
  .dev-chat { order: 5; grid-column: 1 / -1; padding-bottom: 1.2em; }
  .net-orb, .net-pill { position: static; }
  .net-orb { width: 6.4em; height: 6.4em; }
  .net-orb .i { width: 2.8em; height: 2.8em; }
  .net-pill { height: 3em; }
  .bub { margin-top: .8em; }
}

/* ---------- Section umum ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-white { background: var(--white); }
.section-paper { background: var(--paper); }
.section-night { background: var(--night); color: var(--on-night); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; max-width: 38rem; color: var(--ink-soft); }
.section-night .section-head p { color: var(--on-night-soft); }
.section-night h2, .section-night h3 { color: #fff; }

/* ---------- Layanan (tab) ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.svc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.svc-tab {
  display: grid; grid-template-columns: 1fr; grid-template-areas: "ico" "name";
  justify-items: start; row-gap: .6rem;
  padding: .9rem; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 1.1rem;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.svc-tab:hover { border-color: #B9C4DA; }
.svc-tab[aria-selected="true"] { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.svc-ico {
  grid-area: ico; width: 2.5rem; height: 2.5rem; border-radius: .8rem;
  display: grid; place-items: center; background: #fff; color: var(--blue); border: 1px solid var(--line);
  transition: background-color .15s, color .15s, border-color .15s;
}
.svc-tab[aria-selected="true"] .svc-ico { background: var(--blue); color: #fff; border-color: var(--blue); }
.svc-name { grid-area: name; font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.svc-sum { display: none; }
.n-full { display: none; }

.svc-panel {
  height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.svc-panel[hidden] { display: none; }
.svc-panel:not([hidden]) { animation: panel-in .28s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(.5rem); } }
.svc-panel h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2rem); max-width: 30rem; }
.svc-lead { margin-top: .9rem; max-width: 34rem; color: var(--ink-soft); }
.checks { display: grid; gap: .8rem; margin-top: 1.6rem; }
.checks li { display: flex; gap: .7rem; line-height: 1.5; }
.checks .i { margin-top: .2rem; width: 1.15rem; height: 1.15rem; color: var(--blue); }
.svc-fit { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .98rem; }
.svc-panel .btn { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; }
  .svc-tabs { grid-template-columns: 1fr; align-content: start; gap: .75rem; }
  .svc-tab {
    grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico sum";
    align-items: center; column-gap: 1rem; row-gap: 0; padding: 1.1rem 1.25rem;
  }
  .svc-ico { width: 3rem; height: 3rem; }
  .svc-name { font-size: 1.15rem; }
  .n-full { display: inline; }
  .n-short { display: none; }
  .svc-sum { display: block; grid-area: sum; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
}

/* ---------- Aplikasi ---------- */
.prods { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .prods { grid-template-columns: 1fr 1fr; } }
.prod {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--night-2); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
}
.prod-top { display: flex; align-items: center; gap: .9rem; }
.prod-ico { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; }
.prod-mykas .prod-ico { background: rgba(255,122,26,.16); color: var(--amber); }
.prod-send .prod-ico { background: rgba(18,183,106,.16); color: var(--mint); }
.prod h3 { font-size: 1.9rem; }
.prod-url { font-size: .92rem; line-height: 1.4; color: var(--on-night-soft); }
.prod-desc { margin-top: 1.25rem; max-width: 32rem; color: var(--on-night-soft); }
.mock { margin-top: 1.5rem; padding: 1rem; border-radius: 1rem; background: #fff; color: var(--ink); }
.prod-list { display: grid; gap: .6rem; margin-top: 1.5rem; }
.prod-list li { display: flex; gap: .7rem; line-height: 1.5; }
.prod-list .i { margin-top: .2rem; width: 1.1rem; height: 1.1rem; }
.prod-mykas .prod-list .i { color: var(--amber); }
.prod-send .prod-list .i { color: var(--mint); }
.prod-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: 1.75rem; }
@media (max-width: 519px) { .prod-actions .btn { width: 100%; } }

.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mp-item {
  display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: .7rem; font-size: .92rem;
}
.mp-item b { font-weight: 600; }
.mp-item span { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mp-item.on { background: #FFF3EA; border-color: var(--amber); }
.mp-bar {
  display: flex; justify-content: space-between; align-items: center; margin-top: .8rem;
  padding: .75rem .9rem; border-radius: .7rem; background: var(--ink); color: #fff; font-size: .95rem;
}
.mp-bar b { font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.ml-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ml-row:first-child { padding-top: 0; }
.ml-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ml-ava { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; font-size: .9rem; }
.ml-row b { display: block; font-size: .95rem; line-height: 1.25; }
.ml-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--ink-soft); }
.tag { padding: .25rem .65rem; border-radius: 2rem; font-size: .78rem; font-weight: 600; }
.tag.ok { background: #E3F7EC; color: #0B7A47; }
.tag.read { background: var(--blue-tint); color: var(--blue-deep); }
.tag.wait { background: #FFF0E0; color: #A94A08; }

/* ---------- Cara kerja ---------- */
.steps { display: grid; gap: 1.75rem; }
.steps li { position: relative; padding-left: 3.6rem; }
.step-n {
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800;
}
.steps li::before { content: ""; position: absolute; left: 1.2rem; top: 2.8rem; bottom: -1.5rem; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: .4rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding: 3.6rem 0 0; }
  .steps li::before { left: 3rem; right: -2rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 1rem; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 4fr 6fr; gap: 3rem; } }
.faq { display: grid; gap: .75rem; align-content: start; }
.faq details { padding: 0 1.25rem; background: #fff; border: 1.5px solid var(--line); border-radius: 1rem; }
.faq details[open] { border-color: #B9C4DA; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--ink-soft); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { padding: 0 0 1.2rem; max-width: 42rem; color: var(--ink-soft); }

/* ---------- Kontak ---------- */
.section-cta { padding-top: 0; }
.cta {
  display: grid; gap: 2rem; padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--blue); color: #fff; border-radius: 2rem;
}
@media (min-width: 900px) { .cta { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; } }
.cta h2 { color: #fff; }
.cta-copy p { margin-top: 1rem; max-width: 30rem; color: #DCE4FF; }
.contact-list { display: grid; gap: .8rem; margin-top: 1.75rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list a:focus-visible { outline-color: #fff; }

.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: #fff; color: var(--ink); border-radius: 1.25rem; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: .45rem; padding: 0; font-weight: 600; font-size: .95rem; }
.field input[type="text"], .field textarea {
  width: 100%; padding: .75rem .9rem; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: .7rem; resize: vertical;
}
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .5rem .95rem; background: #fff;
  border: 1.5px solid var(--line); border-radius: 2rem; font-size: .93rem; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error { color: #B42318; font-size: .92rem; font-weight: 500; }
.form-error[hidden] { display: none; }
.form .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { padding: 3.25rem 0 2rem; background: var(--night); color: var(--on-night-soft); font-size: .95rem; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-about { margin-top: 1rem; max-width: 22rem; }
.foot-title { margin-bottom: .75rem; font-weight: 600; color: #fff; }
.foot-links { display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-fab {
  position: fixed; z-index: 40;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center; background: #0E9F5A; color: #fff;
  box-shadow: 0 .7rem 1.6rem -.5rem rgba(11,27,51,.55);
  transition: background-color .15s;
}
.wa-fab:hover { background: #0B854B; }
.wa-fab .i { width: 1.6rem; height: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc-panel:not([hidden]) { animation: none; }
}

@media (max-width: 519px) {
  .svc-panel .btn { width: 100%; }
}
.btn { text-align: center; }

/* ---------- Pemberitahuan WhatsApp belum terbuka ---------- */
.wa-toast {
  position: fixed; z-index: 45;
  left: 1rem; right: 5.5rem; bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem;
  padding: .85rem 3rem .85rem 1rem; max-width: 26rem;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 1rem 2rem -.75rem rgba(11,27,51,.4); font-size: .95rem;
}
.wa-toast[hidden] { display: none; }
.wa-toast p { font-weight: 600; }
.wa-toast a { color: var(--blue); font-weight: 600; }
.wa-toast-close {
  position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; background: none; border: 0; border-radius: .5rem;
  color: var(--ink-soft); cursor: pointer;
}
.wa-toast-close:hover { background: var(--paper); }
@media (min-width: 640px) { .wa-toast { left: auto; right: 5.5rem; } }

/* ---------- Popup chat ---------- */
button.wa-fab { border: 0; cursor: pointer; font: inherit; }
.wc-badge {
  position: absolute; top: -.2rem; right: -.2rem; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
  display: grid; place-items: center; border-radius: 1rem; background: var(--rec); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1; border: 2px solid #fff;
}
.wc-badge[hidden] { display: none; }
.wc-panel {
  position: fixed; z-index: 41;
  right: max(1rem, env(safe-area-inset-right)); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.25rem);
  width: min(22rem, calc(100vw - 2rem)); height: min(30rem, calc(100dvh - 7.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 1.1rem;
  box-shadow: 0 1.5rem 3rem -1rem rgba(11,27,51,.5);
  animation: wc-in .18s ease-out;
}
.wc-panel[hidden] { display: none; }
@keyframes wc-in { from { opacity: 0; transform: translateY(.5rem); } }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; background: #0E9F5A; color: #fff; }
.wc-top div { display: grid; line-height: 1.25; }
.wc-top span { font-size: .8rem; opacity: .9; }
.wc-x { width: 2rem; height: 2rem; display: grid; place-items: center; background: none; border: 0; border-radius: .5rem; color: #fff; cursor: pointer; }
.wc-x:hover { background: rgba(255,255,255,.18); }
.wc-x .i { width: 1.2rem; height: 1.2rem; }
.wc-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; padding: .9rem; background: #EEF3F8; overscroll-behavior: contain; }
.wc-msg { max-width: 82%; padding: .5rem .7rem; border-radius: .9rem; font-size: .93rem; line-height: 1.4; box-shadow: 0 1px 0 rgba(11,27,51,.06); }
.wc-msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.wc-msg time { display: block; margin-top: .15rem; font-size: .7rem; color: var(--ink-soft); text-align: right; }
.wc-out { align-self: flex-start; background: #fff; border-bottom-left-radius: .25rem; }
.wc-in { align-self: flex-end; background: #D6F5E3; border-bottom-right-radius: .25rem; }
.wc-in.is-pending { opacity: .6; }
.wc-in.is-failed { background: #FFE3E0; }
.wc-name { display: grid; gap: .6rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.wc-name[hidden] { display: none; }
.wc-name label { font-weight: 600; }
.wc-name input { padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .7rem; font: inherit; }
.wc-note { padding: .5rem 1rem; background: #FFF4E5; color: #8A4B00; font-size: .85rem; }
.wc-note[hidden] { display: none; }
.wc-note a { color: inherit; font-weight: 600; }
.wc-form { display: flex; align-items: flex-end; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); background: #fff; }
.wc-form[hidden] { display: none; }
.wc-form textarea { flex: 1; max-height: 6.5rem; resize: none; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 1rem; font: inherit; line-height: 1.35; }
.wc-send { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: #0E9F5A; color: #fff; cursor: pointer; }
.wc-send:hover { background: #0B854B; }
.wc-send:disabled { opacity: .5; cursor: default; }
.wc-send .i { width: 1.2rem; height: 1.2rem; }
.wc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wc-panel { animation: none; } }
.wc-err { color: #C22; font-size: .85rem; }
.wc-err[hidden] { display: none; }
.wc-end { margin-left: auto; padding: .3rem .6rem; background: rgba(255,255,255,.18); border: 0; border-radius: .5rem; color: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
.wc-end:hover { background: rgba(255,255,255,.3); }
.wc-end[hidden] { display: none; }
.wc-sys { align-self: center; max-width: 90%; background: none; box-shadow: none; text-align: center; color: var(--ink-soft); font-size: .8rem; }

/* Modal konfirmasi (gaya Filament) */
.wc-end { flex: none; white-space: nowrap; margin-left: auto; }
.wc-modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem;
  background: rgba(11,27,51,.55); backdrop-filter: blur(2px); animation: wc-fade .15s ease-out;
}
.wc-modal[hidden] { display: none; }
.wc-modal-box {
  width: min(26rem, 100%); padding: 1.5rem; text-align: center; background: #fff; border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35), 0 0 0 1px rgba(11,27,51,.06); animation: wc-pop .18s ease-out;
}
.wc-modal-ico { width: 3rem; height: 3rem; margin: 0 auto .9rem; display: grid; place-items: center; border-radius: 50%; background: #FEE4E2; color: #D92D20; }
.wc-modal-ico .i { width: 1.6rem; height: 1.6rem; }
.wc-modal-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.wc-modal-box p { margin-top: .4rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.wc-modal-act { display: flex; gap: .6rem; margin-top: 1.4rem; }
.wc-mbtn { flex: 1; padding: .6rem .9rem; border-radius: .6rem; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.wc-mbtn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.wc-mbtn-ghost:hover { background: var(--paper); }
.wc-mbtn-danger { background: #D92D20; border: 1px solid #D92D20; color: #fff; }
.wc-mbtn-danger:hover { background: #B42318; }
.wc-mbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@keyframes wc-fade { from { opacity: 0; } }
@keyframes wc-pop { from { opacity: 0; transform: scale(.96) translateY(.4rem); } }
@media (prefers-reduced-motion: reduce) { .wc-modal, .wc-modal-box { animation: none; } }

/* Snapshot CCTV */
.cam-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-live[hidden] { display: none; }
.dev-cam.is-live .cam-label, .dev-cam.is-live .cam-rec, .dev-cam.is-live .cam-time { text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.cam-live { opacity: 0; transition: opacity .4s; }
.dev-cam.is-live .cam-live { opacity: 1; }
