/* Cek Pencernaanmu: standalone quiz page. Opsi E tokens, mobile first. */
:root {
  --paper: #FCFBF7; --cream: #F4EFE4; --cream2: #E9E1CF; --white: #fff;
  --ink: #123F43; --ink2: #2E5458; --muted: #56696B; --teal: #14767A; --aqua: #3FBCBC;
  --line: #DDD7CA; --coral: #F57251; --coral2: #EE5E3A; --on-coral: #0B2A2D;
  --tint: #56BDE3; --tint-ink: #0B3A4A;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-loud: "Anton", Impact, "Arial Narrow", sans-serif;
  --r: 22px; --r-l: 30px;
  --sh: 0 1px 0 rgba(18,63,67,.04), 0 14px 34px -20px rgba(18,63,67,.35);
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.bq-preview { background: var(--ink); color: #BCE9E7; font-size: 13px; line-height: 1.4; text-align: center; padding: 8px 16px; }
.bq-top { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto; padding: 16px 20px 4px; }
.bq-logo img { width: 112px; height: auto; }
.bq-top-tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }

.bq { max-width: 560px; margin: 0 auto; padding: 8px 20px 32px; min-height: 70vh; }
.bq-screen { display: none; animation: bq-in .45s var(--ease) both; }
.bq-screen.is-active { display: block; }
@keyframes bq-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bq-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.bq-h1 { margin: 6px 0 12px; font: 400 clamp(44px, 14vw, 80px)/.92 var(--f-loud); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
.bq-h1 span { display: block; color: var(--coral); }
.bq-lead { margin: 0 0 22px; font-size: 18px; color: var(--ink2); }
.bq-lead strong { color: var(--ink); }
.bq-h3 { margin: 0 0 4px; font: 600 26px/1.15 var(--f-display); }

/* Intro: a playful stack of packs */
.bq-intro { padding-top: 6px; }
.bq-stack { position: relative; height: 210px; margin: 6px 0 4px; }
.bq-stack img { position: absolute; width: 150px; filter: drop-shadow(0 18px 18px rgba(18,63,67,.18)); animation: bq-float 5s ease-in-out infinite; }
.bq-stack-0 { left: 2%; top: 30px; transform: rotate(-9deg); }
.bq-stack-1 { left: 30%; top: 0; width: 170px !important; z-index: 2; animation-delay: -1s !important; }
.bq-stack-2 { right: 2%; top: 34px; transform: rotate(8deg); animation-delay: -2s !important; }
.bq-stack-3 { left: 14%; top: 104px; width: 110px !important; transform: rotate(6deg); z-index: 3; animation-delay: -3s !important; }
.bq-stack-4 { right: 16%; top: 112px; width: 104px !important; transform: rotate(-7deg); z-index: 3; animation-delay: -4s !important; }
@keyframes bq-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.bq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 28px; border: 0; border-radius: 999px;
  background: var(--coral); color: var(--on-coral); font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 6px 0 var(--coral2);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.bq-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral2); }
.bq-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral2); }
.bq-btn-big { width: 100%; font-size: 18px; }
.bq-btn[disabled] { opacity: .65; cursor: progress; }
.bq-btn-ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.bq-btn-ghost:hover, .bq-btn-ghost:active { box-shadow: none; }

.bq-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.bq-trust li { padding: 7px 12px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 700; color: var(--ink2); }

