/* ==========================================================================
   Rekon — website produk & halaman auth (CSS tulen, tiada Tailwind)
   ========================================================================== */
:root {
    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

    --paper: #f5f4f0;
    --paper-2: #ecebe5;
    --white: #ffffff;
    --ink: #14161a;
    --ink-2: #3a3e47;
    --muted: #6b6f79;
    --line: #e3e0d7;
    --green: #0e6b55;
    --green-2: #0a5544;
    --green-soft: #dff0e9;
    --mint: #7ee2be;
    --amber: #b56a0c;
    --amber-soft: #fbeed6;
    --red: #b42318;
    --red-soft: #fdecea;

    --radius: 14px;
    --shadow-lg: 0 24px 60px -20px rgba(20, 22, 26, .25), 0 2px 6px rgba(20, 22, 26, .05);
    --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
p { margin: 0; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Butang ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 22px; border-radius: 11px;
    border: 1px solid transparent; font: 650 .95rem/1 var(--font-sans);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a2d34; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 107, 85, .6); }
.btn-green:hover { background: var(--green-2); }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 15px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-google { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-google:hover { border-color: var(--ink-2); }
.btn-google svg { width: 18px; height: 18px; }

/* ---------- Navigasi ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 15px; position: relative; overflow: hidden; }
.logo-mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--white); }
.lang-switch a { padding: 4px 9px; font-size: .78rem; font-weight: 700; text-decoration: none; border-radius: 6px; color: var(--muted); }
.lang-switch a.on { background: var(--ink); color: var(--paper); }
.mobile-only { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -200px -200px auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 226, 190, .35), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.pill b { background: var(--green-soft); color: var(--green); padding: 2px 8px; border-radius: 999px; font-size: .74rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; margin: 22px 0 20px; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--mint); opacity: .55; z-index: -1; border-radius: 4px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.reassure { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure svg { width: 15px; height: 15px; color: var(--green); }

/* Mock aplikasi dalam hero */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: visible; position: relative; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #faf9f6; border-radius: 16px 16px 0 0; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr 1fr; }
.mock-col { padding: 12px; }
.mock-col + .mock-col { border-left: 1px dashed var(--line); }
.mock-col h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2px 4px 8px; }
.mock-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 9px; border-radius: 8px; font-size: .78rem; margin-bottom: 4px; }
.mock-row .d { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .a { font-family: var(--font-mono); font-weight: 600; }
.mock-row.ok { background: var(--green-soft); }
.mock-row.ok .a { color: var(--green); }
.mock-row.wait { background: var(--amber-soft); }
.mock-row.wait .a { color: var(--amber); }
.mock-row.anim { animation: settle 3.2s ease-in-out infinite; }
@keyframes settle { 0%, 35% { background: transparent; } 55%, 100% { background: var(--green-soft); } }
.mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #faf9f6; font-size: .8rem; border-radius: 0 0 16px 16px; }
.mock-chip { position: absolute; right: 22px; top: -26px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .78rem; }
.mock-chip b { display: block; font-family: var(--font-mono); font-size: 1.15rem; color: var(--mint); }

/* ---------- Seksyen ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--mint); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; max-width: 760px; }
.section-sub { font-size: 1.08rem; color: var(--muted); margin-top: 14px; max-width: 640px; }
.section-dark .section-sub { color: #a9adb6; }
.center .section-title, .center .section-sub { margin-inline: auto; }

.banks { padding: 26px 0; border-block: 1px solid var(--line); }
.banks .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.banks p { font-size: .84rem; color: var(--muted); font-weight: 600; }
.banks ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.banks li { font-weight: 750; color: #8a8e97; letter-spacing: -0.01em; }

/* sebelum / selepas */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.compare-card { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.compare-card.after { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.compare-card h3 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-card li { display: flex; gap: 10px; color: var(--ink-2); }
.compare-card.after li { color: #d6d9de; }
.compare-card li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.compare-card .x { color: var(--red); }
.compare-card .v { color: var(--mint); }

/* ciri */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-alt .feature { background: var(--paper); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* langkah */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: .85rem; color: var(--mint); font-weight: 600; }
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { color: #a9adb6; font-size: .95rem; }

/* ---------- Harga ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-top: 28px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font: 650 .9rem var(--font-sans); color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button.on { background: var(--ink); color: var(--paper); }
.billing-toggle small { background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 999px; font-size: .72rem; }
.billing-toggle button.on small { background: var(--mint); color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan.hl { border: 2px solid var(--green); box-shadow: 0 20px 40px -24px rgba(14, 107, 85, .5); }
.plan .badge-top { position: absolute; top: -12px; left: 22px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan .tag { color: var(--muted); font-size: .86rem; margin-top: 4px; min-height: 2.6em; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan .price .cur { font-weight: 700; color: var(--muted); font-size: .95rem; }
.plan .price .amt { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; font-family: var(--font-sans); }
.plan .price .per { color: var(--muted); font-size: .88rem; }
.plan .billed { font-size: .8rem; color: var(--muted); min-height: 1.4em; }
.plan .btn { margin: 20px 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.plan li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--green); }
.plan li.off { color: #a3a6ad; }
.plan li.off svg { color: #c3c5ca; }
.tax-note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { background: #faf9f6; font-weight: 700; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: #b7b9be; }

/* ---------- Keselamatan ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trust div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.trust h3 { font-size: 1rem; margin-bottom: 6px; }
.trust p { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 19px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- CTA & footer ---------- */
.cta { border-radius: 22px; background: var(--green); color: #fff; padding: 64px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(126, 226, 190, .25); }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.cta p { color: #cfe9df; margin-top: 10px; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta .btn-dark { background: var(--ink); }
.cta .btn-light { background: #fff; color: var(--ink); }

.footer { padding: 56px 0 40px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--ink); font-size: .85rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Halaman auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: var(--paper); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 226, 190, .3), transparent 70%); }
.auth-side .logo-mark { background: var(--paper); color: var(--ink); }
.auth-side blockquote { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; max-width: 440px; position: relative; z-index: 1; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: #c4c8cf; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 10px; }
.auth-side li svg { width: 18px; color: var(--mint); flex: none; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 1.8rem; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 8px 0 28px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.field .row { display: flex; justify-content: space-between; align-items: baseline; }
.field .row a { font-size: .82rem; color: var(--green); text-decoration: none; font-weight: 600; }
.input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #d5d1c6; background: var(--white); font: 500 .95rem var(--font-sans); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 107, 85, .14); }
.input.invalid { border-color: var(--red); }
.error { color: var(--red); font-size: .82rem; font-weight: 550; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--green); }
.check a { color: var(--green); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; font-weight: 550; margin-bottom: 18px; }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.foot-link { margin-top: 26px; text-align: center; font-size: .9rem; color: var(--muted); }
.foot-link a { color: var(--green); font-weight: 650; text-decoration: none; }

/* ---------- Halaman undang-undang ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.legal h1 { font-size: 2.3rem; font-weight: 800; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal .note { background: var(--amber-soft); color: var(--amber); padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin: 20px 0; }

/* ---------- Responsif ---------- */
@media (max-width: 1040px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .hero-grid, .compare, .steps, .trust, .cta, .auth { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .mock-chip { right: 10px; top: -30px; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-right .btn-ghost { display: none; }
    .section { padding: 72px 0; }
    .cta { padding: 44px 28px; }
    .cta .actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-side { display: none; }
    .compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
    .nav-links.open .mobile-only { display: block !important; }
    .nav-cta { display: none; }
    .site-nav .wrap { gap: 12px; }
    .mock-chip { display: none; }
    .plans, .features { grid-template-columns: 1fr; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-col + .mock-col { border-left: 0; border-top: 1px dashed var(--line); }
}
