/* ==========================================================================
   ARTICLE TEMPLATE — editorial reading layout
   ========================================================================== */

/* --- hero --- */

.article-hero {
  position: relative;
  padding: clamp(30px, 4.4vw, 62px) 0 clamp(34px, 4.6vw, 66px);
  background:
    radial-gradient(920px 460px at 4% -20%, rgba(139,69,242,.20), transparent 64%),
    radial-gradient(760px 400px at 100% -8%, rgba(23,168,60,.11), 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; max-width: 1044px; }
.article-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3vw, 38px); align-items: start; }
.article-hero h1 {
  font-size: clamp(29px, 4.5vw, 49px);
  line-height: 1.06;
  letter-spacing: -.038em;
  margin: 14px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  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: 22px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--p-300);
  max-width: 56ch;
  font-size: clamp(16.5px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.64;
  color: #423B5E;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.article-meta span::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: center / 17px 17px no-repeat;
}
.article-meta .meta-date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5473' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M8 2.5v4M16 2.5v4M3 10h18'/%3E%3C/svg%3E");
}
.article-meta .meta-time::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5473' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6.8V12l3.4 2'/%3E%3C/svg%3E");
}
.article-meta .meta-lang::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5473' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c2.4 2.6 3.6 5.6 3.6 9s-1.2 6.4-3.6 9c-2.4-2.6-3.6-5.6-3.6-9s1.2-6.4 3.6-9Z'/%3E%3C/svg%3E");
}
.article-meta .meta-file::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5473' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2.8H7.4A1.9 1.9 0 0 0 5.5 4.7v14.6a1.9 1.9 0 0 0 1.9 1.9h9.2a1.9 1.9 0 0 0 1.9-1.9V7.2Z'/%3E%3Cpath d='M13.8 2.8v4.6h4.7'/%3E%3Cpath d='M12 11.4v5M9.7 14.2 12 16.5l2.3-2.3'/%3E%3C/svg%3E");
}
.article-meta .meta-note::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5473' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.2 12.3 2.6 2.6 5-5'/%3E%3C/svg%3E");
}

.quick-answer {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--p-200);
  background: linear-gradient(168deg, #fff 42%, var(--p-50));
  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: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin: 2px 0 12px;
}
.quick-answer > strong::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    var(--grad-check);
}
.quick-answer p { font-size: 16px; line-height: 1.68; color: #423B5E; }
.quick-answer .btn { margin-top: 20px; width: 100%; }

/* --- reading shell --- */

.article-shell {
  padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 5.4vw, 84px);
  background: var(--bg-soft);
}
.article-shell > .container { max-width: 1044px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: clamp(22px, 2.6vw, 40px);
  align-items: start;
}

.article-layout > .article-card {
  min-width: 0;
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.2vw, 42px) clamp(28px, 3.6vw, 46px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

/* --- prose --- */

.article-content {
  font-size: 17.5px;
  line-height: 1.78;
  color: #2E2748;
  overflow-wrap: break-word;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > p:first-child {
  font-size: 19.5px;
  line-height: 1.66;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
}
.article-content p { margin: 0 0 1.15em; text-wrap: pretty; }

.article-content h2 {
  position: relative;
  margin: 2.85em 0 .6em;
  padding: 1.5em 0 0;
  border-top: 1px solid var(--border);
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.14;
  letter-spacing: -.034em;
  scroll-margin-top: calc(var(--nav-h) + 26px);
}
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 54px;
  height: 4px;
  border-radius: 3px;
  background: var(--grad-brand-soft);
}
.article-content > h2:first-child { margin-top: .2em; }
.article-content > .toc-mobile + h2 { margin-top: 1.7em; }

.article-content h3 {
  position: relative;
  margin: 2.15em 0 .4em;
  font-size: clamp(18px, 1.85vw, 20.5px);
  line-height: 1.3;
  letter-spacing: -.024em;
  color: var(--p-800);
  scroll-margin-top: calc(var(--nav-h) + 26px);
}
.article-content h3::before {
  content: "";
  position: absolute;
  left: -14px;
  top: .3em;
  bottom: .3em;
  width: 3px;
  border-radius: 2px;
  background: var(--p-300);
}
.article-content h4 { margin: 1.7em 0 .35em; font-size: 17px; letter-spacing: -.018em; }

.article-content ul, .article-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.article-content li { margin-bottom: .58em; }
.article-content li::marker { color: var(--p-400); font-weight: 700; }
.article-content > ul { list-style: none; padding-left: 1.55em; }
.article-content > ul > li { position: relative; }
.article-content > ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-400);
}
.article-content > ol > li::marker { color: var(--p-600); font-weight: 800; }

