/* ============================================================================
   SIFA Digital Admission Experience — PMBM SIFA 2027/2028
   style.css — design tokens, base, komponen bersama, dan landing page
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --green-900: #0A3226;
  --green-800: #0E4232;
  --green-700: #14513F;
  --green-600: #1B6650;
  --green-100: #E7F0EC;
  --green-050: #F2F7F4;

  --navy-900: #101B30;
  --navy-700: #1B2C4B;
  --navy-100: #E8ECF3;

  --gold-700: #8E6524;
  --gold-600: #A97B33;
  --gold-100: #F7F0E3;

  --ink: #171C1A;
  --ink-soft: #39423E;
  --muted: #5C6662;
  --line: #E3E1D9;
  --line-strong: #CCCBC1;
  --paper: #FBFAF7;
  --paper-alt: #F5F4F0;
  --surface: #FFFFFF;

  --ok: #1C6E52;
  --ok-bg: #E6F1EC;
  --warn: #8E5A15;
  --warn-bg: #FBF1E2;
  --info: #23456F;
  --info-bg: #E8EEF6;
  --danger: #8B2F26;
  --danger-bg: #F8EBE9;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-hero: clamp(1.95rem, 1.45rem + 2.1vw, 3.1rem);
  --fs-h1: clamp(1.7rem, 1.25rem + 2.1vw, 2.7rem);
  --fs-h2: clamp(1.35rem, 1.12rem + 1.05vw, 1.95rem);
  --fs-h3: clamp(1.08rem, 1rem + 0.42vw, 1.28rem);
  --fs-body: clamp(1rem, 0.965rem + 0.16vw, 1.08rem);
  --fs-sm: 0.925rem;
  --fs-cap: 0.8125rem;
  --fs-label: 0.75rem;

  --lh-body: 1.7;
  --ls-label: 0.13em;
  --measure: 68ch;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 2.75rem; --s8: 3.75rem; --s9: 5.5rem;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  --sh1: 0 1px 2px rgba(16, 27, 22, 0.05);
  --sh2: 0 4px 18px rgba(16, 27, 22, 0.07);
  --sh3: 0 18px 50px rgba(16, 27, 22, 0.16);

  --header-h: 60px;
  --wrap: 1240px;
  --tr: 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --tr-fast: 130ms ease;
}

@media (min-width: 1024px) { :root { --header-h: 72px; } }

@media (prefers-reduced-motion: reduce) {
  :root { --tr: 1ms; --tr-fast: 1ms; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.24;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 var(--s4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.35em; }
li { margin-bottom: var(--s2); }
li:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-underline-offset: 3px; overflow-wrap: break-word; }
a:hover { color: var(--green-900); }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; border-radius: var(--r-sm); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.print-only { display: none; }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 300;
  background: var(--green-900); color: #fff; padding: 0.7rem 1rem;
  border-radius: var(--r-md); font-weight: 600; text-decoration: none; transition: top var(--tr-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.wrap--narrow { max-width: 900px; }

.section { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--paper-alt); }
.section--dark { background: var(--green-900); color: #DCE9E2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section__head p { color: var(--muted); max-width: 60ch; }
.section--dark .section__head p { color: #A9C6B7; }

.eyebrow {
  display: block; font-family: var(--font-display); font-size: var(--fs-label);
  font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 var(--s2);
}
.section--dark .eyebrow { color: #E0C08A; }

.lede { font-size: clamp(1.02rem, 0.98rem + 0.38vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.cap { font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.78rem 1.35rem; border-radius: var(--r-md);
  border: 1px solid transparent; font-family: var(--font-display);
  font-size: 0.97rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--sh1); }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--green-900); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--green-050); color: var(--green-900); }
.btn--onDark { background: #fff; color: var(--green-900); }
.btn--onDark:hover { background: var(--gold-100); color: var(--green-900); }
.btn--ghostDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghostDark:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* Tautan informational: bukan tombol besar */
.link-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--green-700); text-decoration: none; border-bottom: 2px solid var(--gold-600);
  padding-bottom: 2px;
}
.link-cta:hover { color: var(--green-900); border-color: var(--green-700); }
.section--dark .link-cta { color: #E0C08A; border-color: rgba(224,192,138,.6); }
.section--dark .link-cta:hover { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
@media (max-width: 400px) { .btn-row .btn { width: 100%; } }

.ext { opacity: .8; }

/* ---------- 4. SITE HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(251, 250, 247, .93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header--handbook { background: rgba(255,255,255,.94); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand img, .brand svg.brand__logo { width: auto; height: 34px; }
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  color: var(--green-900); letter-spacing: -.01em;
}
.brand__sub {
  font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header__spacer { flex: 1 1 auto; }
.header__nav { display: none; }
@media (min-width: 1024px) {
  .header__nav { display: flex; align-items: center; gap: .35rem; }
  .header__nav a {
    padding: .55rem .8rem; border-radius: var(--r-sm); text-decoration: none;
    font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  }
  .header__nav a:hover { background: var(--green-050); color: var(--green-900); }
  .header__nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
  .site-header:not(.site-header--handbook) #navToggle { display: none; }
}
.header__actions { display: flex; align-items: center; gap: .4rem; }
.header__actions .btn { white-space: nowrap; }
/* Pada layar sempit, CTA header disembunyikan: sudah tersedia di hero,
   di sticky bar bawah, dan di dalam drawer. Header tetap ringkas. */
@media (max-width: 699px) {
  .header__actions .btn { display: none; }
}

.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--green-900); min-width: 44px; min-height: 44px; padding: 0 .7rem;
  border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.icon-btn:hover { background: var(--green-050); border-color: var(--line-strong); }
.icon-btn__label { display: none; }
@media (min-width: 560px) { .icon-btn__label { display: inline; } }

/* ---------- 5. PHOTO SLOT (fallback elegan tanpa foto stok) ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    radial-gradient(90% 80% at 78% 12%, rgba(169,123,51,.14), transparent 60%),
    radial-gradient(110% 110% at 12% 8%, rgba(255,255,255,.7), transparent 55%),
    linear-gradient(150deg, #DCEAE2, var(--paper-alt) 52%, #F3E9D6);
  isolation: isolate;
}
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .85;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(20,81,63,.16) 0 1.3px, transparent 2px),
    linear-gradient(135deg, transparent 46%, rgba(20,81,63,.05) 46% 54%, transparent 54%);
  background-size: 22px 22px, 120px 120px;
}
.photo::after {
  content: attr(data-fallback); position: absolute; left: .7rem; bottom: .7rem; z-index: 1;
  padding: .28rem .7rem; font-size: var(--fs-cap); color: var(--green-800);
  background: rgba(255,255,255,.78); border: 1px solid rgba(20,81,63,.14);
  border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600;
}
.photo > img {
  position: relative; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--hero { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }
@media (min-width: 900px) {
  .photo--hero { aspect-ratio: 5 / 6; height: 100%; min-height: 380px; max-height: 560px; }
}

/* ---------- 6. HERO (landing) ---------- */
.hero { padding: clamp(1.75rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 4.5rem); }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 52fr 48fr; } }

.hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 var(--s4);
  padding: .35rem .8rem .35rem .55rem; border-radius: var(--r-pill);
  background: var(--green-100); color: var(--green-800);
  font-family: var(--font-display); font-size: var(--fs-cap); font-weight: 700;
}
.hero__kicker b {
  background: var(--green-700); color: #fff; border-radius: var(--r-pill);
  padding: .1rem .55rem; font-size: .72rem; letter-spacing: .04em;
}
.hero h1 { font-size: var(--fs-hero); margin-bottom: var(--s3); max-width: 15ch; }
.hero h1 span {
  display: block; margin-top: .35rem; color: var(--green-700);
  font-size: .58em; font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
}
.hero__sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, .92rem + .5vw, 1.22rem); color: var(--ink-soft); margin-bottom: var(--s3);
}
.hero__tagline { color: var(--muted); font-style: italic; max-width: 46ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 var(--s5); padding: 0; }
.hero__meta li {
  margin: 0; font-size: var(--fs-cap); font-weight: 600; color: var(--green-800);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .3rem .75rem; background: var(--surface);
}
.hero__actions { display: grid; gap: .7rem; margin-bottom: var(--s4); }
@media (min-width: 480px) { .hero__actions { grid-auto-flow: column; justify-content: start; align-items: center; } }
.hero__note { font-size: var(--fs-cap); color: var(--muted); }
.hero__photo { order: 2; }
@media (max-width: 899px) { .hero__photo { margin-top: var(--s5); } }

