/* Ammar Finance
   Satu tema gelap: kertas hijau tua, marigold, tanah liat, gradasi bergerak, dan pola halus.
   Form di kiri, slip hasil di kanan. */

:root {
  --bg: #0e1612;
  --surface: #15201a;
  --surface-2: #15201a;
  --soft: #173326;
  --slip: #172a20;
  --ink: #ece9df;
  --ink-2: #c5cbc3;
  --muted: #93a097;
  --line: #26342c;
  --line-strong: #46564c;
  --accent: #6cc79a;
  --accent-ink: #92dab5;
  --accent-soft: #173326;
  --on-accent: #0e1612;
  --hi: #f2bd4f;
  --hi-ink: #f2bd4f;
  --hi-soft: #33290f;
  --on-hi: #1d1606;
  --hi-hover: #f6c55e;
  --clay: #e57f53;
  --clay-soft: #3a2218;
  --deep: #14382a;
  --deep-2: #1d4a38;
  --on-deep: #f3efe3;
  --on-deep-2: #b6c7bb;
  --deep-line: rgba(245, 240, 228, 0.14);
  --deep-line-strong: rgba(245, 240, 228, 0.35);
  --deep-hover: rgba(245, 240, 228, 0.06);
  --good: #5cc995;
  --good-soft: #13291f;
  --warn: #e8a64c;
  --warn-soft: #2e2212;
  --bad: #f8796d;
  --bad-soft: #341815;
  --s1: #4fb487;
  --s2: #d9733f;
  --s3: #6a9de0;
  --s-muted: #56635b;
  --grid: #1f2b24;
  --punch: var(--bg);
  /* komponen */
  --c1-bg: #173326; --c1-ink: #92dab5;
  --c2-bg: #33290f; --c2-ink: #f2bd4f;
  --c3-bg: #3a2218; --c3-ink: #e57f53;
  --mark-bg: #14382a; --mark-ink: #f2bd4f;
  --navcta-bg: #14382a; --navcta-ink: #f3efe3; --navcta-hover: #1d4a38;
  --tip-bg: #14382a; --tip-ink: #f3efe3;
  --t1: #173326; --t2: #33290f; --t3: #3a2218; --t-line: transparent;
  --t-hover1: #6cc79a; --t-hover2: #f2bd4f; --t-hover3: #e57f53;
  --go1: #6cc79a; --go2: #f2bd4f; --go3: #e57f53;
  --hero-bg: #14382a; --hero-em: #f2bd4f;
  --mmm-bg: #15201a; --mmm-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
  --shine: rgba(255, 255, 255, 0.45);
  --grid-line: rgba(236, 233, 223, 0.045); --spot: rgba(255, 255, 255, 0.07); --glow: rgba(242, 189, 79, 0.12);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --t-hero: clamp(2.7rem, 1.6rem + 4.6vw, 4.8rem);

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --r-card: 18px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--hi-soft); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }
.label {
  font: 500 var(--t-xs)/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 var(--t-xs)/1 var(--f-sans); letter-spacing: 0.01em;
  padding: 6px 10px; border-radius: 999px;
  background: var(--c1-bg); color: var(--c1-ink);
  text-decoration: none; white-space: nowrap;
}
.chip.c2 { background: var(--c2-bg); color: var(--c2-ink); }
.chip.c3 { background: var(--c3-bg); color: var(--c3-ink); }
.chip.plain { background: transparent; color: var(--muted); border: 1px solid var(--line); }
a.chip:hover { filter: brightness(0.97); }

