/* trybloomlab x Opsi E: core design system (tokens, type, buttons, tags, sections, FAQ, utilities).
   Ported from bloomlab.id opsi-e/assets/css/e.css (same token values, class names and rules), minus the
   Indonesia-only parts (cart, prices, WhatsApp, promo bar, garansi). Load order (functions.php):
   fonts.css (async) > design-tokens.css (legacy aliases) > e/base.css > e/sections.css > navigation.css,
   footer.css > the page's own CSS. Class kit and markup: scratch F/COMPONENTS.md. */

:root {
	--paper: #FCFBF7;
	--cream: #F4EFE4;
	--cream-2: #E9E1CF;
	--white: #FFFFFF;
	--ink: #123F43;
	--ink-2: #2E5458;
	--muted: #56696B;
	--teal: #14767A;
	--aqua: #3FBCBC;
	--line: #DDD7CA;
	--line-2: #C8C0AE;
	--coral: #F57251;
	--coral-2: #EE5E3A;
	--on-coral: #0B2A2D;
	/* product tints (bloomlab.id catalogue colours) */
	--gr: #56BDE3;
	--tz: #E3A52B;
	--uz: #3F6269;
	--sg: #6DA544;
	--hc: #8E604B;
	--lb: #F0B089;
	--mb: #57C49B;
	--rl: #C6A064;
	--p: var(--teal);
	--p-ink: #FFFFFF;
	/* Thai has no webfont: platform Thai faces follow the Latin webfont in every stack. */
	--f-thai-sans: "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Sukhumvit Set", "Tahoma";
	--f-thai-serif: "Noto Serif Thai", "Noto Sans Thai Looped", "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma";
	--f-display: "Fraunces", var(--f-thai-serif), Georgia, "Times New Roman", serif;
	--f-body: "Manrope", var(--f-thai-sans), system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", var(--f-thai-sans), ui-monospace, "SFMono-Regular", Menlo, monospace;
	--r-s: 10px;
	--r-m: 18px;
	--r-l: 28px;
	--r-xl: 36px;
	--sh-1: 0 1px 0 rgba(18, 63, 67, .04), 0 10px 30px -18px rgba(18, 63, 67, .28);
	--sh-2: 0 40px 80px -40px rgba(18, 63, 67, .45);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--wrap: 1200px;
	--gut: clamp(20px, 4.2vw, 44px);
	--head-h: 68px;
}

