/* Klikweb Core — CSS pendamping untuk tema selain Klikweb (mis. Divi di klikweb.co.id).
   Palet mengikuti brand situs Divi (ungu); font mengikuti tema. */
:root {
	--kw-navy: #3607A6;
	--kw-text: #2B2F3A;
	--kw-muted: #555B6E;
	--kw-blue: #7322D6;
	--kw-blue-dark: #5A13B8;
	--kw-soft: #F6F2FE;
	--kw-line: #E3DAF8;
	--kw-shadow: 0 1px 2px rgba(54, 7, 166, .06), 0 8px 24px rgba(54, 7, 166, .07);
}

/* Konten dalam modul Teks Divi */
.kw-content { color: var(--kw-text); font-size: 17px; line-height: 1.7; }
.kw-content > :first-child { margin-top: 0; }
.kw-content h1, .kw-content h2, .kw-content h3 { color: var(--kw-navy); font-weight: 700; line-height: 1.2; padding-bottom: 0; }
.kw-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .5rem 0 1rem; }
.kw-content h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 1rem; }
.kw-content h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.kw-content p, .kw-content ul, .kw-content ol { margin: 0 0 1rem; padding-bottom: 0; }
.kw-content ul, .kw-content ol { padding-left: 1.4rem; }
.kw-content ul li, .kw-content ol li { margin: .3rem 0; }
.kw-content a { color: var(--kw-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.kw-content .has-text-align-center { text-align: center; }
.kw-content .kw-lead { font-size: 1.15rem; color: var(--kw-muted); }
.kw-content :where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--kw-navy); outline-offset: 3px; border-radius: 4px; }

/* Tata letak */
.kw-cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin: 1.5rem 0; }
@media (min-width: 900px) {
	.kw-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kw-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kw-valign-center { align-items: center; }
.kw-grid { display: grid; gap: 1.25rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--kw-min, 16rem)), 1fr)); }
.kw-card { background: #fff; border: 1px solid var(--kw-line); border-radius: 12px; padding: 1.5rem; box-shadow: var(--kw-shadow); }
.kw-card > :first-child { margin-top: 0; }
.kw-card > :last-child { margin-bottom: 0; }
.kw-group.kw-flex { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.kw-justify-center { justify-content: center; }
.kw-sep { border: 0; border-top: 1px solid var(--kw-line); margin: 2rem 0; }

/* Tombol */
.kw-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.kw-content a.kw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; background: var(--kw-blue); color: #fff; border: 2px solid var(--kw-blue); }
.kw-content a.kw-btn:hover { background: var(--kw-blue-dark); border-color: var(--kw-blue-dark); color: #fff; }
.kw-content a.kw-btn--outline { background: #fff; color: var(--kw-blue-dark); }
.kw-content a.kw-btn--outline:hover { background: var(--kw-soft); color: var(--kw-navy); }
.kw-content .kw-wa { text-decoration: none; }

/* Komponen (setara tema Klikweb) */
.kw-eyebrow { display: inline-block; font-size: 1rem; font-weight: 600; color: var(--kw-blue-dark); background: var(--kw-soft); border-radius: 999px; padding: .25rem .875rem; margin-bottom: .5rem !important; }
.kw-hero-price { font-size: 1rem; }
.kw-badge-demo { display: inline-block; font-size: 1rem; font-weight: 600; color: var(--kw-navy); background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 6px; padding: .125rem .5rem; }
.kw-content ul.kw-checklist, .kw-content ul.kw-crosslist { list-style: none; padding-left: 0; }
.kw-checklist li, .kw-crosslist li { position: relative; padding-left: 1.75rem; }
.kw-checklist li::before { content: ""; position: absolute; left: .125rem; top: .45em; width: .9rem; height: .5rem; border-left: 3px solid var(--kw-blue); border-bottom: 3px solid var(--kw-blue); transform: rotate(-45deg); }
.kw-crosslist li::before { content: "–"; position: absolute; left: .25rem; font-weight: 700; color: var(--kw-muted); }
.kw-content ol.kw-steps { counter-reset: kwstep; list-style: none; padding-left: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.kw-steps li { counter-increment: kwstep; background: #fff; border: 1px solid var(--kw-line); border-radius: 12px; padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; margin: 0; }
.kw-steps li::before { content: counter(kwstep); position: absolute; left: 1.125rem; top: 1.125rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--kw-navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.kw-steps li strong { display: block; color: var(--kw-navy); }
.kw-content ol.kw-flow { padding-left: 0; }
.kw-preview { margin: 0; }
.kw-preview svg { display: block; width: 100%; height: auto; }

/* FAQ */
.kw-faq { background: #fff; border: 1px solid var(--kw-line); border-radius: 10px; }
.kw-faq + .kw-faq { margin-top: .75rem; }
.kw-faq summary { cursor: pointer; font-weight: 600; color: var(--kw-navy); padding: .875rem 3rem .875rem 1.125rem; min-height: 44px; position: relative; list-style: none; }
.kw-faq summary::-webkit-details-marker { display: none; }
.kw-faq summary::after { content: "+"; position: absolute; right: 1.125rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--kw-blue-dark); }
.kw-faq[open] summary::after { content: "−"; }
.kw-faq > p { padding: 0 1.125rem; }
.kw-faq > p:last-child { padding-bottom: 1rem; margin-bottom: 0; }

/* Formulir & tabel di modul Divi */
.kw-content .kw-form input, .kw-content .kw-form select, .kw-content .kw-form textarea { width: 100%; box-sizing: border-box; }
.kw-content .kw-compare table { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
