/* 918KissDaftar Malaysia — Clean Minimalist High-Authority SEO Stylesheet */
:root {
  --primary: #d91b6b;
  --primary-dark: #b01254;
  --primary-soft: #fff1f7;
  --ink: #111827;
  --muted: #525b6a;
  --line: #e6e8ee;
  --bg: #ffffff;
  --soft: #f8f9fb;
  --accent: #111827;
  --radius: 14px;
  --maxw: 1120px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
a:hover { color: var(--primary-dark); }
code { background: var(--soft); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; color: var(--ink); letter-spacing: -0.4px; }
.brand img { height: 38px; width: auto; object-fit: contain; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }
.burger-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 18px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary) !important; background: var(--primary-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
.hero-center { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-center .btn-row, .hero-center .meta-pills { justify-content: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.18; letter-spacing: -1px; color: var(--ink); margin-bottom: 16px; }
.hero p.lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.meta-pill { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.hero-box {
  background: var(--soft); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.hero-box img { max-height: 130px; width: auto; object-fit: contain; }

/* Download Cards */
.sec-head { margin-bottom: 28px; text-align: left; }
.sec-head h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 8px; }
.sec-head p { color: var(--muted); max-width: 680px;  }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(17,24,39,0.06); }
.card.featured { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 38%); }
.card-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; }
.card h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.card-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }

/* Test ID Strip */
.demo-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.demo-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-chip { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.demo-chip small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.demo-chip strong { font-size: 14px; color: var(--ink); }

/* Article Shell & Sidebar */
.page-header { padding: 40px 0 32px; background: var(--soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.page-header h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: -0.7px; line-height: 1.22; margin-bottom: 10px; }
.page-header p { color: var(--muted); max-width: 740px; font-size: 15.5px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: start; }
.prose h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 30px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose strong { color: var(--ink); }

.aside-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; position: sticky; top: 88px; }
.aside-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.aside-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.aside-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aside-links a { font-size: 13.5px; font-weight: 600; color: var(--muted); display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
.aside-links a:hover { color: var(--primary); }

/* Clean Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; background: #fff; }
.clean-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.clean-table th { background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 800; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.clean-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.clean-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 15px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 16px; color: var(--muted); font-size: 14.5px; }

/* Blog Index List */
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--primary); }
.blog-card h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.blog-card p { font-size: 13.8px; color: var(--muted); margin-bottom: 14px; flex: 1; }
.blog-read { font-size: 13.5px; font-weight: 700; color: var(--primary); }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 48px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { color: #94a3b8; }
.footer-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #94a3b8; }

@media (max-width: 900px) {
  .hero-split, .content-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .aside-card { position: static; }
}
@media (max-width: 760px) {
  .burger-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 20px; box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
  .main-nav.open { display: flex; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