/* ---------- 7. QUICK FACTS ---------- */
.qf { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .qf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qf__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(.85rem, 2.5vw, 1.2rem); box-shadow: var(--sh1);
}
.qf__num {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); color: var(--green-700); line-height: 1.05;
}
.qf__num small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.qf__label { display: block; margin-top: .3rem; font-size: var(--fs-cap); color: var(--muted); line-height: 1.45; }
.qf__note { margin-top: var(--s4); font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 8. VALUE CARDS (Mengapa SIFA) ---------- */
.vcards { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .vcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.1rem, 3vw, 1.5rem); box-shadow: var(--sh1);
  display: flex; flex-direction: column; gap: .55rem;
}
.vcard__top { display: flex; align-items: center; gap: .75rem; }
.vcard__icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); flex: none;
  background: var(--green-100); color: var(--green-700); display: grid; place-items: center;
}
.vcard__num {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--ls-label); color: var(--muted); margin-left: auto;
}
.vcard h3 { margin: 0; }
.vcard p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- 9. PHOTO STORY ---------- */
.story { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .story { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .story { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.story figure { margin: 0; display: grid; gap: .6rem; }
.story figcaption { font-size: var(--fs-sm); color: var(--ink-soft); }
.story figcaption strong { display: block; font-family: var(--font-display); color: var(--green-900); }
.section--dark .story figcaption { color: #A9C6B7; }
.section--dark .story figcaption strong { color: #fff; }

.strip { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s5); }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip > :nth-child(3) { display: none; } }

/* ---------- 10. SPLIT (kecocokan keluarga) ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 47fr 53fr; } .split--rev > :first-child { order: 2; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; align-items: start; margin: 0; font-size: var(--fs-sm); }
.checks svg { color: var(--green-600); margin-top: .18rem; }
.section--dark .checks svg { color: #8FCBAF; }

/* ---------- 11. FASE / ALUR ---------- */
.phases { display: grid; gap: .7rem; counter-reset: ph; }
@media (min-width: 980px) { .phases { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.phase {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.05rem 1.1rem; box-shadow: var(--sh1);
  display: grid; gap: .4rem; align-content: start;
}
.phase__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--gold-700);
}
.phase h3 { margin: 0; font-size: 1.02rem; }
.phase ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-cap); color: var(--muted); }
.phase ul li { margin-bottom: .25rem; }
.phase__step { font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 12. ODS CARDS ---------- */
.ods-time {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill); padding: .5rem 1.1rem; margin-bottom: var(--s5);
  font-family: var(--font-display); font-weight: 700; color: #fff;
}
.ods-cards { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ods-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ods-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ods-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md); padding: 1.1rem;
}
.ods-card__dur {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; color: #E0C08A; letter-spacing: -.02em;
}
.ods-card h3 { font-size: 1.02rem; margin: .35rem 0 .3rem; color: #fff; }
.ods-card p { font-size: var(--fs-cap); color: #A9C6B7; margin: 0; }

/* ---------- 13. BIAYA ---------- */
.fees { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.fee {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green-700);
  border-radius: var(--r-md); padding: 1.2rem; box-shadow: var(--sh1); display: flex; flex-direction: column;
}
.fee--accent { border-top-color: var(--gold-600); }
.fee--muted { border-top-color: var(--navy-700); }
.fee__label {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem;
}
.fee__value {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); color: var(--green-900); margin: 0 0 .2rem;
  overflow-wrap: anywhere;
}
.fee__value small { font-size: .5em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.fee__terms { margin: .6rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: var(--fs-sm); }
.fee__terms dt {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: .5rem;
}
.fee__terms dt:first-child { margin-top: 0; }
.fee__terms dd { margin: .1rem 0 0; }

/* ---------- 14. CALLOUT ---------- */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--muted);
  background: var(--surface); border-radius: var(--r-sm); padding: 1rem 1.1rem; margin: 0 0 var(--s4);
}
.callout > :last-child { margin-bottom: 0; }
.callout__title {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700;
}
.callout p, .callout li { font-size: var(--fs-sm); }
.callout--note { border-left-color: var(--info); background: var(--info-bg); }
.callout--note .callout__title { color: var(--info); }
.callout--important { border-left-color: var(--warn); background: var(--warn-bg); }
.callout--important .callout__title { color: var(--warn); }
.callout--security { border-left-color: var(--danger); background: var(--danger-bg); }
.callout--security .callout__title { color: var(--danger); }
.callout--success { border-left-color: var(--ok); background: var(--ok-bg); }
.callout--success .callout__title { color: var(--ok); }

/* ---------- 15. FAQ / ACCORDION ---------- */
.acc {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  margin-bottom: .6rem; box-shadow: var(--sh1); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.acc > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.1rem; min-height: 44px;
  display: flex; align-items: center; gap: .8rem; border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: .99rem; color: var(--green-900);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform var(--tr-fast);
}
.acc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.acc__body { padding: 1rem 1.1rem; }
.acc__body > :last-child { margin-bottom: 0; }
.acc__body p, .acc__body li { font-size: var(--fs-sm); }

