/* ===== Tokens ===== */
:root {
  --navy-900: #071a33;
  --navy: #0b2545;
  --navy-700: #13315c;
  --blue: #195693;
  --blue-500: #2a6fb5;
  --sky: #62add9;
  --ice: #dcebf5;
  --red: #e3262b;
  --gold: #c9a227;
  --wa: #25d366;
  --wa-dark: #0f7a40;

  --ink: #0f1b2d;
  --ink-2: #4a5568;
  --ink-3: #667085; /* 4.6:1 on --bg-soft */
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 12px 32px rgba(11, 37, 69, .08);
  --wrap: 1120px;
  --gutter: 20px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Motion: one rhythm for the whole page */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: .15s;
  --dur: .25s;
  --dur-slow: .45s;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; } /* sticky topbar never covers a focused field or anchor */
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* ruang untuk dock */
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(30px, 6.4vw, 54px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
[hidden] { display: none !important; }
.num, .price, .result-big, output, .bars b, .ledger dd, .net b { font-variant-numeric: tabular-nums; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: 600 16px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) ease, background var(--dur) ease, box-shadow var(--dur) ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(25, 86, 147, .28); }
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 10px 26px rgba(25, 86, 147, .36); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #2fe072; }
.btn-wa::before {
  content: ''; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.8 14.1c-.2.7-1.4 1.3-2 1.4-.5.1-1.2.1-1.9-.1a17 17 0 0 1-1.7-.6 13 13 0 0 1-5-4.4c-.4-.5-1.1-1.6-1.1-3s.8-2.1 1-2.4c.3-.3.6-.4.8-.4h.6c.2 0 .4 0 .7.5l1 2.3c.1.2.1.4 0 .6l-.3.5-.5.5c-.1.2-.3.3-.1.6.2.3.8 1.3 1.6 2.1 1.1 1 2 1.3 2.3 1.4.3.2.5.1.6 0l.9-1c.2-.3.4-.2.7-.1l2.2 1c.3.2.5.3.6.4.1.2.1.8-.1 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.8 14.1c-.2.7-1.4 1.3-2 1.4-.5.1-1.2.1-1.9-.1a17 17 0 0 1-1.7-.6 13 13 0 0 1-5-4.4c-.4-.5-1.1-1.6-1.1-3s.8-2.1 1-2.4c.3-.3.6-.4.8-.4h.6c.2 0 .4 0 .7.5l1 2.3c.1.2.1.4 0 .6l-.3.5-.5.5c-.1.2-.3.3-.1.6.2.3.8 1.3 1.6 2.1 1.1 1 2 1.3 2.3 1.4.3.2.5.1.6 0l.9-1c.2-.3.4-.2.7-.1l2.2 1c.3.2.5.3.6.4.1.2.1.8-.1 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
.btn-block { display: flex; width: 100%; padding: 0 16px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 26, 51, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--sky)); font-weight: 800;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 15px; }
.brand-text span { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(98, 173, 217, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(25, 86, 147, .45), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: 48px 0 40px;
  overflow: hidden;
}
.hero-in { display: grid; gap: 36px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { font-size: clamp(38px, 9.6vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { color: rgba(255, 255, 255, .62); }
.lead { margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { flex: 1 1 200px; }

.hero-visual { position: relative; }
.hero-photo { margin: 0 0 -60px; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 420px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.price-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.price-label { font-size: 14px; color: rgba(255, 255, 255, .7); }
.price { font-size: clamp(76px, 22vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 6px 0 8px; }
.price .cur { font-size: .32em; vertical-align: top; margin-right: 4px; letter-spacing: 0; position: relative; top: .35em; color: rgba(255, 255, 255, .7); }
.price .per { font-size: .2em; letter-spacing: 0; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.price-sub { font-size: 15px; color: rgba(255, 255, 255, .78); }
.price-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .14); margin: 20px 0 14px; }
.price-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.price-meta dt { font-size: 12px; color: rgba(255, 255, 255, .6); }
.price-meta dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.fine { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.price-card .fine, .fine.light { color: rgba(255, 255, 255, .64); }

.trust { list-style: none; display: grid; gap: 10px; margin-top: 36px; }
.trust li { font-size: 14.5px; color: rgba(255, 255, 255, .75); padding-left: 26px; position: relative; }
.trust li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--sky); -webkit-mask: radial-gradient(circle, #000 35%, transparent 37%), linear-gradient(#000, #000); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.trust b { color: #fff; }

.price-date { font-size: 12.5px; color: var(--sky); margin-top: 6px; }
.trust-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mini-avatar { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--sky)); overflow: hidden; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-name { font-weight: 700; font-size: 15px; }
.tc-name span { display: block; font-weight: 500; font-size: 13px; color: var(--sky); }
.tc-line { font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-top: 6px; }
.tc-line a { color: #fff; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #fff; }
.sub { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.sub.light { color: rgba(255, 255, 255, .72); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; }

/* ===== Kalkulator ===== */
.calc { margin-top: 32px; padding: 24px 20px; }
.field + .field { margin-top: 24px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 600; font-size: 15px; }
.field-head output { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); }
.card.dark .field-head output { color: #fff; }
.range-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.card.dark .range-ends { color: rgba(255, 255, 255, .6); }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: manipulation;
  --fill: 100%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--fill), var(--line) var(--fill));
}
input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--blue); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04);
}
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.card.dark input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--sky) var(--fill), rgba(255, 255, 255, .16) var(--fill)); }
.card.dark input[type=range]::-moz-range-track { background: rgba(255, 255, 255, .16); }
.card.dark input[type=range]::-moz-range-progress { background: var(--sky); }