/* ---------- header ---------- */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--mark-bg); color: var(--mark-ink);
  font: italic 500 1.15rem/1 var(--f-display);
}
.brand-name { font: 500 1.4rem/1 var(--f-display); letter-spacing: -0.01em; }
.brand-name i { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: var(--t-sm); margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--hi); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--hi); }
.nav a.nav-cta { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--navcta-bg); color: var(--navcta-ink); font-weight: 500; }
.nav a.nav-cta:hover { background: var(--navcta-hover); color: var(--navcta-ink); }
.nav a.nav-cta[aria-current="page"] { background: var(--hi); color: var(--on-hi); }
@media (max-width: 640px) {
  .site-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 12px; padding-block: 12px; }
  .site-head .nav { margin-left: 0; gap: 4px 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 var(--t-sm)/1 var(--f-sans);
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.hi { background: var(--hi); border-color: var(--hi); color: var(--on-hi); }
.btn.hi:hover { background: var(--hi-hover); border-color: var(--hi-hover); }
.btn.light { background: transparent; border-color: var(--deep-line-strong); color: var(--on-deep); }
.btn.light:hover { border-color: var(--on-deep); color: var(--on-deep); background: var(--deep-hover); }
.btn.small { padding: 9px 13px; font-size: var(--t-xs); }
.arrow::after { content: "→"; font-family: var(--f-sans); }
.textlink { color: var(--accent); text-decoration: none; font-weight: 500; }
.textlink:hover { text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- page head (tools, consult, blog) ---------- */
.tool-head { padding-block: clamp(28px, 5vw, 56px) clamp(22px, 3.5vw, 36px); display: grid; gap: 14px; justify-items: start; }
.tool-head h1 { font: 400 var(--t-xl)/1.05 var(--f-display); letter-spacing: -0.015em; }
.tool-head .lede { font: 400 italic clamp(1.12rem, 1rem + 0.5vw, 1.35rem)/1.4 var(--f-display); color: var(--ink-2); max-width: 44ch; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a.back { color: var(--muted); text-decoration: none; font-size: var(--t-sm); }
.crumbs a.back:hover { color: var(--ink); }

/* ---------- calculator layout ---------- */
/* FIRE: penjelasan singkat di atas kalkulator */
.fire-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(20px, 3vw, 32px); margin-bottom: clamp(28px, 4vw, 44px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .fire-intro { grid-template-columns: minmax(0, 1fr); } }
.fire-intro > div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.fire-intro h2 { font: 400 var(--t-lg)/1.15 var(--f-display); letter-spacing: -0.01em; }
.fi-lead { color: var(--ink-2); max-width: 54ch; }
.fi-lead strong { color: var(--ink); font-weight: 600; }
.fi-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
@media (max-width: 420px) { .fi-terms { grid-template-columns: minmax(0, 1fr); } }
.fi-terms > div { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--t1); }
.fi-terms > div + div { background: var(--t2); }
.fi-terms dt { display: grid; gap: 4px; font: 500 var(--t-xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fi-terms dt b { font: 500 2rem/1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--accent); }
.fi-terms > div + div dt b { color: var(--hi); }
.fi-terms dd { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.fire-intro .steps b { color: var(--accent); font-weight: 600; }
.fi-note { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); max-width: 96ch; }
.fi-note strong { color: var(--ink); font-weight: 600; }
.fi-link { grid-column: 1 / -1; justify-self: start; margin-top: -8px; }

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 30px; min-width: 0; }
.group { display: grid; gap: 22px; border: 0; margin: 0; padding: 0; min-width: 0; }
.group > legend { padding: 0; margin-bottom: 16px; display: flex; gap: 12px; align-items: baseline; width: 100%; color: var(--accent-ink); }
.group > legend .note { font: 400 var(--t-xs)/1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 24px; }
@media (max-width: 420px) { .pair { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field > label, .field > .flabel { font: 500 var(--t-sm)/1.35 var(--f-sans); color: var(--ink); }
.inp {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 6px 0 7px;
  transition: border-color .15s, box-shadow .15s;
}
.inp:hover { border-color: var(--ink-2); }
.inp:focus-within { border-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); }
.inp input, .inp select {
  flex: 1; min-width: 0; width: 100%;
  border: 0; outline: 0; background: transparent; padding: 0; margin: 0;
  color: var(--ink);
  font: 500 1.3rem/1.25 var(--f-sans);
  font-variant-numeric: tabular-nums;
}
.inp select option { color: #15231c; }
.inp input[type="text"]:not([data-type]) { font-size: 1.1rem; }
.inp .pre, .inp .suf { color: var(--muted); font-size: var(--t-sm); white-space: nowrap; }
.inp.invalid { border-color: var(--bad); }
.hint { font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
/* hints stay folded until the field is in use: fewer words on screen */
.field > .hint, .group > .hint {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .2s ease, opacity .2s ease, margin .2s ease;
}
.field > .hint { margin-top: -4px; }
.group > .hint { margin-top: -22px; }
.field:focus-within > .hint, .group:focus-within > .hint { max-height: 9em; opacity: 1; }
.field:focus-within > .hint { margin-top: 0; }
.group:focus-within > .hint { margin-top: -12px; }

/* segmented choice */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--t-sm); line-height: 1.2;
  color: var(--ink-2);
  transition: background .12s, color .12s, border-color .12s;
}
.seg label:hover span { border-color: var(--accent); color: var(--ink); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.presets button {
  font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.02em;
  padding: 6px 9px; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer;
}
.presets button:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ---------- the slip ---------- */
.slip {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px);
  background: var(--slip);
  padding: 30px clamp(20px, 3vw, 34px) 28px;
  min-width: 0;
  display: grid; gap: 22px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  border-top: 5px solid var(--accent);
}
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: radial-gradient(circle at 7px 0, var(--punch) 4.5px, transparent 5px) 0 0 / 14px 6px repeat-x;
}
.slip::before { top: -5px; }
@media (max-width: 860px) { .slip { position: relative; top: 0; } }
.slip-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px dashed var(--line-strong); padding-bottom: 12px; }
.res-main { display: grid; gap: 6px; }
.res-label { font-size: var(--t-sm); color: var(--ink-2); }
.res-big {
  font: 600 clamp(1.9rem, 1.2rem + 2.6vw, 2.85rem)/1.08 var(--f-sans);
  letter-spacing: -0.02em; color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.res-big small { font-size: 0.45em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.terbilang { font: 400 italic 1.02rem/1.4 var(--f-display); color: var(--ink-2); }
.terbilang::before { content: "Terbilang: "; font: 500 var(--t-xs)/1 var(--f-mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.res-note { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.res-note strong { color: var(--ink); font-weight: 600; }

.rows { margin: 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 9px; border-top: 1px solid color-mix(in srgb, var(--line-strong) 45%, transparent); }
.rows > div:first-child { border-top: 0; }
.rows dt { font-size: var(--t-sm); color: var(--ink-2); min-width: 0; }
.rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rows dd.wrap-ok { white-space: normal; }

.slip-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 var(--t-xs)/1 var(--f-sans);
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.pill::before { font-weight: 700; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.good::before { content: "✓"; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.warn::before { content: "!"; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.bad::before { content: "✕"; }

.meter { display: grid; gap: 8px; }
.meter-track { position: relative; height: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 999px; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.meter-legend { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- sections under the calculator ---------- */
.block { padding-block: clamp(40px, 6vw, 60px) 0; display: grid; gap: 16px; min-width: 0; }
.block h2, .h2 { font: 400 var(--t-lg)/1.15 var(--f-display); letter-spacing: -0.01em; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prose { max-width: 68ch; display: grid; gap: 14px; color: var(--ink-2); }
p.prose { display: block; }
.block > p.prose { font-size: var(--t-sm); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.formula {
  font: 400 var(--t-sm)/1.7 var(--f-mono);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 12px;
  overflow-x: auto; white-space: pre; max-width: 100%;
}
.source { font-size: var(--t-sm); color: var(--muted); }

/* folded "how it's calculated" */
details.more { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 60px); padding-block: 0; gap: 0; }
details.more > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h2 { font: 500 var(--t-md)/1.3 var(--f-display); }
details.more > summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 500 1.1rem/1 var(--f-mono);
  background: var(--soft); color: var(--accent-ink);
}
details.more[open] > summary::after { content: "−"; }
details.more > :not(summary) { margin-bottom: 16px; }

/* chart */
.chart-wrap { display: grid; gap: 12px; min-width: 0; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.legend i.line { height: 2px; border-radius: 1px; }
.legend i.dash { height: 0; border-top: 2px dashed; background: none !important; }
.chart { position: relative; width: 100%; min-height: 220px; }
.chart svg { display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 400 11.5px var(--f-sans); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible { stroke: var(--accent); stroke-width: 1; }
.tip {
  position: absolute; pointer-events: none; z-index: 2;
  background: var(--tip-bg); color: var(--tip-ink);
  padding: 9px 11px; border-radius: 10px;
  font-size: var(--t-xs); line-height: 1.5;
  min-width: 150px; max-width: 240px;
  box-shadow: 0 6px 20px rgba(10, 25, 18, 0.22);
}
.tip b { display: block; font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .04em; opacity: .75; margin-bottom: 2px; }
.tip .r { display: flex; align-items: center; gap: 8px; }
.tip .r i { width: 10px; height: 2px; flex: none; }
.tip .r strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tip .r span { opacity: .75; margin-left: auto; padding-left: 8px; }

/* tables */
details.tbl { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.tbl > summary { cursor: pointer; padding-block: 14px; font-weight: 500; font-size: var(--t-sm); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.tbl > summary::-webkit-details-marker { display: none; }
details.tbl > summary::after { content: "Tampilkan"; color: var(--accent); }
details.tbl[open] > summary::after { content: "Sembunyikan"; }
.table-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 14px; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px 8px 0; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
tr.hl td { background: var(--hi-soft); font-weight: 600; }
tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--hi); padding-left: 8px; }

/* ---------- consult CTA (dark card) ---------- */
.cta {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--deep); color: var(--on-deep);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 40px; align-items: center;
}
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { font: 400 var(--t-lg)/1.2 var(--f-display); }
.cta p { color: var(--on-deep-2); margin-top: 8px; max-width: 46ch; }
.cta .label { color: var(--on-deep-2); }
.cta .actions { justify-content: flex-start; }
@media (min-width: 761px) { .cta .actions { justify-content: flex-end; } }
.price-line { font: 500 var(--t-sm)/1.4 var(--f-mono); color: var(--hi) !important; margin-top: 12px; }

/* related tiles */
.related { padding-block: 36px 0; display: grid; gap: 14px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.related li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.related li a span:first-child { font: 400 1.12rem/1.3 var(--f-display); }
.related li a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related li a span:last-child { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 8vw, 96px); background: var(--deep); color: var(--on-deep-2); padding-block: 44px 40px; font-size: var(--t-sm); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-foot .brand-name { color: var(--on-deep); }
.site-foot .brand-name i { color: var(--hi); }
.site-foot h3 { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hi); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; color: var(--on-deep); }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--deep-line); padding-top: 18px; display: grid; gap: 4px; font-size: var(--t-xs); max-width: 90ch; }

/* ---------- mobile peek bar ---------- */
.peek {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--deep); color: var(--on-deep);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform .2s ease;
}
.peek.show { transform: translateY(0); }
.peek .pl { font-size: var(--t-xs); opacity: .75; display: block; }
.peek .pv { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hi); }
.peek a { color: var(--on-deep); font-size: var(--t-sm); white-space: nowrap; }
@media (max-width: 860px) { .peek { display: flex; } }

/* ---------- home: hero ---------- */
.hero { padding-top: clamp(8px, 2vw, 20px); }
.hero-card {
  background: var(--hero-bg); color: var(--on-deep);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(28px, 5.5vw, 68px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  --punch: var(--deep);
}
@media (max-width: 900px) { .hero-card { grid-template-columns: minmax(0, 1fr); } }
.hero .label { color: var(--on-deep-2); }
.hero h1 { font: 400 var(--t-hero)/0.98 var(--f-display); letter-spacing: -0.025em; margin-top: 18px; }
.hero h1 em { color: var(--hero-em); }
.hero .lede { margin-top: 20px; font-size: 1.12rem; color: var(--on-deep-2); max-width: 36ch; }
.hero .actions { margin-top: 28px; }
.stats { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 32px 0 0; }
.stats div { display: grid; gap: 2px; }
.stats dd { margin: 0; order: -1; font: 500 1.9rem/1 var(--f-display); color: var(--on-deep); }
.stats dt { font: 500 var(--t-xs)/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-2); }

.mmm {
  background: var(--mmm-bg); color: var(--ink); padding: 30px clamp(20px, 3vw, 30px) 24px; position: relative; display: grid; gap: 18px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  /* tepi sobekan di atas, tembus ke latar */
  -webkit-mask: radial-gradient(circle at 7px 0, #0000 4.5px, #000 5px) 0 0 / 14px 6px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 6px) no-repeat;
  mask: radial-gradient(circle at 7px 0, #0000 4.5px, #000 5px) 0 0 / 14px 6px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 6px) no-repeat;
  box-shadow: var(--mmm-shadow);
}
.mmm .label { color: var(--muted); }
.mmm-sentence { font: 400 clamp(1.3rem, 1.05rem + 1vw, 1.65rem)/1.35 var(--f-display); }
.mmm-sentence output { font-family: var(--f-sans); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; background: var(--hi-soft); padding: 0 6px; border-radius: 6px; }
.range { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.range-scale { display: flex; justify-content: space-between; font: 400 var(--t-xs)/1 var(--f-mono); color: var(--muted); margin-top: -6px; }
.mmm .fine { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }

/* ---------- home: section heads ---------- */
.sec { padding-top: clamp(56px, 8vw, 96px); display: grid; gap: clamp(22px, 3vw, 32px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; }
.sec-head h2 { font: 400 var(--t-xl)/1.05 var(--f-display); letter-spacing: -0.015em; }
.sec-head p { color: var(--muted); font-size: var(--t-sm); }

/* pembuka beranda: masalah keuangan (merah = masalah, hijau = jalan keluar) */
.problem .sec-head .label { color: var(--bad); margin-bottom: 10px; }
.flag { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #2a0f0b; font: 700 0.8rem/1 var(--f-sans); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts li { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 20px 22px; border-radius: 14px; background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 28%, transparent); }
.facts .flag { position: absolute; top: 16px; right: 16px; }
.fact-n { font: 500 clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem)/1.05 var(--f-display); color: var(--bad); letter-spacing: -0.01em; padding-right: 28px; }
.facts p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.ask { display: grid; gap: 14px; }
.ask h3 { font: 400 var(--t-lg)/1.2 var(--f-display); }
.ask ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .ask ul { grid-template-columns: minmax(0, 1fr); } }
.ask li { display: flex; gap: 12px; align-items: flex-start; padding-block: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.ask li .flag { margin-top: 2px; }
.good-news { display: grid; gap: 14px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-card); background: var(--t1); border-left: 4px solid var(--accent); }
.good-news p { color: var(--ink-2); max-width: 70ch; }
.good-news .gn-lead { font: 400 clamp(1.35rem, 1.1rem + 1vw, 1.8rem)/1.3 var(--f-display); color: var(--ink); max-width: 34ch; }
.good-news .gn-close { color: var(--accent-ink); font-weight: 500; }
.good-news .actions { margin-top: 6px; }
.fn { font-size: 0.68em; line-height: 0; margin-left: 2px; vertical-align: super; }
.fn a { color: var(--muted); text-decoration: none; }
.fn a:hover { color: var(--accent); text-decoration: underline; }
.sources { font-size: var(--t-xs); color: var(--muted); }
.sources summary { cursor: pointer; width: max-content; }
.sources summary:hover { color: var(--ink); }
.sources ol { margin: 10px 0 0; padding-left: 1.4em; display: grid; gap: 6px; max-width: 90ch; }
.sources a { color: var(--accent); }

/* tool tiles in three coloured columns */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .groups { grid-template-columns: minmax(0, 1fr); } }
.grp { display: grid; gap: 10px; }
.grp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 4px; }
.grp-head h3 { margin: 0; }
.grp-head .label { letter-spacing: .04em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tile {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
  padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: var(--t1); border: 1px solid var(--t-line);
  transition: transform .15s, border-color .15s, background .15s;
}
.c2 .tile { background: var(--t2); }
.c3 .tile { background: var(--t3); }
.tile:hover { transform: translateY(-2px); border-color: var(--t-hover1); }
.c2 .tile:hover { border-color: var(--t-hover2); }
.c3 .tile:hover { border-color: var(--t-hover3); }
.tile .n { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--muted); grid-row: span 2; align-self: start; padding-top: 5px; }
.tile .t { font: 500 1.14rem/1.25 var(--f-display); }
.tile .s { grid-column: 2; font-size: var(--t-xs); color: var(--ink-2); }
.tile .go { grid-column: 3; grid-row: 1 / span 2; color: var(--go1); transition: transform .15s; }
.c2 .tile .go { color: var(--go2); }
.c3 .tile .go { color: var(--go3); }
.tile:hover .go { transform: translateX(3px); }

/* about + price */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.who { display: grid; gap: 18px; justify-items: start; }
.who-top { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 68px; height: 68px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--hi); color: var(--on-hi);
  font: italic 500 2rem/1 var(--f-display);
}
.who h2 { font: 400 var(--t-xl)/1.05 var(--f-display); letter-spacing: -0.015em; }
.who p { color: var(--ink-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.who .who-lead { font: 400 italic clamp(1.2rem, 1.02rem + 0.7vw, 1.5rem)/1.35 var(--f-display); color: var(--ink); max-width: 30ch; }
.why { gap: 10px; }
.why li { color: var(--ink-2); max-width: 52ch; }
.why strong { color: var(--ink); font-weight: 600; }
.cert { margin: 4px 0 0; display: grid; gap: 10px; width: 100%; max-width: 440px; }
.cert a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); transition: transform .2s; }
.cert a:hover { transform: translateY(-2px); }
.cert img { display: block; width: 100%; height: auto; }
.cert figcaption { font-size: var(--t-xs); color: var(--muted); }

.price-card {
  background: var(--deep); color: var(--on-deep);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 36px);
  display: grid; gap: 18px; align-content: start;
}
.price-card .label { color: var(--on-deep-2); }
.price-card .price { font: 600 clamp(2.1rem, 1.5rem + 2vw, 2.8rem)/1 var(--f-sans); letter-spacing: -0.02em; color: var(--hi); }
.price-card .price small { font-size: 0.4em; font-weight: 500; color: var(--on-deep-2); letter-spacing: 0; }
.was-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; letter-spacing: 0; }
.price .was { font-size: 0.42em; font-weight: 500; color: var(--on-deep-2); text-decoration-thickness: 2px; }
.price-line .was { opacity: .7; margin-right: 2px; }
.price-card .ticks { color: var(--on-deep); }
.price-card .ticks li::before { color: var(--hi); }
.price-card .textlink { color: var(--hi); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* latest posts */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: grid; gap: 12px; align-content: start;
  padding: 22px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .t { font: 400 1.35rem/1.2 var(--f-display); }
.card .d { font-size: var(--t-xs); color: var(--muted); }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- konsultasi ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .consult { grid-template-columns: minmax(0, 1fr); } }
.consult-main { display: grid; gap: clamp(36px, 5vw, 52px); min-width: 0; }
.consult-main section { display: grid; gap: 16px; }
.consult-main h2 { font: 400 var(--t-lg)/1.15 var(--f-display); }
.fit { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fit li { padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--t-sm); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow li { counter-increment: flow; display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 14px; background: var(--t1); border: 1px solid var(--t-line); }
.flow li::before { content: counter(flow, decimal-leading-zero); font: 500 var(--t-xs)/1 var(--f-mono); color: var(--accent-ink); }
.flow strong { font: 500 1.12rem/1.25 var(--f-display); }
.flow li > span { font-size: var(--t-sm); color: var(--ink-2); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.roles > div { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 14px; background: var(--t1); }
.roles > div + div { background: var(--t2); }
.roles > div + div .label { color: var(--hi); }
.roles p { font: 500 1.2rem/1.25 var(--f-display); }
.role-note { color: var(--ink-2); font-size: var(--t-sm); max-width: 60ch; padding-left: 14px; border-left: 3px solid var(--hi); }
.role-note strong { color: var(--ink); font-weight: 600; }
/* perbandingan profesi keuangan */
.peran { padding-top: clamp(56px, 8vw, 96px); display: grid; gap: 22px; scroll-margin-top: 16px; }
.cmp-table { border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); font-variant-numeric: normal; }
.cmp-table th, .cmp-table td { white-space: normal; text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.cmp-table thead th { padding-block: 0 12px; }
.cmp-table thead th:nth-child(1) { width: 18%; }
.cmp-table thead th:nth-child(2) { width: 30%; }
.cmp-table thead th:nth-child(3) { width: 32%; }
.cmp-table tbody th { font: 500 1.08rem/1.3 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.cmp-table td { color: var(--ink-2); }
.cmp-table td strong { color: var(--ink); font-weight: 600; }
.cmp-table td:last-child { color: var(--accent-ink); font-weight: 500; }
.cmp-table tr.me > * { background: var(--t2); border-bottom-color: transparent; }
.cmp-table tr.me th { padding-left: 18px; border-radius: 14px 0 0 14px; }
.cmp-table tr.me td:last-child { border-radius: 0 14px 14px 0; color: var(--hi); }
.cmp-table tr.me .chip { margin-left: 6px; vertical-align: 2px; }
.cmp-note { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 760px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table tbody { display: grid; gap: 10px; }
  .cmp-table tr { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .cmp-table tr.me { background: var(--t2); border-color: transparent; }
  .cmp-table tr.me > * { background: none; }
  .cmp-table th, .cmp-table td, .cmp-table tr.me th { padding: 0; border: 0; border-radius: 0; }
  .cmp-table td::before { content: attr(data-label); display: block; margin-top: 12px; font: 500 var(--t-xs)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
.consult .price-card { position: sticky; top: 20px; }
@media (max-width: 860px) { .consult .price-card { position: static; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 var(--t-xs)/1.9 var(--f-mono); color: var(--muted); grid-row: span 2; }
.steps strong { font-weight: 600; }
.steps span { color: var(--ink-2); font-size: var(--t-sm); grid-column: 2; }

.contact-list { display: grid; gap: 0; }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; border-top: 1px solid var(--deep-line); text-decoration: none; flex-wrap: wrap; }
.contact-list .k { color: var(--on-deep-2); font-size: var(--t-sm); }
.contact-list .v { font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover .v { color: var(--hi); }
.contact-list .btn.ghost { color: var(--on-deep); border-color: var(--deep-line-strong); }

.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 14px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); max-width: 64ch; }

.notice { font-size: var(--t-sm); padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* debt rows */
.debts { display: grid; gap: 16px; }
.debt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .6fr) minmax(0, 1.15fr) 28px; gap: 10px 14px; align-items: end; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px) { .debt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; } .debt .f-name { grid-column: 1 / 3; } .debt .rm { grid-row: 1; grid-column: 3; } .debt .f-bal { grid-column: 1 / -1; } .debt .f-rate { grid-column: 1 / 2; } .debt .f-min { grid-column: 2 / -1; } }
.debt .field > label { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.debt .inp input { font-size: 1rem; }
.rm { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.rm:hover { color: var(--bad); border-color: var(--bad); }
.order { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: var(--t-sm); }
.order li { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-top: 1px solid var(--line); }
.order li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 420px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare > div { display: grid; gap: 8px; align-content: start; }
.compare h3 { font: 500 var(--t-sm)/1.3 var(--f-sans); display: flex; align-items: center; gap: 8px; }
.compare h3 i { width: 14px; height: 2px; display: inline-block; }

/* budget bars */
.hbar { display: flex; height: 14px; gap: 2px; }
.hbar span { display: block; height: 100%; min-width: 2px; }
.hbar span:first-child { border-radius: 999px 0 0 999px; }
.hbar span:last-child { border-radius: 0 999px 999px 0; }
.cmp-row { display: grid; gap: 6px; padding-block: 10px; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); flex-wrap: wrap; }
.cmp-top b { font-weight: 600; }
.cmp-bar { position: relative; height: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 999px; }
.cmp-bar .act { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }
.cmp-bar .ideal { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

/* ratio list (cek kesehatan) */
.ratios { display: grid; }
.ratio { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 18px; border-top: 1px solid var(--line); align-items: baseline; }
.ratio:last-child { border-bottom: 1px solid var(--line); }
.ratio h3 { font: 500 1.05rem/1.3 var(--f-sans); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.ratio h3 .label { font-weight: 400; }
.ratio .val { font: 600 1.45rem/1 var(--f-sans); text-align: right; white-space: nowrap; }
.ratio p { color: var(--ink-2); font-size: var(--t-sm); max-width: 62ch; }
.ratio .st { justify-self: end; }

/* 404 */
.lost { padding-block: clamp(64px, 12vw, 140px); display: grid; gap: 18px; justify-items: start; }
.lost h1 { font: 400 var(--t-hero)/1 var(--f-display); }
.lost h1 em { color: var(--accent); }

/* ---------- blog ---------- */
.blog-list { display: grid; gap: clamp(28px, 4vw, 40px); }
.year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 32px; }
@media (max-width: 640px) { .year { grid-template-columns: minmax(0, 1fr); } }
.year h2 { font: 400 var(--t-lg)/1 var(--f-display); color: var(--accent); }
.year ul { list-style: none; margin: 0; padding: 0; display: grid; }
.year li a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.year li:first-child a { padding-top: 4px; }
.year .t { font: 400 1.25rem/1.3 var(--f-display); }
.year .d { grid-column: 1; font-size: var(--t-xs); color: var(--muted); }
.year .chip { grid-column: 2; grid-row: 1 / span 2; }
.year li a:hover .t { color: var(--accent); }

.post { max-width: 720px; margin-inline: auto; }
.post-head { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 28px); display: grid; gap: 16px; justify-items: start; }
.post-head h1 { font: 400 clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem)/1.05 var(--f-display); letter-spacing: -0.02em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-sm); color: var(--muted); }
.post-body { font: 400 1.19rem/1.72 var(--f-display); color: var(--ink); display: grid; gap: 1.15em; padding-top: 8px; border-top: 1px solid var(--line); padding-top: clamp(22px, 3vw, 30px); }
.post-body > * { margin: 0; min-width: 0; }
.post-body h2 { font: 500 1.6rem/1.2 var(--f-display); margin-top: 0.8em; letter-spacing: -0.01em; }
.post-body h3 { font: 600 1.08rem/1.3 var(--f-sans); margin-top: 0.4em; }
.post-body a { color: var(--accent); text-decoration-color: currentColor; }
.post-body strong { font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.post-body li > ul { margin-top: 0.45em; }
.post-body li::marker { color: var(--accent); }
.post-body .lead { font-size: 1.4rem; line-height: 1.45; }
.post-body .kicker { color: var(--muted); }
.post-body blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hi); display: grid; gap: 8px; font-style: italic; color: var(--ink-2); }
.post-body blockquote cite { font: 500 var(--t-xs)/1.3 var(--f-mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.post-body blockquote.big { border: 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--deep); color: var(--on-deep); font: italic 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem)/1.3 var(--f-display); }
.post-body .callout { padding: 18px 20px; border-radius: 14px; background: var(--hi-soft); font: 500 1.12rem/1.5 var(--f-sans); }
.post-body .closer { font: italic 500 1.5rem/1.3 var(--f-display); color: var(--accent); }
.post-body .note { font: 400 var(--t-sm)/1.6 var(--f-sans); color: var(--ink-2); padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.post-body .ref { font: 400 var(--t-sm)/1.6 var(--f-sans); color: var(--muted); }
.post-body .formula { font-size: 0.95rem; white-space: normal; }
.post-body .example { padding: 18px 20px; border-radius: 14px; background: var(--soft); font: 400 1.02rem/1.6 var(--f-sans); display: grid; gap: 10px; }
.post-body .example ul { list-style: none; padding: 0; }
.post-body figure { margin: 0.4em 0; text-align: center; }
.post-body figure img { height: auto; max-width: 100%; border-radius: 12px; display: block; margin-inline: auto; }
.post-body figcaption { font: 400 var(--t-xs)/1.4 var(--f-sans); color: var(--muted); margin-top: 8px; }
.post-body .table-scroll { font-family: var(--f-sans); }
.post-body ol.points { list-style: none; padding: 0; counter-reset: pt; gap: 1em; }
.post-body ol.points > li { counter-increment: pt; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0 12px; }
.post-body ol.points > li::before {
  content: counter(pt); width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--hi-soft); color: var(--hi-ink);
  font: 600 var(--t-sm)/1 var(--f-sans); margin-top: 0.15em;
}
.post-body ol.steps { counter-reset: st; gap: 0; padding: 0; }
.post-body ol.steps > li { counter-increment: st; display: flex; gap: 14px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); grid-template-columns: none; }
.post-body ol.steps > li::before { content: counter(st, decimal-leading-zero); font: 500 var(--t-xs)/1 var(--f-mono); color: var(--accent); flex: none; width: 1.6rem; }
.post-body ul.checklist { list-style: none; padding: 0; }
.post-body ul.checklist > li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); }
.post-body ul.checklist > li::before { content: "✓"; color: var(--accent); font-family: var(--f-sans); font-weight: 600; }
.post-tools { margin-top: clamp(36px, 5vw, 52px); padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--soft); display: grid; gap: 14px; }
.post-tools h2 { font: 500 1.3rem/1.2 var(--f-display); }
.post-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tools a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: var(--t-sm); font-weight: 500; border: 1px solid transparent; }
.post-tools a:hover { border-color: var(--accent); color: var(--accent); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } }
.pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.pager a:hover { border-color: var(--accent); }
.pager .label { font-size: 0.7rem; }
.pager .t { font: 400 1.08rem/1.3 var(--f-display); }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager .next { grid-column: 1; } }
.post .cta { margin-top: clamp(36px, 5vw, 52px); }