/* ---------- 16. FINAL CTA ---------- */
.final {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--green-900), #0D3B2C 60%, var(--navy-900));
  color: #fff; padding: clamp(1.6rem, 5vw, 3.4rem);
}
.final::after {
  content: ""; position: absolute; right: -12%; top: -40%; width: 55%; aspect-ratio: 1;
  border: 1px solid rgba(224,192,138,.18); border-radius: 50%; pointer-events: none;
}
.final > * { position: relative; z-index: 1; }
.final h2 { color: #fff; max-width: 20ch; }
.final p { color: #B9D2C5; max-width: 54ch; }

/* ---------- 17. STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(105%); transition: transform var(--tr);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 46px; font-size: .93rem; padding: .6rem .8rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 74px; }
@media (min-width: 900px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- 18. TABLE (dipakai landing & handbook) ---------- */
.table-wrap { margin: 0 0 var(--s4); }
table.rt {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: var(--fs-sm);
}
table.rt caption { text-align: left; font-size: var(--fs-cap); color: var(--muted); padding: 0 0 .5rem; }
table.rt th, table.rt td {
  text-align: left; padding: .82rem .9rem; border-bottom: 1px solid var(--line);
  vertical-align: top; overflow-wrap: anywhere;
}
table.rt thead th {
  background: var(--green-050); font-family: var(--font-display); font-size: var(--fs-cap);
  letter-spacing: .06em; text-transform: uppercase; color: var(--green-900); white-space: nowrap;
}
table.rt tbody th { font-weight: 700; color: var(--green-900); }
table.rt tbody tr:last-child th, table.rt tbody tr:last-child td { border-bottom: 0; }
table.rt tbody tr:nth-child(even) { background: #FCFCFA; }
table.rt td.num { font-variant-numeric: tabular-nums; }
/* Angka dan waktu tidak boleh terpotong di tengah */
.num { font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; }

@media (max-width: 719px) {
  table.rt, table.rt tbody, table.rt tr, table.rt td, table.rt th { display: block; }
  table.rt caption { display: block; width: 100%; }
  table.rt { border: 0; background: transparent; }
  table.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  table.rt tbody tr {
    background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: .3rem .2rem; margin-bottom: .7rem; box-shadow: var(--sh1);
  }
  table.rt tbody tr:last-child { margin-bottom: 0; }
  table.rt tbody th, table.rt tbody td { border-bottom: 0; padding: .5rem .9rem; }
  table.rt tbody th { font-family: var(--font-display); font-size: 1rem; padding-bottom: .2rem; }
  table.rt tbody td::before {
    content: attr(data-label); display: block; font-size: var(--fs-label); font-weight: 700;
    letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
  }
  table.rt tbody td + td { border-top: 1px dashed var(--line); margin-top: .3rem; padding-top: .6rem; }
}

/* ---------- 19. FOOTER ---------- */
.site-footer { background: var(--green-900); color: #C9DED4; padding: var(--s7) 0 var(--s5); margin-top: var(--s8); }
.site-footer a { color: #EBD9B8; }
.site-footer__grid { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s6); } }
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; margin: 0 0 .5rem; }
.site-footer__tag { font-size: var(--fs-sm); color: #9FC0B0; max-width: 34ch; }
.site-footer h2 {
  font-family: var(--font-display); font-size: var(--fs-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: #8FB6A2; margin: 0 0 var(--s3); font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.site-footer li { margin-bottom: .5rem; }
.site-footer__legal {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-cap); color: #8FB6A2;
}

/* ---------- 20. BACK TO TOP + TOAST ---------- */
.to-top {
  position: fixed; right: clamp(.7rem, 3vw, 1.6rem); bottom: clamp(.7rem, 3vw, 1.6rem); z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--green-900); box-shadow: var(--sh2);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
body.has-sticky-cta .to-top { bottom: calc(74px + .6rem); }
@media (min-width: 900px) { body.has-sticky-cta .to-top { bottom: clamp(.7rem, 3vw, 1.6rem); } }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 10px); z-index: 140;
  background: var(--green-900); color: #fff; font-size: var(--fs-sm);
  padding: .6rem 1rem; border-radius: var(--r-pill); box-shadow: var(--sh2);
  opacity: 0; visibility: hidden; transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 21. MOBILE DRAWER (dipakai landing & handbook) ---------- */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, 330px); z-index: 110;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: var(--s4) var(--s4) var(--s7); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%); visibility: hidden;
  transition: transform var(--tr), visibility var(--tr);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.drawer__title {
  margin: 0; font-family: var(--font-display); font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 50, 38, .45);
  opacity: 0; visibility: hidden; transition: opacity var(--tr), visibility var(--tr);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0 0 2px; }
.nav-link {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); align-items: baseline; gap: .35rem;
  padding: .68rem .7rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink-soft);
  font-size: var(--fs-sm); line-height: 1.4; min-height: 44px;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nav-link:hover { background: var(--green-050); color: var(--green-900); }
.nav-link__num { font-family: var(--font-display); font-size: var(--fs-cap); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-link__text { font-weight: 600; }
.nav-link[aria-current="page"] { background: var(--green-700); color: #fff; }
.nav-link[aria-current="page"] .nav-link__num { color: rgba(255,255,255,.72); }
.drawer__divider { height: 1px; background: var(--line); margin: var(--s4) 0; border: 0; }
.drawer__foot { font-size: var(--fs-cap); color: var(--muted); }
