/* Meta Ads Playbook — Bekal Digital. Tokens dari brand.css v1. */
:root {
  --teal: #007F73; --teal-hover: #006B61; --navy: #122B39;
  --cream: #F7F4ED; --white: #FFFFFF; --yellow: #F6CA63; --coral: #F27A5E;
  --muted: #53656B; --border: #D9E3E0; --teal-soft: #E5F3EF;
  --yellow-soft: #FDF3D8; --coral-soft: #FDE9E3;
  --success: #18794E; --error: #B42318;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --r-card: 16px; --r-input: 10px; --tap: 44px;
  --topbar-h: 60px; --sidebar-w: 280px;
  --shadow-overlay: 0 12px 40px rgba(18, 43, 57, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  background: var(--cream); color: var(--navy); overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -.02em; line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: 2rem; line-height: 1.2; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-hover); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--r-input); }
.skip-link:focus { top: 12px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  background: rgba(247, 244, 237, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; min-height: var(--tap); margin-right: auto; }
.brand img { width: 150px; height: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border: 0; border-radius: var(--r-input);
  background: transparent; color: var(--navy); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--teal-soft); }
.menu-label { display: none; font-weight: 600; font-size: .95rem; }
.topnav { display: none; }
.topbar-actions { display: flex; gap: 2px; }

/* ---------- shell / sidebar ---------- */
.shell { display: block; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(86vw, 340px);
  background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%); transition: transform .25s ease; visibility: hidden;
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
}
.sidebar.open { transform: none; visibility: visible; box-shadow: var(--shadow-overlay); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 8px; }
.sidebar-title { font-family: var(--font-heading); font-weight: 700; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(18, 43, 57, .45); }
.sidebar-nav-main { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar a { text-decoration: none; color: var(--navy); }
.sidebar-nav-main a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 10px; border-radius: var(--r-input); font-weight: 500; }
.sidebar-nav-main a:hover, .side-lesson:hover { background: var(--teal-soft); }
.sidebar-nav-main a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-hover); font-weight: 600; }
.side-mod { border-radius: var(--r-input); }
.side-mod > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 6px 10px; border-radius: var(--r-input); font-weight: 600; font-size: .95rem;
}
.side-mod > summary::-webkit-details-marker { display: none; }
.side-mod > summary:hover { background: var(--cream); }
.side-mod > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.side-mod[open] > summary .chev { transform: rotate(90deg); }
.side-num { font-family: var(--font-heading); font-size: .8rem; font-weight: 800; color: var(--teal); min-width: 22px; }
.side-count { font-size: .75rem; color: var(--muted); font-weight: 500; }
.side-lessons { list-style: none; margin: 0 0 6px; padding: 0 0 0 20px; }
.side-lesson { display: flex; align-items: flex-start; gap: 8px; min-height: var(--tap); padding: 10px 10px; border-radius: var(--r-input); font-size: .9rem; line-height: 1.4; }
.side-lesson[aria-current="page"] { background: var(--teal-soft); color: var(--teal-hover); font-weight: 600; }
.dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
.dot.started { border-color: var(--teal); }
.dot.done { background: var(--teal); border-color: var(--teal); color: var(--white); }
.dot .ic { width: 12px; height: 12px; stroke-width: 3; }

main { display: block; min-height: calc(100vh - var(--topbar-h)); outline: none; }
.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
.page.wide { max-width: 1080px; }