/* ---------- video ---------- */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.vid { margin: 0; display: grid; gap: 10px; min-width: 0; }
:is(.vid, .ig-profile) .instagram-media, :is(.vid, .ig-profile) iframe { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; border-radius: 14px !important; }
:is(.vid, .ig-profile) blockquote.instagram-media { padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
:is(.vid, .ig-profile) blockquote.instagram-media a { color: var(--accent); font-weight: 500; text-decoration: none; }
.vid figcaption { font: 400 1.08rem/1.3 var(--f-display); }
.ig-feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 24px clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .ig-feed { grid-template-columns: minmax(0, 1fr); } }
.ig-feed-text { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 861px) { .ig-feed-text { position: sticky; top: 20px; } }
.ig-feed-text h2 { font: 400 var(--t-xl)/1.05 var(--f-display); letter-spacing: -0.015em; }
.ig-feed-text p { color: var(--ink-2); max-width: 32ch; }
.ig-feed-text .btn { margin-top: 8px; }
.ig-profile { min-width: 0; }
:is(.ig-feed, .vid-sec) + .follow { margin-top: clamp(40px, 6vw, 64px); }
.follow {
  margin-top: 18px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card);
  background: var(--deep); color: var(--on-deep);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.follow p { display: grid; gap: 2px; }