.article-content blockquote {
  margin: 34px 0;
  padding: 2px 0 2px 24px;
  border-left: 4px solid var(--p-300);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.56;
  letter-spacing: -.018em;
  color: var(--p-900);
}
.article-content blockquote p { margin: 0 0 .5em; }

.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); }

/* anchor affordance on section headings (pointer devices only, aria-hidden) */
.h-link { display: none; }
.article-content h2 > .h-link {
  margin-left: .32em;
  font-size: .58em;
  font-weight: 700;
  line-height: 1;
  color: var(--p-500);
  text-decoration: none;
  vertical-align: .12em;
}
.article-content h2 > .h-link::before { content: "#"; }
.article-content h2 > .h-link:hover { color: var(--primary); }
@media (hover: hover) and (pointer: fine) {
  .article-content h2 > .h-link { display: inline-block; opacity: 0; transition: opacity var(--t-fast); }
  .article-content h2:hover > .h-link { opacity: 1; }
}

/* buttons inside prose keep their own colours */
.article-content a.btn,
.article-content a.store-btn,
.article-content a.related-card,
.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: 34px 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: 13px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--p-200);
  font-size: 14px;
  line-height: 1.58;
  color: var(--muted);
}

/* --- collapsible table of contents (mobile / tablet) --- */

.toc-mobile {
  margin: 28px 0 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--p-200);
  background: linear-gradient(165deg, var(--p-50), #fff 72%);
  overflow: hidden;
}
.toc-mobile > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-strong);
  cursor: pointer;
  list-style: none;
}
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary::marker { content: ""; }
.toc-mobile > summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A18BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    var(--p-100);
  transition: transform var(--t);
}
.toc-mobile[open] > summary::after { transform: rotate(180deg); }
.toc-mobile[open] > summary { border-bottom: 1px solid var(--p-200); }
.toc-mobile .toc { padding: 10px 10px 12px; max-height: none; overflow: visible; }

/* --- callout --- */

.note-box {
  position: relative;
  margin: 32px 0;
  padding: 20px 22px 20px 58px;
  border-radius: var(--r-lg);
  border: 1px solid var(--p-200);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(27,11,59,.05), 0 10px 26px rgba(27,11,59,.05);
  font-size: 16px;
  line-height: 1.7;
  color: #46405F;
  overflow: hidden;
}
.note-box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand-soft);
}
.note-box::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  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 16.5v-5.5'/%3E%3Cpath d='M12 7.6h.01'/%3E%3C/svg%3E") center / 19px 19px no-repeat,
    var(--grad-brand-soft);
  box-shadow: 0 3px 9px rgba(90,24,188,.26);
}
.note-box strong { color: var(--text); }
.note-box p:last-child { margin-bottom: 0; }

/* --- check grid --- */

.check-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0; }
.check-item {
  position: relative;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.check-item::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 0 14px;
  border-radius: 10px;
  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 / 18px 18px no-repeat,
    var(--grad-check);
  box-shadow: 0 4px 11px rgba(10,107,38,.24);
}
.check-item:nth-child(2n) { background: var(--surface); border-color: #F0DCB0; }
.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 7.5v5.5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 19px 19px no-repeat,
    linear-gradient(140deg, #C98A11, #8A5A00);
  box-shadow: 0 4px 11px rgba(138,90,0,.22);
}
.check-item strong { display: block; font-size: 16.5px; letter-spacing: -.02em; margin-bottom: 7px; }
.check-item span { display: block; font-size: 15.5px; line-height: 1.62; color: var(--muted); }

/* --- in-content app CTA --- */

.inline-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 18px;
  margin: 42px 0;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
  overflow: hidden;
}
.inline-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(540px 240px at 86% -40%, rgba(255,255,255,.22), transparent 62%);
  pointer-events: none;
}
.inline-cta > * { position: relative; z-index: 1; }
.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: 17.5px; font-weight: 800; letter-spacing: -.026em; color: #fff; }
.inline-cta-body span { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: #EADFFF; }
.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); }

