/* ==========================================================================
   ARTICLE TEMPLATE
   ========================================================================== */

.article-hero {
  position: relative;
  padding: clamp(30px, 4.4vw, 62px) 0 clamp(34px, 4.6vw, 66px);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(139,69,242,.22), transparent 62%),
    radial-gradient(760px 400px at 98% 0%, rgba(23,168,60,.12), transparent 62%),
    linear-gradient(180deg, var(--p-50), #fff 88%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.article-hero > .container { position: relative; z-index: 1; }
.article-hero-layout { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
.article-hero h1 { font-size: clamp(28px, 4.4vw, 47px); line-height: 1.1; letter-spacing: -.036em; margin: 16px 0 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb a { color: var(--primary-strong); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb > span:not(:last-child) { color: var(--muted-soft); }

.hero-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.68;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.quick-answer {
  position: relative;
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--p-200);
  background: var(--surface);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.quick-answer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand-soft);
}
.quick-answer > strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin: 4px 0 12px;
}
.quick-answer p { font-size: 15.5px; line-height: 1.66; color: var(--muted); }
.quick-answer .btn { margin-top: 18px; width: 100%; }

.article-shell { padding: clamp(34px, 4.6vw, 66px) 0 clamp(44px, 5.4vw, 84px); background: var(--bg-soft); }
.article-layout { display: grid; gap: clamp(20px, 2.6vw, 32px); align-items: start; }

.article-layout > .article-card {
  min-width: 0;
  padding: clamp(22px, 3.4vw, 52px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

/* --- prose --- */
.article-content { max-width: 74ch; font-size: 17px; line-height: 1.78; color: #2C2545; }
.article-content > p:first-child { font-size: 18.5px; line-height: 1.72; color: var(--text); }
.article-content p { margin: 0 0 1.15em; }
.article-content h2 {
  position: relative;
  margin: 2em 0 .7em;
  padding-left: 18px;
  font-size: clamp(22px, 2.6vw, 29px);
  letter-spacing: -.03em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  bottom: .16em;
  width: 5px;
  border-radius: 3px;
  background: var(--grad-brand-soft);
}
.article-content h3 {
  margin: 1.7em 0 .5em;
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -.024em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.article-content h4 { margin: 1.5em 0 .4em; font-size: 17px; }
.article-content ul, .article-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-content li { margin-bottom: .55em; }
.article-content li::marker { color: var(--p-400); font-weight: 700; }
.article-content a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--p-300);
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}
.article-content a:hover { text-decoration-color: var(--primary); color: var(--p-800); }
.article-content strong { color: var(--text); }

/* buttons inside prose keep their own colours */
.article-content a.btn,
.article-content a.store-btn,
.article-content a.btn:hover,
.article-content a.store-btn:hover { text-decoration: none; }
.article-content a.btn-primary,
.article-content a.btn-primary:hover { color: var(--on-primary); }
.article-content a.btn-secondary,
.article-content a.btn-secondary:hover,
.article-content a.btn-quiet,
.article-content a.btn-quiet:hover { color: var(--primary-strong); }
.article-content .inline-cta a.btn,
.article-content .inline-cta a.btn:hover { color: var(--primary-strong); }
.article-content a.store-btn,
.article-content a.store-btn:hover { color: #fff; }
.download-panel a.store-btn,
.download-panel a.store-btn:hover { color: var(--ink); }
/* prose <strong> colour must not leak into dark chrome components */
.article-content .store-btn strong,
.article-content .inline-cta-body strong,
.article-content .doc-block-head strong,
.article-content .app-bar strong { color: #fff; }
.article-content .download-card-body strong { color: var(--text); }
.article-content .kwitansi-head strong { color: var(--text); }

.article-figure { margin: 32px 0; }
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2);
}
.article-figure figcaption {
  margin: 12px 2px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- note box --- */
.note-box {
  position: relative;
  margin: 28px 0;
  padding: 20px 22px 20px 56px;
  border-radius: var(--r-lg);
  border: 1px solid var(--p-200);
  background: linear-gradient(160deg, var(--p-50), #fff 70%);
  font-size: 15.8px;
  line-height: 1.68;
  color: var(--muted);
}
.note-box::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16v-5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / 16px 16px no-repeat,
    var(--grad-brand-soft);
}
.note-box strong { color: var(--text); }

/* --- check grid --- */
.check-grid { display: grid; gap: 14px; margin: 28px 0; }
.check-item {
  position: relative;
  padding: 20px 20px 20px 54px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--n-25);
}
.check-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    var(--grad-check);
}
.check-item:nth-child(2n) { background: var(--warn-soft); border-color: #F5DFB2; }
.check-item:nth-child(2n)::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 16px 16px no-repeat,
    linear-gradient(140deg, #C98A11, #8A5A00);
}
.check-item strong { display: block; font-size: 16px; letter-spacing: -.018em; margin-bottom: 6px; }
.check-item span { display: block; font-size: 15px; line-height: 1.62; color: var(--muted); }

/* --- inline CTA --- */
.inline-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  margin: 32px 0;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.inline-cta-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  background: var(--p-800);
  box-shadow: 0 4px 12px rgba(23,7,53,.3);
}
.inline-cta-mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.inline-cta-body { display: block; min-width: 0; }
.inline-cta-body strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.024em; color: #fff; }
.inline-cta-body span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: #E9DDFF; }
.inline-cta .btn {
  grid-column: 1 / -1;
  width: 100%;
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 4px 14px rgba(23,7,53,.24);
}
.inline-cta .btn:hover { background: var(--p-50); }

/* --- article CTA --- */
.article-cta {
  margin: 40px 0 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--p-200);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(23,168,60,.10), transparent 60%),
    linear-gradient(160deg, var(--p-50), #fff 70%);
}
.article-cta h2 { margin: 0 0 12px; padding: 0; font-size: clamp(21px, 2.5vw, 28px); }
.article-cta h2::before { display: none; }
.article-cta p { margin: 0; font-size: 16px; line-height: 1.68; color: var(--muted); }
.article-cta .store-buttons { margin: 22px 0 0; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }

/* --- message box --- */
.message-box { display: grid; gap: 14px; margin: 28px 0; }
.message-box > div {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--n-25);
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--muted);
}
.message-box > div strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--text);
}

