/* ============================================================
   TinyKicks — Design System
   Warm, trustworthy, calm. Mobile-first.
   Fonts: Baloo 2 (display) + Quicksand (body/UI)
   ============================================================ */

:root {
  /* Palette — earth-tone yang berkarakter (terracotta × forest × mustard × plum) */
  --cream:        #F9EEDC;
  --cream-2:      #F1E2C8;
  --surface:      #FFFFFF;
  --ink:          #2B2017;
  --ink-2:        #6A5845;
  --ink-3:        #9B876F;

  --coral:        #C8522E;
  --coral-deep:   #A63E1C;
  --coral-soft:   #F7DFCF;

  --teal:         #256B55;
  --teal-deep:    #17493A;
  --teal-soft:    #DCE8E0;

  --sun:          #E59B2F;
  --sun-soft:     #F8E6C4;

  --plum:         #67406F;
  --plum-soft:    #EBDDEC;

  --line:         #EAD8BC;
  --line-soft:    #F3E8D3;

  /* Shape */
  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(51,40,32,.06);
  --shadow:    0 12px 32px -14px rgba(51,40,32,.22);
  --shadow-lg: 0 24px 60px -24px rgba(51,40,32,.28);

  /* Type */
  --font-display: "Baloo 2", "Quicksand", system-ui, sans-serif;
  --font-body:    "Quicksand", "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { padding: 0 20px; max-width: 1080px; margin: 0 auto; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h2.display { font-size: 1.9rem; }
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; letter-spacing: -0.01em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px rgba(239,92,72,.55); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
#btn-custom-toggle { white-space: normal; text-align: center; line-height: 1.4; height: auto; padding: 12px 14px; }

/* ---------- Typography polish ---------- */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .display { letter-spacing: -0.012em; }
/* emoji di judul: samakan ukuran & baseline biar tidak "loncat" */
h1 .emj, h2 .emj, h3 .emj {
  font-size: .8em;
  line-height: 1;
  vertical-align: -0.08em;
  letter-spacing: 0;
}
.brand-name { line-height: 1.15; letter-spacing: .015em; }
.chip, .tag, .pill { letter-spacing: .015em; }
.lead { text-wrap: pretty; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,245,236,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  flex: none;
  width: auto; height: auto;
}
.brand-mark img { width: 42px; height: 42px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name i { font-style: normal; }
.brand-name i:nth-child(1){ color:#2B7FC4; }
.brand-name i:nth-child(2){ color:#2E9E77; }
.brand-name i:nth-child(3){ color:#2E6FB5; }
.brand-name i:nth-child(4){ color:#2E9EA0; }
.brand-name i:nth-child(5){ color:#E07B2B; }
.brand-name i:nth-child(6){ color:#F0A02E; }
.brand-name i:nth-child(7){ color:#E88A2E; }
.brand-name i:nth-child(8){ color:#D4552E; }
.brand-name i:nth-child(9){ color:#EFA92F; }
:root[data-theme="dark"] .brand-name { filter: brightness(1.22) saturate(1.05); }
.nav-links { display: none; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.nav-links a { font-weight: 600; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--coral); }
.nav-cta { display: none; }
.menu-btn,
.menu-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  flex: none;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 14px; }

@media (min-width: 840px) {
  .nav-links { display: flex; order: 3; width: 100%; justify-content: center; gap: 6px 18px; padding-top: 2px; }
  .nav-cta { display: inline-flex; margin-left: auto; }
  .menu-btn, .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% -10%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(50% 45% at 0% 100%, var(--teal-soft) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 28px; }
.hero h1 { font-size: 2.35rem; margin: 12px 0 14px; }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.95rem; line-height: 1.18; }
  .tool-hero h1 { font-size: 1.75rem; line-height: 1.2; }
  .hero-plain h1 { font-size: 1.7rem; line-height: 1.22; }
  .article-hero h1 { font-size: 1.7rem; line-height: 1.25; }
}
.hero h1 .accent { color: var(--coral); }
.hero .lead { max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 600;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.trust-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Age quick-card */
.age-card {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.age-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.age-card p { color: var(--ink-2); font-size: .92rem; margin: 4px 0 16px; }
.age-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.age-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-2);
  transition: all .12s ease;
}
.age-chip:hover { border-color: var(--ink-3); }
.age-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.age-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  font-size: .95rem;
  display: none;
}
.age-result.show { display: block; }
.age-result strong { color: var(--teal-deep); }

/* ---------- Sections ---------- */
section { padding: 34px 0; }
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.sec-head .lead { margin-top: 2px; }
.sec-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.sec-link { font-weight: 700; color: var(--coral); font-size: .92rem; flex: none; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat-card:active { transform: scale(.98); }
.cat-card .cat-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; }
.cat-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 3px; }
.cat-card p { font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tool cards */
.tool-grid { display: grid; gap: 14px; }
.tool-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tool-card.primary { background: linear-gradient(150deg, var(--coral), var(--coral-deep)); }
.tool-card.secondary { background: linear-gradient(150deg, var(--teal), var(--teal-deep)); }
.tool-card.tertiary { background: linear-gradient(150deg, var(--plum), #4E2E56); }
.tool-card.full { grid-column: 1 / -1; }
.tool-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 6px; }
.tool-card p { opacity: .88; font-size: .94rem; margin-bottom: 18px; }
.tool-card .btn { background: #fff; color: #2B2017; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: 1fr 1fr; } }

/* Articles */
.article-grid { display: grid; gap: 14px; }
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.article-card:active { transform: scale(.99); }
.article-thumb {
  aspect-ratio: 16 / 10;
  background: var(--cream-2);
  display: grid; place-items: center;
}
.article-thumb .thumb-emoji { font-size: 2.4rem; }
.article-body { padding: 16px 18px 20px; }
.article-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-deep);
}
.article-body h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.3; margin: 8px 0 8px; }
.article-meta { font-size: .8rem; color: var(--ink-3); }
.article-list { display: flex; flex-direction: column; gap: 10px; }
.post-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-link:hover { transform: translateX(4px); border-color: var(--coral); box-shadow: 0 6px 16px rgba(200,82,46,.10); }
.post-emoji { font-size: 1.45rem; flex: none; }
.post-text { flex: 1; }
.post-text h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.post-meta { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 3px; }
.post-arrow { font-size: 1.15rem; color: var(--coral); font-weight: 800; flex: none; }
@media (min-width: 720px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

/* Trust band */
.trust-band {
  background: linear-gradient(150deg, #143B2F, #1F5A46);
  color: #F6EDDB;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.trust-band h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin-bottom: 12px; }
.trust-band .points { display: grid; gap: 14px; margin-top: 8px; }
.trust-point { display: flex; gap: 12px; align-items: flex-start; }
.trust-point .tp-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--coral); display: grid; place-items: center; }
.trust-point h4 { font-size: .98rem; margin-bottom: 2px; }
.trust-point p { font-size: .86rem; opacity: .78; line-height: 1.5; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cream), var(--sun-soft));
  border: 1.5px solid var(--sun);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); margin-bottom: 18px; }
.cta-art { width: 100%; max-width: 300px; height: 86px; margin: 0 auto 4px; display: block; overflow: visible; }
@keyframes sprout-grow { 0% { transform: scale(0); opacity: 0; } 65% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sprout-sway { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2deg); } }
@keyframes twinkle { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes step-pop { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
.cta-band .sprout { transform-origin: 250px 76px; animation: sprout-grow .9s ease-out both, sprout-sway 3.6s ease-in-out .9s infinite; }
.cta-band .star { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.cta-band .step { animation: step-pop .5s ease-out both; }
.cta-band .step.s1 { animation-delay: .2s; }
.cta-band .step.s2 { animation-delay: .4s; }
.cta-band .step.s3 { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .cta-band .sprout, .cta-band .star, .cta-band .step { animation: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 20px; padding: 36px 0 28px; }
.footer-top { display: grid; gap: 22px; margin-bottom: 24px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.footer-col a { display: block; padding: 6px 0; font-weight: 600; color: var(--ink-2); font-size: .93rem; }
.footer-col a:hover { color: var(--ink); }
.footer-note { font-size: .8rem; color: var(--ink-3); line-height: 1.55; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.footer-legal a { color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.footer-legal a:hover { color: var(--coral); }
.legal-prose h2 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--ink); font-family: var(--font-display); }
.legal-prose p { margin-bottom: 12px; color: var(--ink-2); }
.legal-prose ul { margin: 0 0 12px 20px; color: var(--ink-2); }
.legal-prose li { margin-bottom: 6px; }
.legal-prose a { color: var(--coral); font-weight: 600; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Breadcrumb / article layout ---------- */
.breadcrumb { font-size: .82rem; color: var(--ink-3); padding: 18px 0 0; }
.breadcrumb a { color: var(--teal-deep); font-weight: 600; }
.article-hero { padding: 22px 0 8px; }
.article-hero h1 { font-size: 1.9rem; margin: 12px 0 12px; }
.article-byline { font-size: .84rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.disclaimer {
  margin: 16px 0 8px;
  background: var(--sun-soft);
  border: 1px solid var(--sun);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .86rem;
  color: #5A4913;
  display: flex; gap: 10px;
}
.disclaimer .d-ico { flex: none; font-size: 1.1rem; margin-top: 1px; }

.prose { max-width: 42rem; padding: 8px 0 30px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 26px 0 10px;
  line-height: 1.25;
}
.prose p { color: var(--ink); margin-bottom: 18px; font-size: 1.06rem; line-height: 1.85; letter-spacing: 0; text-align: left; text-wrap: pretty; }
.prose .lede { font-size: 1.18rem; line-height: 1.75; font-weight: 500; color: var(--ink); margin-bottom: 24px; }
.prose ul { margin: 0 0 18px 22px; color: var(--ink); }
.prose li { margin-bottom: 10px; line-height: 1.7; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink); }
.milestone-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  font-size: .92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.milestone-table th, .milestone-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.milestone-table th { background: var(--cream-2); font-size: .8rem; letter-spacing: .03em; color: var(--ink-2); }
.milestone-table tr:last-child td { border-bottom: none; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
}
.toc h2 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; }
.toc a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--teal-deep); font-size: .94rem; }
.toc a:last-child { border-bottom: none; }

/* Tools page */
.tool-hero { padding: 24px 0 10px; }
.tool-hero h1 { font-size: 2rem; margin: 12px 0; }
.result-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  display: none;
}
.result-box.show { display: block; }
.result-box h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.checklist { list-style: none; margin: 0 !important; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist .ck {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  background: var(--teal-soft); color: var(--teal-deep);
  font-weight: 800; display: grid; place-items: center; font-size: .8rem;
  margin-top: 1px;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.field input, .field select {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

/* misc */
.muted { color: var(--ink-3); }

/* ============ Artikel & Riset (kartu riset) ============ */
.riset-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .riset-grid { grid-template-columns: 1fr 1fr; } }
.riset-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.riset-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(103,64,111,.10); }
.riset-card summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 16px; }
.riset-card summary::-webkit-details-marker { display: none; }
.riset-card[open] summary { border-bottom: 1px dashed var(--line); background: linear-gradient(180deg, var(--cream), rgba(249,238,220,0)); }
.rs-emoji { font-size: 2.1rem; line-height: 1; flex: none; }
.rs-head { flex: 1; }
.rs-head h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 7px; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.hot { background: var(--coral-soft); color: var(--coral-deep); }
.tag.riset { background: var(--teal-soft); color: var(--teal-deep); }
.rs-body { padding: 14px 16px 18px; }
.rs-body p { font-size: .95rem; line-height: 1.75; color: var(--ink); margin-bottom: 10px; text-align: left; }
.rs-riset { background: var(--cream); border-left: 4px solid var(--sun); padding: 11px 12px; border-radius: 0 10px 10px 0; font-size: .88rem; line-height: 1.6; margin-bottom: 10px; color: var(--ink); }
.rs-sumber { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }

/* ============ Perindah kartu menu ============ */
.tool-card { position: relative; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37,107,85,.16); }
.tool-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 15% 0%, rgba(255,255,255,.22), transparent 55%); pointer-events: none; }
.cat-card { transition: transform .15s ease, box-shadow .15s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(200,82,46,.12); }
.article-card { transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(103,64,111,.12); }

/* ===== Prettier banner (thumb + tag) ===== */
.article-thumb { aspect-ratio: 16/10; background: var(--cream); display: grid; place-items: center; }
.article-thumb .thumb-emoji { font-size: 3rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.08)); }
.article-card:nth-child(1) .article-thumb { background: linear-gradient(150deg, #FFF1E0, #FFD8C2); }
.article-card:nth-child(2) .article-thumb { background: linear-gradient(150deg, #E6F4EE, #CFE9DE); }
.article-card:nth-child(3) .article-thumb { background: linear-gradient(150deg, #EFE4F4, #E2D3EC); }
.article-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); }

/* ===== Panduan (guide-sec) ===== */
.growth-card { margin-top: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.growth-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; }
.growth-card .small { display: block; margin-top: 8px; }
.guide-sec { margin-bottom: 16px; }
.guide-sec h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; }
.guide-sec h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 14px 0 8px; }
.guide-sec p { line-height: 1.75; }
.guide-list { margin: 0 0 10px; padding-left: 20px; font-size: .92rem; line-height: 1.75; color: var(--ink-2); }
.schedule-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.schedule-box h3 { margin-top: 0; }
.schedule-box li { padding: 3px 0; }
.small { font-size: .82rem; }

/* ============================================================
   PLAYFUL / ANIMATION LAYER
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-9deg); }
  75% { transform: rotate(9deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.86) translateY(10px); }
  70% { transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sparkle {
  0%, 100% { opacity: .18; transform: scale(.75); }
  50% { opacity: .85; transform: scale(1.08); }
}
@keyframes squish {
  0% { transform: scale(1); }
  40% { transform: scale(.94, 1.06); }
  100% { transform: scale(1); }
}
@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* Hero mascot + sparkles */
.hero .sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sparkle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  animation: sparkle 3.6s ease-in-out infinite;
}
.sparkle.star { border-radius: 2px; }
.sparkle.star::after {
  content: "✦";
  display: grid; place-items: center;
  font-size: 16px; line-height: 1;
}

.mascot {
  display: inline-flex;
  transform-origin: 60% 90%;
  animation: bob 4s ease-in-out infinite;
}
.mascot.floaty { animation: float 5.5s ease-in-out infinite; }
.mascot:hover { animation: wave 1.1s ease-in-out infinite; }

/* Bouncy buttons + cards */
.btn-bouncy:hover { animation: squish .35s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover .cat-icon { animation: wiggle .5s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sparkle, .mascot, .mascot.floaty { animation: none; }
}

/* ============================================================
   CALCULATOR (Tinggi/Berat) SPECIFIC
   ============================================================ */
.sex-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sex-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 10px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 800; font-size: 1rem; color: var(--ink-2);
  transition: all .15s ease;
}
.sex-btn .sex-emoji { font-size: 2rem; }
.sex-btn.active { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); box-shadow: var(--shadow-sm); }
.sex-btn:active { transform: scale(.97); }

.slider-wrap { padding: 4px 0 10px; }
.age-output { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 8px; }
.age-output small { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink-3); font-size: .8rem; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--sun) 100%);
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--coral);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--coral); cursor: pointer;
}