/* --- end-of-article CTA --- */

.article-cta {
  position: relative;
  margin: 46px 0 0;
  padding: clamp(26px, 3.2vw, 40px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--p-200);
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(23,168,60,.10), transparent 60%),
    linear-gradient(160deg, var(--p-50), #fff 72%);
  overflow: hidden;
}
.article-cta::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand-soft);
}
.article-cta h2 {
  margin: 0 0 12px;
  padding: 0;
  border-top: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -.03em;
}
.article-cta h2::before { display: none; }
.article-cta p { margin: 0; font-size: 16.5px; line-height: 1.66; color: #46405F; }
.article-cta .store-buttons { margin: 24px 0 0; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }

/* --- related articles --- */

.related { margin: 40px 0 0; }
.related-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.article-content .related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 15px 16px 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.018em;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t), border-color var(--t), color var(--t-fast);
}
.article-content .related-card:hover {
  transform: translateY(-2px);
  border-color: var(--p-300);
  box-shadow: var(--sh-2);
  color: var(--primary-strong);
}
.related-card svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--p-500); }
.related-card:hover svg { color: var(--primary); }

.article-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.back-to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-strong);
  text-decoration: none;
}
.article-content a.back-to-top-link { text-decoration: none; }
.back-to-top-link:hover { background: var(--p-50); border-color: var(--p-300); }
.back-to-top-link svg { width: 17px; height: 17px; flex: 0 0 17px; }

/* --- floating back to top --- */

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--sh-2);
  color: var(--primary-strong);
  text-decoration: none;
  transition: opacity var(--t), transform var(--t), background-color var(--t);
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: #fff; transform: translateY(-2px); }
html.js .to-top { opacity: 0; transform: translateY(12px); pointer-events: none; }
html.js .to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* --- message / script templates --- */

.message-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0; }
.message-box > div {
  position: relative;
  padding: 20px 22px 22px;
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px;
  border: 1px solid var(--border);
  background: linear-gradient(172deg, var(--n-25), #fff 68%);
  box-shadow: var(--sh-1);
  font-size: 15.8px;
  line-height: 1.7;
  color: #46405F;
}
.message-box > div strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 15.5px;
  letter-spacing: -.02em;
  color: var(--text);
}
.message-box > div strong::before {
  content: "";
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 9px;
  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.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 12a8.5 8.5 0 0 1-12.3 7.6L3.5 20.5l.9-4.7A8.5 8.5 0 1 1 20.5 12Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat,
    var(--grad-brand-soft);
  box-shadow: 0 3px 9px rgba(90,24,188,.24);
}

/* --- tables --- */

.table-scroll {
  position: relative;
  margin: 32px calc(-1 * clamp(20px, 3.2vw, 42px));
  width: auto;
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid var(--border);
  border-inline: 0;
  background:
    linear-gradient(90deg, var(--surface) 34%, rgba(255,255,255,0)) left center / 44px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 34%, rgba(255,255,255,0)) right center / 44px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(27,11,59,.15), rgba(27,11,59,0)) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(27,11,59,.15), rgba(27,11,59,0)) right center / 16px 100% no-repeat scroll,
    var(--surface);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--p-300) transparent;
}
.table-scroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.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: 13px 15px;
  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: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  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: -18px 0 32px;
  padding-left: 14px;
  border-left: 2px solid var(--p-200);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- template document blocks --- */

.doc-block {
  position: relative;
  margin: 32px 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.doc-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: var(--ink);
  color: #fff;
}
.doc-block-head strong { font-size: 15px; font-weight: 700; letter-spacing: -.018em; }
.doc-block::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 78%);
  pointer-events: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.13);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.copy-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11.5' height='11.5' rx='2.4'/%3E%3Cpath d='M5.5 15H4.6A1.6 1.6 0 0 1 3 13.4V4.6A1.6 1.6 0 0 1 4.6 3h8.8A1.6 1.6 0 0 1 15 4.6v.9'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.copy-btn:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.5); }

