/* ============================================================
   FAUNAFELLA — tips.faunafella.com landing page
   Brand: playful sky-blue + coral, "Organic care" warmth.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — diambil dari logo faunafella CARE */
  --blue:        #1EA7E1;
  --blue-light:  #57C4F0;
  --blue-deep:   #1487C4;
  --blue-ink:    #0E6EA3;
  --coral:       #F5442E;
  --coral-deep:  #DA3320;

  /* Netral */
  --ink:         #16303F;   /* teks utama */
  --ink-soft:    #4C6675;   /* teks sekunder */
  --line:        #E2EEF5;   /* border */
  --bg:          #F4FBFE;   /* background halaman */
  --bg-tint:     #E9F6FD;   /* section alt */
  --surface:     #FFFFFF;

  /* Efek */
  --shadow-sm:   0 2px 8px rgba(20, 135, 196, .08);
  --shadow-md:   0 12px 30px rgba(20, 135, 196, .12);
  --shadow-lg:   0 24px 60px rgba(14, 110, 163, .18);
  --ring:        0 0 0 4px rgba(30, 167, 225, .18);

  --radius:      18px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  --maxw:        1120px;
  --ease:        cubic-bezier(.22, 1, .36, 1);

  --grad-brand:  linear-gradient(135deg, var(--blue-light), var(--blue) 55%, var(--blue-deep));
}

/* ---------- Reset ringan ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand__name {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--blue);
  --fg-btn: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-btn);
  background: var(--bg-btn);
  border: 0;
  border-radius: var(--radius-pill);
  padding: .8em 1.5em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  white-space: nowrap;
}
.btn::after { /* sheen */
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-md); }

