/* ============================================================
   TAPAS — Taman Pembinaan Anak Sholeh
   Gaya situs profil (tanpa framework, tanpa build)
   ============================================================ */

:root {
  --green-950: #0a2a20;
  --green-900: #0f3d2e;
  --green-800: #154d3a;
  --green-700: #1f6b4f;
  --green-500: #2e8b65;
  --green-300: #7cc6a0;
  --green-100: #dcefe4;

  --sand-50: #fbf7ef;
  --sand-100: #f4ecdd;
  --sand-200: #eadfc8;
  --sand-300: #d8c7a5;

  --gold-500: #d9a237;
  --gold-400: #e7b84a;
  --gold-100: #f8ecc9;

  --sky-200: #cfe7e4;
  --peach-200: #f7c9b2;
  --coral-500: #d9694e;
  --teal-500: #3e8e9e;

  --ink: #17231e;
  --ink-2: #33433b;
  --muted: #5f6f67;
  --line: #e4dccb;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 46, .06), 0 2px 8px rgba(15, 61, 46, .05);
  --shadow: 0 2px 6px rgba(15, 61, 46, .06), 0 12px 32px rgba(15, 61, 46, .08);
  --shadow-lg: 0 24px 60px rgba(10, 42, 32, .18);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;

  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--green-950); }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
cite { font-style: normal; }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.eyebrow-light { color: var(--gold-400); }

.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 68ch; }
.arabic {
  font-family: var(--font-ar); font-size: 1.45rem; line-height: 2; color: var(--green-900);
  margin-bottom: .6em;
}
.arabic-light { color: var(--gold-100); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--green-900); }
.btn-primary:hover { --bg: var(--green-800); }
.btn-ghost { --bg: transparent; --fg: var(--green-900); border-color: var(--green-900); }
.btn-ghost:hover { --bg: var(--green-900); --fg: #fff; }
.btn-gold { --bg: var(--gold-400); --fg: var(--green-950); }
.btn-gold:hover { --bg: #f0c65f; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 61, 46, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-950); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; list-style: none; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none;
  transition: background .2s, color .2s;
}
.site-nav ul a:hover { background: var(--sand-100); color: var(--green-900); }
.site-nav ul a.is-active { background: var(--green-100); color: var(--green-900); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--green-900); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 18px 20px 26px; background: var(--sand-50);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 14px; font-size: 1.02rem; border-radius: 12px; }
}

/* ---------- Pattern ---------- */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%230f3d2e' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.hero-pattern-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e7b84a' stroke-opacity='.10' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 56px; overflow: hidden; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal; color: var(--green-700);
  background: linear-gradient(transparent 62%, var(--gold-100) 62%);
  padding: 0 .08em;
}
.hero-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(15, 61, 46, .12)); }