.follow strong { font: 500 1.3rem/1.2 var(--f-display); }
.follow p > span { color: var(--on-deep-2); font-size: var(--t-sm); }
.site-foot .mark { background: var(--hi); color: var(--deep); }

/* =========================================================
   Lapisan visual: gradasi bergerak, pola, dan gerak halus.
   Gradasi bergaya NEAT/feralui dibuat dengan CSS murni (tanpa
   WebGL, tanpa watermark). Pola latar gaya PatternCraft.
   Efek gaya motion-primitives & transitions.dev.
   ========================================================= */
/* kertas grafik samar di bagian atas setiap halaman */
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center -1px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 100%); mask-image: linear-gradient(#000 0%, transparent 100%);
}
main, .site-head, .site-foot { position: relative; }

/* hero: gradasi mesh yang pelan bergerak + pola titik */
.hero-card { position: relative; overflow: hidden; isolation: isolate; }
.hero-card::before {
  content: ""; position: absolute; inset: -35%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(30% 28% at 18% 22%, rgba(242, 181, 58, 0.3), transparent 70%),
    radial-gradient(30% 34% at 82% 18%, rgba(84, 190, 140, 0.38), transparent 70%),
    radial-gradient(42% 40% at 72% 88%, rgba(38, 128, 90, 0.7), transparent 70%),
    radial-gradient(28% 26% at 12% 88%, rgba(212, 98, 52, 0.3), transparent 70%);
  filter: blur(36px);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(245, 240, 228, 0.12) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 30%, #000 10%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(5%, -4%, 0) rotate(10deg) scale(1.08); }
  100% { transform: translate3d(-4%, 5%, 0) rotate(-8deg) scale(1.03); }
}

