/* JobCorner — landing page jobcorner.id
   Token warna & bentuk mengikuti DESIGN-JobCorner.md */
:root {
  --brand: #12a83d;
  --primary: #0c8032;
  --primary-hover: #0a6b2a;
  --tint: #e7f6ec;
  --charcoal: #1f2421;
  --canvas: #f6f8f7;
  --surface: #ffffff;
  --border: #e3e8e5;
  --text: #1c1f1d;
  --muted: #5f6b64;
  --on-dark-muted: #c3ccc7;
  --v: #9ed9b0;
  --u: #4fb872;
  --a: #12a83d;
  --j: #0b6b2b;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06);
  --shadow-hover: 0 4px 12px rgba(16, 24, 20, .08);
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px;
  border-radius: var(--radius-btn); box-shadow: var(--shadow-hover); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-btn);
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: #cbd5d0; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 768px) { .btn { min-height: 44px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; margin-right: auto; }
.brand img { height: 26px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; border: 0; background: none;
  color: var(--text); border-radius: var(--radius-btn); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-hover); padding: 8px var(--gutter) 20px;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 4px; color: var(--text); text-decoration: none;
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.site-nav a:not(.btn):hover { color: var(--primary); }
.site-nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; padding: 0; border: 0; box-shadow: none; background: none;
    align-items: center; gap: 28px;
  }
  .site-nav ul { flex-direction: row; gap: 28px; }
  .site-nav a:not(.btn) { padding: 8px 0; border: 0; font-size: 15px; color: var(--muted); }
  .site-nav .btn { margin-top: 0; width: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--primary);
  margin-bottom: 16px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-screening { background: #e0f2fe; color: #0369a1; }
.pill-user { background: #dbeafe; color: #1d4ed8; }
.pill-interview { background: #ede9fe; color: #6d28d9; }
.pill-joined { background: #166534; color: #fff; }
.pill-dup { background: #ffedd5; color: #c2410c; }
.pill-ok { background: #dcfce7; color: #166534; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 20px;
  border-radius: 999px; background: var(--tint); color: var(--primary-hover);
  font-size: 13px; font-weight: 700;
}
.hero h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--primary); }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
@media (min-width: 480px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Hero mockup (ilustrasi UI, bukan data asli) */
.mockup { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
@media (min-width: 480px) { .mockup { padding: 40px 0 52px; } }
.mock-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 20, .18); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.mock-title { font-weight: 700; font-size: 15px; }
.mock-sub { font-size: 12px; color: var(--muted); }
.mock-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--tint); color: var(--primary);
}
.avatar.alt { background: #e0f2fe; color: #0369a1; }
.avatar.alt2 { background: #ede9fe; color: #6d28d9; }
.mock-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.mock-meta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.mock-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-hover); padding: 12px 14px; font-size: 12px;
}
.mock-receipt { left: -12px; bottom: 0; display: flex; gap: 10px; align-items: center; }
.mock-receipt .icon { color: var(--brand); }
.mock-receipt code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 700; font-size: 12px; color: var(--text); }
.mock-funnel { right: -10px; top: 0; width: 168px; }
.mock-funnel b { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.mf-bar { height: 8px; border-radius: 999px; margin-top: 5px; }
.mf-v { width: 100%; background: var(--v); }
.mf-u { width: 72%; background: var(--u); }
.mf-a { width: 46%; background: var(--a); }
.mf-j { width: 30%; background: var(--j); }
@media (max-width: 479px) {
  .mock-float { position: static; margin-top: 12px; }
  .mock-funnel { width: auto; }
}

/* ---------- Problem / solution ---------- */
.compare { display: grid; gap: 20px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card { padding: 28px; }
.compare h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.compare li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.compare li:first-child { border-top: 0; }
.compare li .icon { margin-top: 3px; }
.card-before h3 .icon, .card-before li .icon { color: #9b2c2c; }
.card-after { border-color: #b7e2c4; background: linear-gradient(180deg, var(--tint) 0, var(--surface) 140px); }
.card-after h3 .icon, .card-after li .icon { color: var(--primary); }

/* ---------- Audience sections ---------- */
.feature-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-grid h3 { font-size: 18px; margin-bottom: 8px; }
.feature-grid p { color: var(--muted); font-size: 15px; }
.audience-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.audience-cta p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; }
.step-num { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; display: block; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Metrics funnel ---------- */
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; gap: 8px; align-items: center; }
@media (min-width: 768px) { .funnel-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; } }
.funnel-bar {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px;
  border-radius: 10px; font-weight: 700; color: #fff;
}
.funnel-bar .code {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, .22); font-size: 16px;
}
.fb-v { background: var(--v); color: var(--j); width: 100%; }
.fb-v .code { background: rgba(255, 255, 255, .55); }
.fb-u { background: var(--u); color: #0b3d1a; width: 86%; }
.fb-a { background: var(--a); color: #072e14; width: 72%; }
.fb-j { background: var(--j); width: 58%; }
.funnel-desc { color: var(--muted); font-size: 15px; }
.funnel-desc strong { color: var(--text); }
.funnel-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Closing CTA + footer (dark) ---------- */
.closing { background: var(--charcoal); color: #fff; padding: 72px 0; }
.closing-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .closing-inner { grid-template-columns: 1.2fr 1fr; } }
.closing h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.closing p { margin-top: 14px; color: var(--on-dark-muted); font-size: 17px; }
.closing .cta-row { margin-top: 0; }
@media (min-width: 900px) { .closing .cta-row { justify-content: flex-end; } }

.site-footer { background: var(--charcoal); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .1); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer img { height: 24px; width: auto; }
.copyright { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Halaman 404 ---------- */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.notfound { flex: 1; padding: 72px 0 96px; }
.notfound-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--primary);
  margin-bottom: 24px;
}
.notfound-icon .icon { width: 32px; height: 32px; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.notfound-text { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 17px; }