.tenure-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.tenure-note b { color: var(--navy); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { display: grid; align-content: center; gap: 2px; min-height: 60px; padding: 10px; border-radius: 14px; border: 1px solid #d5dce6; background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.25; cursor: pointer; text-align: center; touch-action: manipulation; transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease; }
.seg button:hover { border-color: var(--blue); }
.seg button small { font-weight: 500; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg button[aria-checked=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg button[aria-checked=true] small { color: rgba(255, 255, 255, .75); }
.result-tiers { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.result-tiers b { color: var(--navy); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: 600 15px var(--font); color: var(--ink); cursor: pointer;
}
.chip[aria-checked=true] { background: var(--navy); color: #fff; border-color: var(--navy); }

.result { margin: 26px -20px 22px; padding: 22px 20px; background: var(--bg-soft); border-block: 1px solid var(--line); }
.result-label { font-size: 14px; color: var(--ink-2); }
.result-big { font-size: clamp(64px, 18vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--navy); margin-top: 4px; }
.result-big .cur { font-size: .32em; letter-spacing: 0; margin-right: 4px; position: relative; top: -.95em; color: var(--ink-3); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.result-grid div { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.result-grid span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.result-grid b { font-size: 17px; font-variant-numeric: tabular-nums; }
.result-note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.result-note b { color: var(--wa-dark); }

/* ===== Features ===== */
.grid4 { display: grid; gap: 14px; margin-top: 36px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; align-content: start; }
.f-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--ice); }
.f-icon svg { width: 22px; height: 22px; }
.feature h3 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.feature p { margin-top: 12px; color: var(--ink-2); font-size: 16px; grid-column: 1 / -1; }

/* ===== Panduan ===== */
.guides { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--ink); min-height: 44px; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.guide b { display: block; font-size: 17px; }
.guide b::after { content: " \2192"; color: var(--blue); }
.guide span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.guide:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.guide b::after { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.guide:hover b::after { transform: translateX(3px); }

/* ===== Simulasi ===== */
.sim { position: relative; margin-top: 32px; }
.sim-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; transition: filter .4s ease; }
.sim.locked .sim-body { filter: blur(7px) saturate(.6); pointer-events: none; user-select: none; }
.sim-controls { padding: 20px; }
.history { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; container-type: inline-size; }
.history div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.history b { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; white-space: nowrap; }
.history div.low b { color: #ff8a8d; }
.history span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.history i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(98, 173, 217, .45); }
@container (max-width: 300px) {
  .history b { font-size: 9px; }
  .history span { transform: rotate(-40deg); transform-origin: center; margin-top: 4px; }
}
.history div.low i { background: rgba(227, 38, 43, .7); }

.toggle { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .2); position: relative; flex: none; transition: background .2s; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .toggle-ui { background: var(--wa); }
.toggle input:checked + .toggle-ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--sky); outline-offset: 2px; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { min-height: 44px; padding: 4px 6px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .78); font: 600 14px/1.2 var(--font); cursor: pointer; touch-action: manipulation; transition: background var(--dur) ease, color var(--dur) ease; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected=true] { background: #fff; color: var(--navy); }

.tab-panel { padding: 22px 20px; }
.panel-title { font-size: 15px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.panel-title b { color: #fff; }
.panel-foot { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 16px; }
.panel-foot b { color: #fff; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bar-top span { color: rgba(255, 255, 255, .78); }
.bar-top b { font-size: 16px; }
.bar-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .35); width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bars li.hl .bar-fill { background: linear-gradient(90deg, var(--sky), var(--wa)); }
.bars li.hl .bar-top span { color: #fff; font-weight: 700; }
.bars li.top .bar-top b::after { content: 'Tertinggi'; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--wa); color: #06331a; vertical-align: 2px; }
.bar-note { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.cmp-chart { margin: 4px 0 18px; }
.cmp-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cmp-chart .gl { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.cmp-chart .yl, .cmp-chart .xl { fill: rgba(255, 255, 255, .66); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.cmp-chart .ln { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-chart .ln-asbf { stroke-width: 3; }
.cmp-chart .ln-paid { stroke-width: 1.4; stroke-dasharray: 4 4; }
.bars .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.panel-foot .dash { display: inline-block; width: 16px; border-top: 2px dashed rgba(255, 255, 255, .55); margin-right: 8px; vertical-align: 4px; }
.insight { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(98, 173, 217, .14); font-size: 15px; line-height: 1.5; }

.ledger { margin: 0; display: grid; gap: 12px; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .14); font-size: 15px; }
.ledger dt { color: rgba(255, 255, 255, .75); }
.ledger dd { margin: 0; font-weight: 700; white-space: nowrap; }
.net { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.net span { font-size: 15px; color: rgba(255, 255, 255, .75); }
.net b { font-size: clamp(36px, 10vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--wa); }
.net b.neg { color: #ff8a8d; }

.roll-head { font-size: 16px; line-height: 1.5; margin-bottom: 14px; }
.roll { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.roll li { border-radius: 12px; padding: 10px 6px; text-align: center; background: rgba(255, 255, 255, .06); font-size: 12px; color: rgba(255, 255, 255, .6); }
.roll li b { display: block; font-size: 13px; color: #fff; margin-top: 2px; }
.roll li.free { background: rgba(37, 211, 102, .16); }
.roll li.free b { color: var(--wa); }
.roll li.pay b { color: #ffd27a; }

/* Pintu */
.gate { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 40px; }
.sim:not(.locked) .gate { display: none; }
.gate-card {
  width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 24px; padding: 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.gate-kicker { font-size: 12.5px; font-weight: 700; color: var(--wa-dark); text-transform: uppercase; letter-spacing: .06em; }
.gate-card h3 { font-size: 26px; margin-top: 6px; }
.gate-sub { color: var(--ink-2); font-size: 15px; margin: 10px 0 18px; }
.input { display: block; margin-bottom: 14px; }
.input > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.input em { font-weight: 400; color: var(--ink-3); font-style: normal; }
.input input, .input select, .phone {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid #d5dce6; background: #fff;
  font: 500 16px var(--font); color: var(--ink); padding: 0 14px;
}
.phone { display: flex; align-items: center; padding: 0; overflow: hidden; }
.phone span { padding: 0 12px; display: flex; align-items: center; background: var(--bg-soft); border-right: 1px solid #d5dce6; font-weight: 600; color: var(--ink-2); align-self: stretch; }
.phone input { border: 0; min-height: 48px; }
.input input[aria-invalid=true], .phone:has(input[aria-invalid=true]) { border-color: var(--red); }
.input .field-error { display: block; margin: 6px 0 0; font-size: 13.5px; font-weight: 500; color: #c81e23; }
.input .field-error:empty { display: none; }
.input .field-error::before { content: '! '; font-weight: 800; }
.input input:focus, .input select:focus, .phone:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 86, 147, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 14px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.form-error { color: #c81e23; font-size: 14px; min-height: 0; margin-bottom: 8px; }
.form-error:empty { display: none; }
.sim-disclaimer { margin-top: 22px; max-width: 760px; margin-inline: auto; }

/* ===== Syarat ===== */
.two-col { display: grid; gap: 28px; }
.checklist, .doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding: 16px 16px 16px 50px; border-radius: 14px; background: var(--bg-soft); position: relative; font-weight: 500; }
.checklist li::before { content: ''; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.list-title { font-weight: 700; margin: 24px 0 10px; }
.doclist { grid-template-columns: 1fr 1fr; }
.doclist li { font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }

/* ===== Langkah ===== */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px 22px 24px 76px; position: relative; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; font-size: 19px; }
.steps span { display: block; color: var(--ink-2); margin-top: 6px; font-size: 16px; }

/* ===== Risiko ===== */
.risk { padding: 28px 22px; }
.risk h2 { font-size: clamp(28px, 6vw, 40px); }
.risk ul { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 14px; }
.risk li { padding-left: 18px; border-left: 3px solid var(--ice); color: var(--ink-2); }
.risk li b { color: var(--ink); }
.risk-tip { margin-top: 20px; padding: 14px 16px; background: #fff7e0; border-radius: 12px; font-size: 15px; }

/* ===== FAQ ===== */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; min-height: 44px; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* ===== Tentang ===== */
.about { display: grid; gap: 24px; align-items: center; }
.avatar { width: 120px; height: 120px; border-radius: 32px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 40px; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(30px, 6vw, 44px); }
.role { color: var(--blue); font-weight: 600; margin: 6px 0 14px; }
.about p:not(.role):not(.eyebrow) { color: var(--ink-2); max-width: 36em; margin-bottom: 22px; }

.verify { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--bg-soft); }
.verify .list-title { margin-top: 0; }
.verify ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.verify b { color: var(--ink); }

.final { text-align: center; }
.final h2 { font-size: clamp(30px, 7vw, 52px); }
.final .btn { margin-top: 28px; }
.final .sub { margin-inline: auto; }

/* ===== Footer & dock ===== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); font-size: 13px; padding: 36px 0 28px; }
.footer p + p { margin-top: 12px; }
.footer b { color: rgba(255, 255, 255, .85); }
.footer a { color: rgba(255, 255, 255, .8); }

.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: rgba(7, 26, 51, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease-out);
}
.dock.show { transform: none; }
.dock a { min-height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; text-decoration: none; font-size: 15px; }
.dock-calc { color: #fff; background: rgba(255, 255, 255, .1); }
.dock-wa { background: var(--wa); color: #06331a; }

/* ===== Animasi ===== */
/* Hidden only when JS runs, so content is never lost to crawlers or a failed script */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .seg button, .tabs button, .guide, .dock, .toggle-ui, .toggle-ui::after { transition: none; }
  .bar-fill { transition: none; }
}

/* ===== Hero mudah alih: nombor besar naik ke atas ===== */
@media (max-width: 759px) {
  .hero { padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
  .hero-in { display: flex; flex-direction: column; gap: 0; }
  /* Order on phones: headline, price, CTAs (all in the first screen), then the story */
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-bottom: 10px; }
  .hero h1 { order: 2; font-size: clamp(32px, 8.6vw, 42px); }
  .hero-visual { order: 3; margin-top: 20px; }
  .hero-ctas { order: 4; margin-top: 16px; flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; }
  .lead { order: 5; font-size: 17px; margin-top: 24px; }
  .trust-card { order: 6; }
  .price-card { padding: 18px 18px 16px; border-radius: 24px; }
  .price { font-size: clamp(60px, 18vw, 80px); margin: 2px 0 6px; }
  .price-sub { font-size: 14px; }
  .price-date { display: none; } /* validity date is repeated in the trust strip just below */
  .price-card hr { margin: 14px 0 10px; }
  .price-meta dd { font-size: 18px; }
  .price-card .fine { margin-top: 8px; font-size: 12px; }
  .trust { margin-top: 28px; }
}

/* ===== Skrin besar ===== */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .section { padding: 112px 0; }
  .hero { padding: 88px 0 64px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .calc { padding: 36px; }
  .result { margin: 30px -36px 26px; padding: 26px 36px; }
  .calc-wrap { max-width: 1040px; }
  .calc-wrap > h2, .calc-wrap > .sub { max-width: 760px; }
  .chips { grid-template-columns: repeat(7, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .sim-body { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
  .sim-controls { grid-row: span 3; position: sticky; top: 80px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 84px 24px 28px; }
  .about { grid-template-columns: 200px 1fr; gap: 48px; }
  .avatar { width: 200px; height: 200px; border-radius: 44px; font-size: 64px; }
  .risk { padding: 44px; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 960px) {
  /* Calculator: inputs left, live answer right, so both stay in view while sliding */
  .calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; padding: 40px; align-items: stretch; }
  .calc-out { display: flex; flex-direction: column; }
  .calc .result { margin: 0 0 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); flex: 1; }
}
@media (min-width: 1040px) {
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .grid4 .feature { grid-template-columns: minmax(0, 1fr); }
  .grid4 .f-icon { margin-bottom: 18px; }
  .grid4 .feature h3 { min-height: 0; }
  .grid4 .feature p { margin-top: 10px; }
}
