/* =====================================================================
   Nota Kairul — Soalan Psikometrik SPA
   Tema: "borang OMR" — kertas jawapan bercetak, bulatan jawapan,
   nombor bertaip mesin. Warna cetakan: merah borang + dakwat navy.
   ===================================================================== */

/* ---------- Token ---------- */
:root {
  --ink:        #131b2e;
  --ink-soft:   #3b465e;
  --muted:      #6b7689;
  --muted-2:    #8b95a7;

  --paper:      #ffffff;
  --wash:       #f1f4f9;
  --wash-2:     #e7ecf4;

  --line:       #dde3ec;
  --line-soft:  #eceff5;

  --spot:       #d62b4e;
  --spot-deep:  #a8123a;
  --spot-tint:  #fdeaee;
  --graphite:   #2a3242;
  --mark:       #fff2b8;

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas,
    monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(19, 27, 46, .06);
  --shadow-md: 0 10px 30px -18px rgba(19, 27, 46, .35);
  --shadow-lg: 0 30px 70px -40px rgba(19, 27, 46, .55);

  --gap: 24px;
  --section-y: clamp(56px, 7vw, 96px);
}

/* ---------- Asas ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--spot-deep); }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--spot);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.narrow-container { width: min(820px, 100% - 40px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 16px; font-weight: 700; }

.brand-copy small {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.desktop-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--spot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  flex: none;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--spot);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px -12px var(--spot-deep);
  transition: background .2s ease, transform .2s ease;
}

.header-cta:hover {
  background: var(--spot-deep);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 92px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* tanda pendaftaran borang OMR */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--wash-2) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .9;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--spot); }

.eyebrow,
.section-kicker,
.section-heading > span,
.bottom-cta span,
.hero-preview > span,
.completion-label,
.quiz-summary > span,
.toc-card > span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--spot);
}

.eyebrow {
  padding: 6px 12px;
  border: 1px solid var(--spot-tint);
  border-radius: 999px;
  background: var(--spot-tint);
  margin-bottom: 18px;
}

.hero-content h1 { margin-bottom: 18px; }
.hero-content h1::after {
  content: "";
  display: block;
  width: 68px;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--spot);
}

.hero-description {
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  background: #0b1224;
  transform: translateY(-2px);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--spot);
}

/* kad contoh — meniru petak borang jawapan */
.hero-preview {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
}

.hero-preview > * { position: relative; }

.hero-preview blockquote {
  margin: 16px 0 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.scale-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.scale-preview span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.scale-preview span:nth-child(4) {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
}

.scale-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- Seksyen artikel ---------- */
.article-section { padding: var(--section-y) 0; }
.white-section { background: var(--paper); }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.content-block { margin-bottom: 48px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { margin: 10px 0 18px; }

.article-content p { max-width: 66ch; }

.note-box {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--spot);
  box-shadow: var(--shadow-sm);
}

.white-section .note-box { background: var(--wash); }

.note-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

/* senarai skala 1–5 */
.scale-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
}

.scale-list > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}

.scale-list > div:hover {
  border-color: var(--graphite);
  transform: translateX(3px);
}

.scale-list > div > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.scale-list > div:last-child > span {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
}

.scale-list strong { color: var(--ink); font-size: 15px; }
.scale-list p { margin: 0; font-size: 14px; color: var(--muted); }

/* sidebar / TOC */
.article-sidebar { position: sticky; top: 96px; }

.toc-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.toc-card > span { margin-bottom: 8px; }

.toc-card a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .18s ease, padding-left .18s ease;
}

.toc-card a:last-child { border-bottom: 0; }
.toc-card a:hover { color: var(--spot); padding-left: 6px; }

/* ---------- Tajuk seksyen ---------- */
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 12px; }
.section-heading p { max-width: 62ch; color: var(--muted); }

.section-heading.center {
  text-align: center;
  margin-inline: auto;
  max-width: 640px;
}

.section-heading.center p { margin-inline: auto; }

/* ---------- Latihan ---------- */
.quiz-section {
  padding: var(--section-y) 0;
  background:
    linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 100%);
  border-block: 1px solid var(--line);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.quiz-panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quiz-progress-head > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quiz-progress-head span {
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-progress-head strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.reset-button {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.reset-button:hover {
  border-color: var(--spot);
  color: var(--spot);
  background: var(--spot-tint);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--wash-2);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--spot), var(--spot-deep));
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* kad soalan */
.question-card {
  margin-top: 26px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--wash);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

#questionCategory {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#saveStatus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

#saveStatus::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

#saveStatus.saved { color: var(--spot-deep); font-weight: 500; }
#saveStatus.saved::before { background: var(--spot); }

.question-card h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  margin-bottom: 18px;
}

.question-card > p {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* pilihan jawapan — bulatan borang OMR */
.answer-grid { display: grid; gap: 10px; }

.answer-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease,
    transform .18s ease;
}

.answer-option:hover {
  border-color: var(--graphite);
  transform: translateX(3px);
}

.answer-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s ease;
}

.answer-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.answer-option.selected {
  border-color: var(--spot);
  background: var(--spot-tint);
}