.art-sun { transform-origin: 240px 210px; animation: sun 6s ease-in-out infinite; }
.art-leaf-l { transform-origin: 240px 340px; animation: sway 5s ease-in-out infinite; }
.art-leaf-r { transform-origin: 240px 322px; animation: sway 5s ease-in-out infinite reverse; }
.art-sparkles path { animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-sparkles path:nth-child(2) { animation-delay: 1s; }
.art-sparkles path:nth-child(3) { animation-delay: 2s; }
.art-blocks > g { animation: bob 4.5s ease-in-out infinite; }
.art-blocks > g:nth-child(2) { animation-delay: .8s; }
.art-blocks > g:nth-child(3) { animation-delay: 1.6s; }
@keyframes sun { 50% { transform: scale(1.06); } }
@keyframes sway { 50% { transform: rotate(-5deg); } }
@keyframes twinkle { 50% { transform: scale(.55); opacity: .5; } }
@keyframes bob { 50% { translate: 0 -8px; } }

.stats {
  position: relative; margin: clamp(36px, 6vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 22px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat dd { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; color: var(--green-900); letter-spacing: -.02em; }
.stat dd span { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stats-note { margin: 12px 4px 0; font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin-inline: auto; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--sand-100); }
.section-dark { background: var(--green-900); color: #e8efe9; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #c9d8cf; }
.section-dark > .container { position: relative; }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; }
.sub-head { font-size: 1.35rem; margin: clamp(48px, 6vw, 72px) 0 22px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-quote { display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.card-quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-quote > p:not(.arabic):not(.big-figure) { color: var(--ink-2); }
.card-quote cite { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--green-700); }
.card-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-800); background: var(--green-100); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.big-figure { font-size: 3rem; font-weight: 800; color: var(--green-900); letter-spacing: -.03em; line-height: 1; margin: 6px 0 16px; }
.big-figure span { font-size: 1.1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Visi misi ---------- */
.vm {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.vm-visi { background: var(--green-900); padding: clamp(28px, 4vw, 48px); position: relative; }
.vm-visi::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 28px solid rgba(231, 184, 74, .14);
}
.vm-statement { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; color: #fff; line-height: 1.3; margin: 0; position: relative; }
.vm-misi { background: #fff; padding: clamp(28px, 4vw, 48px); }
.misi-list { list-style: none; counter-reset: misi; display: grid; gap: 14px; }
.misi-list li { counter-increment: misi; position: relative; padding: 3px 0 0 48px; min-height: 32px; color: var(--ink-2); }
.misi-list li::before {
  content: counter(misi); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--gold-100); color: var(--green-900); font-weight: 800; font-size: .95rem;
}
.misi-list strong { color: var(--green-950); }
@media (max-width: 820px) { .vm { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
.principles { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.principle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.principle svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-100); fill: var(--green-700); stroke: var(--green-700); margin-bottom: 14px; }
.principle h4 { font-size: 1.02rem; margin-bottom: 6px; }
.principle p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

.legal-note {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--gold-100); border-left: 4px solid var(--gold-500); color: var(--ink-2); font-size: .98rem;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm);
}
.timeline-rail { display: flex; flex-direction: column; gap: 4px; position: relative; padding-left: 22px; }
.timeline-rail::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 2px; background: var(--sand-200); }
.timeline-rail button {
  position: relative; display: flex; align-items: baseline; gap: 12px; text-align: left;
  padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  transition: background .2s;
}
.timeline-rail button::before {
  content: ""; position: absolute; left: -19px; top: 50%; translate: 0 -50%;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--sand-300);
  transition: background .2s, border-color .2s, transform .2s;
}
.timeline-rail button:hover { background: var(--sand-50); }
.timeline-rail button[aria-selected="true"] { background: var(--green-100); }
.timeline-rail button[aria-selected="true"]::before { background: var(--gold-400); border-color: var(--green-900); transform: scale(1.25); }
.tl-year { font-weight: 800; color: var(--green-900); min-width: 72px; }
.tl-short { font-size: .9rem; color: var(--muted); font-weight: 600; }

.timeline-panels { padding: clamp(10px, 3vw, 28px); display: grid; align-content: center; }
.timeline-panels [role="tabpanel"] { animation: fadeUp .45s var(--ease); }
.timeline-panels h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.timeline-panels p:last-child { color: var(--ink-2); margin: 0; font-size: 1.06rem; max-width: 62ch; }
.tl-kicker { font-size: .82rem; font-weight: 700; color: var(--gold-500); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; padding: 12px; }
  .timeline-rail { flex-direction: row; overflow-x: auto; padding: 4px 4px 12px; gap: 6px; scroll-snap-type: x mandatory; }
  .timeline-rail::before { display: none; }
  .timeline-rail button { flex-direction: column; gap: 2px; flex: none; scroll-snap-align: start; border: 1px solid var(--line); }
  .timeline-rail button::before { display: none; }
  .tl-year { min-width: 0; }
}

/* ---------- Curriculum ---------- */
.curriculum {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff;
}
.curriculum-tabs { display: flex; flex-direction: column; background: var(--sand-100); padding: 12px; gap: 4px; }
.curriculum-tabs button {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 0; border-radius: 14px;
  background: transparent; cursor: pointer; text-align: left; font-weight: 700; color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.curriculum-tabs .num { font-size: .8rem; color: var(--gold-500); font-weight: 800; }
.curriculum-tabs button:hover { background: rgba(255,255,255,.6); }
.curriculum-tabs button[aria-selected="true"] { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.curriculum-panels { padding: clamp(24px, 4vw, 48px); }
.curriculum-panels [role="tabpanel"] { animation: fadeUp .45s var(--ease); }
.curriculum-panels h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.curriculum-panels p { color: var(--ink-2); max-width: 60ch; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ticks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--green-100); color: var(--green-900); font-weight: 600; font-size: .93rem;
}
.ticks li::before { content: "✓"; font-weight: 800; color: var(--green-500); }
@media (max-width: 820px) {
  .curriculum { grid-template-columns: 1fr; }
  .curriculum-tabs { flex-direction: row; overflow-x: auto; }
  .curriculum-tabs button { flex: none; padding: 12px 14px; }
}

.method-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.method-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-500); }
.method strong { font-size: 1.08rem; color: var(--green-950); }
.method small { color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .method-grid { grid-template-columns: 1fr; } }

