/* Halaman depan publik koperasi */
:root {
  --dark: #12382a; --dark2: #0d2a1f; --green: #1f7a55; --green2: #2e9468; --mint: #e7f1ea;
  --gold: #e0a82e; --goldsoft: #f7e9c6; --paper: #f6f4ee; --white: #fdfcf9;
  --ink: #1b2a23; --muted: #52635b; --line: #dbe4de;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(18, 56, 42, .06), 0 12px 32px rgba(18, 56, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.muted { color: var(--muted); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dark2); box-shadow: 0 8px 20px rgba(224, 168, 46, .28); }
.btn-gold:hover { background: #e9b440; }
.btn-ghost { border-color: rgba(238, 245, 240, .35); color: #eef5f0; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #1a6b4a; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }

/* Navigasi */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18, 56, 42, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand .logo { width: 40px; height: 40px; border-radius: 11px; background: var(--gold); display: grid; place-items: center; font-size: 20px; flex: none; overflow: hidden; }
.brand .logo.has-img { background: #fff; padding: 3px; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: #cfe2d8; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #1f5a43 0%, transparent 60%), linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%); color: #eef5f0; padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 14px 0 18px; }
.hero h1 span { color: var(--gold); }
.hero .lead { font-size: 19px; color: #b9d3c6; max-width: 540px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: 14px; color: #b9d3c6; }
.trust b { color: #fff; font-size: 22px; display: block; font-family: 'Plus Jakarta Sans', sans-serif; }

.mock { position: relative; height: 470px; }
.phone { position: absolute; right: 40px; top: 0; width: 270px; height: 470px; border-radius: 38px; background: #0b2219; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.screen { background: var(--paper); border-radius: 28px; height: 100%; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.screen .hi { font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; }
.screen .bal { background: var(--green); color: #fff; border-radius: 16px; padding: 14px 16px; }
.screen .bal small { color: #b9d3c6; font-size: 12px; display: block; }
.screen .bal b { font-size: 24px; font-family: 'Plus Jakarta Sans', sans-serif; }
.screen .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.screen .chip { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 11px; color: var(--muted); }
.screen .chip b { display: block; color: var(--ink); font-size: 13px; }
.screen .due { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 12px; color: var(--muted); }
.screen .due b { display: block; color: var(--ink); font-size: 18px; }
.screen .pay { background: var(--gold); color: var(--dark2); text-align: center; font-weight: 700; border-radius: 12px; padding: 10px; font-size: 14px; margin-top: auto; }
.float { position: absolute; background: var(--white); color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; z-index: 2; white-space: nowrap; }
.float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none; }
.float.f1 { left: 0; top: -26px; }
.float.f2 { left: 40px; bottom: -22px; }
.float.f1 .dot { background: #dcf3e4; }
.float.f2 .dot { background: var(--goldsoft); }

/* Bagian umum */
.sec { padding: 88px 0; }
.sec.alt { background: var(--white); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--green); font-weight: 800; display: grid; place-items: center; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 14px; }
.step:last-child .n { background: var(--goldsoft); color: #8a5d0a; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* Kartu simpanan */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sec.alt .card { background: var(--paper); }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--mint); color: var(--green); }
.card .tag.gold { background: var(--goldsoft); color: #7a5308; }
.card h3 { font-size: 20px; margin: 14px 0 4px; }
.card .amt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 30px; color: var(--green); }
.card p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Simulasi */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.sim-form { padding: 34px; display: flex; flex-direction: column; gap: 26px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.field label output { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--green); font-size: 17px; }
input[type=range] { width: 100%; accent-color: var(--green); height: 6px; }
.sim-note { font-size: 13px; color: var(--muted); }
.sim-out { background: linear-gradient(160deg, var(--dark), var(--dark2)); color: #eef5f0; padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.sim-out small { color: #b9d3c6; font-size: 14px; }
.sim-out .big { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.sim-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 6px 0 0; font-size: 15px; }
.sim-out dt { color: #b9d3c6; }
.sim-out dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #24563f; }
.bar i { display: block; background: var(--green2); }
.bar i + i { background: var(--gold); }

/* Fitur */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feat .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; font-size: 21px; flex: none; }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* CTA */
.cta-band { background: var(--gold); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; color: var(--dark2); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { margin-top: 8px; font-size: 17px; color: #3a3410; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-green { background: var(--dark); }

/* Footer */
footer { background: var(--dark2); color: #b9d3c6; padding: 40px 0; font-size: 14px; margin-top: 88px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #eef5f0; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Animasi masuk */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Responsif */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { right: 20px; height: 420px; width: 240px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards3, .feats { grid-template-columns: 1fr 1fr; }
  .sim { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 48px 0 64px; }
  .sec { padding: 64px 0; }
  .steps, .cards3, .feats { grid-template-columns: 1fr; }
  .float { display: none; }
  .phone { right: 50%; transform: translateX(50%); }
  .sim-form, .sim-out { padding: 24px; }
  .cta-band { padding: 26px; border-radius: 22px; }
  footer { margin-top: 64px; }
}

/* Halaman publik pendaftaran (/daftar) */
.pub-head { background: linear-gradient(160deg, var(--dark), var(--dark2)); color: #eef5f0; padding: 56px 0 120px; }
.pub-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin-top: 10px; }
.pub-head .eyebrow { color: var(--gold); }
.pub-head p { color: #b9d3c6; margin-top: 10px; max-width: 640px; }
.pub-main { margin-top: -80px; }
.pub-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 32px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.pub-grid > * > .panel + .panel { margin-top: 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.ff label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.ff label i { font-style: normal; color: var(--muted); font-weight: 400; }
.ff input, .ff textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.ff input:focus, .ff textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 122, 85, .12); }
.ff .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.ff .err { font-size: 13px; color: #b3261e; margin-top: 5px; font-weight: 500; }
.ff.has-err input, .ff.has-err textarea { border-color: #d9534f; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 14px; border-radius: 12px; background: var(--mint); }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 15px; }
.side-list li { display: flex; gap: 12px; }
.side-list b { width: 28px; height: 28px; border-radius: 8px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: 14px; flex: none; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 18px; }
.notice.bad { background: #fbe9e7; color: #8c1d18; }
.notice.ok { background: var(--mint); color: #14553a; }
.notice.warn { background: var(--goldsoft); color: #6b4a07; }
.kode { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: .06em; color: var(--dark); background: var(--goldsoft); border: 2px dashed var(--gold); border-radius: 16px; padding: 14px 20px; display: inline-block; margin: 8px 0 4px; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill.menunggu { background: var(--goldsoft); color: #6b4a07; }
.pill.diterima { background: var(--mint); color: #14553a; }
.pill.ditolak { background: #fbe9e7; color: #8c1d18; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
@media (max-width: 860px) { .pub-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .panel { padding: 22px; border-radius: 20px; } .pub-head { padding: 40px 0 110px; } }

/* Ikon SVG & monogram logo */
.ic { flex: none; vertical-align: -0.17em; }
.logo-mono { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--dark2); font-size: 15px !important; letter-spacing: .02em; }
.feat .ic-box { color: var(--green); }
.float .dot { color: var(--green); }
.side-list b .ic { width: 15px; height: 15px; }
