/* HCD Advisory — hcd.co.id */
:root {
  --indigo: #1B2F6B;
  --kunyit: #E3A23B;
  --tinta: #1A1F2C;
  --kertas: #F6F7F9;
  --putih: #FFFFFF;

  --bg: var(--kertas);
  --surface: var(--putih);
  --text: var(--tinta);
  --text-2: #4F5870;
  --line: #E1E5EC;
  --heading: var(--indigo);
  --band: var(--indigo);
  --band-text: #EEF1F7;
  --band-text-2: #B9C3DD;
  --btn-bg: var(--indigo);
  --btn-text: #FFFFFF;
  --ok: #1E7F55;
  --warn: #A86A08;
  --bad: #B3362C;
  --logo-main: var(--indigo);
  --logo-text: var(--tinta);

  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A3D;
    --surface: #16244F;
    --text: #EEF1F7;
    --text-2: #A9B2C7;
    --line: #2A3A6B;
    --heading: #EEF1F7;
    --band: #0A1330;
    --band-text: #EEF1F7;
    --band-text-2: #A9B2C7;
    --btn-bg: var(--kunyit);
    --btn-text: #1A1F2C;
    --ok: #5FD3A0;
    --warn: #F0BE6A;
    --bad: #FF8A80;
    --logo-main: #FFFFFF;
    --logo-text: #FFFFFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; }
.brand .logo { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-decoration-color: var(--kunyit); text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--heading); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nav .btn { padding: 10px 16px; font-size: .95rem; }
.nav .btn:hover { text-decoration: none; color: var(--btn-text); }

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-text); }
.band .muted, .band p { color: var(--band-text-2); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { max-width: 15ch; }

/* Compliance panel — the signature element */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 1px 0 var(--line); }
.panel-title { font-weight: 700; margin: 0 0 4px; color: var(--heading); }
.panel-sub { font-size: .9rem; color: var(--text-2); margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.status { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.s-ok { color: var(--ok); }
.s-warn { color: var(--warn); }
.s-bad { color: var(--bad); }
.panel-foot { margin: 14px 0 0; padding-top: 14px; border-top: 2px solid var(--kunyit); font-weight: 600; font-size: .95rem; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 24px 20px 24px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.05rem; color: var(--heading); }
.facts span { font-size: .93rem; color: var(--text-2); }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Services list */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s; }
.service:hover { border-color: var(--heading); }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--text-2); font-size: .98rem; flex: 1; }
.service .price { font-weight: 700; color: var(--text); margin: 0; }
.service .price small { font-weight: 500; color: var(--text-2); }

/* Staircase: process steps rise like the logo */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.stair { background: color-mix(in srgb, var(--band-text) 6%, transparent); border-top: 4px solid var(--band-text-2); border-radius: 6px; padding: 22px; }
.stair:nth-child(1) { min-height: 200px; }
.stair:nth-child(2) { min-height: 240px; }
.stair:nth-child(3) { min-height: 280px; }
.stair:nth-child(4) { min-height: 320px; border-top-color: var(--kunyit); }
.stair .n { font-weight: 800; font-size: 1.6rem; color: var(--kunyit); display: block; margin-bottom: 8px; }
.stair h3 { font-size: 1.08rem; }
.stair p { font-size: .95rem; margin: 0; }
@media (max-width: 800px) { .stairs { grid-template-columns: 1fr; } .stair { min-height: 0 !important; } }

/* Tiers: three rising steps */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tier .steps { display: flex; gap: 4px; align-items: flex-end; height: 28px; margin-bottom: 18px; }
.tier .steps i { width: 14px; background: var(--line); border-radius: 2px; }
.tier .steps i:nth-child(1) { height: 10px; } .tier .steps i:nth-child(2) { height: 19px; } .tier .steps i:nth-child(3) { height: 28px; }
.tier .steps i.on { background: var(--heading); }
.tier .steps i.on:last-child { background: var(--kunyit); }
.tier:nth-child(2) { padding-bottom: 44px; }
.tier:nth-child(3) { padding-bottom: 60px; border-color: var(--heading); }
.tier h3 { margin-bottom: .2em; }
.tier .amount { font-size: 1.5rem; font-weight: 800; color: var(--heading); margin: 8px 0 4px; }
.tier .scope { font-size: .9rem; color: var(--text-2); margin-bottom: 16px; }
.tier ul { margin: 0; padding-left: 1.1em; font-size: .97rem; }
.tier li { margin-bottom: 6px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier { padding-bottom: 28px !important; } }

