/* Hopemity sub-pages (Free Tools + Panduan). Mirrors the tokens in index.html. */
:root {
    --deep-navy: #072859;
    --navy-2: #0b336e;
    --navy-deep: #051733;
    --sunrise-gold: #FFB800;
    --slate-gray: #4A4A4A;
    --card-bg: rgba(7, 40, 89, 0.65);
    --border-glow: rgba(255, 184, 0, 0.15);
    --line: rgba(255, 255, 255, 0.12);
    --text-white: #FFFFFF;
    --text-muted: #E0E6ED;
    --text-dim: #A9B6C8;
    --ok: #3DDC97;
    --warn: #FFB800;
    --bad: #FF7A7A;
    --wa: #25D366;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: radial-gradient(1200px 600px at 80% -10%, #0b336e 0%, transparent 60%), var(--deep-navy);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--sunrise-gold); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--sunrise-gold); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.hm-top {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 23, 51, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.hm-top__in {
    max-width: 1200px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 20px;
}
.hm-brand {
    font-family: var(--font-display); font-weight: 900; letter-spacing: 0.08em;
    color: var(--text-white); text-decoration: none; font-size: 1.05rem;
}
.hm-brand span { color: var(--sunrise-gold); }
.hm-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.hm-nav a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
    padding: 8px 12px; border-radius: 6px;
}
.hm-nav a:hover, .hm-nav a[aria-current="page"] { color: var(--sunrise-gold); }
.lang-switch {
    display: flex; gap: 4px; background: rgba(5, 23, 51, 0.7);
    border: 1px solid var(--border-glow); padding: 3px; border-radius: 999px;
}
.lang-opt {
    font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em;
    color: var(--text-muted); background: transparent; border: none; padding: 6px 11px;
    border-radius: 999px; cursor: pointer;
}
.lang-opt.active { background: var(--sunrise-gold); color: var(--deep-navy); }
@media (max-width: 720px) {
    .hm-top__in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
    .hm-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
    .hm-nav a { padding: 6px 10px; font-size: 0.85rem; white-space: nowrap; }
    .lang-switch { margin-left: auto; }
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
.wrap--narrow { max-width: 780px; }
@media (max-width: 720px) { .wrap { padding: 32px 16px 64px; } }
.crumbs { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--sunrise-gold); }
.eyebrow {
    font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--sunrise-gold); margin-bottom: 10px;
}
.page-title { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin-bottom: 14px; }
.page-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 720px; margin-bottom: 36px; }
.section-title {
    font-size: 1.5rem; text-transform: uppercase; border-left: 4px solid var(--sunrise-gold);
    padding-left: 16px; margin: 56px 0 24px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--card-bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
@media (max-width: 720px) { .card { padding: 20px; } }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.tile {
    display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
    transition: transform .3s cubic-bezier(.25,1,.5,1), border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--sunrise-gold); }