[data-tint=gr] { --p: var(--gr); --p-ink: #0B3A4A; }
[data-tint=tz] { --p: var(--tz); --p-ink: #3D2A00; }
[data-tint=uz] { --p: var(--uz); --p-ink: #FFFFFF; }
[data-tint=sg] { --p: var(--sg); --p-ink: #173A0B; }
[data-tint=hc] { --p: var(--hc); --p-ink: #FFFFFF; }
[data-tint=lb] { --p: var(--lb); --p-ink: #4A2410; }
[data-tint=mb] { --p: var(--mb); --p-ink: #0B3A2A; }
[data-tint=rl] { --p: var(--rl); --p-ink: #3A2A0A; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.6 var(--f-body);
	font-feature-settings: "ss01", "cv05";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
/* Opsi E resets inside <main> only, at zero specificity (:where) so every component rule wins. */
:where(.e-main) :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
:where(.e-main) :where(h1, h2, h3, h4, h5, h6) { font-weight: 400; }
:where(.e-main) :where(ul, ol) { padding: 0; list-style: none; }
:where(.e-main) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, .h-card, .rl > span, summary { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
/* Brand rule: every image has rounded corners. Cutouts/illustrations can opt out with .e-flat. */
:where(.e-main) img:not(.e-flat) { border-radius: var(--r-s); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- type ---------- */
.mono { font: 500 11.5px/1.45 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.eyebrow b { font-weight: 500; color: var(--ink); }
.c-kicker { font: 500 11.5px/1.45 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--p, var(--teal)) 60%, var(--ink)); }
.c-num-eb + .c-kicker { margin-top: -12px; }
/* Keep case in mono/eyebrow labels (units: "700g", "6-9 g"). On the label (.mono.nocase) or on a span inside it. */
.nocase, .mono.nocase, .mono .nocase, .eyebrow .nocase, .c-kicker .nocase { text-transform: none; }
.h-display { font: 380 clamp(44px, 5.5vw, 80px)/.98 var(--f-display); letter-spacing: -.028em; font-variation-settings: "SOFT" 30, "WONK" 0; color: var(--ink); }
.h-section { font: 380 clamp(36px, 4.6vw, 62px)/1.02 var(--f-display); letter-spacing: -.025em; }
.h-card { font: 420 clamp(23px, 2.2vw, 28px)/1.12 var(--f-display); letter-spacing: -.015em; }
.h-display em, .h-section em, .h-card em { font-style: italic; font-weight: 360; }
.lead { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.55; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 700; }
.fine { font: 400 12.5px/1.5 var(--f-mono); color: var(--muted); letter-spacing: .02em; }
.rl { display: block; overflow: hidden; padding: .2em 0; margin: -.2em 0; }
.rl > span { display: block; }
.uline { position: relative; display: inline-block; }
.uline svg { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .32em; overflow: visible; }
.uline svg path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; }
.e-rich { display: grid; gap: 12px; }
.e-rich ul, .e-rich ol { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.e-rich ol { list-style: decimal; }
.e-rich li::marker { color: var(--teal); }
.e-rich a, .link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--aqua); }
.e-rich a:hover, .link:hover { text-decoration-color: var(--coral); }
.e-rich strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
	--bg: var(--coral);
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px;
	background: var(--bg); color: var(--on-coral);
	font: 700 16px/1.2 var(--f-body); letter-spacing: .005em; text-decoration: none; text-align: center;
	box-shadow: 0 14px 30px -14px #f57251e6; cursor: pointer;
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
	text-wrap: balance; max-width: 100%;
}
.btn:hover { --bg: var(--coral-2); box-shadow: 0 18px 34px -14px #ee5e3af2; }
.btn:active { transform: scale(.98); }
.btn .ar { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translate(3px); }
.btn-s { min-height: 42px; padding: 10px 18px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }
.btn-ink { --bg: var(--ink); color: var(--paper); box-shadow: none; }
.btn-ink:hover { --bg: #0C2F32; box-shadow: none; }
.btn-ghost { --bg: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { --bg: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-white { --bg: var(--white); color: var(--on-coral); box-shadow: 0 16px 34px -16px #0b2a2d99; }
.btn-white:hover { --bg: #FFF4EF; }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* Shopee CTA (rendered by the geo mu-plugin: a / span--soon / button--choose). It is the buy button,
   so it takes the Opsi E primary button look everywhere; a page may add .btn-block etc. around it. */
body .tb-shopee-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px;
	background: var(--coral); color: var(--on-coral);
	font: 700 16px/1.2 var(--f-body); text-decoration: none; text-align: center; white-space: normal;
	box-shadow: 0 14px 30px -14px #f57251e6; cursor: pointer; max-width: 100%;
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
body .tb-shopee-cta:hover, body .tb-shopee-cta:focus-visible { background: var(--coral-2); color: var(--on-coral); box-shadow: 0 18px 34px -14px #ee5e3af2; transform: none; }
body .tb-shopee-cta::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M11 5.5 15.5 10 11 14.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M11 5.5 15.5 10 11 14.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease); }
body .tb-shopee-cta:hover::after { transform: translate(3px); }
body .tb-shopee-cta--soon, body .tb-shopee-cta--soon:hover, body .tb-shopee-cta--soon:focus-visible { background: var(--cream); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); cursor: not-allowed; }
body .tb-shopee-cta--soon::after { content: none; }
body .tb-shopee-cta--choose { background: var(--ink); color: var(--paper); box-shadow: none; }
body .tb-shopee-cta--choose:hover, body .tb-shopee-cta--choose:focus-visible { background: #0C2F32; color: var(--paper); box-shadow: none; }

/* ---------- tags, chips, lists ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 11px; border-radius: 7px; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tag-p { background: var(--p); color: var(--p-ink); }
.tag-line { border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; }
.tag-soft { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; }
.x2 { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: italic 500 12px/1 var(--f-display); letter-spacing: 0; text-transform: none; }
.facts { display: flex; flex-wrap: wrap; row-gap: 6px; margin-left: -14px; clip-path: inset(-8px -8px -8px 14px); }
.facts li { position: relative; display: inline-flex; align-items: center; padding-left: 14px; }
.facts li::before { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--aqua); }
.dotlist { display: flex; flex-wrap: wrap; row-gap: 2px; margin-left: -22px; clip-path: inset(-8px -8px -8px 22px); }
.dotlist > span { position: relative; padding-left: 22px; }
.dotlist > span::before { content: "\b7"; position: absolute; left: 0; top: 0; width: 22px; text-align: center; }
.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checks li b, .checks li strong { color: var(--ink); }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border: 1.4px solid var(--ink); border-radius: 4px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.c-list { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
ol.c-list { list-style: decimal; }
.stars { color: var(--tz); letter-spacing: 2px; font-size: 13px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .3s, width .3s var(--ease); }
.dots i.on { background: var(--ink); width: 20px; border-radius: 99px; }
@media (min-width: 1024px) { .dots { display: none; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(76px, 10vw, 140px); position: relative; overflow-x: clip; }
.sec.cream { background: var(--cream); }
.sec.tight { padding-block: clamp(52px, 7vw, 96px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); padding-bottom: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.sec-head > * { min-width: 0; }
.sec-head .sec-lead { font-size: 17px; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 900px) {
	.sec-head { grid-template-columns: 1fr minmax(260px, 380px); align-items: start; column-gap: 48px; }
	.sec-head .eyebrow, .sec-head .c-kicker { grid-column: 1 / -1; }
	.sec-head .sec-lead { align-self: end; justify-self: stretch; }
}
.sec-head.is-solo { grid-template-columns: 1fr; }
.sec-head + .steps, .sec-head + .stats { border-top-color: transparent; padding-top: 0; }

/* ---------- FAQ accordion (native details) ---------- */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font: 700 17px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; position: relative; transition: transform .35s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--paper); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 15.5px; display: grid; gap: 10px; }

/* ---------- scroll reveal (assets/js/e-chrome.js adds .is-in to a [data-rv] element just before it scrolls
   into view; it then fades/slides in once. Nothing is ever left hidden: without JS, with reduced motion,
   in print or in a full-page capture every element simply shows) ---------- */
@keyframes e-rv-in { 0% { opacity: .01; translate: 0 18px; } }
@media (prefers-reduced-motion: no-preference) {
	[data-rv].is-in { animation: e-rv-in .8s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Thai (/th/) ----------
   Platform Thai faces have tall stacked vowels and tone marks: give every display style more line
   height, drop negative tracking and the synthetic italic (Thai has no italic). */
:lang(th) body, :lang(th) .lead { line-height: 1.75; }
:lang(th) .h-display, :lang(th) .h-section, :lang(th) .h-card, :lang(th) .c-stmt { letter-spacing: 0; line-height: 1.32; }
:lang(th) .h-display em, :lang(th) .h-section em, :lang(th) .h-card em, :lang(th) .c-stmt em { font-style: normal; font-weight: 400; color: var(--teal); }
:lang(th) .rl { padding: .3em 0; margin: -.3em 0; }
:lang(th) .mono, :lang(th) .eyebrow, :lang(th) .c-kicker { letter-spacing: .02em; line-height: 1.6; font-size: 13.5px; font-weight: 600; }
:lang(th) .fine { font-size: 13.5px; }
:lang(th) .faq summary { line-height: 1.6; }
