/* CuciCatat compro. Identitas: nota (kertas krem, tinta biru, satu stempel merah).
   Palet: kertas #F6F1E7, tinta #1E2430, biru cap #2A4A8F, merah stempel #B3321F (hanya stempel LUNAS). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper-2: #ede6d6;
  --paper-3: #fffdf8;
  --ink: #1e2430;
  --muted: #5a6070;
  --blue: #2a4a8f;
  --blue-dark: #1f3870;
  --red: #b3321f;
  --rule: rgba(30, 36, 48, 0.18);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a, summary, button, label[for] { cursor: pointer; }
section[id] { scroll-margin-top: 16px; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { 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: var(--paper); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- tombol & tautan ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; border-radius: 4px; border: 0;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { background: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-inv { background: var(--paper); color: var(--ink); }
.btn-inv:hover { background: var(--paper-2); }
.btn-inv:active { background: #fff; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.textlink:hover { color: var(--ink); }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.nav { display: none; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.nav a:hover { background: var(--paper-2); }
.acts { display: flex; align-items: center; gap: 6px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); line-height: 1.08; margin-bottom: 18px; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 34em; margin-bottom: 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 12px; }
.fine { font-size: .95rem; color: var(--muted); margin: 0; }

.nota-wrap { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.nota-wrap figcaption { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.nota {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  padding: 22px 22px 64px;
  font: 500 .8125rem/1.55 var(--mono);
  box-shadow: 0 16px 28px -20px rgba(30, 36, 48, 0.55); /* satu-satunya benda yang terangkat dari halaman */
}
.nota::after { /* tepi sobek di bawah nota */
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 9px;
  background: radial-gradient(circle at 7px 0, transparent 6px, var(--paper-3) 6.5px) repeat-x;
  background-size: 14px 9px;
}
.n-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.n-head strong { font-weight: 500; font-size: 1rem; }
.n-meta { margin: 0 0 12px; color: var(--muted); }
.n-items { list-style: none; margin: 0; padding: 12px 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.n-items li { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.n-items small { display: block; color: var(--muted); font-size: .75rem; }
.n-sum { margin: 10px 0 0; }
.n-sum div { display: flex; justify-content: space-between; gap: 12px; }
.n-sum dt, .n-sum dd { margin: 0; }
.n-total { font-size: 1rem; padding: 6px 0; }
.stamp {
  position: absolute; left: 22px; bottom: 22px; margin: 0;
  border: 3px solid var(--red); color: var(--red); border-radius: 4px;
  padding: 0 10px; font: 500 1.5rem/1.35 var(--mono); letter-spacing: .08em;
  transform: rotate(-9deg); background: rgba(255, 253, 248, 0.6);
}
.n-foot { margin: 16px 0 0; text-align: right; color: var(--muted); }

/* ---------- fitur: daftar masalah, bukan card ---------- */
.fitur { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 64px; }
.fitur h2, .tampilan h2, .harga h2, .tanya h2, .penutup h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.2rem); margin-bottom: 12px; }
.fitur-head p { color: var(--muted); max-width: 26em; }
.row { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row h3 { font-size: 1.15rem; line-height: 1.35; }
.row p { margin: 0; max-width: 40em; }

/* ---------- contoh tampilan ---------- */
.tampilan { background: var(--paper-2); padding: 56px 0 64px; }
.tampilan-head { max-width: 46em; margin-bottom: 36px; }
.tampilan-head p { margin-bottom: .6em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 .8125rem/1.5 var(--mono); color: var(--muted); }
.shots { display: grid; gap: 44px; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.shot figcaption { margin-top: 12px; max-width: 34em; font-size: .98rem; }
.shot strong { font-weight: 600; }

/* ---------- harga ---------- */
.harga { display: grid; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.harga-head p { color: var(--muted); max-width: 24em; }
.ledger { list-style: none; margin: 0 0 16px; padding: 0; }
.ledger li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.what { font-size: 1.15rem; font-weight: 600; }
.dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 12px; }
.amt { text-align: right; }
.amt s { color: var(--muted); font: 500 .95rem var(--mono); margin-right: 6px; }
.amt strong { font: 500 1.6rem var(--mono); }
.amt small { font-size: .9rem; color: var(--muted); }
.saving { color: var(--muted); }
.plain { margin: 0 0 24px; padding-left: 1.2em; }
.plain li { margin-bottom: 4px; }

/* ---------- tanya jawab ---------- */
.tanya { padding-top: 8px; padding-bottom: 64px; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; position: relative; min-height: 44px; padding: 16px 40px 16px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 1.4rem var(--mono); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 0 18px; margin: 0; max-width: 40em; }

/* ---------- penutup & footer ---------- */
.penutup { background: var(--ink); color: var(--paper); padding: 60px 0; }
.penutup p { max-width: 36em; }
.penutup .contact { margin: 28px 0 0; color: rgba(246, 241, 231, 0.82); }
.penutup .contact a { color: var(--paper); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.penutup :focus-visible { outline-color: var(--paper); }
.foot { padding: 24px 0 32px; font-size: .95rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot strong { color: var(--ink); margin-right: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); }

/* ---------- 404 ---------- */
.nf { padding-top: 72px; padding-bottom: 96px; max-width: 640px; }
.nf h1 { font-size: 2rem; margin-bottom: 12px; }

/* ---------- layar lebar ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .row { grid-template-columns: 1fr 1.5fr; gap: 32px; }
  .shots { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; align-items: start; }
  .s1 { grid-column: 1 / span 7; }
  .s2 { grid-column: 8 / span 5; margin-top: 72px; }
  .s3 { grid-column: 1 / span 5; }
  .s4 { grid-column: 6 / span 7; margin-top: 56px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
  .nota-wrap { justify-self: end; }
  .nota { transform: rotate(-1.2deg); } /* nota tergeletak di meja kasir, bukan dekorasi gerak */
  .fitur { grid-template-columns: 4fr 8fr; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
  .fitur-head { position: sticky; top: 24px; align-self: start; }
  .tampilan { padding: 72px 0 88px; }
  .harga { grid-template-columns: 4fr 8fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
  .tanya { padding-bottom: 88px; }
  .penutup { padding: 80px 0; }
}

@media print {
  .top, .penutup, .skip { display: none; }
  body { background: #fff; }
}
