/* Landing page Group Auto-Poster Pro
   Arah: halaman terang hangat untuk penjual, panel produk tampil gelap seperti aslinya.
   Biru #2563eb diambil dari warna utama panel ekstensi, dipakai hanya untuk aksi. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --ink: #111827;
  --ink-2: #3f4655;
  --line: #ddd7ca;
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --night: #0b0f19;
  --night-2: #141b2b;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #e5e9f0;
  --night-muted: #a3adbd;
  --ok: #34d399;
  --wait: #fbbf24;
  --bad: #f87171;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r-md: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue-ink); }
a:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-disabled {
  background: var(--paper-2); color: var(--ink-2);
  border: 1px dashed var(--line); cursor: not-allowed;
}

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .nav-cta { color: var(--blue-ink); font-weight: 700; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.025em; }
.lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.link-quiet { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--ink-2); }
.facts li { padding-left: 14px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

/* Panel ilustrasi: meniru panel Antrean asli yang gelap */
.panel {
  margin: 0; background: var(--night); color: var(--night-text);
  border-radius: var(--r-md); padding: 18px;
  box-shadow: 0 24px 48px -24px rgba(17, 24, 39, 0.45);
  font-size: 13px;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-title { font-weight: 700; font-size: 15px; }
.panel-state { color: var(--ok); font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; }
.metrics div { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-sm); padding: 8px; }
.metrics dt { color: var(--night-muted); font-size: 11px; }
.metrics dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.m-ok dd { color: var(--ok); }
.m-wait dd { color: var(--wait); }
.m-bad dd { color: var(--bad); }
.m-skip dd { color: var(--night-muted); }
.quota { margin-top: 14px; }
.quota-row { display: flex; justify-content: space-between; color: var(--night-muted); }
.quota-row span:last-child { color: var(--night-text); font-weight: 600; }
.bar { height: 6px; background: var(--night-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 40%; background: #3b82f6; }
.countdown {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding: 10px 12px; border: 1px solid var(--night-line);
  border-radius: var(--r-sm); background: var(--night-2);
}
.countdown span { color: var(--night-muted); }
.countdown strong { font-family: var(--mono); font-size: 18px; }
.groups { list-style: none; margin-top: 12px; }
.groups li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--night-line);
}
.g-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tag-ok { color: var(--ok); background: rgba(52, 211, 153, 0.12); }
.tag-wait { color: var(--wait); background: rgba(251, 191, 36, 0.12); }
.tag-next { color: var(--night-muted); border: 1px solid var(--night-line); }
.panel figcaption { margin-top: 12px; color: var(--night-muted); font-size: 12px; }

/* Masalah */
.problem { padding: 72px 0; background: var(--paper-2); }
.problem h2 { font-size: clamp(26px, 3vw, 34px); max-width: 24em; }
.problem-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 2px solid var(--ink); }
.problem-list li { padding: 20px 24px 0 0; }
.problem-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.problem-list h3 { font-size: 19px; }
.problem-list p { margin-top: 8px; color: var(--ink-2); }

/* Cara kerja */
.how { padding: 96px 0 88px; }
.how h2,
.features h2,
.safety h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 22em; }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 38em; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: 15px; font-weight: 800; color: var(--blue-ink);
  margin-bottom: 10px;
}
.steps h3 { font-size: 19px; }
.steps p { margin-top: 6px; color: var(--ink-2); }