.outcomes {
  margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--sand-100);
}
.outcomes h3 { font-size: 1.45rem; }
.outcomes p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .94rem; color: var(--green-900);
}
@media (max-width: 820px) { .outcomes { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillars { max-width: 900px; margin-inline: auto; }
.pillars-roof { width: 100%; height: 56px; }
.pillars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 3vw, 36px); padding: 0 clamp(16px, 5vw, 60px); }
.pillar {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  min-height: 220px; padding: 22px 8px; cursor: pointer; text-align: center;
  border: 0; border-radius: 6px 6px 0 0; color: #e8efe9;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14) 50%, rgba(255,255,255,.06));
  transition: background .25s, transform .25s var(--ease), color .2s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 18% 0 18%;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.05) 10px 12px);
  pointer-events: none;
}
.pillar:hover { background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.22) 50%, rgba(255,255,255,.1)); }
.pillar[aria-selected="true"] {
  background: linear-gradient(90deg, #d9a237, #f3cf72 50%, #d9a237); color: var(--green-950); transform: translateY(-6px);
}
.pillar-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); font-weight: 800; margin-bottom: auto;
}
.pillar[aria-selected="true"] .pillar-num { background: var(--green-900); color: var(--gold-400); }
.pillar-name { font-weight: 800; font-size: clamp(.95rem, 2vw, 1.15rem); }
.pillar-role { font-size: .8rem; opacity: .8; }
.pillars-base { height: 16px; margin: 0 clamp(4px, 2vw, 24px); background: var(--gold-400); border-radius: 4px; opacity: .9; }
.pillar-panel {
  margin-top: 28px; padding: 26px 30px; border-radius: var(--radius); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); text-align: center; min-height: 128px;
}
.pillar-panel h3 { color: var(--gold-400); margin-bottom: 8px; }
.pillar-panel p { margin: 0; font-size: 1.08rem; color: #e8efe9; }
.pillar-panel.is-changing { animation: fadeUp .4s var(--ease); }
@media (max-width: 560px) {
  .pillar { min-height: 170px; }
  .pillar-role { display: none; }
}

/* ---------- Finance ---------- */
.finance { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.finance-sources { display: grid; gap: 14px; }
.source { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.source h4 { margin-bottom: 4px; font-size: 1.05rem; }
.source p { margin: 0; font-size: .94rem; color: var(--muted); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; flex: none; }
.dot-1 { background: var(--green-500); }
.dot-2 { background: var(--gold-500); }
.dot-3 { background: var(--teal-500); }
.dot-4 { background: var(--coral-500); }

.simulator {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow);
}
.simulator h3 { font-size: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .84rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--sand-300); background: var(--sand-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(46, 139, 101, .15); }
.field input[aria-invalid="true"] { border-color: var(--coral-500); }
.input-rp { position: relative; display: block; }
.input-rp > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--muted); }
.input-rp input { padding-left: 44px; font-weight: 700; font-size: 1.1rem; }

