/* ── BijakDana — RM100 Color System ── */

body {
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* in-text amber links must be underlined (WCAG link-in-text-block; Tailwind
   Preflight resets anchor text-decoration, so force it with anchor specificity). */
a.text-on-tertiary-container {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.glass-panel {
  background: rgba(237,231,218, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ── Form Components ── */

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #F4EFE4;
  color: #1A1512;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 16px 20px;
  border: 1px solid rgba(26,21,18,.18);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.option-btn:hover {
  border-color: #8A5410;
  background: rgba(253, 129, 36, 0.03);
}

.option-btn.selected,
.option-btn.active {
  border-color: #8A5410;
  background: rgba(253, 129, 36, 0.06);
  color: #8A5410;
  font-weight: 500;
}

.input {
  width: 100%;
  background: #E6DFD0;
  color: #1A1512;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(26,21,18,.18);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.input:focus {
  border-color: #8A5410;
  box-shadow: 0 0 0 3px rgba(253, 129, 36, 0.12);
}

.input::placeholder {
  color: #9A8B80;
}

/* ── Score Bars ── */

.score-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #F3ECDD;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: #1A1512;
  transition: width 0.8s ease;
}

/* ── Risk Badges ── */

.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 9999px;
}

.risk-badge.high {
  color: #C42B2B;
  background: rgba(196, 43, 43, 0.08);
}

.risk-badge.medium {
  color: #B07D1E;
  background: rgba(176, 125, 30, 0.08);
}

.risk-badge.low {
  color: #1A7A42;
  background: rgba(26, 122, 66, 0.08);
}

/* ── Progress Bar ── */

.progress-bar {
  display: flex;
  gap: 4px;
}

.pip {
  flex: 1;
  height: 2px;
  border-radius: 9999px;
  background: #F3ECDD;
  transition: background 0.4s;
}

.pip.done {
  background: #1A1512;
}

.pip.active {
  background: #1A1512;
  opacity: 0.4;
}

/* ── Blur overlay ── */

.blur-overlay {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* ── Animations ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation: fadeUp 0.6s ease both; animation-delay: 0.15s; }
.fade-up-d2 { animation: fadeUp 0.6s ease both; animation-delay: 0.3s; }
.fade-up-d3 { animation: fadeUp 0.6s ease both; animation-delay: 0.45s; }

/* ── Logo ── */

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: #1A1512;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A1512;
}

/* ── Buttons ── */

.btn-primary {
  background: #1A1512;
  color: #ffffff;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2C2620;
}

.btn-ghost {
  background: none;
  color: #7A6A62;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: #8A5410;
}

/* ── Card ── */

.card {
  background: #F4EFE4;
  border: 1px solid rgba(26,21,18,.18);
  border-radius: 3px;
  padding: 32px;
  max-width: 560px;
}

@media (max-width: 640px) {
  .card {
    padding: 24px 20px;
  }
  .text-headline-xl { font-size: 36px !important; }
  .text-headline-lg { font-size: 28px !important; }
}