/* Result */
.verdict {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
  text-align: center;
  animation: popIn .5s ease;
  display: none;
  box-shadow: var(--shadow);
}
.verdict.show { display: block; }
.verdict::before, .verdict::after {
  content: "✦";
  position: absolute;
  font-size: 18px;
  opacity: .4;
  animation: sparkle 3.2s ease-in-out infinite;
}
.verdict::before { top: 16px; left: 18px; }
.verdict::after { bottom: 16px; right: 20px; animation-delay: 1.3s; }
.verdict .v-emoji {
  font-size: 2.5rem;
  display: grid; place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  animation: bob 2.6s ease-in-out infinite;
}
.verdict h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; line-height: 1.15; }
.verdict p { font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.verdict.good { background: linear-gradient(150deg, #DFEFE7, #B9DCCC); }
.verdict.warn { background: linear-gradient(150deg, #FDE9C0, #F6CF7E); }
.verdict.bad { background: linear-gradient(150deg, #F9DAD0, #F0B49E); }

.status-grid { display: grid; gap: 12px; margin-top: 16px; }
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  animation: popIn .5s ease;
}
.status-card.pop1 { animation-delay: .08s; }
.status-card.pop2 { animation-delay: .16s; }
.status-card h4 { font-size: .92rem; font-weight: 800; margin-bottom: 2px; }
.status-card .z-val { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.status-card .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }

.tag.green { background: var(--teal-soft); color: var(--teal-deep); }
.tag.amber { background: var(--sun-soft); color: #8a5b00; }
.tag.orange { background: #FDE3C8; color: #b45b12; }
.tag.red { background: var(--coral-soft); color: var(--coral-deep); }
.tag.blue { background: #E0ECFB; color: #2b5fa8; }

.sd-bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #e0574f 0%, #f6b34c 25%, #58bd83 50%, #f6b34c 75%, #e0574f 100%); margin-top: 12px; }
.sd-marker {
  position: absolute; top: 50%;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transform: translate(-50%, -50%);
  transition: left .6s cubic-bezier(.34,1.56,.64,1);
}
.sd-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); margin-top: 5px; font-weight: 700; }

.measure-hint {
  font-size: .82rem; color: var(--teal-deep); background: var(--teal-soft);
  border-radius: 10px; padding: 9px 12px; margin-top: -4px; margin-bottom: 16px;
}

/* Confetti */
.confetti { position: fixed; top: 0; width: 10px; height: 16px; z-index: 999; pointer-events: none; border-radius: 2px; animation: confetti-fall 2.6s ease-in forwards; }

/* ============================================================
   STORYBOOK BANNER — gaya kolase Eric Carle × The Gruffalo
   ============================================================ */
.storybook {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #FBF0DC 0%, #F6E7C8 60%, #EBD9B6 100%);
}
.storybook svg { display: block; width: 100%; height: clamp(200px, 40vw, 340px); }

@keyframes twinkle {
  0%, 100% { opacity: .25; }
  50% { opacity: .95; }
}
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(16px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes flutter {
  0%, 100% { transform: rotate(-7deg) scaleX(1); }
  50% { transform: rotate(7deg) scaleX(.82); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes crawl {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes headbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

.storybook .star { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.storybook .star.s2 { animation-delay: .9s; }
.storybook .star.s3 { animation-delay: 1.5s; }
.storybook .star.s4 { animation-delay: 2.2s; }
.storybook .cloud { animation: drift 16s ease-in-out infinite; }
.storybook .cloud.c2 { animation-delay: -7s; }
.storybook .astro { transform-box: fill-box; transform-origin: center; animation: floaty 6s ease-in-out infinite; }
.storybook .butterfly { transform-box: fill-box; transform-origin: center; animation: flutter 2.6s ease-in-out infinite; }
.storybook .flag { transform-box: fill-box; transform-origin: 0 100%; animation: sway 3.8s ease-in-out infinite; }
.storybook .caterpillar { animation: crawl 6s ease-in-out infinite; }
.storybook .owl { transform-box: fill-box; transform-origin: center; animation: headbob 4.5s ease-in-out infinite; }

/* grain kertas hand-made pada seluruh latar */
body {
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .storybook .star, .storybook .cloud, .storybook .astro, .storybook .butterfly,
  .storybook .flag, .storybook .caterpillar, .storybook .owl { animation: none; }
}

/* ============================================================
   KALKULATOR ASUPAN HARIAN
   ============================================================ */
.food-group-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 18px 0 8px; }
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.food-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: .86rem; color: var(--ink);
  transition: all .12s ease;
}
.food-chip:active { transform: scale(.96); }
.food-chip .fc-emoji { font-size: 1.3rem; flex: none; }
.food-chip .fc-name { display: block; line-height: 1.2; }
.food-chip .fc-meta { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.food-chip.added { border-color: var(--teal); background: var(--teal-soft); }

.plate { margin-top: 20px; border-top: 1.5px solid var(--line); padding-top: 14px; }
.plate-empty { font-size: .9rem; color: var(--ink-3); padding: 8px 0; }
.plate-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.plate-row .pr-emoji { font-size: 1.2rem; flex: none; }
.plate-row .pr-name { flex: 1; font-weight: 700; line-height: 1.2; }
.plate-row .pr-name .fc-meta { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.plate-row .pr-qty { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; line-height: 1; color: var(--ink); }
.qty-btn:active { transform: scale(.88); }

.totals { margin-top: 20px; }
.total-row { margin-bottom: 14px; }
.total-row .tr-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.total-row .tr-label small { font-weight: 600; color: var(--ink-3); }
.bar { height: 13px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .45s ease; }
.bar-fill.kcal { background: linear-gradient(90deg, var(--coral), var(--sun)); }
.bar-fill.protein { background: linear-gradient(90deg, var(--teal), #58BD83); }
.bar-fill.over { background: var(--coral-deep) !important; }

.idea-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px; }
.idea-card .ic-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.idea-card .ic-emoji { font-size: 2rem; line-height: 1; flex: none; }
.idea-card h5 { font-size: 1rem; margin-bottom: 3px; }
.idea-card .ic-add { display: inline-block; font-size: .76rem; font-weight: 800; color: var(--teal-deep); background: var(--teal-soft); padding: 3px 10px; border-radius: 999px; }
.ic-steps { list-style: none; margin: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.ic-steps li { display: flex; gap: 9px; align-items: flex-start; font-size: .87rem; color: var(--ink-2); margin-bottom: 7px; line-height: 1.45; }
.ic-steps li:last-child { margin-bottom: 0; }
.ic-step-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-deep); font-weight: 800; font-size: .74rem; display: grid; place-items: center; margin-top: 1px; }

/* ============================================================
   TERDEKAT + SURAT UNTUK ANAK
   ============================================================ */
.toggle { display: flex; gap: 8px; }
.toggle button { flex: 1; padding: 12px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--font-body); font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: all .12s ease; }
.toggle button.active { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); }
.loc-status { font-size: .85rem; color: var(--ink-2); margin-top: 10px; }
.place-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 12px; }
.place-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; }
.place-body { flex: 1; min-width: 0; }
.place-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.place-body .meta { font-size: .82rem; color: var(--ink-3); }
.place-badge { display: inline-block; font-size: .66rem; font-weight: 800; background: var(--sun-soft); color: #8a5b00; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.distance-chip { flex: none; font-size: .8rem; font-weight: 800; color: var(--teal-deep); background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; }
.rating { color: #E9A23B; }

textarea { width: 100%; min-height: 150px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 13px 14px; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; letter-spacing: -0.01em; color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--teal); }
.sealed-note { margin-top: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.sealed-note p { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--font-body); font-weight: 700; font-size: .84rem; color: var(--ink-2); transition: all .12s ease; }
.chip.active { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); }
.cuisine { font-size: .72rem; font-weight: 800; color: var(--plum-deep, #67406F); background: var(--plum-soft); padding: 2px 8px; border-radius: 999px; }

/* ======================= Resep MPASI ======================= */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .recipe-grid { grid-template-columns: 1fr 1fr; } }
.recipe-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rc-emoji { font-size: 2.2rem; line-height: 1; flex: none; }
.rc-title h3 { font-size: 1.02rem; margin-bottom: 4px; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.tag.allergen { background: var(--coral-soft); color: var(--coral-deep); }
.tag.safe { background: var(--teal-soft); color: var(--teal-deep); }
.tag.bb { background: #FDE3C8; color: #b45b12; }
.tag.kcal { background: var(--sun-soft); color: #8a5b00; }
.tag.tak { background: #EDE4D8; color: #6b5b49; }
.rc-bahan { margin-bottom: 10px; }
.rc-lbl { display: block; font-size: .74rem; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.rc-bahan ul { margin: 0; padding-left: 18px; font-size: .85rem; color: var(--ink-2); line-height: 1.6; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag.out { background: #E3EFF5; color: #2b5f7a; }
.tag.saji { background: #EDE9F3; color: #5c4a6b; }
.rc-steps { margin: 0; padding-left: 20px; font-size: .86rem; color: var(--ink-2); line-height: 1.6; }
.empty { color: var(--ink-2); }

/* ============================================================
   CHAT DABARA
   ============================================================ */
.chat-box { display: flex; flex-direction: column; gap: 12px; height: 54vh; min-height: 320px; max-height: 560px; overflow-y: auto; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; font-size: 1rem; }
.avatar.me { background: var(--teal-soft); }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.55; }
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user .bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-input input { flex: 1; height: 48px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; font-family: var(--font-body); font-size: .95rem; color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--teal); }

/* ============================================================
   ✨ POLESAN DESAIN — storybook playful
   ============================================================ */

/* Latar hangat + aksen lembut di sudut */
body {
  background:
    radial-gradient(130% 70% at 100% 0%, rgba(229,155,47,.07), transparent 55%),
    radial-gradient(120% 60% at 0% 100%, rgba(37,107,85,.06), transparent 52%),
    #FFFDF6;
}

/* Subpage hero — judul besar + aksen + bintik playful */
.hero-plain { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFFDF6, var(--cream)); }
.hero-plain::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(rgba(200,82,46,.14) 1.8px, transparent 1.8px),
    radial-gradient(rgba(37,107,85,.13) 1.5px, transparent 1.5px),
    radial-gradient(rgba(103,64,111,.11) 1.3px, transparent 1.3px);
  background-size: 54px 54px, 46px 46px, 36px 36px;
  background-position: 0 0, 26px 24px, 12px 12px;
}
.hero-plain > * { position: relative; z-index: 1; }
.hero-plain h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.hero-plain h1 .accent { color: var(--coral); }
.hero-plain .lead { max-width: 34em; }

/* Garis bawah warna-warni di judul */
.sec-head .display::after, .hero-plain h1::after {
  content: ""; display: block; width: 58px; height: 6px; margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--teal));
}

/* Label section: bintang kecil */
.eyebrow::before { content: "✦ "; color: var(--coral); }

/* Kartu lebih hidup */
.tool-card, .cat-card, .riset-card, .recipe-card, .post-link, .panel,
.status-card, .growth-card, .schedule-box, .article-card {
  box-shadow: 0 2px 0 rgba(63,46,28,.05), 0 12px 24px rgba(103,64,111,.09);
}

/* Hover stiker naik-miring */
@media (hover:hover) {
  .cat-card, .riset-card, .recipe-card, .article-card, .tool-card, .post-link {
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  }
  .cat-card:hover, .riset-card:hover, .recipe-card:hover, .article-card:hover {
    transform: translateY(-4px) rotate(-.7deg);
    box-shadow: 0 4px 0 rgba(63,46,28,.06), 0 20px 36px rgba(103,64,111,.15);
  }
  .tool-card:hover { transform: translateY(-4px) rotate(.5deg); box-shadow: 0 5px 0 rgba(0,0,0,.06), 0 20px 36px rgba(37,107,85,.18); }
  .post-link:hover { transform: translateX(6px); }
}

/* Tombol bouncy */
.btn { border-radius: 16px; box-shadow: 0 3px 0 rgba(63,46,28,.10); transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(63,46,28,.10); }

/* Chip & selector aktif lebih tegas */
.age-chip.active, .sex-btn.active { box-shadow: 0 3px 14px rgba(200,82,46,.28); }
.food-chip.added { box-shadow: 0 3px 10px rgba(37,107,85,.22); }

/* Footer lembut */
.site-footer { background: linear-gradient(180deg, #FFFDF6, #F6EADA); }

/* --- Ilustrasi hero orisinal TinyKicks --- */
.illo [data-anim], .illo g { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .illo * { animation: none !important; } }


/* ============================================================
   FONT NORMALIZATION v2 — Safe (Nov 2026)
   Fix: byline tiny, list items small, H2 consistency, prose text
   ============================================================ */

/* --- Article byline — perbesar (was ~13.7px) --- */
.article-byline, .byline {
  font-size: .92rem !important;
  line-height: 1.6;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

/* --- Prose list items — padankan dengan body text --- */
.prose li {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* --- Prose paragraphs — uniform size --- */
.prose p {
  font-size: 1.06rem;
  line-height: 1.85;
  text-align: left;
  color: var(--ink);
}

/* --- Prose H2/H3 — consistent --- */
.prose h2 { font-size: 1.45rem; font-weight: 600; margin: 28px 0 10px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 22px 0 8px; }

/* --- Strong text in prose — bold & visible --- */
.prose strong, .prose b { font-weight: 700; color: var(--ink); }

/* --- FAQ / riset boxes — bigger text --- */
.rs-riset {
  font-size: .95rem;
  line-height: 1.75;
  padding: 14px 16px;
  margin: 12px 0;
}

/* --- Small muted text — readable minimum --- */
.small.muted, .muted { font-size: .84rem; }
.rs-sumber { font-size: .82rem; }

/* --- Mobile nav text — bigger on mobile --- */
.mobile-menu a { font-size: .95rem; padding: 12px 4px; }

/* ============================================================
   ARTIKEL GRID CARDS + MOBILE MENU SCROLL
   ============================================================ */

/* --- Mobile menu scroll --- */
.mobile-menu {
  max-height: 85vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   NAV v3 — Grid tanpa hamburger (mobile-friendly)
   ============================================================ */

/* Hide hamburger button completely */
.menu-btn, .menu-toggle { display: none !important; }

/* Nav links — always visible, grid on mobile */
.nav-links {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 8px;
  width: 100%;
  padding: 8px 0 4px;
  order: 3;
}
@media (min-width: 500px) { .nav-links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .nav-links { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { 
  .nav-links { 
    display: flex !important; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
  }
}

.nav-links a {
  display: block;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
@media (min-width: 900px) {
  .nav-links a {
    border: none;
    background: transparent;
    padding: 6px 10px;
    font-size: .84rem;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--teal-soft);
    color: var(--teal-deep);
  }
}

/* Hide old mobile menu (no longer needed) */
.mobile-menu { display: none !important; }

/* Header — logo on top, nav grid below */
.site-header .container, .site-header .header-inner {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.brand { margin: 0 auto 4px; }

.tk-search-btn { position: fixed; bottom: 20px; right: 20px; z-index: 1000; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ============================================================
   ARTIKEL LISTING — Beautiful card design
   ============================================================ */

.art-page-intro { text-align: center; padding: 0 0 10px; }
.art-page-intro h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 4px; }
.art-page-intro p { font-size: .92rem; color: var(--ink-2); }

/* Category section */
.art-category { margin: 20px 0 6px; }
.art-cat-title { 
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  padding: 0 0 6px; margin: 0 0 12px;
  border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 8px;
}
.art-cat-title .cat-icon { font-size: 1.3rem; }

/* Card grid */
.art-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 24px; }
@media (min-width: 500px) { .art-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .art-grid { grid-template-columns: repeat(3, 1fr); } }

/* Individual card */
.art-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.art-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.15); 
  border-color: var(--teal);
}

/* Accent stripe at top */
.art-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--coral);
}
.art-card.cat-tidur::before { background: #7C6FAA; }
.art-card.cat-mpasi::before { background: #E8A838; }
.art-card.cat-tumbuh::before { background: var(--teal); }
.art-card.cat-gigi::before { background: #5BA4CF; }
.art-card.cat-kesehatan::before { background: var(--coral); }

/* Card body */
.art-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.art-card .art-emoji { font-size: 1.5rem; margin-bottom: 6px; line-height: 1; }
.art-card h3 {
  font-family: var(--font-display); font-size: 1.04rem; font-weight: 700;
  margin: 0 0 6px; color: var(--ink); line-height: 1.35;
}
.art-card p {
  font-size: .88rem; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 10px; flex: 1;
}
.art-card .art-read {
  font-size: .82rem; font-weight: 700; color: var(--teal-deep);
  display: flex; align-items: center; gap: 4px;
}
.art-card .art-read::after { content: '→'; font-size: 1rem; }

/* ============================================================
   NAV v4 — Compact scroll pills (mobile) + flex bar (desktop)
   Hanya ~40px tinggi di mobile, tidak ganggu konten
   ============================================================ */

.menu-btn, .menu-toggle { display: none !important; }
.mobile-menu { display: none !important; }

.site-header { padding: 8px 0 0; }
.site-header .container, .site-header .header-inner {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.brand { margin: 0 auto 4px; }

/* === Nav: scroll horizontal pills (mobile) === */
.nav-links {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  width: 100%;
  padding: 6px 14px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Gradient themed background */
  background: linear-gradient(135deg, #FDF2E4 0%, #FBE8D8 50%, #FDF0E0 100%);
  border-bottom: 1.5px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nav-links::-webkit-scrollbar { display: none; }

/* Fade hint kanan — ada lagi yang bisa discroll */
.nav-links::after {
  content: '';
  flex: none;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--cream));
  position: sticky;
  right: 0;
}

.nav-links a {
  flex: none;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  animation: navFadeIn .4s ease both;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-links a:nth-child(1) { animation-delay: .02s; }
.nav-links a:nth-child(2) { animation-delay: .05s; }
.nav-links a:nth-child(3) { animation-delay: .08s; }
.nav-links a:nth-child(4) { animation-delay: .11s; }
.nav-links a:nth-child(5) { animation-delay: .14s; }
.nav-links a:nth-child(6) { animation-delay: .17s; }
.nav-links a:nth-child(7) { animation-delay: .20s; }
.nav-links a:nth-child(8) { animation-delay: .23s; }
.nav-links a:active {
  transform: scale(.96);
}
.nav-links a.active {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 2px 10px -3px rgba(200,82,46,.35);
}
.nav-links a:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* === Desktop: nav bar normal === */
@media (min-width: 720px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 2px 0 4px;
    gap: 2px 10px;
  }
  .nav-links a {
    font-size: .8rem;
    border: none;
    background: transparent;
    padding: 4px 8px;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--teal-soft);
    color: var(--teal-deep);
  }
}


/* --- Desktop header fix — banner tidak kepotong --- */
@media (min-width: 720px) {
  .site-header { padding: 12px 0 0; }
  .site-header .container, .site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
  }
  .brand { margin: 0 auto 8px; }
  .brand img { max-height: 48px; width: auto; }
}
@media (min-width: 1024px) {
  .site-header .container, .site-header .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
  .brand { margin: 0 16px 0 0; }
}
