/* SISU+ design system — shared across all rebuilt pages.
   Colors sampled from the Figma export (Webapp - Masuk Daftar / Website - Landing page). */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --dark: #0e1f19;        /* brand dark green — dark sections, sidebar, headings on light bg */
  --primary: #0a6a4b;     /* primary green — buttons, links, active states */
  --primary-dark: #084f39;
  --mint: #9fe0c4;        /* light mint accent — badges on dark bg, Gold CTA button */
  --mint-bg: #dcefe3;     /* light mint card background (Environmental) */
  --blue: #1f5fa8;        /* Social accent / button */
  --blue-bg: #e4edf8;     /* Social card background */
  --amber: #9c7a27;       /* Governance accent */
  --amber-bg: #fbefd9;    /* Governance card background */
  --bg: #f5f7f4;          /* page background */
  --card: #ffffff;
  --border: #e3e7e2;
  --text: #15241d;
  --muted: #5b685f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(14, 31, 25, 0.06);
}

* { box-sizing: border-box; accent-color: var(--primary); }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; line-height: 1.6; color: var(--muted); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text); }
.btn-mint { background: var(--mint); color: var(--dark); }
.btn-mint:hover { opacity: 0.88; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* Badge / tag */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.badge-mint { background: var(--mint-bg); color: var(--primary-dark); }
.badge-dark { background: var(--dark); color: var(--mint); }
.badge-neutral { background: #eef1ee; color: var(--muted); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex: none;
}

/* Top nav (marketing site) */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; }
.topbar-links a { text-decoration: none; color: var(--text); opacity: 0.8; }
.topbar-links a:hover { opacity: 1; }
.topbar-links a.active { color: var(--primary); opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }

/* App shell (logged-in webapp) */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 248px; flex: none;
  background: #fff; border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column;
}
.app-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.app-nav a {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: var(--text);
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px;
}
.app-nav a:hover { background: #f3f5f2; }
.app-nav a.active { background: var(--mint-bg); color: var(--primary-dark); }
.app-nav a .pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1ee; color: var(--muted); }
.app-nav a.locked .pill { background: var(--dark); color: var(--mint); }
.app-main { flex: 1; min-width: 0; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid var(--border); background: #fff;
}
.app-content { padding: 32px; max-width: 1200px; }
.avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.avatar-menu { position: relative; }
.avatar-menu .avatar { cursor: pointer; }
.avatar-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); min-width: 170px; padding: 6px; flex-direction: column;
}
.avatar-dropdown.open { display: flex; }
.avatar-dropdown a {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.avatar-dropdown a:hover { background: #f3f5f2; }
.avatar-dropdown a[data-logout] { color: #b23b3b; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Progress bar */
.progress-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* Footer (marketing site) */
.site-footer { background: var(--dark); color: #fff; padding: 40px 0; margin-top: 60px; }
.site-footer a { text-decoration: none; color: #fff; opacity: 0.75; font-size: 14px; }
.site-footer a:hover { opacity: 1; }

/* Pricing cards (landing + billing pages) */
.price-card { padding: 28px; display: flex; flex-direction: column; min-height: 380px; }
.price-card .plan-name { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.price-card .price { font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.price-card .price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { font-size: 13.5px; padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.price-card.gold { background: var(--dark); color: #fff; border: none; }
.price-card.gold .plan-name { color: var(--mint); }
.price-card.gold li { color: #fff; }
.price-card.gold li::before { color: var(--mint); }
.price-card.gold .price span { color: #c7d6cf; }

/* Struck-through "was" price for the current Basic promo (normally USD
   10/tahun, free for now). Used both inline (badges, step labels) and as a
   block above the big price in pricing cards. */
.price-strike { text-decoration: line-through; color: var(--muted); font-weight: 600; margin-right: 6px; }
.price-card .price .price-strike { display: block; font-size: 13.5px; margin-bottom: 4px; }

/* Recommendation list (dashboard + insight pages) */
.reco-list { display: flex; flex-direction: column; }
.reco-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.reco-item:last-child { border-bottom: none; }
.reco-item .dot { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.reco-item p { font-size: 14px; color: var(--text); }
.cta-panel { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; height: 100%; }
.cta-panel .eyebrow { color: var(--mint); margin-bottom: 10px; }
.cta-panel h3 { font-size: 19px; color: #fff; margin-bottom: 10px; }
.cta-panel p { color: #c7d6cf; font-size: 13.5px; margin-bottom: 20px; flex: 1; }

/* Journey steps (dashboard progress tracker) */
.journey { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }
body.plan-pending .app-main, body.plan-pending .app-sidebar { visibility: hidden; }
.journey-step .progress-track { margin-bottom: 14px; }
.journey-step .progress-fill.done { width: 100%; }
.journey-step .progress-fill.half { width: 50%; }
.journey-step .progress-fill.locked { width: 0%; }
.journey-step h4 { font-size: 14.5px; margin-bottom: 4px; }
.journey-step .status { font-size: 13px; color: var(--muted); }
.journey-step .status.done { color: var(--primary); font-weight: 700; }
.journey-step .status.locked { color: var(--muted); }

/* Score ring (shared: dashboard + reports) */
.ring { position: relative; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { line-height: 1; }
.ring .num span { color: var(--muted); }

/* Panel/section helpers used across app pages */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-title { font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.stat-chip { border-radius: var(--radius-sm); padding: 16px; }
.stat-chip .label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; }
.stat-chip .value { font-size: 26px; font-weight: 800; margin: 6px 0 4px; }
.stat-chip .hint { font-size: 12px; color: var(--muted); }

/* Assessment flow */
.cat-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-tab { border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-family: inherit; }
.cat-tab.env { background: var(--mint-bg); border-color: transparent; color: var(--primary-dark); }
.cat-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.option-row { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.option-row input { margin-right: 12px; }
.option-row.selected { border-color: var(--primary); background: var(--mint-bg); }
.lock-note { background: var(--blue-bg); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.lock-note a { color: var(--blue); font-weight: 700; text-decoration: none; margin-left: auto; white-space: nowrap; }
.qnav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.qnav-cell { aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; border: 1px solid var(--border); background: #fff; color: var(--text); }
.qnav-cell.answered { background: var(--primary); color: #fff; border-color: var(--primary); }
.qnav-cell.current { background: var(--dark); color: #fff; border-color: var(--dark); }
.qnav-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.qnav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qnav-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--border); }

/* Documents page */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; background: #fff;
}
.dropzone .arrow { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.dropzone h3 { font-size: 18px; margin-bottom: 8px; }
.dropzone p { font-size: 13px; margin-bottom: 18px; }
.filter-pills { display: flex; gap: 10px; margin: 22px 0 16px; flex-wrap: wrap; }
.filter-pill { border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-family: inherit; }
.filter-pill.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.doc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.doc-table td { padding: 16px 0; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.doc-table tr:last-child td { border-bottom: none; }
.doc-name small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.aspect-chip { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.status-pill.approved { background: var(--mint-bg); color: var(--primary-dark); }
.status-pill.pending { background: var(--blue-bg); color: var(--blue); }
.status-pill.revise { background: #fde3e1; color: #c0392b; }
.status-pill.none { background: #eef1ee; color: var(--muted); }
.status-note { font-size: 12.5px; color: #c0392b; margin-top: 4px; }
.doc-action { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 13.5px; }

/* Verification report */
.status-pill.sebagian { background: var(--amber-bg); color: var(--amber); }
.badge-card { background: var(--dark); color: #fff; border-radius: var(--radius-sm); padding: 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.badge-card .check { width: 34px; height: 34px; border-radius: 999px; background: var(--mint); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.badge-card b { display: block; font-size: 14.5px; }
.badge-card small { opacity: 0.75; font-size: 12px; }
.public-url { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }

/* Insight ESG pages */
.insight-tabs { display: flex; background: var(--border); border-radius: 999px; padding: 4px; }
.insight-tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--muted); }
.insight-tabs a.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.confidence-track { display: flex; gap: 4px; width: 200px; }
.confidence-track i { flex: 1; height: 7px; border-radius: 999px; background: var(--border); display: block; }
.confidence-track i.on { background: var(--primary); }
.confidence-track.blue i.on { background: var(--blue); }
.confidence-track.mint i.on { background: var(--mint); }
.aspect-num-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aspect-num-card { border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); }
.aspect-num-card .v { font-size: 24px; font-weight: 800; margin-top: 4px; }
.aspect-num-card .v small { font-size: 12px; font-weight: 600; color: var(--muted); }
.upsell-card { border-radius: var(--radius); padding: 22px; }
.upsell-card.light { background: var(--blue-bg); }
.upsell-card.dark { background: var(--dark); color: #fff; }
.upsell-card .unlock-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.upsell-card.light .unlock-tag { color: var(--blue); }
.upsell-card.dark .unlock-tag { color: var(--mint); }
.upsell-card h3 { font-size: 19px; margin-bottom: 8px; }
.upsell-card.dark h3 { color: #fff; }
.upsell-card p { font-size: 13.5px; margin-bottom: 16px; }
.upsell-card.dark p { color: #c7d6cf; }
.claim-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.claim-row:last-child { border-bottom: none; }
.claim-row .status-pill { flex: none; min-width: 112px; justify-content: center; }
.impact-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.impact-row:last-child { border-bottom: none; }
.hero-score-panel { border-radius: var(--radius); padding: 26px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-score-panel.gold { background: var(--dark); color: #fff; }
.chip-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip-tags span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; }
.check-banner { background: var(--mint-bg); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.check-banner .left { display: flex; align-items: center; gap: 14px; }

/* Responsive */
/* Mobile bottom tab bar — replaces the sidebar nav list on small screens
   (matches the mockups' 4-item bottom bar: Beranda/Penilaian/Dokumen/Laporan). */
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .app-shell { flex-direction: column; padding-bottom: 66px; }
  .app-sidebar {
    width: 100%; flex-direction: row; align-items: center; justify-content: space-between;
    border-right: none; border-bottom: 1px solid var(--border); padding: 14px 18px;
  }
  .app-nav { display: none; }
  .app-content { padding: 20px; }
  .app-topbar { padding: 16px 20px; }
  .app-topbar > *:first-child { display: none; }
  .app-topbar .badge { display: none; }
  .topbar-links { display: none; }

  .mobile-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; padding: 4px;
  }
  .mobile-bottom-nav a.active { color: var(--primary); }
}
@media (max-width: 640px) {
  h1 { font-size: 32px !important; }
}
