/* Kastoko landing — azure blue (dari logo), glassmorphism. Statis murni, tanpa framework. */
:root {
  --bg: #eff6ff;
  --bg-soft: #dbeafe;
  --ink: #0b2440;
  --ink-soft: #44607e;
  --ink-faint: #6d89a8;
  --card: #ffffff;
  --line: #bfdbfe;
  --brand: #2563eb;
  --brand-strong: #1e40af;
  --brand-soft: #dbeafe;
  --accent: #1d4ed8;
  --amber: #b45309;
  --amber-deep: #92400e;
  --dark: #0d2440;
  --success: #15803d;
  --radius: 18px;
  --glass-blur: 14px;
  --font: 'Rubik', 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --z-nav: 50;
  --z-lightbox: 100;
  --z-consent: 120;
  --z-grain: 200;
}

* { box-sizing: border-box; }
::selection { background: var(--brand); color: #fff; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(255, 255, 255, 0.9) 0%, transparent 60%),
    radial-gradient(900px 500px at 8% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 55%),
    radial-gradient(900px 500px at 95% 70%, rgba(29, 78, 216, 0.07) 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
/* Film grain dihapus: lapisan fixed full-viewport memaksa repaint tiap frame scroll. */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; line-height: 1.12; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 120px 0; scroll-margin-top: 70px; }
@media (max-width: 760px) { section { padding: 84px 0; } }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: var(--z-grain);
  background: var(--brand-strong);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus-visible { top: 12px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
h2 + .lead, h1 + .lead { margin-top: 16px; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; }
/* Kepala seksi non-split (fitur, harga): center mengimbangi grid simetris di bawahnya. */
.center-head { text-align: center; }
.center-head .lead { margin-left: auto; margin-right: auto; }
/* Center berhenti di kartu: isi kartu selalu rata kiri. */
.center-head .glass { text-align: left; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 150ms ease, background 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 14px 32px -10px rgba(29, 78, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn-ghost:hover { background: rgba(37, 99, 235, 0.1); }
/* CTA paket: outline brand — tegas tapi tenang di dalam kartu. */
.btn-outline { background: transparent; color: var(--brand-strong); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
/* Kartu solid: backdrop-blur di belasan kartu = repaint tiap frame scroll.
   Blur hanya tersisa di bingkai hero (satu elemen, di atas fold). */
.glass {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 20px 50px -24px rgba(13, 71, 161, 0.3);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
/* Scroll reveal: transform/opacity only (GPU-friendly). */
.reveal { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 300ms ease, transform 300ms ease, visibility 0s 300ms; }
.reveal.in { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease, transform 300ms ease; }
.no-js .reveal { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 760px) {
  .levels .reveal:nth-child(2) { transition-delay: 90ms; }
  .levels .reveal:nth-child(3) { transition-delay: 180ms; }
}
@media (min-width: 900px) {
  .features .reveal:nth-child(2) { transition-delay: 70ms; }
  .features .reveal:nth-child(3) { transition-delay: 140ms; }
  .features .reveal:nth-child(4) { transition-delay: 100ms; }
  .features .reveal:nth-child(5) { transition-delay: 170ms; }
  .features .reveal:nth-child(6) { transition-delay: 240ms; }
}
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* ---- Nav ---- */
.anchor { display: block; position: relative; top: -70px; visibility: hidden; }
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: linear-gradient(180deg, #d8e8fd 0%, #f2f7ff 100%); border-bottom: 1px solid #c9defb; box-shadow: 0 10px 30px -20px rgba(11, 36, 64, 0.4); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: none; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav nav a:hover { background: rgba(37, 99, 235, 0.1); color: var(--ink); }
@media (min-width: 760px) { .nav nav { display: flex; } .nav .btn { margin-left: 0; } }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) { .nav .btn { margin-left: 12px; } }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--brand-strong); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }

/* ---- Hero ---- */
.hero {
  color: #fff;
  padding: 104px 0 128px;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(153, 194, 240, 0.35) 0%, transparent 60%),
    radial-gradient(800px 460px at 88% 18%, rgba(24, 119, 242, 0.5) 0%, transparent 62%),
    linear-gradient(135deg, #0b2447 0%, #14386b 50%, #1d4ed8 100%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.eyebrow-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); }
.hero h1 { max-width: 640px; }
.lead-light { color: #dbeafe; margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; color: #bfdbfe; font-size: 0.9rem; font-weight: 600; }
.hero-proof li { padding-left: 24px; position: relative; }
.hero-proof li::before { content: '✓'; position: absolute; left: 0; color: #fff; font-weight: 700; }
.hero-visual { position: relative; padding: 14px; }
.compare { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1366 / 768; border: 1px solid rgba(255, 255, 255, 0.3); }
.compare-base { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.compare-top { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: drop-shadow(3px 0 0 rgba(255, 255, 255, 0.7)); clip-path: polygon(0 0, 30% 0, 70% 100%, 0 100%); }

/* Pita jaminan: empat fakta terverifikasi, satu puncak awal sebelum fitur. */
/* Pita jaminan: pita terang eigen dengan hairline atas-bawah — terpisah dari fitur. */
.trust { padding: 72px 0; background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 130%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .trust { padding: 56px 0; } }
.trust-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1.2fr; } }
.trust-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.trust-shot { padding: 14px; }
.trust-list li { padding-left: 30px; position: relative; font-weight: 600; font-size: 1rem; }
.trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; font-size: 1.2rem; line-height: 1.4; }

/* CTA lengket mobile: hanya <760px, muncul setelah hero, mengalah pada consent. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(11, 36, 64, 0.4); }
@media (max-width: 759px) { .sticky-cta.show { display: flex; } }
.sticky-cta span { font-weight: 600; }

/* Skeleton harga: cadangan ruang agar injeksi async tidak menggeser layout. */
.levels { min-height: 320px; }
.plan-from { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }
.plan-from strong { color: var(--brand-strong); }
/* Disclosure paket: termurah tampil, sisanya di balik <details> native. */
.plan-more { border-top: 2px solid var(--line); }
.plan-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; min-height: 44px; font-weight: 600; font-size: 0.95rem; color: var(--brand-strong); }
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; }
.plan-more[open] summary::after { content: '–'; }
.plans-offline { margin-bottom: 8px; padding: 12px 16px; background: rgba(180, 83, 9, 0.08); border: 1px solid var(--amber); border-radius: 10px; }

/* Deep-navy bands: white glass cards pop against dark — the premium contrast. */
.band {
  color: #eaf2ff;
  background:
    radial-gradient(800px 380px at 15% 0%, rgba(24, 119, 242, 0.35) 0%, transparent 60%),
    radial-gradient(700px 380px at 90% 100%, rgba(24, 119, 242, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #0b2447 0%, #102f5c 55%, #14386b 100%);
}
.band > .wrap > h2 { color: #fff; }
.band > .wrap > h1 { color: #fff; }
.band > .wrap > .lead { color: #bfdbfe; }
.band > .wrap > .eyebrow { color: #bfdbfe; border-color: rgba(191, 219, 254, 0.35); background: rgba(191, 219, 254, 0.1); }
.band > .wrap > .modes, .band .plans-empty { color: #c4d7f2; }
.band > .wrap > .modes a, .band .plans-empty a { color: #fff; font-weight: 600; }
.band .modes strong { color: #fff; }
/* White cards must reset to dark ink — otherwise headings inherit the band's light color and vanish. */
.band .glass { color: var(--ink); }
.features { margin-top: 36px; }
.levels { margin-top: 48px; align-items: start; }
.levels.grid-3 { grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) {
  .levels.grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.feature { display: flex; flex-direction: column; padding: 24px; transition: translate 200ms ease, box-shadow 200ms ease; }
.feature:hover { translate: 0 -4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 28px 60px -24px rgba(13,71,161,0.4); }
.feature h3 { margin: 0 0 8px; }
/* Ikon fitur: satu bahasa goresan, enam warna. Tile seragam, glif bervariasi. */
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); border: 1px solid var(--line); margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.i-azure { color: #2563eb; }
.i-amber { color: #b45309; }
.i-violet { color: #7c3aed; }
.i-leaf { color: #15803d; }
.i-rose { color: #be123c; }
.i-cyan { color: #0e7490; }
.level-card { position: relative; display: flex; flex-direction: column; padding: 38px 30px 34px; transition: translate 200ms ease, box-shadow 200ms ease; }
.level-card:hover { translate: 0 -4px; }
.level-card h3 { font-size: 1.35rem; margin: 0 0 6px; padding-right: 48px; }
.level-card > .muted.small { margin-bottom: 4px; }
.tier-no { position: absolute; top: 32px; right: 26px; font-size: 1.4rem; font-weight: 700; color: rgba(180, 83, 9, 0.32); letter-spacing: -0.02em; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.card-hot { border-color: var(--brand); box-shadow: 0 18px 44px -20px rgba(29, 78, 216, 0.4); }
.level-plans { display: grid; margin-top: 30px; padding-top: 6px; border-top: 2px solid var(--line); }
.plan-row { display: grid; gap: 12px; padding: 32px 0; }
.plan-row + .plan-row { border-top: 2px solid var(--line); }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; font-size: 0.95rem; }
.plan-head strong { font-weight: 600; }
.plan-price { font-size: 0.95rem; font-weight: 700; color: var(--brand-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans-empty { margin-top: 28px; }
.plans-empty a { color: var(--brand-strong); font-weight: 600; }
.plan-checks { margin: 12px 0 18px; }
.modes { margin-top: 32px; }
.modes a { color: var(--brand-strong); font-weight: 600; }
.cloud-card { margin-top: 34px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-color: var(--brand); }
.cloud-card > div { flex: 1 1 280px; min-width: 0; }
.cloud-card .btn { flex-shrink: 0; }
.cloud-card h3 { margin: 0 0 6px; }

.shot { margin: 0; padding: 14px; }
.shot img { border-radius: 10px; width: 100%; aspect-ratio: 1366 / 768; object-fit: cover; object-position: top center; }
.shot figcaption { color: var(--ink-soft); font-size: 0.85rem; margin-top: 14px; text-align: center; }
.shot-btn { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; line-height: 0; width: 100%; font: inherit; color: inherit; }
.shot-btn img { transition: transform 200ms ease; }
.shot-btn:hover img { transform: scale(1.015); }
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(7, 22, 45, 0.78); display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-box { margin: 0; width: min(1020px, 100%); background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.lightbox-box img { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 10px; background: var(--dark); }
.lightbox-box figcaption { display: grid; gap: 2px; }
.lightbox-nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: min(1020px, 100%); }
.lb-btn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; color: var(--brand-strong); }
.lb-btn:hover { background: var(--brand-soft); }
.download { display: grid; gap: 48px; align-items: center; }
#unduh .cta-row { margin-bottom: 18px; }
@media (min-width: 900px) { .download { grid-template-columns: 1fr 1.2fr; } }
.steps { margin: 28px 0 0; padding-left: 22px; display: grid; gap: 14px; color: var(--ink-soft); }
.steps strong { color: var(--ink); }
.contact { display: grid; gap: 28px; align-items: center; padding: 44px; }
@media (min-width: 760px) { .contact { grid-template-columns: 1fr auto; } }

/* ---- Legal / prose pages ---- */
.page-hero { padding: 72px 0 16px; }
/* Halaman dalam: aksen gelap konsisten homepage + lebih tinggi. */
.hero-tall { padding: 110px 0 140px; }
@media (max-width: 760px) { .hero-tall { padding: 88px 0 104px; } }
.band .prose > .updated { color: #c4d7f2; }
.prose { max-width: 760px; }
.prose .glass { padding: 44px 40px; }
@media (max-width: 760px) { .prose .glass { padding: 30px 24px; } }
.prose h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.prose h2:first-of-type { margin-top: 20px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.prose a { color: var(--brand-strong); font-weight: 600; }
.updated { margin-top: 14px; }

/* ---- Contact form ---- */
.contact-grid { display: grid; gap: 30px; margin-top: 44px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field .req { color: var(--brand-strong); font-weight: 700; }
.contact-side { display: grid; gap: 18px; }
.contact-item { padding: 26px; }
.contact-item h3 { margin-bottom: 4px; }

/* ---- Footer ---- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 44px 0 60px; background: linear-gradient(180deg, #0b2447 0%, #071a36 100%); color: #c9dcf5; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.foot strong { color: #fff; }
footer .muted { color: #93a9c9; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot nav a { color: #9db8dd; text-decoration: none; font-size: 0.9rem; padding: 6px 0; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---- Cookie consent ---- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-consent); }
.consent[hidden] { display: none; }
.consent-box { max-width: 720px; margin: 0 auto; padding: 24px 26px; display: grid; gap: 14px; }
.consent-box p { font-size: 0.92rem; color: var(--ink-soft); }
.consent-box p a { color: var(--brand-strong); font-weight: 600; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) { .consent-box { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; visibility: visible; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-dark { background: #0d2440; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { background: #fff; border-color: var(--ink-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-dark { background: #0d2440; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