/* ---------- common bits ---------- */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: 11px 20px; border-radius: var(--r-input); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-secondary { background: transparent; color: var(--teal-hover); border-color: var(--teal-hover); }
.btn-secondary:hover { background: var(--teal-soft); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--border); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-hover); white-space: nowrap; }
.chip-yellow { background: var(--yellow-soft); color: #7A5A00; }
.chip-navy { background: var(--navy); color: var(--white); }
.chip-done { background: var(--success); color: var(--white); }
.chip-coral { background: var(--coral-soft); color: #8F2F18; }
.progress { display: block; height: 8px; border-radius: 999px; background: var(--teal-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: inherit; transition: width .4s ease; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 12px; }
.callout { display: flex; gap: 12px; border-radius: 12px; padding: 16px; margin: 20px 0; }
.callout > .ic { margin-top: 2px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 4px; }
.callout-tip { background: var(--yellow-soft); border: 1px solid #F1DFA6; }
.callout-warn { background: var(--coral-soft); border: 1px solid #F6C7BA; }
.callout-info { background: var(--teal-soft); border: 1px solid #C5E4DB; }
.callout ul { margin: 6px 0 0; padding-left: 20px; }
.callout li + li { margin-top: 6px; }
.draft-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--muted); border-radius: 999px; padding: 2px 10px; }

/* ---------- home ---------- */
.hero { padding: 12px 0 8px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { max-width: 60ch; margin-bottom: 22px; }
.tagline-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tagline-steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; }
.tagline-steps b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: .8rem; background: var(--teal); color: var(--white); }
.tagline-steps li:nth-child(2) b { background: var(--yellow); color: var(--navy); }
.tagline-steps li:nth-child(3) b { background: var(--navy); }
.resume { display: grid; gap: 14px; margin-top: 28px; background: var(--navy); color: var(--white); border: 0; }
.resume .eyebrow { color: var(--yellow); margin: 0; }
.resume h2 { color: var(--white); font-size: 1.25rem; margin: 2px 0 0; }
.resume .progress { background: rgba(255, 255, 255, .15); }
.resume .progress > span { background: var(--yellow); }
.resume-meta { display: flex; justify-content: space-between; font-size: .875rem; color: #C9D6DA; margin-bottom: 6px; }
.resume .btn-primary { background: var(--yellow); color: var(--navy); }
.resume .btn-primary:hover { background: #F2BD3F; }
.mod-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--navy); transition: border-color .15s, transform .15s; }
.mod-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.mod-card-top { display: flex; align-items: center; justify-content: space-between; }
.mod-num { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--teal); line-height: 1; }
.mod-card h3 { margin: 0; font-size: 1.05rem; }
.mod-card .small { margin: 0; }
.mod-card .progress { margin-top: auto; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--navy); }
.tool-card:hover { border-color: var(--teal); }
.tool-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal); }
.tool-card:nth-child(2) .tool-ic { background: var(--yellow-soft); color: #8A6400; }
.tool-card:nth-child(3) .tool-ic { background: var(--coral-soft); color: #B4472D; }
.tool-card h3 { margin: 0 0 2px; font-size: 1rem; }
.tool-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.tpl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tpl-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: var(--tap); background: var(--white); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--navy); }
.tpl-list a:hover { border-color: var(--teal); }
.tpl-list .ic { color: var(--teal); }
.tpl-list b { display: block; font-size: .95rem; }
.tpl-list span { font-size: .85rem; color: var(--muted); }
.site-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.site-foot p { margin-bottom: .6em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-hover); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }

/* ---------- module page ---------- */
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-decoration: none; color: var(--navy); }
.lesson-row:hover { border-color: var(--teal); }
.lesson-idx { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: .9rem; background: var(--teal-soft); color: var(--teal-hover); }
.lesson-row.done .lesson-idx { background: var(--teal); color: var(--white); }
.lesson-row h3 { font-size: 1rem; margin: 0 0 4px; }
.lesson-row p { margin: 0; font-size: .9rem; color: var(--muted); }
.lesson-row .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lesson-row > .ic { margin-left: auto; align-self: center; color: var(--muted); }

