@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap");

/* =========================================================
   Nota Kairul — sale.css
   Konsep: "fail rekod tersusun" — tab kategori, kad rekod,
   kod nota bergaya monospace, garisan halus seperti kertas.
   ========================================================= */

/* ---------- 1. Token ---------- */
:root {
  --ink: #0c231f;
  --ink-2: #16352f;
  --brand: #0f5c4d;
  --brand-dark: #0a4239;
  --brand-soft: #e3f0ea;
  --mark: #dc9026;
  --mark-soft: #fbf0dd;
  --paper: #f2f4f0;
  --surface: #ffffff;
  --rule: #dde2da;
  --rule-strong: #c6cfc4;
  --muted: #5b6b64;

  --display: "Archivo", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgba(12, 35, 31, 0.05);
  --shadow-md: 0 12px 28px -14px rgba(12, 35, 31, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(12, 35, 31, 0.45);
}

/* ---------- 2. Asas ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--mark);
  color: #fff;
}

/* ---------- 3. Susun atur ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.section-pad {
  padding-block: clamp(60px, 8vw, 108px);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}

.section-label.inverse {
  color: var(--mark);
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 700;
}

.section-heading > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  max-width: 60ch;
}

.section-heading.centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-heading.centered > p:last-child {
  margin-inline: auto;
}

/* ---------- 4. Butang ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--rule);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--mark);
  color: var(--ink);
}

/* ---------- 5. Header & navigasi ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 244, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.navbar {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  background: var(--mark);
  color: var(--ink);
  font-size: 0.9rem;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(
    120% 90% at 70% 0%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 0 rgba(220, 144, 38, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 144, 38, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(220, 144, 38, 0);
  }
}

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.hero-lead {
  margin-top: 20px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.trust-row div {
  display: grid;
  gap: 3px;
}

.trust-row strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-row span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 7. Pratonton pemilih ---------- */
.preview-window {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--ink);
}

.preview-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
}

.preview-top p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.preview-body {
  display: grid;
  gap: 9px;
  padding: 20px;
}

.preview-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.preview-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.preview-option.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.preview-code {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.preview-option.active .preview-code {
  background: var(--brand);
}

.preview-option strong {
  display: block;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
}

.preview-option small {
  font-size: 0.76rem;
  color: var(--muted);
}

.preview-check {
  margin-left: auto;
  color: var(--brand);
  font-weight: 700;
}

.preview-result {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-strong);
}

.preview-result span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-result strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- 8. Cara pilih (langkah bernombor) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-item span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mark);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.step-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.step-item p {
  margin-top: 9px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- 9. Senarai nota ---------- */
.note-finder {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.finder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.finder-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

#filterSummary {
  max-width: 38ch;
  padding-left: 16px;
  border-left: 2px solid var(--mark);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tab kategori */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  margin-bottom: -1px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.filter-button:hover {
  color: var(--ink);
  background: var(--paper);
}

.filter-button.active {
  border-color: var(--rule);
  border-bottom-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 2px 0 var(--mark);
}

/* Kad nota */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}

.note-card.featured {
  border-color: var(--mark);
  box-shadow: 0 18px 40px -26px rgba(220, 144, 38, 0.75);
}

.note-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--mark);
}

.note-card.is-visible {
  animation: cardIn 0.34s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.note-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.note-initial {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.status-badge {
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.available {
  background: var(--brand-soft);
  border-color: rgba(15, 92, 77, 0.22);
  color: var(--brand);
}

.status-badge.muted {
  background: var(--paper);
  color: var(--muted);
}

.note-category {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.note-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.note-description {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

.suitable-box {
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--mark);
  border-radius: 10px;
}

.suitable-box strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.suitable-box p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.note-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.note-link:hover {
  background: var(--ink);
}

.note-link span {
  transition: transform 0.2s ease;
}

.note-link:hover span {
  transform: translateX(4px);
}

.note-link.disabled {
  background: transparent;
  border: 1px dashed var(--rule-strong);
  color: var(--muted);
  cursor: not-allowed;
}

.catalog-error {
  grid-column: 1 / -1;
  padding: 40px 28px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.catalog-error p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  margin-top: 24px;
  padding: 48px 24px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- 10. Kelebihan (gaya pilihan jawapan) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.benefit-item {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-item span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.benefit-item:hover span {
  background: var(--ink);
  color: var(--paper);
}

.benefit-item h3 {
  font-size: 1.04rem;
  font-weight: 700;
}

.benefit-item p {
  margin-top: 9px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 11. Panduan ringkas ---------- */
.guidance-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(30px, 5vw, 56px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.guidance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.guidance-card > * {
  position: relative;
  z-index: 1;
}

.guidance-card h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.guidance-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.guidance-list p {
  padding: 16px 18px;
  border-left: 2px solid var(--mark);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.76);
}

.guidance-list strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- 12. FAQ ---------- */
.faq {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.faq-grid h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
}

.faq-intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border: 0;
  background: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}

.faq-question:hover {
  color: var(--brand);
}

.faq-question span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
  color: var(--mark);
  border-color: var(--mark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  padding-bottom: 22px;
  max-width: 58ch;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- 13. CTA akhir ---------- */
.final-card {
  position: relative;
  padding: clamp(38px, 6vw, 72px) clamp(24px, 5vw, 56px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}

.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 100% at 50% 0%,
    rgba(220, 144, 38, 0.22),
    transparent 65%
  );
  pointer-events: none;
}

.final-card > * {
  position: relative;
  z-index: 1;
}

.final-card .section-label {
  display: block;
}

.final-card h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.final-card p {
  max-width: 54ch;
  margin: 16px auto 28px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  padding-block: 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 15. Kembali ke atas ---------- */
.back-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease;
}

.back-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 16. Responsif ---------- */
@media (max-width: 1020px) {
  .hero-grid,
  .faq-grid,
  .guidance-card {
    grid-template-columns: 1fr;
  }

  .finder-preview {
    max-width: 460px;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(20px, 5vw, 32px) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 16px;
    padding: 14px 18px;
    text-align: center;
    border-bottom: 0;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .finder-heading {
    align-items: flex-start;
  }

  #filterSummary {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 17. Kurangkan gerakan ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .note-card:hover,
  .step-item:hover,
  .benefit-item:hover {
    transform: none;
  }
}