.doc-sheet {
  max-height: 470px;
  overflow-y: auto;
  padding: 30px clamp(18px, 3.2vw, 36px) 46px;
  background:
    linear-gradient(#fff 0 0) padding-box,
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(90,24,188,.055) 31px 32px);
  font-family: var(--font-doc);
  font-size: 15.5px;
  line-height: 2;
  color: #221F38;
  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: 18.5px; 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: 32px 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: 12px 0;
  border-bottom: 1px dashed var(--border-strong);
}
.kwitansi-label {
  margin: 0 !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  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: 18px 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: 32px 0;
  padding: 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--p-200);
  background: linear-gradient(160deg, var(--p-50), #fff 68%);
  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: 16px; 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: 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.side-card p { font-size: 15px; line-height: 1.62; color: var(--muted); }
.side-card.is-toc { padding: 18px 14px 14px; }
.side-card.is-toc > strong { padding-left: 6px; }

.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
  max-height: min(54vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.toc a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 12px 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-soft);
}
.toc a::after {
  content: "";
  position: absolute;
  left: 0;
  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:hover::before { color: var(--primary-strong); }
.toc a.is-current { color: var(--p-800); background: var(--p-100); font-weight: 700; }
.toc a.is-current::before { color: var(--p-600); }
.toc a.is-current::after { height: 20px; margin-top: -10px; }

.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 inside articles --- */

.faq-section { margin: 0; }
.faq-section > h2 { margin-bottom: .75em; }
.faq-section .faq-card { position: relative; }
.faq-section .faq-card > summary { padding: 17px 60px 17px 22px; }
.faq-section .faq-card[open] > summary { color: var(--primary-strong); }
.faq-section .faq-card[open]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--grad-brand-soft);
}
.faq-section .faq-card > p,
.faq-section .faq-card > div {
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 1.72;
  color: #46405F;
}

@media (min-width: 560px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .toc-mobile { display: none; }
}

@media (max-width: 380px) {
  .article-cta-actions .btn { white-space: normal; padding-inline: 18px; }
}

/* ==========================================================================
   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, 1fr) minmax(272px, 330px); }
  .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) 296px; justify-content: normal; }
  .to-top { right: 26px; bottom: 26px; width: 48px; height: 48px; }
  .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; }

  .app-bar { display: none; }
.floating-download { bottom: 24px; right: 24px; }
}

@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: 17px; }
  .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,
  .related-card:hover, .to-top: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, .related-card, .toc-mobile { 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,
  .toc-mobile, .to-top, .article-end, .h-link { 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; }

/* ===== Tombol suka artikel ===== */
.like-box {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin: 36px 0 8px; padding: 18px 20px;
  border: 1px solid var(--line, rgba(27,11,59,.12));
  border-radius: var(--r-md, 16px);
  background: var(--bg-soft, #f6f3fd);
}
.like-box[hidden] { display: none; }
.like-copy { margin: 0; font-weight: 650; letter-spacing: -.015em; }
.like-copy small { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink-soft, #5b6b7c); margin-top: 2px; letter-spacing: 0; }
.like-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 650; font-size: 15px;
  color: var(--primary, #7226E0); background: #fff;
  border: 1.5px solid var(--primary, #7226E0); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.like-btn:hover { background: var(--primary, #7226E0); color: #fff; }
.like-btn:focus-visible { outline: 3px solid var(--primary, #7226E0); outline-offset: 3px; }
.like-btn svg { width: 19px; height: 19px; flex: none; }
.like-btn .like-count { font-variant-numeric: tabular-nums; }
.like-btn.is-liked {
  background: var(--primary, #7226E0); color: #fff; cursor: default;
}
.like-btn.is-liked svg { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .like-btn.just-liked { animation: likePop .3s ease; }
  @keyframes likePop { 50% { transform: scale(1.06); } }
}