/* ---------- lesson reader ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.lesson-title-row { display: flex; gap: 12px; align-items: flex-start; }
.lesson-title-row h1 { flex: 1; font-size: clamp(1.75rem, 5vw, 2.4rem); }
.bm-btn { flex: none; border: 1px solid var(--border); background: var(--white); }
.bm-btn[aria-pressed="true"] { background: var(--teal); color: var(--white); border-color: var(--teal); }
.bm-btn[aria-pressed="true"] .ic { fill: currentColor; }
.outcomes { margin: 8px 0 20px; }
.outcomes ul { margin: 6px 0 0; padding-left: 20px; }
.toc { margin: 0 0 24px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.toc summary { cursor: pointer; padding: 12px 16px; min-height: var(--tap); font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { margin-left: auto; transition: transform .2s; }
.toc[open] summary .chev { transform: rotate(90deg); }
.toc ol { margin: 0; padding: 0 16px 12px 36px; }
.toc li { padding: 2px 0; }
.toc button { background: none; border: 0; padding: 6px 0; color: var(--teal-hover); cursor: pointer; text-align: left; min-height: 36px; }
.prose { font-size: 1.0625rem; }
.prose > h2 { margin-top: 40px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.context-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; margin: 16px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { position: relative; padding: 20px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-num { flex: none; font-family: var(--font-heading); font-weight: 800; font-size: .95rem; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--navy); }
.step-head h3 { margin: 0; font-size: 1.1rem; }
.step p { margin-bottom: 12px; }
.expected { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; margin: 12px 0 0; }
.expected .ic { color: var(--success); margin-top: 2px; }
.expected b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--success); }
.shot { margin: 14px 0 0; }
.shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #FBFBFA; cursor: zoom-in; position: relative; }
.shot-btn img { width: auto; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.shot-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; background: rgba(18, 43, 57, .85); color: var(--white); padding: 4px 10px 4px 6px; border-radius: 999px; }
.shot-hint .ic { width: 16px; height: 16px; }
.shot figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.practice-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.practice-toggle button { border: 0; background: transparent; border-radius: 9px; padding: 8px 14px; min-height: 40px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); }
.practice-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.check-row:hover { border-color: var(--teal); }
.path-cb, .check-row input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--muted); border-radius: 7px; display: grid; place-content: center; cursor: pointer; background: var(--white); }
.path-cb::before, .check-row input::before { content: ''; width: 12px; height: 7px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.path-cb:checked, .check-row input:checked { background: var(--teal); border-color: var(--teal); }
.path-cb:checked::before, .check-row input:checked::before { opacity: 1; }
.check-row:has(input:checked) { background: var(--teal-soft); border-color: #B7DDD3; }
.check-row:has(input:checked) .check-label { text-decoration: line-through; text-decoration-color: rgba(18,43,57,.35); }
.check-label { flex: 1; }
.check-req { font-size: .72rem; color: var(--muted); font-weight: 600; }
.check-status { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.complete-box { margin-top: 20px; padding: 20px; text-align: center; }
.complete-box .btn { width: 100%; max-width: 360px; }
.complete-box .reason { font-size: .875rem; color: var(--muted); margin: 10px 0 0; }
.complete-box.is-done { background: var(--teal-soft); border-color: #B7DDD3; }
.done-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--success); margin-bottom: 8px; }
.done-mark .ic { width: 28px; height: 28px; stroke-width: 3; }
.summary-box { margin-top: 28px; }
.sources { font-size: .85rem; color: var(--muted); }
.sources ul { padding-left: 18px; margin: 6px 0 0; }
.pager { display: grid; gap: 10px; margin-top: 32px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--navy); }
.pager a:hover { border-color: var(--teal); }
.pager small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 4px; }
.pager .next { text-align: right; align-items: flex-end; }
.sticky-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
}
.sticky-nav a, .sticky-nav span { flex: 1; min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-input); font-weight: 600; font-size: .9rem; text-decoration: none; }
.sticky-nav .prev { color: var(--navy); border: 1px solid var(--border); }
.sticky-nav .nxt { background: var(--teal); color: var(--white); }
.sticky-nav .disabled { color: var(--muted); border: 1px solid var(--border); opacity: .55; }
.sticky-nav .pos { flex: 0 0 auto; font-size: .8rem; color: var(--muted); padding: 0 4px; font-weight: 500; }
.has-sticky .page { padding-bottom: 120px; }

/* glossary term in text */
.term { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: help; border-bottom: 2px dotted var(--teal); line-height: inherit; }
.term:hover { color: var(--teal-hover); }
.term-pop {
  position: fixed; z-index: 60; max-width: min(340px, calc(100vw - 32px)); background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-overlay); font-size: .925rem; line-height: 1.5;
}
.term-pop b { font-family: var(--font-heading); display: block; margin-bottom: 4px; color: var(--yellow); }
.term-pop p { margin: 0 0 8px; }
.term-pop a { color: var(--white); font-weight: 600; font-size: .85rem; }