.tile__icon {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,184,0,0.12); color: var(--sunrise-gold);
}
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.15rem; }
.tile p { color: var(--text-muted); font-size: 0.95rem; }
.tile__go { margin-top: auto; color: var(--sunrise-gold); font-weight: 600; font-size: 0.9rem; }
.tag {
    display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: .04em;
    padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-muted);
}
.tag--gold { background: rgba(255,184,0,0.14); color: var(--sunrise-gold); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--text-dim); }
.input, select.input {
    width: 100%; background: rgba(5, 23, 51, 0.7); color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 12px 14px;
    font: inherit; font-size: 1rem;
}
.input:focus { border-color: var(--sunrise-gold); outline: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #FFB800 50%), linear-gradient(135deg, #FFB800 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.money { position: relative; }
.money::before { content: 'Rp'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-weight: 600; }
.money .input { padding-left: 42px; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    cursor: pointer; padding: 9px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
}
.seg input:checked + label { border-color: var(--sunrise-gold); color: var(--deep-navy); background: var(--sunrise-gold); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--sunrise-gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; font-size: 0.95rem; }
.check input { margin-top: 4px; accent-color: var(--sunrise-gold); width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: .03em; padding: 14px 24px; border-radius: 6px; border: none; cursor: pointer;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--sunrise-gold); color: var(--deep-navy); }
.btn--wa { background: var(--wa); color: var(--deep-navy); box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.btn--ghost { background: transparent; color: var(--text-white); border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--sunrise-gold); color: var(--sunrise-gold); }
.btn--sm { padding: 9px 14px; font-size: 0.78rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Results ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: rgba(5,23,51,.55); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.stat__label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat__val { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat--hi .stat__val { color: var(--sunrise-gold); }
.note {
    border-left: 3px solid var(--sunrise-gold); background: rgba(255,184,0,0.07);
    padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 0.92rem; color: var(--text-muted); margin: 14px 0;
}
.note--bad { border-color: var(--bad); background: rgba(255,122,122,0.08); }
.note--ok { border-color: var(--ok); background: rgba(61,220,151,0.07); }
.note strong { color: var(--text-white); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); background: rgba(5,23,51,.6); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tfoot td { font-weight: 700; background: rgba(255,184,0,0.06); }

/* ---------- CTA band ---------- */
.cta-band {
    margin-top: 48px; border: 1px solid var(--border-glow); border-radius: 12px; padding: 32px;
    background: linear-gradient(135deg, rgba(255,184,0,0.10), rgba(7,40,89,0.4));
    display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cta-band p { color: var(--text-muted); max-width: 560px; }
@media (max-width: 720px) { .cta-band { padding: 22px; } .cta-band .btn { width: 100%; } }

/* ---------- Article ---------- */
.article { font-size: 1.05rem; }
.article h2 { font-size: 1.45rem; margin: 40px 0 14px; line-height: 1.25; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: var(--text-muted); }
.article p strong, .article li strong { color: var(--text-white); }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--text-muted); }
.article li { margin-bottom: 8px; }
.article .table-wrap { margin: 8px 0 22px; }
.article .tbl td { white-space: normal; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 28px; }
.toc { margin: 0 0 32px; }
.toc ol { margin: 8px 0 0 20px; color: var(--text-muted); }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--sunrise-gold); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--sunrise-gold); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); }
.sources { font-size: 0.85rem; color: var(--text-dim); }
.sources a { color: var(--text-dim); }
.disclaimer { font-size: 0.82rem; color: var(--text-dim); margin-top: 28px; }

/* ---------- Footer ---------- */
.hm-foot { border-top: 1px solid var(--line); background: rgba(5,23,51,0.9); padding: 32px 24px 22px; color: var(--text-dim); font-size: 0.88rem; }
.hm-foot__in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.hm-foot a { color: var(--text-muted); text-decoration: none; }
.hm-foot a:hover { color: var(--sunrise-gold); }
.hm-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Floating WA ---------- */
.hm-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 99; width: 58px; height: 58px; border-radius: 999px;
    background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.4);
}
.hm-wa svg { width: 30px; height: 30px; }
@media print { .hm-top, .hm-wa, .cta-band, .hm-foot { display: none; } body { background: #fff; color: #000; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
html[data-ui-lang="id"] .en-only { display: none; }

/* ---------- Share ---------- */
.share { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -16px 0 32px; }
.share__btn { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; font-size: .88rem; }
.share__btn[aria-expanded="true"] { border-color: var(--sunrise-gold); color: var(--sunrise-gold); }
.share__panel { display: flex; flex-wrap: wrap; gap: 8px; }
.share__opt {
    font: 500 .85rem var(--font-body); color: var(--text-white); background: rgba(5,23,51,.7);
    border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-decoration: none;
}
.share__opt:hover { border-color: var(--sunrise-gold); color: var(--sunrise-gold); }
.share__opt--wa { background: var(--wa); border-color: var(--wa); color: var(--deep-navy); font-weight: 600; }
.share__opt--wa:hover { color: var(--deep-navy); filter: brightness(1.05); }
.share__toast { font-size: .85rem; color: var(--ok); min-height: 1em; }
@media print { .share { display: none; } }