/* --- tables --- */
.table-scroll {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.table-scroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.table-scroll { scrollbar-width: thin; scrollbar-color: var(--p-300) transparent; }
.table-scroll::-webkit-scrollbar { height: 11px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--p-300);
  border-radius: 6px;
  border: 3px solid var(--surface);
}
.doc-sheet { scrollbar-width: thin; scrollbar-color: var(--p-300) transparent; }
.doc-sheet::-webkit-scrollbar { width: 11px; }
.doc-sheet::-webkit-scrollbar-thumb {
  background: var(--p-300);
  border-radius: 6px;
  border: 3px solid #fff;
}
.article-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}
.article-content th, .article-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-content thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0;
}
.article-content tbody tr:nth-child(2n) { background: var(--n-25); }
.article-content tbody tr:hover { background: var(--p-50); }
.article-content tbody tr:last-child td { border-bottom: 0; }

.article-content table.book { min-width: 780px; }
.article-content .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-content .pos { color: var(--accent-ink); font-weight: 700; }
.article-content .neg { color: var(--danger-ink); font-weight: 700; }
.article-content tr.row-open td { background: var(--n-50); color: var(--muted); font-style: italic; }
.article-content tr.row-total td {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-bottom: 0;
}
.article-content tr.row-total:hover td { background: var(--ink); }
.table-note {
  margin: -14px 0 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- template document blocks --- */
.doc-block {
  margin: 28px 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.doc-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}
.doc-block-head strong { font-size: 15px; font-weight: 700; letter-spacing: -.018em; }

.copy-btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.copy-btn:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.45); }