/* ---------- beginner path ---------- */
.phase { position: relative; padding-left: 0; margin-top: 28px; }
.phase-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.phase-key { flex: none; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; background: var(--teal); color: var(--white); }
.phase:nth-of-type(2) .phase-key { background: var(--yellow); color: var(--navy); }
.phase:nth-of-type(3) .phase-key { background: var(--navy); }
.phase:nth-of-type(4) .phase-key { background: var(--coral); color: var(--navy); }
.phase-head h2 { margin: 0; font-size: 1.25rem; }
.phase-head .small { margin: 0; }
.path-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.path-item .path-cb { margin-top: 2px; }
.path-item:has(.path-cb:checked) { background: var(--teal-soft); border-color: #B7DDD3; }
.path-text label { cursor: pointer; }
.path-text { flex: 1; }
.path-text p { margin: 0 0 6px; }
.path-text a { font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }

/* ---------- glossary ---------- */
.search-field { position: relative; margin-bottom: 18px; }
.search-field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 52px; padding: 12px 48px 12px 46px; font-size: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--navy); }
.search-field input:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.search-field .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.gloss-list { display: grid; gap: 10px; }
.gloss-item { padding: 16px 18px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.gloss-item:target, .gloss-item.flash { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.gloss-item h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--teal-hover); }
.gloss-item p { margin: 0; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

/* ---------- calculator ---------- */
.calc-form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.field input { width: 100%; min-height: var(--tap); padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--white); color: var(--navy); font-variant-numeric: tabular-nums; }
.field input:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); min-width: 0; }
.metric-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; line-height: 1.2; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value.na { font-size: .95rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.metric-formula { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.metric.hl { background: var(--navy); border-color: var(--navy); color: var(--white); }
.metric.hl .metric-label, .metric.hl .metric-formula { color: #B9C8CD; }
.metric.hl .metric-value.na { color: #B9C8CD; }

/* ---------- metric guide ---------- */
.mg-funnel { display: grid; gap: 6px; justify-items: center; margin: 16px 0 10px; }
.mg-all { justify-self: start; border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--navy); margin-bottom: 4px; }
.mg-all[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.mg-bar {
  width: calc(100% - var(--i) * 16%); min-width: 240px; max-width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  min-height: 56px; padding: 8px 14px; border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  background: var(--teal-soft); color: var(--navy); transition: background .15s, border-color .15s, transform .15s;
}
.mg-bar:hover { border-color: var(--teal); }
.mg-bar[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.mg-bar[aria-pressed="true"] .mg-step { background: var(--white); color: var(--teal-hover); }
.mg-bar-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mg-bar-text span { font-size: .8rem; opacity: .85; }
.mg-step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: .85rem; background: var(--teal); color: var(--white); }
.mg-desc { font-size: .95rem; color: var(--muted); margin: 6px 0 14px; min-height: 1.6em; }
.mg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mg-card { padding: 0; }
.mg-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; }
.mg-card > summary::-webkit-details-marker { display: none; }
.mg-card > summary .chev { color: var(--muted); transition: transform .2s; }
.mg-card[open] > summary .chev { transform: rotate(90deg); }
.mg-card[open] { border-color: var(--teal); }
.mg-abbr { flex: none; min-width: 64px; padding: 4px 8px; border-radius: 8px; background: var(--yellow-soft); font-family: var(--font-heading); font-weight: 800; font-size: .85rem; text-align: center; }
.mg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mg-title b { font-size: .95rem; }
.mg-title small { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-val { flex: none; font-family: var(--font-heading); font-weight: 700; font-size: .9rem; color: var(--teal-hover); font-variant-numeric: tabular-nums; }
.mg-body { padding: 0 16px 16px; border-top: 1px dashed var(--border); padding-top: 12px; font-size: .95rem; }
.mg-body p { margin-bottom: 10px; }
.mg-row { display: grid; grid-template-columns: 72px 1fr; gap: 8px; background: var(--cream); border-radius: 8px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.mg-row b { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.mg-row strong { color: var(--teal-hover); }
.mg-read { background: var(--teal-soft); border-radius: 8px; padding: 10px 12px; }
@media (max-width: 559px) { .mg-bar { min-width: 0; width: calc(100% - var(--i) * 24px); } }
@media (max-width: 400px) { .mg-val { display: none; } }

/* ---------- copy builder ---------- */
.cb-grid { display: grid; gap: 20px; }
.cb-form { display: grid; gap: 14px; }
.cb-part label { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.cb-part .hint { flex-basis: 100%; }
.cb-key { display: inline-flex; width: 24px; height: 24px; border-radius: 8px; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: .8rem; font-weight: 800; background: var(--yellow); color: var(--navy); }
.cb-part textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; line-height: 1.5; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--white); color: var(--navy); resize: vertical; min-height: 64px; }
.cb-part textarea:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.cb-part textarea::placeholder { color: #8A989D; }
.cb-side { min-width: 0; }
.cb-phone { position: relative; max-width: 380px; margin: 0 auto 14px; background: var(--white); border: 8px solid var(--navy); border-radius: 28px; padding: 26px 16px 18px; min-height: 260px; font-size: .925rem; line-height: 1.55; overflow-wrap: anywhere; }
.cb-phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 72px; height: 6px; border-radius: 999px; background: var(--border); }
.cb-empty { color: var(--muted); text-align: center; margin: 80px 0 0; }
.cb-pv { position: relative; padding-top: 4px; margin-bottom: 14px; }
.cb-pv p { margin: 0; }
.cb-tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-hover); background: var(--teal-soft); border-radius: 6px; padding: 1px 6px; margin-bottom: 4px; }
.cb-pv-problem { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; }
.cb-pv-label { font-weight: 600; }
.cb-pv-offer { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.cb-pv-offer li { display: flex; gap: 6px; align-items: flex-start; }
.cb-pv-offer .ic { color: var(--success); margin-top: 3px; stroke-width: 3; width: 15px; height: 15px; }
.cb-pv blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--yellow); background: var(--yellow-soft); border-radius: 0 8px 8px 0; font-style: italic; }
.cb-buy { display: block; margin-top: 10px; text-align: center; background: var(--teal); color: var(--white); font-weight: 600; border-radius: 10px; padding: 10px; }
.cb-copy { width: 100%; }
@media (min-width: 1280px) {
  .page:has(.cb-grid) { max-width: 1040px; }
  .cb-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .cb-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
}

/* ---------- case ---------- */
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- search ---------- */
.result { display: block; padding: 14px 16px; text-decoration: none; color: var(--navy); }
.result:hover { border-color: var(--teal); }
.result h3 { font-size: 1rem; margin: 4px 0; }
.result p { margin: 0; font-size: .9rem; color: var(--muted); }
mark { background: var(--yellow); color: var(--navy); border-radius: 3px; padding: 0 2px; }

/* ---------- zoom dialog ---------- */
.zoom { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0E1E28; color: var(--white); }
.zoom::backdrop { background: rgba(14, 30, 40, .9); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom-head { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.zoom-caption { flex: 1; margin: 0; font-size: .9rem; line-height: 1.45; padding-top: 10px; color: #DCE6E9; }
.zoom .icon-btn { color: var(--white); background: rgba(255, 255, 255, .1); }
.zoom .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.zoom-stage { flex: 1; overflow: hidden; position: relative; touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center; }
.zoom-stage.dragging { cursor: grabbing; }
.zoom-stage img { max-width: calc(100% - 24px); max-height: calc(100% - 24px); object-fit: contain; transform-origin: center center; user-select: none; background: var(--white); border-radius: 6px; will-change: transform; }
.zoom-controls { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.zoom-level { min-width: 72px; min-height: var(--tap); border-radius: var(--r-input); border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--white); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: .95rem;
  box-shadow: var(--shadow-overlay); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics, .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .next:only-child { grid-column: 2; }
  .menu-label { display: inline; }
}
@media (min-width: 768px) {
  .page { padding: 32px 24px 64px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resume { grid-template-columns: 1fr auto; align-items: center; }
  h1 { font-size: 2.6rem; }
}
@media (min-width: 1024px) {
  :root { --topbar-h: 68px; }
  .topbar { padding: 0 24px; gap: 16px; }
  .brand img { width: 168px; }
  .menu-btn, #closeSidebar, .sidebar-nav-main { display: none; }
  .topnav { display: flex; gap: 4px; }
  .topnav a { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-input); color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .topnav a:hover { background: var(--teal-soft); }
  .topnav a[aria-current="page"] { color: var(--teal-hover); background: var(--teal-soft); font-weight: 600; }
  .shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); width: auto; z-index: 1;
    transform: none; visibility: visible; transition: none; box-shadow: none;
    background: transparent; border-right: 1px solid var(--border); padding: 16px 12px 32px;
  }
  .sidebar-head { padding-top: 0; }
  .backdrop { display: none; }
  .sticky-nav { display: none; }
  .has-sticky .page { padding-bottom: 64px; }
  .toast { bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ---------- journey / objective picker / quiz ---------- */
.jr-flow { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jr-node { width: 100%; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); cursor: pointer; position: relative; color: var(--navy); }
.jr-node:hover { border-color: var(--teal); }
.jr-node[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.jr-num { position: absolute; top: 6px; left: 8px; font-family: var(--font-heading); font-weight: 800; font-size: .75rem; opacity: .7; }
.jr-label { font-weight: 600; font-size: .82rem; line-height: 1.25; text-align: center; }
.jr-detail h3 { margin-bottom: 6px; }
.jr-detail .chip { margin: 0 4px 4px 0; }
@media (min-width: 640px) { .jr-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.op-options { display: grid; gap: 8px; margin: 12px 0 14px; }
.op-btn { text-align: left; min-height: 48px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 500; color: var(--navy); }
.op-btn:hover { border-color: var(--teal); }
.op-btn[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); font-weight: 600; }
.op-result h3 { font-size: 1.5rem; color: var(--teal-hover); margin: 2px 0 6px; }
.op-result .btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.qz-q { margin: 0 0 10px; font-weight: 500; }
.qz-opts { display: grid; gap: 6px; }
.qz-opt { display: flex; align-items: center; gap: 8px; text-align: left; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); cursor: pointer; color: var(--navy); }
.qz-opt:hover:not([disabled]) { border-color: var(--teal); }
.qz-opt[disabled] { cursor: default; opacity: .7; }
.qz-opt.is-correct { background: var(--teal-soft); border-color: var(--success); opacity: 1; font-weight: 600; }
.qz-opt.is-correct .ic { color: var(--success); stroke-width: 3; }
.qz-opt.is-wrong { background: var(--coral-soft); border-color: var(--error); opacity: 1; text-decoration: line-through; }
.qz-why { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .925rem; }
.qz-why.ok { background: var(--teal-soft); }
.qz-why.no { background: var(--yellow-soft); }

/* ---------- tips owner ---------- */
.owner-tip { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--navy); color: var(--white); }
.owner-tip-label { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-family: var(--font-heading); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.owner-tip-text { margin: 0; font-size: .975rem; line-height: 1.55; }
.owner-tip-note { margin: 6px 0 0; font-size: .78rem; color: #B9C8CD; }

/* ---------- dashboard progres ---------- */
.stat-grid-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.stat-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.stat-sub { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.stat-tile .progress { height: 6px; }
@media (min-width: 768px) { .stat-grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip-muted { background: var(--cream); color: var(--muted); border: 1px solid var(--border); }
.pg-list { display: grid; gap: 8px; }
.pg-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--navy); }
.pg-row:hover { border-color: var(--teal); }
.pg-num { flex: none; font-family: var(--font-heading); font-weight: 800; color: var(--teal); min-width: 26px; }
.pg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.pg-bar { display: block; padding: 2px 0; }
.pg-meta { font-size: .78rem; color: var(--muted); }
.pg-row .chip { flex: none; }
.pg-h { font-size: 1.2rem; }
.pg-ul { margin: 0; padding-left: 18px; }
.pg-ul li { margin-bottom: 8px; line-height: 1.45; }
.pg-group { border: 1px solid var(--border); border-radius: 10px; background: var(--white); margin-bottom: 8px; }
.pg-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: var(--tap); font-weight: 600; font-size: .9rem; }
.pg-group > summary::-webkit-details-marker { display: none; }
.pg-group > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.pg-group[open] > summary .chev { transform: rotate(90deg); }
.pg-group ul { margin: 0; padding: 0 14px 12px 32px; }
.pg-group li { margin-bottom: 6px; }
.resume-link { color: var(--white); border-color: rgba(255,255,255,.35); background: transparent; }
.resume-link:hover { background: rgba(255,255,255,.1); }
@media (max-width: 420px) { .pg-row .chip { font-size: .7rem; padding: 2px 8px; } }

/* ---------- rekap murid ---------- */
.rk-drop { display: flex; gap: 14px; align-items: center; padding: 20px; margin: 8px 0 10px; border: 2px dashed var(--teal); border-radius: var(--r-card); background: var(--white); cursor: pointer; color: var(--navy); }
.rk-drop > .ic { width: 32px; height: 32px; color: var(--teal); }
.rk-drop:hover, .rk-drop.is-over { background: var(--teal-soft); }
.rk-drop:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.rk-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.rk-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.rk-table th, .rk-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rk-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--cream); }
.rk-table tbody tr:last-child th, .rk-table tbody tr:last-child td { border-bottom: 0; }
.rk-cell-bar { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.rk-cell-bar .progress { flex: 1; }
.rk-bar-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 7.5rem; gap: 10px; align-items: center; padding: 6px 0; font-size: .875rem; }
.rk-bar-row a, .rk-bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar-val { text-align: right; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