/* Quiz */
.bq-progress { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; margin: 8px 0 14px; }
.bq-progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), var(--coral)); transition: width .4s var(--ease); }
.bq-qhead { display: flex; align-items: center; justify-content: space-between; }
.bq-back { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); font-size: 18px; }
.bq-back[hidden] { visibility: hidden; display: block; }
.bq-count { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.bq-q { margin: 14px 0 6px; font: 600 clamp(27px, 7.4vw, 34px)/1.12 var(--f-display); outline: none; }
.bq-hint { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.bq-options { display: grid; gap: 10px; }
.bq-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; text-align: left; border-radius: var(--r);
  border: 2px solid var(--line); background: var(--white); font-size: 16px; font-weight: 700; color: var(--ink); box-shadow: var(--sh);
  transition: transform .15s var(--ease), border-color .15s, background .15s; }
.bq-opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.bq-opt.is-picked { border-color: var(--coral); background: #FFF0EA; transform: scale(.985); }
.bq-opt-emoji { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--cream); font-size: 24px; }

/* Thinking */
.bq-thinking { padding: 80px 0; text-align: center; color: var(--ink2); font-weight: 700; }
.bq-dots { display: inline-flex; gap: 10px; margin-bottom: 14px; }
.bq-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); animation: bq-bounce .9s infinite var(--ease); }
.bq-dots i:nth-child(2) { animation-delay: .15s; background: var(--aqua); }
.bq-dots i:nth-child(3) { animation-delay: .3s; background: var(--ink); }
@keyframes bq-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Gate */
.bq-reveal { margin-top: 6px; padding: 26px 22px 24px; border-radius: var(--r-l); background: var(--tint); color: var(--tint-ink); box-shadow: var(--sh); }
.bq-reveal .bq-eyebrow { color: inherit; opacity: .85; }
.bq-reveal-pre { margin: 6px 0 0; font: italic 500 20px/1.2 var(--f-display); }
.bq-reveal-name { margin: 2px 0 8px; font: 400 clamp(44px, 13vw, 62px)/.95 var(--f-loud); text-transform: uppercase; outline: none; }
.bq-reveal-blurb { margin: 0; font-size: 16px; font-weight: 600; }
.bq-locked { position: relative; margin: 14px 0 18px; padding: 18px; border-radius: var(--r); background: var(--cream); overflow: hidden; }
.bq-locked-rows span { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: var(--cream2); filter: blur(1px); }
.bq-locked-rows span:nth-child(2) { width: 80%; } .bq-locked-rows span:nth-child(3) { width: 92%; } .bq-locked-rows span:nth-child(4) { width: 60%; }
.bq-locked-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16px; text-align: center; font-weight: 800; color: var(--ink); background: rgba(244,239,228,.55); }
.bq-form { padding: 22px 20px; border-radius: var(--r-l); background: var(--white); border: 2px solid var(--line); box-shadow: var(--sh); }
.bq-form-sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.bq-field { display: block; margin: 0 0 12px; }
.bq-field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.bq-field em { font-weight: 500; color: var(--muted); font-style: normal; }
.bq-field input { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); font: 600 17px var(--f-body); color: var(--ink); }
.bq-field input:focus { border-color: var(--ink); outline: none; background: var(--white); }
.bq-field input.is-bad { border-color: var(--coral2); background: #FFF4F0; }
.bq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bq-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); cursor: pointer; }
.bq-check input { flex: 0 0 24px; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--coral); }
.bq-privacy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.bq-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #FFF0EA; color: #9A2E14; font-weight: 700; font-size: 14px; }
.bq-form .bq-btn { margin-top: 18px; }

/* Result */
.bq-card { margin: 0 0 16px; padding: 22px 20px; border-radius: var(--r-l); background: var(--white); border: 2px solid var(--line); box-shadow: var(--sh); }
.bq-hero { position: relative; padding: 26px 22px 22px; border-radius: var(--r-l); background: var(--tint); color: var(--tint-ink); margin-bottom: 16px; overflow: hidden; }
.bq-hero .bq-eyebrow { color: inherit; opacity: .85; }
.bq-hero h2 { margin: 2px 0 10px; font: 400 clamp(42px, 12vw, 58px)/.95 var(--f-loud); text-transform: uppercase; }
.bq-hero p { margin: 0 0 12px; font-weight: 600; }
.bq-pick { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: var(--r); background: rgba(255,255,255,.88); color: var(--ink); }
.bq-pick img { width: 108px; flex: 0 0 108px; border-radius: 16px; animation: bq-pop .6s var(--ease) both .2s; }
@keyframes bq-pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bq-pick b { display: block; font: 400 30px/1 var(--f-loud); text-transform: uppercase; letter-spacing: .01em; }
.bq-pick span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.bq-chip { display: inline-block; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: #FFF4D6; color: #5A4300; font-size: 13px; font-weight: 800; }
.bq-code { background: var(--ink); color: var(--white); border: 0; }
.bq-code h3 { color: var(--white); }
.bq-code p { color: #D7EFEC; margin: 8px 0 0; }
.bq-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.bq-steps li { position: relative; padding: 0 0 10px 40px; color: #E8F6F4; }
.bq-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.bq-soon { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 13.5px; color: #BCE9E7; }
.bq-plan { margin: 12px 0 0; padding: 0; list-style: none; }
.bq-day { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 2px dashed var(--line); }
.bq-day:first-child { border-top: 0; }
.bq-day input { flex: 0 0 26px; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--coral); }
.bq-day b { display: block; font: 400 18px/1 var(--f-loud); text-transform: uppercase; letter-spacing: .03em; color: var(--teal); }
.bq-day span { display: block; margin-top: 4px; font-size: 15.5px; color: var(--ink2); }
.bq-day.is-done span { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; color: var(--muted); }
.bq-tally { margin: 10px 0 0; font-weight: 800; color: var(--coral2); }
.bq-alt { display: flex; gap: 14px; align-items: center; }
.bq-alt img { width: 84px; flex: 0 0 84px; }
.bq-row { display: grid; gap: 10px; }
.bq-small { font-size: 13px; color: var(--muted); }

.bq-noscript { padding: 20px; border-radius: var(--r); background: var(--cream); }
.bq-foot { max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.bq-foot a { color: inherit; }

@media (min-width: 620px) {
  .bq { padding-top: 20px; }
  .bq-stack { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