/* kartu gelap lain: cahaya keemasan di sudut + titik halus */
:is(.cta, .price-card, .follow, .post-body blockquote.big) {
  background:
    radial-gradient(520px circle at 100% 0%, var(--glow), transparent 55%),
    radial-gradient(rgba(245, 240, 228, 0.07) 1px, transparent 1.3px) 0 0 / 20px 20px,
    var(--deep);
}
.site-foot { background: radial-gradient(800px circle at 0% 0%, var(--glow), transparent 50%), var(--deep); }

/* teks berkilau di kata "baru" */
.hero h1 em {
  background: linear-gradient(100deg, var(--hi) 20%, #ffe2a3 45%, var(--hi) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
  padding-right: 0.06em;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* judul hero muncul kata demi kata (gaya TextEffect) */
.motion .hero h1 .w { display: inline-block; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
.motion .hero h1 em.w { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both, shimmer 7s linear infinite; animation-delay: calc(var(--i) * 90ms + 80ms), 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } }
.motion .hero .lede, .motion .hero .actions, .motion .hero .stats, .motion .hero .mmm { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion .hero .lede { animation-delay: .45s; }
.motion .hero .actions { animation-delay: .55s; }
.motion .hero .stats { animation-delay: .65s; }
.motion .hero .mmm { animation-delay: .35s; }

/* spotlight: cahaya mengikuti kursor */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), var(--spot), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* tombol: kilau menyapu + panah bergeser */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.hi::after, .btn:not(.ghost):not(.light)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover::after { transform: translateX(130%); }
.arrow::after { display: inline-block; transition: transform .2s; }
.btn:hover .arrow::after, .textlink:hover .arrow::after { transform: translateX(3px); }

/* muncul saat discroll (gaya InView) */
.motion .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.motion .rv.in { opacity: 1; transform: none; }

/* angka hasil "pop" saat berubah (gaya transitions.dev) */
.pop { animation: pop .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes pop { from { opacity: .55; transform: translateY(3px) scale(.985); } }

/* bilah progres membaca di tulisan blog */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: linear-gradient(90deg, var(--accent), var(--hi)); transform-origin: 0 50%; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* akordeon membuka dengan halus */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}
@supports selector(::details-content) {
  details::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
details.more > summary::after, .faq summary::after { transition: transform .25s; }
details.more[open] > summary::after { transform: rotate(180deg); }

/* perpindahan halaman halus (View Transitions) */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-card::before, .hero h1 em { animation: none; }
  .btn::after { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* print */
@media print {
  :root { --bg: #fff; --surface: #fff; --slip: #f2f2f2; --soft: #f2f2f2; --ink: #141414; --ink-2: #3f3f3f; --muted: #666; --line: #ddd; --line-strong: #bbb; --accent: #1d6b4a; --accent-ink: #13513a; --hi-soft: #eee; --good-soft: #e3f1e9; --warn-soft: #f8ecd6; --bad-soft: #f8e1de; --good: #1d7a4c; --warn: #8a5000; --bad: #b42318; color-scheme: light; }
  body::before, .hero-card::before, .hero-card::after { display: none; }
  .site-head .nav, .peek, .cta, .related, .slip-actions, .site-foot, .presets, .post-tools, .pager { display: none !important; }
  body { background: #fff; color: #000; }
  .slip { background: #f2f2f2; position: static; }
  .calc { grid-template-columns: 1fr 1fr; }
  .hint { max-height: none !important; opacity: 1 !important; margin: 0 !important; }
  details.tbl > *, details.more > * { display: block; }
  .rv { opacity: 1 !important; transform: none !important; }
}