.btn--primary { background: var(--grad-brand); }
.btn--coral   { background: linear-gradient(135deg, #ff6a53, var(--coral) 60%, var(--coral-deep)); }
.btn--ghost {
  background: var(--surface);
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue-light), var(--shadow-sm); }
.btn--lg    { font-size: 1.075rem; padding: .95em 1.8em; }
.btn--sm    { padding: .6em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  background: rgba(244, 251, 254, .6);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .85);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(20,135,196,.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__logo { height: 34px; width: auto; }
.brand__name { font-weight: 700; font-size: 1.35rem; color: var(--blue-deep); }
.brand__name b { color: var(--coral); font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav__links a:not(.btn) {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .98rem;
  position: relative;
  transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: width .28s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(87,196,240,.30), transparent 70%),
    radial-gradient(50% 45% at 8% 80%, rgba(245,68,46,.10), transparent 70%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .5;
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}
.blob--1 { width: 120px; height: 120px; top: 14%; right: 12%; background: radial-gradient(circle at 30% 30%, #9adcff, #57C4F0); }
.blob--2 { width: 70px;  height: 70px;  top: 62%; right: 26%; background: radial-gradient(circle at 30% 30%, #ffd0c6, #ff8a76); animation-delay: 1.4s; }
.blob--3 { width: 46px;  height: 46px;  top: 30%; right: 40%; background: radial-gradient(circle at 30% 30%, #bff0ff, #57C4F0); animation-delay: .7s; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35c759;
  box-shadow: 0 0 0 0 rgba(53,199,89,.5);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  font-weight: 800;
  margin: 1.1rem 0 0;
  color: var(--ink);
}
.hero__title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-top: 1.1rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
}
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  background: var(--bg-tint);
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
}
.avatars span:first-child { margin-left: 0; }

/* Hero visual — kartu mengambang */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__card-main {
  width: min(88%, 360px);
  background: var(--surface);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.hero__card-main .emoji-hero {
  font-size: 4.6rem;
  line-height: 1;
  filter: drop-shadow(0 10px 14px rgba(20,135,196,.22));
  animation: bob 4s ease-in-out infinite;
}
.hero__card-main h3 { font-size: 1.35rem; margin-top: .7rem; }
.hero__card-main p  { color: var(--ink-soft); font-size: .95rem; margin-top: .25rem; }
.mini-bar {
  height: 9px; border-radius: 6px; background: var(--bg-tint);
  margin-top: 1rem; overflow: hidden;
}
.mini-bar > i {
  display: block; height: 100%;
  width: var(--w, 76%);
  border-radius: 6px;
  background: var(--grad-brand);
  animation: grow 1.6s var(--ease) both;
}
.mini-bar-label {
  display: flex; justify-content: space-between;
  font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  margin-top: .5rem;
}
.mini-bar-label b { color: var(--blue-deep); }

.float-chip {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .85rem;
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.float-chip .ic { font-size: 1.2rem; }
.float-chip--a { top: 6%;  left: -2%; }
.float-chip--b { bottom: 10%; right: -4%; animation-delay: 1.2s; }
.float-chip small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .72rem; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust__inner { padding: 26px 0; }
.trust__label {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 5vw, 54px);
  color: var(--blue-ink);
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  opacity: .8;
}
.trust__row span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Sections generic ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--bg-tint); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(34px, 5vw, 56px); }
.eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .6rem;
}
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.section__head p { color: var(--ink-soft); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 15px;
  background: var(--bg-tint);
  margin-bottom: 1rem;
  transition: transform .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.22rem; }
.card p  { color: var(--ink-soft); margin-top: .5rem; font-size: .97rem; }

/* Steps */
.steps { counter-reset: step; }
.step { text-align: left; position: relative; }
.step__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.22rem; }
.step p { color: var(--ink-soft); margin-top: .45rem; }
.step__connector { }

/* ---------- Quiz / Lead capture ---------- */
.quiz { position: relative; overflow: hidden; }
.quiz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.quiz__copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.quiz__copy p { color: var(--ink-soft); margin-top: .8rem; }
.quiz__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.quiz__list li { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.quiz__list .tick {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(53,199,89,.14);
  color: #2fae52;
  display: grid; place-items: center;
  font-size: .8rem;
}

.leadform { display: grid; gap: 14px; }
.leadform .field { display: grid; gap: 6px; }
.leadform label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.leadform input, .leadform select {
  font: inherit;
  padding: .82em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.leadform input:focus, .leadform select:focus {
  outline: none;
  border-color: var(--blue-light);
  background: #fff;
  box-shadow: var(--ring);
}
.leadform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note {
  border-radius: var(--radius-sm);
  padding: .8em 1em;
  font-weight: 600;
  font-size: .92rem;
}
.form-note--ok  { background: rgba(53,199,89,.12); color: #248a44; }
.form-note--err { background: rgba(245,68,46,.10); color: var(--coral-deep); }
.form-fine { font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote .stars { color: #ffb020; letter-spacing: 2px; margin-bottom: .7rem; }
.quote p { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.quote footer { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.quote .ava {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-tint); font-size: 1.2rem;
}
.quote footer strong { display: block; font-weight: 800; }
.quote footer span { color: var(--ink-soft); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq__item.is-open { box-shadow: var(--shadow-sm); border-color: var(--blue-light); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer;
  padding: 18px 20px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
  text-align: left;
}
.faq__q .chev {
  flex: 0 0 auto;
  transition: transform .3s var(--ease);
  color: var(--blue);
  font-size: 1.1rem;
}
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq__a p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(56px, 9vw, 100px) 0; }
.cta__inner {
  position: relative;
  text-align: center;
  background: var(--grad-brand);
  border-radius: 30px;
  padding: clamp(38px, 6vw, 72px) 26px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__inner::before, .cta__inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.cta__inner::before { width: 240px; height: 240px; top: -90px; right: -60px; }
.cta__inner::after  { width: 180px; height: 180px; bottom: -80px; left: -50px; }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; position: relative; }
.cta__inner p { margin: .8rem auto 0; max-width: 46ch; opacity: .95; position: relative; }
.cta__inner .btn { margin-top: 1.7rem; position: relative; }
.cta__inner .btn--coral { box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cta__alt { margin-top: 1.1rem; font-size: .92rem; opacity: .95; position: relative; }
.cta__alt a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #0f2735; color: #cfe1ec; padding: 56px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #9db6c6; margin-top: .8rem; max-width: 30ch; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer__col a { display: block; color: #9db6c6; padding: .28rem 0; transition: color .2s, transform .2s; }
.footer__col a:hover { color: #fff; transform: translateX(3px); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: #7d99a9; font-size: .88rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53,199,89,.5); } 70% { box-shadow: 0 0 0 8px rgba(53,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(53,199,89,0); } }
@keyframes grow  { from { width: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; aspect-ratio: 4/3; }
  .quiz__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 12px 0; }
  .nav__links .btn { margin-top: 8px; justify-content: center; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .leadform .row2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .float-chip--a { left: 2%; }
  .float-chip--b { right: 2%; }
}

/* ============================================================
   KUIS WIZARD
   ============================================================ */
.quizapp {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4vw, 38px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Progress */
.quiz-top { margin-bottom: 20px; }
.quiz-step {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.quiz-bar { height: 8px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; }
.quiz-bar > i {
  display: block; height: 100%;
  border-radius: 6px;
  background: var(--grad-brand);
  transition: width .45s var(--ease);
}

/* Body */
.quiz-body { flex: 1; }
.quiz-q { font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 800; }
.quiz-hint { color: var(--ink-soft); margin-top: .4rem; font-size: .95rem; }

/* Opsi */
.quiz-opts { display: grid; gap: 11px; margin-top: 22px; }
.quiz-opt {
  display: flex; align-items: center; gap: .8rem;
  width: 100%; text-align: left;
  font: inherit; font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .9em 1.1em;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s;
}
.quiz-opt:hover { border-color: var(--blue-light); transform: translateX(3px); }
.quiz-opt:focus-visible { outline: none; box-shadow: var(--ring); }
.quiz-opt.is-active { border-color: var(--blue); background: var(--bg-tint); }
.quiz-opt__tick {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.quiz-opts.is-multi .quiz-opt__tick { border-radius: 7px; }
.quiz-opt.is-active .quiz-opt__tick { border-color: var(--blue); background: var(--blue); }
.quiz-opt.is-active .quiz-opt__tick::after {
  content: '✓'; color: #fff; font-size: .8rem; font-weight: 800; line-height: 1;
}

/* Navigasi */
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-nav .btn { min-width: 120px; justify-content: center; }
.quiz-nav .btn:only-child { margin-left: auto; }

/* Hasil */
.quiz-result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 8px 0; }
.quiz-result__emoji { font-size: 3rem; line-height: 1; animation: bob 4s ease-in-out infinite; }
.quiz-score { position: relative; width: 120px; height: 120px; margin: 6px 0; }
.quiz-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.quiz-ring__bg { fill: none; stroke: var(--bg-tint); stroke-width: 10; }
.quiz-ring__fg {
  fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - 327 * var(--pct, 0) / 100);
  transition: stroke-dashoffset 1s var(--ease);
}
.quiz-score__num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif;
}
.quiz-score__num strong { font-size: 2rem; color: var(--blue-deep); line-height: 1; }
.quiz-score__num span { font-size: .8rem; color: var(--ink-soft); }
.quiz-result__msg { color: var(--ink-soft); max-width: 42ch; margin: .3rem auto .4rem; }
.quiz-result .btn { margin-top: .4rem; }
.quiz-restart {
  margin-top: .3rem; background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.quiz-restart:hover { color: var(--blue-deep); }

@media (max-width: 640px) {
  .quiz-nav { flex-direction: row; }
  .quiz-nav .btn { min-width: 0; flex: 1; padding-inline: 1em; }
}