/* Ritme jeda: motif utama halaman, jarak antar grup sengaja tidak sama */
.rhythm { margin: 56px 0 0; }
/* Lebar jeda sebanding dengan lamanya, supaya ritme tidak rata terlihat sekilas */
.rhythm-track { display: flex; align-items: center; }
.post {
  flex: none; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.gap {
  flex: 1 1 0; min-width: 0; position: relative; text-align: center; font-size: 12px; line-height: 1.3;
  color: var(--ink-2); padding: 0 4px 18px;
}
.gap::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px;
  border-bottom: 2px dotted var(--ink-2);
}
.gap-1 { flex-grow: 72; }
.gap-2 { flex-grow: 161; }
.gap-3 { flex-grow: 95; }
.gap-4 { flex-grow: 123; }
.gap-rest { flex-grow: 300; color: var(--blue-ink); font-weight: 700; }
.gap-rest::after { border-bottom: 2px solid var(--blue); }
.rhythm figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* Spintax */
.spin { padding: 88px 0; background: var(--ink); color: #f3f4f6; }
.spin-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.spin h2 { font-size: clamp(26px, 3vw, 36px); }
.spin-grid > div:first-child p { margin-top: 18px; color: #c8ccd4; }
.spin-demo { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-md); padding: 24px; }
.spin-label { font-size: 13px; font-weight: 700; color: #c8ccd4; }
.spin-label + * { margin-top: 8px; }
.spin-src { margin-bottom: 24px; }
.spin-src code { font-family: var(--mono); font-size: 15px; line-height: 1.7; color: #93c5fd; }
.spin-out { list-style: none; display: grid; gap: 10px; }
.spin-out li { padding: 12px 14px; background: rgba(255, 255, 255, 0.06); border-radius: var(--r-sm); }
.spin-g { display: block; font-size: 12px; font-weight: 700; color: #c8ccd4; margin-bottom: 2px; }

/* Fitur lain */
.features { padding: 96px 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; margin: 40px 0 0; }
.feature-list div { padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 700; font-size: 18px; }
.feature-list dd { margin: 6px 0 0; color: var(--ink-2); }

/* Keamanan */
.safety { padding: 96px 0; background: var(--night); color: var(--night-text); }
.safety .section-lead { color: var(--night-muted); }
.table-scroll { margin-top: 40px; overflow-x: auto; }
.presets { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.presets caption { text-align: left; color: var(--night-muted); font-size: 14px; padding-bottom: 10px; }
.presets th,
.presets td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--night-line); }
.presets thead th { color: var(--night-muted); font-weight: 600; font-size: 14px; }
.presets tbody th { font-weight: 700; }
.presets td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.safety-list { margin-top: 36px; padding-left: 20px; display: grid; gap: 10px; max-width: 46em; }
.honest {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--night-line);
  font-size: 19px; font-weight: 600; max-width: 36em;
}

/* Cocok / kurang cocok */
.fit { padding: 80px 0; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.fit h3 { font-size: 22px; }
.fit ul { margin-top: 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* Beli */
.buy { padding: 88px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.buy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.buy-grid > div:first-child p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.buy-card h3 { font-size: 19px; }
.buy-card ul { margin-top: 14px; padding-left: 20px; display: grid; gap: 8px; }
.buy-note { margin: 20px 0 16px; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { padding: 96px 0; }
.faq-wrap { max-width: 760px; }
.faq h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; list-style-position: outside; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Penutup */
.closing { padding: 72px 0; background: var(--blue); color: #fff; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { font-size: clamp(24px, 2.8vw, 34px); max-width: 20em; }
.closing .btn-primary { background: #fff; color: var(--blue-ink); flex: none; }
.closing .btn-primary:hover { background: var(--paper); }
.closing .btn-primary:focus-visible { outline-color: #fff; }

/* Footer */
.site-foot { padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; align-items: start; }
.disclaimer { max-width: 44em; }
.foot-links { list-style: none; display: flex; gap: 20px; flex: none; }

/* Halaman teks (privasi, syarat, 404) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.doc .updated { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p,
.doc ul { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }

/* Layar kecil */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid,
  .spin-grid,
  .buy-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .feature-list { grid-template-columns: 1fr; }
  .closing-row,
  .foot-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-hide { display: none; }
  .problem-list { grid-template-columns: 1fr; }
  .problem-list li,
  .problem-list li + li { padding: 16px 0; border-left: 0; }
  .problem-list li + li { border-top: 1px solid var(--line); }
  .fit-grid { grid-template-columns: 1fr; gap: 36px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  /* Ritme jadi vertikal: tinggi jeda sebanding dengan lamanya */
  .rhythm-track { flex-direction: column; align-items: flex-start; }
  .gap { flex: none; margin-left: 22px; padding: 0 0 0 14px; border-left: 2px dotted var(--ink-2); display: flex; align-items: center; text-align: left; }
  .gap::after { content: none; }
  .gap-1 { height: 36px; }
  .gap-2 { height: 64px; }
  .gap-3 { height: 44px; }
  .gap-4 { height: 52px; }
  .gap-rest { height: 96px; border-left: 2px solid var(--blue); }
  .panel { padding: 14px; }
  .how,
  .features,
  .safety,
  .faq { padding: 64px 0; }
}