.doc-sheet {
  max-height: 460px;
  overflow-y: auto;
  padding: 28px clamp(18px, 3vw, 34px);
  background:
    linear-gradient(#fff 0 0) padding-box,
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(90,24,188,.05) 31px 32px);
  font-family: var(--font-doc);
  font-size: 15px;
  line-height: 2;
  color: #22203A;
  overscroll-behavior-y: contain;
}
.doc-sheet:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.doc-sheet p { margin: 0 0 .55em; }
.doc-title { text-align: center; font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.doc-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 1.6em !important; }
.doc-pasal { margin-top: 1.6em !important; font-weight: 700; text-align: center; letter-spacing: .03em; }
.doc-field { padding-left: 1.6em; }
.doc-indent { padding-left: 1.6em; text-align: justify; }
.doc-sign { display: grid; gap: 26px; margin-top: 2.4em; text-align: center; }
.doc-sign > div p { margin: 0 0 .2em; }
.doc-sign-slot { height: 62px; }
.doc-materai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 52px;
  margin: 6px 0;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  text-align: center;
}

/* --- kwitansi (receipt) --- */
.kwitansi {
  position: relative;
  margin: 28px 0;
  padding: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(28px, 3.6vw, 40px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: var(--surface);
  box-shadow: var(--sh-2);
  font-size: 15px;
  line-height: 1.6;
}
.kwitansi::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -11px;
  height: 12px;
  background:
    repeating-linear-gradient(-45deg, var(--surface) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(45deg, var(--surface) 0 8px, transparent 8px 16px);
  filter: drop-shadow(0 2px 3px rgba(27,11,59,.10));
}
.kwitansi-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.kwitansi-head p { margin: 0; font-size: 14px; color: var(--muted); }
.kwitansi-head strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}
.kwitansi-no {
  font-family: var(--font-mono);
  font-size: 13px !important;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: var(--p-50);
  color: var(--primary-strong) !important;
  white-space: nowrap;
}
.kwitansi-rows { display: grid; gap: 0; margin: 18px 0 0; }
.kwitansi-row {
  display: grid;
  gap: 2px 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border-strong);
}
.kwitansi-label {
  margin: 0 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.kwitansi-value { margin: 0 !important; font-size: 15.5px; line-height: 1.55; color: var(--text); font-weight: 600; }
.kwitansi-amount {
  display: block;
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--g-200);
  color: var(--accent-ink);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.kwitansi-foot {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--muted);
}
.kwitansi-foot p { margin: 0; }
.kwitansi-sign { text-align: center; }
.kwitansi-sign p { margin: 0 0 2px; font-size: 14px; }
.kwitansi-sign .doc-sign-slot { height: 54px; }

/* --- template download card --- */
.download-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--p-200);
  background: linear-gradient(160deg, var(--p-50), #fff 65%);
  box-shadow: var(--sh-1);
}
.download-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(90,24,188,.28);
}
.download-card-icon svg { width: 22px; height: 22px; }
.download-card-body { display: block; min-width: 0; }
.download-card-body strong { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.022em; color: var(--text); }
.download-card-body span { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.download-card .btn { grid-column: 1 / -1; width: 100%; }

/* --- sidebar --- */
.sidebar { display: grid; gap: 14px; align-content: start; min-width: 0; }

.side-card {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.side-card > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.side-card p { font-size: 15px; line-height: 1.62; color: var(--muted); }

.toc { display: flex; flex-direction: column; gap: 1px; }
.toc a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px 9px 16px;
  border-radius: var(--r-xs);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.toc a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 0;
  margin-top: 0;
  border-radius: 2px;
  background: var(--grad-brand-soft);
  transition: height var(--t), margin-top var(--t);
}
.toc a:hover { color: var(--primary-strong); background: var(--p-50); }
.toc a.is-current { color: var(--primary-strong); background: var(--p-50); }
.toc a.is-current::before { height: 18px; margin-top: -9px; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list li:first-child { padding-top: 0; }
.side-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.side-list a:hover { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }

.faq-section { margin: 40px 0 0; }
.faq-section > h2 { margin-bottom: .8em; }

/* ==========================================================================
   LEGAL / UTILITY TEMPLATE
   ========================================================================== */

.legal-hero {
  position: relative;
  padding: clamp(44px, 6vw, 88px) 0 clamp(44px, 6vw, 84px);
  background: var(--grad-band);
  color: var(--on-dark);
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -12%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(139,69,242,.42), transparent 70%);
  pointer-events: none;
}
.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(23,168,60,.20), transparent 70%);
  pointer-events: none;
}
.legal-hero > .container { position: relative; z-index: 1; max-width: 900px; }
.legal-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.036em; margin: 16px 0 0; }
.legal-hero p { margin: 18px 0 0; max-width: 62ch; font-size: 17.5px; line-height: 1.66; color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  border: 1px solid var(--glass-line);
  color: var(--on-dark-label);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-check);
}

