/* kursusvbaexcel.com — gaya yang sama dengan online.kursusvbaexcel.com. Motif: sel aktif Excel + kotak fill handle. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/figtree-latin.woff2) format('woff2'); }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/league-spartan-700-latin.woff2) format('woff2'); }
:root {
  --ground: #f6f8f5; --ink: #142019; --soft: #45554b; --tile: #e6ede7; --tile2: #dbe5dd;
  --stage: #0b5130; --stage2: #13703f; --stage-ink: #eef7f1; --stage-soft: #bcd9c6;
  --acc: #c2410c; --acc-dk: #a3360a; --acc-ink: #fff; --night: #142019; --xl: #217346;
  --f-d: 'League Spartan', 'Figtree', system-ui, sans-serif;
  --t-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --t-head: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --t-disp: clamp(2.5rem, 1rem + 4.1vw, 5rem);
  --m: clamp(16px, 3vw, 40px); --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: var(--t-body); line-height: 1.6; color: var(--ink); background: var(--ground); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--stage); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--acc); }
p { margin: 0 0 1em; }
main p { max-width: 72ch; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2, .disp { font-family: var(--f-d); font-weight: 700; letter-spacing: -.035em; line-height: .95; }
h1 { font-size: var(--t-disp); max-width: 17em; }
h2 { font-size: var(--t-head); max-width: 16em; margin-bottom: 28px; }
h3 { font-size: var(--t-lead); line-height: 1.2; margin-bottom: 10px; font-weight: 700; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.w { width: min(100% - 2 * var(--m), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 8px; }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 40; background: var(--ground); }
.top .w { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--t-body); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo i { position: relative; display: grid; place-items: center; width: 38px; height: 38px; background: var(--stage); color: #fff; font-style: normal; font-weight: 800; font-size: var(--t-small); }
.logo i::after, .mk::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; background: var(--stage); border: 2px solid var(--ground); }
.logo b { color: var(--stage); } .logo em { color: var(--acc); font-style: normal; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-small); padding: 8px 10px; }
.nav a:hover, .nav a[aria-current] { color: var(--stage); background: var(--tile); }
.nav .hot { color: var(--acc); }
.nav a.btn { color: var(--acc-ink); margin-left: 8px; padding: 0 16px; }
.nav a.btn:hover { background: var(--acc-dk); color: var(--acc-ink); }
.menu-btn { display: none; margin-left: auto; background: var(--tile); border: 0; font: inherit; font-weight: 600; padding: 9px 14px; cursor: pointer; color: var(--ink); }

/* tombol = sel terpilih: blok datar + kotak fill handle */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: var(--t-body); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .15s var(--ease); }
.btn::after { content: ''; position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: inherit; border: 3px solid var(--ground); transition: transform .2s var(--ease); }
.btn:hover { background: var(--acc-dk); color: var(--acc-ink); }
.btn:hover::after { transform: translate(3px, 3px); }
.btn:active { transform: translateY(1px); }
.btn.alt { background: var(--stage); color: #fff; }
.btn.alt:hover { background: #083d24; color: #fff; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: var(--t-small); }
.btn.sm::after { width: 10px; height: 10px; right: -5px; bottom: -5px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.lnk { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.lnk:hover { text-decoration-color: currentColor; color: var(--ink); }

/* ===== Breadcrumb ===== */
.crumb { font-size: var(--t-small); color: var(--soft); padding-top: 20px; margin: 0; }
.crumb a { color: var(--soft); }

/* ===== Hero: judul + panggung hijau bertakik ===== */
.hero { padding: 40px 0 0; }
.hero .w { display: grid; grid-template-columns: 7fr 5fr; gap: 0 56px; align-items: start; }
.hero h1 { grid-column: 1 / -1; margin-bottom: 8px; }
h1.long { font-size: clamp(2.1rem, 1rem + 3.3vw, 4.25rem); max-width: 22em; }
.hero .w > aside, .hero .w > figure, .hero .w > .xl { margin-top: 36px; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; margin-top: 28px !important; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--soft); font-weight: 600; font-size: var(--t-small); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 8px; height: 8px; background: var(--acc); }
.panel { --n: 36px; position: relative; background: var(--stage); color: var(--stage-ink); padding: 56px 36px 36px; clip-path: polygon(var(--n) 0, 100% 0, 100% 100%, 0 100%, 0 var(--n), var(--n) var(--n)); }
.panel h2, .panel h3, .panel strong { color: #fff; }
.panel .big { font-family: var(--f-d); font-size: var(--t-head); line-height: .95; letter-spacing: -.035em; margin: 6px 0 18px; color: #fff; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { position: relative; padding: 9px 0 9px 26px; }
.panel li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 10px; height: 10px; background: var(--stage-soft); }
.panel a { color: #fff; }
.panel p:last-child { margin: 0; }
.hero-media { margin: 0; position: relative; }
.hero-media img, .hero-media video { width: 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }

/* ===== Isi ===== */
main section { padding-top: clamp(80px, 9vw, 136px); }
main section > p, main section > ul, main section > ol { max-width: 68ch; }
.grid { display: grid; gap: 8px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
section > ul.chk:has(> li:nth-child(5)) { columns: 2; column-gap: 56px; max-width: none; }
section > ul.chk li { break-inside: avoid; }
.card { position: relative; background: var(--tile); padding: 28px; }
.card > :last-child { margin-bottom: 0; }
.card a:not(.btn) { font-weight: 600; }
.card .price, .price { font-family: var(--f-d); font-size: var(--t-lead); letter-spacing: -.02em; color: var(--ink); margin: 10px 0; }
.card.hot { background: var(--stage); color: var(--stage-ink); }
.card.hot h3, .card.hot .price, .card.hot a { color: #fff; }
.card.hot .note { color: var(--stage-soft); }
.rib { display: none; }
.note { color: var(--soft); font-size: var(--t-small); }
.big { font-weight: 700; }
ul.chk { list-style: none; padding: 0; margin: 0 0 1em; }
ul.chk li { position: relative; padding: 7px 0 7px 30px; }
ul.chk li::before { content: ''; position: absolute; left: 0; top: 1em; width: 12px; height: 12px; background: var(--stage); }
ul.chk li:nth-child(odd)::before { background: var(--acc); }
ol.num { padding-left: 1.4em; } ol.num li { margin: 8px 0; padding-left: 6px; } ol.num li::marker { font-weight: 700; color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a, .chips span { background: var(--tile); padding: 8px 14px; font-size: var(--t-small); font-weight: 600; color: var(--ink); text-decoration: none; }
.chips a:hover { background: var(--tile2); color: var(--stage); }
.tw { overflow-x: auto; }
.tw table { min-width: 640px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--t-small); line-height: 1.5; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tile2); }
th { background: var(--stage); color: #fff; font-weight: 600; }
td strong { font-size: var(--t-body); }
pre { background: #0f1a14; color: #e5eee8; padding: 18px 20px; overflow-x: auto; font-size: var(--t-small); line-height: 1.55; margin: 0 0 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
p code, li code { background: var(--tile); padding: .1em .35em; }
article h2 { margin-top: 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--soft); font-size: var(--t-small); margin-top: 22px; }
.byline img { width: 44px; height: 44px; object-fit: cover; object-position: top; }

/* FAQ: ubin berisi, terbuka jadi oranye */
details { background: var(--tile); margin: 0 0 8px; max-width: 900px; transition: background .25s, color .25s; }
details[open] { background: var(--acc); color: var(--acc-ink); }
details[open] a { color: #fff; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 14px 24px; font-size: var(--t-body); font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5em; font-weight: 400; line-height: 1; }
details[open] summary::after { content: '−'; }
details > :not(summary) { padding: 0 24px; max-width: 64ch; }
details > :last-child { padding-bottom: 22px; margin-bottom: 0; }

/* Penutup: bidang oranye */
.cta { margin-top: clamp(80px, 9vw, 136px); background: var(--acc); color: var(--acc-ink); padding: clamp(40px, 6vw, 80px); }
.cta h2 { color: #fff; max-width: 14em; }
.cta p { max-width: 52ch; }
.cta .btn { background: var(--stage); color: #fff; margin: 8px 18px 0 0; }
.cta .btn::after { border-color: var(--acc); }
.cta .btn.alt { background: #fff; color: var(--ink); }

/* Produk online */
.prod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.prod .card { display: flex; flex-direction: column; }
.prod .card .price { margin-top: auto; padding-top: 16px; }
.prod .card .acts { margin-top: 16px; gap: 14px 18px; }
.shot { margin: 0; }
.shot img { width: 100%; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.shot figcaption { font-size: var(--t-small); color: var(--soft); margin-top: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.lessons li { position: relative; padding-left: 30px; }
.lessons li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--stage); }
.lessons li:nth-child(odd)::before { background: var(--acc); }
.lessons .lh { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
.lessons .lh span { color: var(--soft); font-weight: 400; white-space: nowrap; }
.lessons p { color: var(--soft); margin: 4px 0 0; }

/* VLOOKUP yang bisa dicoba (bagian antarmuka Excel) */
.xl { background: #fff; color: #1d1d1d; font-size: var(--t-small); outline: 8px solid var(--stage); outline-offset: 0; }
.xl-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: #f3f3f3; border-bottom: 1px solid #d9d9d9; }
.xl-bar i { color: #777; padding-right: 10px; border-right: 1px solid #d9d9d9; }
.xl-bar output { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-body { display: flex; flex-wrap: wrap; gap: 18px; padding: 14px; align-items: flex-start; }
.xl table { width: auto; background: #fff; font-size: var(--t-small); }
.xl th { background: #f3f3f3; color: #666; font-weight: 400; padding: 3px 8px; border: 1px solid #d9d9d9; text-align: center; }
.xl td { padding: 5px 10px; border: 1px solid #e2e2e2; white-space: nowrap; }
.xl tr.hit td { background: #e3f2e9; }
.xl td.in { padding: 0; outline: 2px solid var(--xl); outline-offset: -1px; position: relative; }
.xl td.in::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: var(--xl); border: 1px solid #fff; }
.xl td.in input { width: 80px; border: 0; padding: 5px 10px; font: inherit; text-transform: uppercase; outline: none; background: #fff; }
.xl td.out { font-weight: 700; min-width: 90px; }
.xl td.out.na { color: #b42318; }
.xl-seg { display: flex; margin-top: 10px; }
.xl-seg button { border: 1px solid #c9d6cd; background: #fff; padding: 7px 10px; font: inherit; font-size: var(--t-small); cursor: pointer; }
.xl-seg button + button { border-left: 0; }
.xl-seg button[aria-pressed="true"] { background: var(--xl); border-color: var(--xl); color: #fff; }
.xl-note { color: #555; margin: 10px 0 0; max-width: 26ch; }

/* ===== Footer: merek dari blok sel ===== */
.foot { margin-top: clamp(80px, 9vw, 136px); background: var(--stage); color: var(--stage-ink); padding: 72px 0 112px; font-size: var(--t-small); }
.mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(120px, 22vw, 230px); }
.mark span { flex: 1; display: grid; place-items: end start; background: var(--stage-ink); overflow: hidden; }
.mark span:nth-child(2) { background: var(--acc); }
.mark b { font-family: var(--f-d); font-size: clamp(110px, 21vw, 230px); line-height: .74; color: var(--stage); padding-left: .04em; }
.mark .h { flex: 0 0 7%; height: 22%; background: var(--stage-soft); }
.fcols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-top: 52px; }
.fcols h3 { color: #fff; font-size: var(--t-body); margin-bottom: 10px; }
.fcols a { display: block; color: var(--stage-ink); text-decoration: none; padding: 3px 0; opacity: .88; }
.fcols a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.fcols p { opacity: .88; }
.fend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; opacity: .88; }
.fend a { color: var(--stage-ink); }

/* tombol WhatsApp melayang */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; min-height: 48px; padding: 0 18px; border: 3px solid var(--ground); background: var(--stage); color: #fff; }
.fab::after { border-color: var(--ground); }
.fab:hover { background: #083d24; }

/* ===== Gerak ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .facts, .hero .acts { animation: rise .7s var(--ease) both; }
  .hero .lead { animation-delay: .07s; } .hero .facts { animation-delay: .12s; } .hero .acts { animation-delay: .16s; }
  .panel, .hero-media { animation: shutter 1s cubic-bezier(.7, 0, .2, 1) .1s both; }
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: show 0s 3s forwards; }
  .js .rv.in { opacity: 1; transform: none; animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes shutter { from { clip-path: inset(0 100% 0 0); } }
@keyframes show { to { opacity: 1; transform: none; } }

/* ===== Tablet & ponsel ===== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: var(--ground); padding: 8px var(--m) 20px; box-shadow: 0 16px 30px rgba(20, 32, 25, .12); }
  .nav.open a { padding: 12px 6px; font-size: var(--t-body); }
  .prod { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .w, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .lessons { grid-template-columns: 1fr; }
  section > ul.chk:has(> li:nth-child(5)) { columns: 1; }
  .hero .w { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --t-disp: 2.6rem; --t-head: 2rem; }
  .g2, .g3, .prod, .g3:has(> :nth-child(4):last-child), .prod[style] { grid-template-columns: 1fr !important; }
  .panel { padding: 52px 22px 26px; }
  .card { padding: 22px; }
  .lessons .lh { flex-direction: column; gap: 0; }
  .fab { right: 12px; bottom: 12px; }
  .logo span { font-size: var(--t-small); }
}