.answer-option.selected .answer-number {
  border-color: var(--graphite);
  background:
    radial-gradient(circle at 32% 28%, #4a5568, var(--graphite) 70%);
  color: #fff;
}

.answer-option.selected .answer-label { color: var(--spot-deep); }

/* navigasi latihan */
.quiz-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.nav-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}

.nav-button.primary {
  background: var(--spot);
  color: #fff;
  box-shadow: 0 10px 24px -14px var(--spot-deep);
}

.nav-button.primary:hover:not(:disabled) {
  background: var(--spot-deep);
  transform: translateY(-2px);
}

.nav-button.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.nav-button.secondary:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.nav-button:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

/* sidebar latihan */
.quiz-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.quiz-summary,
.number-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.quiz-summary > strong {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}

.quiz-summary p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-grid > div {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--wash);
  text-align: center;
}

.stats-grid small {
  display: block;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-grid strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.number-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.number-card-head strong { font-size: 15px; color: var(--ink); }
.number-card-head small { font-size: 12px; color: var(--muted); }

.question-number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
}

.question-number {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}

.question-number:hover { border-color: var(--graphite); color: var(--ink); }

.question-number.answered {
  border-color: var(--graphite);
  background: var(--graphite);
  color: #fff;
}

.question-number.current {
  border-color: var(--spot);
  box-shadow: 0 0 0 3px var(--spot-tint);
  color: var(--spot-deep);
}

.question-number.answered.current {
  background: var(--spot);
  border-color: var(--spot);
  color: #fff;
}

/* ---------- Senarai 20 soalan ---------- */
.static-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.static-question-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}

.static-question-list span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--spot);
  padding-top: 2px;
}

.static-question-list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Panduan menjawab ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.guide-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.guide-grid span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--spot);
}

.guide-grid h3 { margin-bottom: 8px; font-size: 17px; }
.guide-grid p { font-size: 14.5px; color: var(--muted); }

.example-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.example-comparison > div {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--graphite);
}

.example-comparison > div:last-child { border-top-color: var(--spot); }

.example-comparison span {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-comparison > div:last-child span { color: var(--spot); }

.example-comparison p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Accordion (kesilapan + FAQ) ---------- */
.mistake-list,
.faq-list { display: grid; gap: 10px; }

.mistake-list details,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .2s ease;
}

.white-section .mistake-list details,
.white-section .faq-list details { background: var(--wash); }

.mistake-list details[open],
.faq-list details[open] { border-color: var(--spot); }

.mistake-list summary,
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.mistake-list summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker { display: none; }

.mistake-list summary::after,
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--spot);
  transition: transform .2s ease, background .2s ease;
}

details[open] > summary::after {
  content: "−";
  background: var(--spot-tint);
  border-color: var(--spot);
}

.mistake-list p,
.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- CTA bawah ---------- */
.bottom-cta {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
}

.bottom-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.bottom-cta h2 { color: #fff; margin: 10px 0 10px; }
.bottom-cta p { max-width: 46ch; margin: 0; }
.bottom-cta span { color: #ff8fa3; }

.bottom-cta a {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--spot);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.bottom-cta a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  background: #0b1224;
  color: rgba(255, 255, 255, .6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner strong { color: #fff; font-size: 15px; }
.footer-inner p { margin: 4px 0 0; font-size: 13.5px; }

.footer-inner a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  padding-bottom: 2px;
}

.footer-inner a:hover { color: #fff; border-color: #fff; }

/* ---------- Modal selesai ---------- */
.completion-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 36, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.completion-modal.open { opacity: 1; visibility: visible; }

.completion-card {
  width: min(460px, 100%);
  padding: 34px 30px;
  border-radius: var(--r-xl);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}

.completion-modal.open .completion-card { transform: none; }

.completion-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--spot-tint);
  color: var(--spot);
  font-size: 26px;
  font-weight: 700;
}

.completion-card h2 { margin: 10px 0 12px; font-size: 24px; }
.completion-card p { color: var(--muted); font-size: 14.5px; }

.completion-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

body.modal-open { overflow: hidden; }

/* ---------- Noscript ---------- */
.noscript-message {
  padding: 16px 20px;
  margin: 20px auto;
  width: min(1160px, 100% - 40px);
  border-radius: var(--r-md);
  background: var(--mark);
  color: var(--ink);
  font-size: 14.5px;
}

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
  .hero-grid,
  .article-grid,
  .quiz-layout { grid-template-columns: minmax(0, 1fr); }

  .article-sidebar,
  .quiz-sidebar { position: static; }

  .desktop-nav { display: none; }
  .brand { margin-right: auto; }
}

@media (max-width: 760px) {
  .container,
  .narrow-container { width: min(100% - 32px, 640px); }

  .static-question-list,
  .guide-grid,
  .example-comparison { grid-template-columns: minmax(0, 1fr); }

  .quiz-progress-head { flex-direction: column; align-items: flex-start; }
  .quiz-actions { flex-direction: column; }
  .completion-actions { flex-direction: column; }

  .hero-preview { padding: 22px; }
  .answer-option { padding: 11px 13px; gap: 12px; }
  .answer-label { font-size: 14.5px; }
  .question-number-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .bottom-cta a { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .header-cta { padding: 10px 14px; font-size: 13px; }
}

/* ---------- Aksesibiliti ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}