main.main { padding: clamp(34px, 4.6vw, 64px) 0 clamp(48px, 6vw, 88px); background: var(--bg-soft); }
main.main > .container { max-width: 900px; }

main.main .card {
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-2);
  font-size: 16.5px;
  line-height: 1.75;
  color: #2C2545;
}
main.main .card h2 {
  position: relative;
  margin: 1.9em 0 .6em;
  padding-left: 18px;
  font-size: clamp(20px, 2.3vw, 25px);
  letter-spacing: -.028em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
main.main .card h2:first-of-type { margin-top: 1.2em; }
main.main .card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  border-radius: 3px;
  background: var(--grad-brand-soft);
}
main.main .card h3 { margin: 1.5em 0 .45em; font-size: 18px; }
main.main .card a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--p-300); }
main.main .card a:hover { text-decoration-color: var(--primary); }
main.main .card a.btn,
main.main .card a.btn:hover { text-decoration: none; }
main.main .card a.btn-primary,
main.main .card a.btn-primary:hover { color: var(--on-primary); }
main.main .card a.btn-secondary,
main.main .card a.btn-secondary:hover { color: var(--primary-strong); }

.meta {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--p-100);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}

.section-box {
  position: relative;
  margin: 0 0 8px;
  padding: 20px 22px 20px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--n-25);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.section-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-brand-soft);
}
.section-box strong { color: var(--text); }
.section-box ul, .section-box ol { margin: 0; padding-left: 1.3em; }
.section-box li::marker { color: var(--p-400); }

.info-box {
  margin: 20px 0;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--g-200);
  background: var(--accent-soft);
  font-size: 16px;
  line-height: 1.68;
}
.info-box ul { margin: 0; padding-left: 1.3em; }
.info-box li::marker { color: var(--accent-icon); }

.highlight {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  background: var(--n-50);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}