/* Generic two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.plain-list { padding-left: 1.1em; }
.plain-list li { margin-bottom: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--heading); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--text-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); }

/* Page header */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--text-2); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; border-left: 4px solid var(--ok); background: var(--surface); margin-bottom: 24px; }
.notice.err { border-left-color: var(--bad); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.result-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.result-row.total { font-weight: 800; color: var(--heading); border-bottom: 0; border-top: 2px solid var(--kunyit); margin-top: 6px; padding-top: 14px; }

/* CTA band */
.cta-band { padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; }
.band .btn-primary { background: var(--kunyit); color: #1A1F2C; }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .98rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.site-footer .logo { height: 30px; width: auto; margin-bottom: 14px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; background: #1F8F4E; color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose { max-width: 72ch; }

/* Platform: fitur LMS */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin-top: 24px; }
.feature { border-top: 2px solid var(--line); padding-top: 16px; }
.feature:nth-child(4n+1) { border-top-color: var(--kunyit); }
.feature h3 { font-size: 1.05rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--text-2); font-size: .97rem; }

/* Hero: contoh laporan HR bulanan dengan motif anak tangga */
.hero-visual { position: relative; padding: 0 0 28px 28px; max-width: 500px; justify-self: end; width: 100%; }
.hero-stairs { position: absolute; left: 0; bottom: 0; width: 72%; height: 78%; background: var(--indigo); border-radius: 20px; display: flex; align-items: flex-end; gap: 8px; padding: 0 0 20px 20px; }
.hero-stairs i { display: block; width: 14px; border-radius: 3px; background: #EEF1F7; opacity: .9; }
.hero-stairs i:nth-child(1) { height: 18px; } .hero-stairs i:nth-child(2) { height: 30px; } .hero-stairs i:nth-child(3) { height: 42px; background: var(--kunyit); opacity: 1; }
.report { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 16px 40px rgba(15, 26, 61, .14); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.report-kicker { margin: 0; font-size: .82rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.report-title { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.report-tag { font-size: .78rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.report-kpis div { background: var(--bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.report-kpis div:nth-child(2) { box-shadow: inset 0 -3px 0 var(--kunyit); }
.report-kpis strong { font-size: 1.3rem; font-weight: 800; color: var(--heading); line-height: 1.2; }
.report-kpis span { font-size: .8rem; color: var(--text-2); line-height: 1.35; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.report-list b { font-size: .84rem; white-space: nowrap; }
.chip { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(15, 26, 61, .16); display: flex; flex-direction: column; line-height: 1.35; }
.chip strong { color: var(--heading); font-size: .95rem; }
.chip span { color: var(--text-2); font-size: .82rem; }
.chip-a { bottom: -6px; right: -12px; border-left: 3px solid var(--ok); }
@media (max-width: 900px) { .hero-visual { justify-self: start; } .chip-a { right: 8px; } }
@media (max-width: 480px) { .report-kpis { grid-template-columns: 1fr 1fr; } .report-kpis div:nth-child(3) { grid-column: span 2; } .report-list b { white-space: normal; text-align: right; } }

/* Tentang: foto */
.portrait { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 16px; margin-bottom: 24px; border-bottom: 4px solid var(--kunyit); }

/* Ilustrasi dashboard LMS */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 26, 61, .10); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--indigo); color: #EEF1F7; font-size: .85rem; font-weight: 600; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 241, 247, .45); }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 18px 20px 20px; }
.mock-title { font-weight: 700; color: var(--heading); margin: 0 0 10px; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; margin-top: 12px; }
.mock-row b { font-size: .85rem; white-space: nowrap; }
.mock-prog { height: 6px; background: var(--line); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.mock-prog i { display: block; height: 100%; background: var(--indigo); border-radius: 99px; }
.mock-cert { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--kunyit); border-radius: 10px; display: flex; flex-direction: column; font-size: .88rem; }
.mock-cert strong { color: var(--heading); }
.mock-cert span { color: var(--text-2); }
@media (prefers-color-scheme: dark) { .mock-prog i { background: var(--kunyit); } .hero-stairs { background: #22377A; } .report-kpis div { background: #0F1A3D; } }

/* Artikel */
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { margin: 20px 0; }

/* Video YouTube (Platform) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #F4F5FA; box-shadow: 0 16px 40px rgba(15, 26, 61, .14); }
.video iframe, .video video, .video-play, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: none; }
.video-play img { object-fit: cover; }
.video-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--kunyit); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.video-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #1A1F2C; }
.video-play:hover .video-icon { transform: scale(1.06); }