.sim-body { display: grid; grid-template-columns: 1fr 190px; gap: 24px; align-items: center; margin: 24px 0 12px; }
.sim-sliders { display: grid; gap: 18px; }
.range { display: grid; gap: 8px; }
.range > span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.range .dot { margin: 0; width: 10px; height: 10px; }
.range output { margin-left: auto; font-weight: 800; color: var(--green-900); }
.range input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c, var(--green-500)) var(--p, 41%), var(--sand-200) var(--p, 41%));
  cursor: pointer;
}
#sim-wali { --c: var(--green-500); }
#sim-donatur { --c: var(--gold-500); }
#sim-usaha { --c: var(--teal-500); }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c, var(--green-500)); box-shadow: var(--shadow-sm);
}
.range input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--green-500));
}

.donut-wrap { position: relative; width: 190px; height: 190px; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut-track { stroke: var(--sand-100); }
.donut-seg { transition: stroke-dasharray .5s var(--ease), stroke-dashoffset .5s var(--ease); }
.seg-1 { stroke: var(--green-500); }
.seg-2 { stroke: var(--gold-500); }
.seg-3 { stroke: var(--teal-500); }
.seg-4 { stroke: var(--coral-500); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.donut-center strong { font-size: 1.25rem; color: var(--green-950); }

.sim-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.sim-table th, .sim-table td { padding: 11px 4px; border-top: 1px solid var(--line); font-size: .96rem; }
.sim-table th { text-align: left; font-weight: 600; color: var(--ink-2); }
.sim-table th .dot { width: 10px; height: 10px; margin: 0 8px 0 0; vertical-align: middle; }
.sim-table td { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-950); }
.sim-msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .93rem; background: var(--green-100); color: var(--green-900); }
.sim-msg.is-warn { background: #fbe3dc; color: #7a2f1d; }
.sim-msg.is-gold { background: var(--gold-100); color: #6a4a0d; }

@media (max-width: 960px) { .finance { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sim-body { grid-template-columns: 1fr; justify-items: center; }
  .sim-sliders { width: 100%; }
}

/* ---------- Network ---------- */
.network { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.network > * { min-width: 0; }
.network-map {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 16px);
}
.map-scroll { overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.network-map svg { width: 100%; min-width: 620px; height: auto; border-radius: 16px; background: var(--sand-50); }
.network-map figcaption { font-size: .82rem; color: var(--muted); padding: 10px 6px 2px; }
.net-line { stroke: var(--green-700); stroke-opacity: .28; stroke-width: 1.6; stroke-dasharray: 4 6; fill: none; }
.net-line.is-active { stroke: var(--gold-500); stroke-opacity: .9; stroke-dasharray: none; stroke-width: 2.4; }
.net-dot { cursor: pointer; outline: none; }
.net-dot circle.core { fill: var(--green-700); stroke: #fff; stroke-width: 3; transition: r .2s, fill .2s; }
.net-dot.is-origin circle.core { fill: var(--gold-500); }
.net-dot circle.halo { fill: var(--gold-400); opacity: 0; }
.net-dot.is-origin circle.halo { animation: pulse 2.4s ease-out infinite; }
.net-dot text { font-size: 15px; font-weight: 700; fill: var(--green-950); paint-order: stroke; stroke: var(--sand-50); stroke-width: 5px; stroke-linejoin: round; }
.net-dot:hover circle.core, .net-dot:focus-visible circle.core, .net-dot.is-active circle.core { fill: var(--green-900); r: 11; }
.net-dot.is-origin.is-active circle.core { fill: #b98118; }
.net-dot:focus-visible text { text-decoration: underline; }
.compass text { font-size: 13px; font-weight: 800; fill: var(--green-900); }
@keyframes pulse { 0% { r: 10; opacity: .55; } 100% { r: 30; opacity: 0; } }

.network-list { position: relative; list-style: none; display: grid; gap: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.net-card {
  width: 100%; text-align: left; cursor: pointer; padding: 16px 18px; border-radius: var(--radius);
  background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.net-card:hover { border-color: var(--sand-300); transform: translateX(2px); }
.net-card.is-active { border-color: var(--green-700); box-shadow: var(--shadow); }
.net-card h4 { font-size: 1.02rem; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.net-card .badge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--gold-100); color: #7a5410; }
.net-card .net-unit { font-size: .9rem; font-weight: 700; color: var(--green-700); margin: 0 0 6px; }
.net-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.net-card .net-detail { display: none; margin-top: 8px; }
.net-card.is-active .net-detail { display: block; }
.network-cta { margin: 26px 0 0; text-align: center; color: var(--ink-2); }
@media (max-width: 960px) {
  .network { grid-template-columns: 1fr; }
  .network-map { position: static; }
  .network-list { max-height: none; }
}

/* ---------- Enroll ---------- */
.enroll { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.enroll h3 { font-size: 1.25rem; margin-bottom: 18px; }
.age-result { margin-top: 18px; min-height: 96px; }
.age-badge {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px;
  animation: fadeUp .35s var(--ease);
}
.age-badge strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.age-badge p { margin: 0; font-size: .93rem; }
.age-badge .age-num { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; font-weight: 800; font-size: .9rem; line-height: 1.1; text-align: center; }
.age-ok { background: var(--green-100); color: var(--green-900); }
.age-ok .age-num { background: var(--green-700); color: #fff; }
.age-info { background: var(--gold-100); color: #5d410b; }
.age-info .age-num { background: var(--gold-500); color: #fff; }
.age-wait { background: var(--sky-200); color: #1d4a52; }
.age-wait .age-num { background: var(--teal-500); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-full { grid-column: 1 / -1; }
.form-status { margin: 12px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.is-error { color: #a13a22; }
.form-status.is-ok { color: var(--green-700); }
@media (max-width: 860px) { .enroll { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.found-cta {
  margin-top: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  padding: clamp(22px, 3.5vw, 34px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #e8efe9;
}
.found-cta h3 { color: #fff; font-size: 1.3rem; }
.found-cta p { margin: 0; color: #c9d8cf; max-width: 60ch; }
.found-cta .btn { flex: none; }
@media (max-width: 720px) { .found-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- Support ---------- */
.support { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.support h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.support cite { display: block; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--gold-400); }
.bank-card {
  background: linear-gradient(145deg, #fdf8ea, #f3e3b8); color: var(--green-950);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.bank-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  border: 26px solid rgba(15, 61, 46, .07);
}
.bank-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #8a6a1f; margin-bottom: 18px; }
.bank-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.bank-number { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.bank-holder { color: var(--ink-2); margin-bottom: 22px; }
.copy-btn {
  font-size: .8rem; font-weight: 800; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--green-900); background: transparent; cursor: pointer; transition: background .2s, color .2s;
}
.copy-btn:hover, .copy-btn.is-done { background: var(--green-900); color: #fff; }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px;
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--sand-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 700; font-size: 1.04rem; color: var(--green-950);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; translate: 0 -50%;
  border-radius: 50%; background: var(--green-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230f3d2e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.contact-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 26px; }
.contact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list li[hidden] { display: none; }
.contact-label { font-weight: 700; color: var(--muted); font-size: .92rem; }
.contact-list a { font-weight: 700; word-break: break-word; }
.contact-list li.contact-empty:not([hidden]) { display: block; color: var(--ink-2); }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.identity { margin: 0; background: var(--green-900); color: #e8efe9; border-radius: var(--radius-lg); padding: 10px 26px; }
.identity div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.identity div:first-child { border-top: 0; }
.identity dt { font-size: .8rem; color: var(--gold-400); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.identity dd { margin: 2px 0 0; font-weight: 700; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b9c9bf; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-title { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand p:last-child { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: center; }
.site-footer a { color: #dfe9e2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Dev hint (hanya tampil di localhost) ---------- */
.dev-hint {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 360px;
  background: #1b2420; color: #f4ecdd; padding: 14px 16px; border-radius: 14px; font-size: .85rem; box-shadow: var(--shadow-lg);
}
.dev-hint code { color: var(--gold-400); }
.dev-hint button { margin-top: 8px; background: none; border: 1px solid #555; color: inherit; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-art, .simulator, .enroll-form, .dev-hint { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .section-dark { background: #fff; color: #000; }
}