.note, .small-note {
  margin: 22px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--n-50);
  border: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (min-width: 480px) {
  :root { --gutter: 24px; }
  .trust-strip { gap: 12px; }
  .doc-sign { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kwitansi-row { grid-template-columns: 190px 1fr; align-items: baseline; }
  .inline-cta .btn, .download-card .btn { grid-column: auto; width: auto; }
  .inline-cta, .download-card { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 700px) {
  .split, .why-grid, .feature-grid, .audience-grid, .proof-grid,
  .article-grid, .check-grid, .message-box, .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-store-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-proof-tile { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kwitansi-foot { grid-template-columns: 1fr auto; align-items: end; }
  .kwitansi-sign { text-align: right; min-width: 220px; }
  .doc-sign { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-panel { grid-template-columns: 1.35fr auto; align-items: center; gap: 40px; }
  .article-hero-layout { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
  .quick-answer { position: sticky; top: calc(var(--nav-h) + 20px); }
}

@media (min-width: 900px) {
  .feature-grid, .audience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-card.is-featured { transform: scale(1.035); z-index: 1; }
  .fact-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workflow::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 37px;
    height: 2px;
    background: linear-gradient(90deg, var(--p-200), var(--p-300), var(--p-200));
    z-index: 0;
  }
  .workflow-step { padding: 66px 22px 24px; z-index: 1; }
  .workflow-step::before { top: 22px; left: 22px; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid { grid-auto-columns: minmax(230px, 1fr); }
  .doc-sheet { max-height: 560px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }

  .nav-links { display: flex; }
  .mobile-menu { display: none; }

  .hero { padding-top: clamp(48px, 5vw, 84px); }
  .hero-layout { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: 56px; }
  .mobile-title-video { display: none; }
  .desktop-hero-video { display: block; max-width: 312px; margin-left: auto; }
  .mobile-store-proof { display: none; }
.why-grid, .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

  .shot-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .article-layout { grid-template-columns: minmax(0, 1fr) 306px; }
  .sidebar { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding-right: 4px; }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
}

@media (max-width: 1023px) {
  .mobile-title-row { display: flex; gap: 16px; align-items: flex-start; }
  .mobile-title-row h1 { flex: 1; min-width: 0; }
  .store-buttons { display: none; }
  .hero .store-buttons { display: none; }
  .download-panel .store-buttons,
  .article-cta .store-buttons { display: flex; }
  .trust-strip { display: none; }
}

@media (min-width: 560px) and (max-width: 1023px) {
  .mobile-title-row { align-items: center; }
  .mobile-title-video { width: 138px; flex-basis: 138px; }
}

@media (max-width: 699px) {
  body { font-size: 16.5px; }
  .article-content { font-size: 16.5px; }
  .store-btn { flex: 1 1 100%; }
  .article-cta-actions .btn, .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .mobile-title-video { width: 98px; flex-basis: 98px; }
}

/* ==========================================================================
   motion & reveal (JS-enhanced; everything fully visible without JS)
   ========================================================================== */

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(130% 90% at 50% 115%, rgba(27, 11, 59, .34), transparent 56%),
    linear-gradient(180deg, rgba(46, 21, 96, .2), rgba(46, 21, 96, 0) 32%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .rv:not(.in) { opacity: 0; }
  html.js .rv.in { animation: rv-rise .6s var(--ease) backwards; }
  @keyframes rv-rise {
    from { opacity: 0; transform: translateY(18px); }
  }
}

/* ==========================================================================
   preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .why-card:hover, .proof-card:hover, .feature-card:hover,
  .audience-card:hover, .store-btn:hover, .brand-mark:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #3D3757;
    --muted-soft: #3D3757;
    --border: #8C85A8;
    --border-strong: #6E6789;
    --on-dark-muted: #EDE7FA;
    --on-dark-label: #F2ECFF;
  }
  .panel, .feature-card, .audience-card, .price-card, .faq-card,
  .side-card, .article-layout > .article-card, main.main .card,
  .section-box, .note-box, .check-item, .table-scroll,
  .doc-block, .kwitansi, .download-card, .trust-pill,
  .mobile-store-tile, .mobile-proof-tile, .article-meta span { border-width: 2px; }
  .why-card, .proof-card, .fact-tile,
  .footer-links > a, .social-links > a,
  .footer-article-menu > summary { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.14); }
  .hero::after { display: none; }
  a { text-decoration-thickness: 2px; }
}

@media print {
  .site-nav, .app-bar, .floating-download, .footer, .skip-link,
  .read-progress, .sidebar, .article-cta, .inline-cta, .download-card { display: none !important; }
  body { padding: 0; font-size: 12pt; }
  .article-layout { display: block; }
  .article-layout > .article-card { border: 0; box-shadow: none; padding: 0; }
  .doc-sheet { max-height: none; overflow: visible; }
  .article-hero { background: none; }
}

  
/* ==========================================================================
   language switcher
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--n-50);
}
.lang-switch .lang-current,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch .lang-current { background: var(--surface); color: var(--primary-strong); box-shadow: var(--sh-1); }
.lang-switch a:hover { color: var(--primary-strong); background: var(--p-50); }
.mobile-menu-panel .lang-switch { margin: 10px 12px 6px; align-self: flex-start; }
