/* Mommies Kiddo home: colors and shapes taken from the logo.
   Ink "mommies", the four "kiddo" colors, and the yellow smile. */
:root {
  --ink: #232a33;
  --muted: #5d6670;
  --cream: #fffaf1;
  --white: #ffffff;
  --line: #efe6d6;

  --pink: #fb5274;
  --yellow: #fbb404;
  --green: #73c39a;
  --blue: #2baaf3;

  --pink-soft: #ffe8ed;
  --yellow-soft: #fff3d1;
  --green-soft: #e3f4ea;
  --blue-soft: #e1f2fd;

  --pink-ink: #c7264a;
  --green-ink: #2c7a52;
  --blue-ink: #0d72ad;
  --yellow-ink: #8a6200;

  --display: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-lg: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ── Top bar ─────────────────────────────── */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
}

.topbar {
  position: relative;
  display: flex;
  width: min(100%, 1200px);
  min-height: 76px;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo-slot,
.footer-logo-slot { display: block; flex: none; }

.logo-slot { width: 112px; height: 56px; margin-right: auto; }

.logo-slot img,
.footer-logo-slot img { width: 100%; height: 100%; object-fit: contain; }

.nav-link,
.login-link {
  font-size: 15px;
  font-weight: 600;
}

.nav-link:hover { color: var(--blue-ink); }

.login-link {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: transform 160ms ease;
}

.login-link:hover { transform: translateY(-1px); }

.nav-menu,
.mobile-links { display: none; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-switch button {
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

.mobile-lang { justify-self: start; margin: 4px 8px; }

/* Product menu */
.nav-product { position: relative; }

.nav-product-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.nav-product-toggle:hover { color: var(--blue-ink); }

.nav-caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.nav-product-toggle[aria-expanded="true"] .nav-caret { margin-top: 3px; transform: rotate(-135deg); }

.product-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 300px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(35, 42, 51, 0.12);
  transform: translateX(-50%);
}

.product-menu[hidden] { display: none; }

.product-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }

.product-item:hover,
.product-item:focus-visible { background: var(--cream); }

.product-icon {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #eef0ff;
}

.product-icon svg { width: 30px; height: 30px; }
.product-copy { display: grid; gap: 1px; }
.product-copy strong { font-size: 15px; line-height: 1.3; }
.product-copy span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.mobile-label {
  padding: 6px 12px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-divider { height: 1px; margin: 4px 8px; background: var(--line); }

/* ── Hero ────────────────────────────────── */
.hero { padding: 36px 0 0; }

.hero-inner {
  display: grid;
  width: min(100%, 1200px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.brand-dots i { width: 14px; height: 14px; border-radius: 50%; }
.brand-dots i:nth-child(1) { background: var(--pink); }
.brand-dots i:nth-child(2) { background: var(--yellow); }
.brand-dots i:nth-child(3) { background: var(--green); }
.brand-dots i:nth-child(4) { background: var(--blue); }

.hero h1,
.sen-hero h1 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* The highlighted line gets the logo's pink and its yellow smile underneath. */
.hero-highlight {
  display: inline;
  padding-bottom: 0.18em;
  color: var(--pink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 5 Q100 26 196 5' fill='none' stroke='%23fbb404' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-copy p {
  max-width: 46ch;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cta-btn {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 5px 0 #d99a00;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cta-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #d99a00; }
.cta-btn span { font-size: 22px; line-height: 1; }

.hero-visual { position: relative; padding: 24px; }

.photo-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 5 / 4.4;
  border: 8px solid var(--white);
  border-radius: 48px 48px 48px 140px;
  box-shadow: 0 30px 60px rgba(35, 42, 51, 0.14);
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

.blob { position: absolute; border-radius: 50%; }
.blob-yellow { top: 0; right: 0; width: 46%; aspect-ratio: 1; background: var(--yellow-soft); }
.blob-blue { bottom: 2px; left: 0; width: 30%; aspect-ratio: 1; background: var(--blue-soft); }

.heart {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 18%;
  width: 52px;
  height: 52px;
  transform: rotate(12deg);
}

.heart svg { width: 100%; height: 100%; fill: var(--pink); }

/* ── Stats ───────────────────────────────── */
.stats {
  display: grid;
  width: min(100% - 56px, 1144px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 48px auto 0;
}

.stat-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 22px 12px;
  border-radius: 24px;
  text-align: center;
}

.stat-item strong {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.1;
}

.stat-item span { font-size: 15px; font-weight: 700; }

.stat-pink { background: var(--pink-soft); color: var(--pink-ink); }
.stat-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.stat-green { background: var(--green-soft); color: var(--green-ink); }
.stat-blue { background: var(--blue-soft); color: var(--blue-ink); }

/* ── How we help ─────────────────────────── */
.how {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 28px 96px;
}

.work-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

.work-head h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

.work-head p { margin: 0; color: var(--muted); font-size: 18px; }

.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.work-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 2px 0 var(--line);
  transition: transform 180ms ease;
}

.work-card:hover { transform: translateY(-4px); }

.art-slot {
  display: grid;
  aspect-ratio: 4 / 3.2;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
}

.art-slot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

.card-pink .art-slot { background: var(--pink-soft); }
.card-yellow .art-slot { background: var(--yellow-soft); }
.card-green .art-slot { background: var(--green-soft); }
.card-blue .art-slot { background: var(--blue-soft); }

.work-copy { padding: 22px 22px 26px; }

.work-copy h3 {
  position: relative;
  margin: 0 0 6px;
  padding-left: 22px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.work-copy h3::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.card-pink h3::before { background: var(--pink); }
.card-yellow h3::before { background: var(--yellow); }
.card-green h3::before { background: var(--green); }
.card-blue h3::before { background: var(--blue); }

.work-copy p { margin: 0; color: var(--muted); font-size: 15px; }


/* ── Content bands (subjects, areas, steps, FAQ) ── */
.band { padding: 0 0 96px; }

.band-inner { width: min(100%, 1200px); margin: 0 auto; padding: 0 28px; }

.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.card-link { color: inherit; }
.card-link:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Levels + subjects */
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }

.level-card { display: grid; gap: 4px; padding: 20px; border-radius: 24px; }
.level-card strong { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.level-card span { font-size: 14px; line-height: 1.45; opacity: 0.85; }

.lv-pink { background: var(--pink-soft); color: var(--pink-ink); }
.lv-yellow { background: var(--yellow-soft); color: #7a5600; }
.lv-green { background: var(--green-soft); color: var(--green-ink); }
.lv-blue { background: var(--blue-soft); color: var(--blue-ink); }

.subject-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }

.subject-cloud li {
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
}

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.area-card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 2px 0 var(--line); }
.area-card h3 { margin: 18px 0 8px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.area-card p { margin: 0; color: var(--muted); }

.area-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; }
.area-icon svg { width: 28px; height: 28px; }
.area-home .area-icon { background: var(--green-soft); fill: var(--green-ink); }
.area-online .area-icon { background: var(--blue-soft); fill: var(--blue-ink); }

/* Steps */
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step-list li { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 2px 0 var(--line); }

.step-list b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.st-pink b { background: var(--pink); }
.st-yellow b { background: var(--yellow); color: var(--ink); }
.st-green b { background: var(--green); color: var(--ink); }
.st-blue b { background: var(--blue); color: var(--ink); }

.step-list h3 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-list { display: grid; max-width: 800px; gap: 12px; margin: 0 auto; }
.faq-list details { border-radius: 22px; background: var(--white); box-shadow: 0 2px 0 var(--line); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: #7a5600;
  font-size: 20px;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq-list a { color: var(--blue-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Closing call to action */
.cta-band { padding: 0 28px 96px; }

.cta-band-inner {
  width: min(100%, 1144px);
  margin: 0 auto;
  padding: 56px 32px;
  border-radius: 40px;
  background: var(--pink);
  color: var(--white);
  text-align: center;
}

.cta-band h2 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.cta-band p { margin: 0 0 28px; font-size: 18px; opacity: 0.92; }

/* ── Special-needs page ── */
.sen-hero { padding: 36px 0 88px; }

.art-frame {
  position: relative;
  z-index: 1;
  display: grid;
  aspect-ratio: 5 / 4;
  place-items: center;
  padding: 10%;
  border: 8px solid var(--white);
  border-radius: 48px 48px 48px 140px;
  background: var(--blue-soft);
  box-shadow: 0 30px 60px rgba(35, 42, 51, 0.12);
}

.art-frame img { width: 100%; height: 100%; object-fit: contain; }

.need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.need-card { padding: 30px 28px; border-radius: var(--radius-lg); }
.need-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 28px; font-weight: 600; }
.need-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.need-card li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; }

.need-card li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.nd-pink { background: var(--pink-soft); }
.nd-pink h3, .nd-pink li::before { color: var(--pink-ink); }
.nd-green { background: var(--green-soft); }
.nd-green h3, .nd-green li::before { color: var(--green-ink); }
.nd-blue { background: var(--blue-soft); }
.nd-blue h3, .nd-blue li::before { color: var(--blue-ink); }

/* ── Footer ──────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-radius: 48px 48px 0 0;
  background: var(--white);
  color: var(--muted);
  box-shadow: 0 -12px 40px rgba(35, 42, 51, 0.04);
}

.footer-inner {
  display: grid;
  width: min(100%, 1200px);
  grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 32px;
  margin: 0 auto;
  padding: 64px 28px calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Logo with the smile drawn underneath it, so the two always stay together. */
.footer-logo-slot {
  position: relative;
  width: 132px;
  height: 66px;
  margin-bottom: 30px;
}
.footer-logo-slot::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -26px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 30'%3E%3Cpath d='M8 6 Q66 44 124 6' fill='none' stroke='%23fbb404' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-smile { display: none; }

.footer-links { display: grid; align-content: start; justify-items: start; gap: 10px; }

.footer-links h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.footer-links a { font-size: 15px; }
.footer-links a:hover { color: var(--pink-ink); }

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1080px) {
  .work-grid,
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { gap: 12px; min-height: 64px; padding: 0 16px; }
  .logo-slot { width: 96px; height: 48px; }

  .nav-link,
  .login-link,
  .nav-product,
  .topbar > .lang-switch { display: none; }

  .nav-menu {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
  }

  .nav-menu span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

  .mobile-links:not([hidden]) {
    position: absolute;
    top: calc(100% + 6px);
    right: 16px;
    display: grid;
    min-width: 200px;
    gap: 2px;
    padding: 8px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 16px 32px rgba(35, 42, 51, 0.14);
  }

  .mobile-links a { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
  .mobile-links a:hover { background: var(--cream); }

  .hero { padding-top: 20px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 16px; text-align: center; }
  .brand-dots { justify-content: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; padding: 16px; }

  .stats { width: calc(100% - 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }

  .how { padding: 0 16px 72px; }
  .band { padding-bottom: 72px; }
  .band-inner { padding: 0 16px; }
  .section-head { margin-bottom: 28px; }
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .need-grid { grid-template-columns: minmax(0, 1fr); }
  .sen-hero { padding: 20px 0 64px; }
  .cta-band { padding: 0 16px 72px; }
  .cta-band-inner { padding: 40px 22px; border-radius: 32px; }
  .work-head { margin-bottom: 32px; }

  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 48px 20px calc(80px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner .footer-logo-slot { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero h1,
  .sen-hero h1 { font-size: 36px; }
  .hero-copy p { font-size: 16px; }
  .cta-btn { min-height: 54px; font-size: 18px; }
  .heart { width: 40px; height: 40px; }
  .stat-item { padding: 18px 8px; border-radius: 20px; }
  .work-grid,
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-card { padding: 24px; }
  .faq-list summary { padding: 18px 18px; font-size: 17px; }
  .faq-list details p { padding: 0 18px 18px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-links a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ── Blog ── */
.blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.blog-head h2 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.12; }
.blog-head p { margin: 0; color: var(--muted); font-size: 18px; }
.blog-all { color: var(--blue-ink); font-weight: 700; white-space: nowrap; }
.blog-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: 0 2px 0 var(--line); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 42, 51, 0.1); }
.post-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.post-cover { display: grid; aspect-ratio: 16 / 9; place-items: center; padding: 6%; }
.post-cover img { width: 100%; height: 100%; object-fit: contain; }
.pc-pink { background: var(--pink-soft); }
.pc-yellow { background: var(--yellow-soft); }
.pc-green { background: var(--green-soft); }
.pc-blue { background: var(--blue-soft); }
.post-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.post-topic { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pt-pink { background: var(--pink-soft); color: var(--pink-ink); }
.pt-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.pt-green { background: var(--green-soft); color: var(--green-ink); }
.pt-blue { background: var(--blue-soft); color: var(--blue-ink); }
.post-body h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.post-body p { margin: 0; color: var(--muted); font-size: 15px; }
.post-meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.post-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; }

.blog-tools { display: flex; align-items: center; gap: 8px; margin: 28px 0 32px; }
.blog-search { flex: none; display: flex; align-items: center; gap: 8px; width: 220px; height: 42px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.blog-search:focus-within { border-color: var(--ink); }
.blog-search svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.blog-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; }
.blog-filter { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.blog-filter::-webkit-scrollbar { display: none; }
.blog-filter-toggle { display: none; }
@media (max-width: 640px) {
  .blog-tools { flex-wrap: wrap; }
  .blog-search { flex: 1 1 100%; width: auto; }
  .blog-filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 42px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .blog-filter-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .blog-filter-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
  .blog-filter { display: none; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
  .blog-filter.is-open { display: flex; }
}
.blog-filter .chip-count { margin-left: 4px; opacity: .6; font-size: 12px; }
.blog-filter button { flex: none; white-space: nowrap; height: 42px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.blog-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.blog-hero { padding: 48px 28px 40px; text-align: center; }
.blog-hero h1 { margin: 12px 0 10px; font-family: var(--display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.08; }
.blog-hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.blog-hero .brand-dots { justify-content: center; }

/* Single post */
.article { width: min(100%, 760px); margin: 0 auto; padding: 32px 28px 72px; }
.article-back { display: block; width: fit-content; margin-bottom: 20px; color: var(--blue-ink); font-weight: 700; }
.article-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.article h1 { margin: 12px 0 12px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1.12; text-wrap: balance; }
.article .post-meta { display: block; margin-bottom: 28px; }
.article-cover { display: grid; aspect-ratio: 16 / 8; place-items: center; margin: 0 0 36px; padding: 5%; border-radius: 32px; }
.article-cover img { width: 100%; height: 100%; object-fit: contain; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.2; }
.article-body h3 { margin: 28px 0 8px; font-size: 19px; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body a { color: var(--blue-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.article-note { margin: 32px 0; padding: 22px 24px; border-radius: 22px; background: var(--yellow-soft); font-size: 16px; }
.article-note p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .blog-hero { padding: 28px 16px 32px; }
  .article { padding: 20px 16px 56px; }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 24px; }
}

/* Photo covers fill the frame; illustrations keep their padding. */
.post-cover:has(img[src*="blog-"]),
.post-cover:has(img[src*="berita-"]),
.article-cover:has(img[src*="blog-"]) { padding: 0; overflow: hidden; }
.post-cover img[src*="blog-"],
.post-cover img[src*="berita-"],
.article-cover img[src*="blog-"] { object-fit: cover; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Home: module showcase */
.home-modul { padding-top: 0; }
.home-modul-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.home-modul-card { display: grid; align-content: start; gap: 4px; min-height: 150px; padding: 18px; border-radius: 24px; color: #fff; text-decoration: none; transition: transform .15s; }
.home-modul-card:hover { transform: translateY(-3px); }
.hm-no { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.hm-t { font-weight: 700; line-height: 1.3; }
.hm-m { font-size: 13px; opacity: .85; }
.hm-blue { background: linear-gradient(135deg, #5866EF, #3B49DF); }
.hm-orange { background: linear-gradient(135deg, #F5A524, #F28B22); }
.hm-green { background: linear-gradient(135deg, #2BA36B, #14794A); }
.hm-pink { background: linear-gradient(135deg, #F0758C, #E5536F); }
.hm-purple { background: linear-gradient(135deg, #9B6CF0, #7344D6); }
.hm-spm { background: linear-gradient(135deg, #2C3558, #1B2340); }
@media (max-width: 900px) { .home-modul-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-modul-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .home-modul-card { min-height: 120px; padding: 14px; border-radius: 18px; } .hm-no { font-size: 28px; } }

/* Home: space between the hero and the blog showcase */
.hero + .blog { padding-top: 72px; }
@media (max-width: 760px) { .hero + .blog { padding-top: 48px; } }

/* ── Tutor agreement page ────────────────── */
.terms-hero { padding: 40px 0 24px; text-align: center; }
.terms-hero .brand-dots { justify-content: center; }
.terms-hero h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.1; }
.terms-hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.terms-inner { display: grid; gap: 14px; max-width: 820px; }
.terms-card { display: flex; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.terms-no { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.tn-pink { background: var(--pink-soft); color: var(--pink-ink); }
.tn-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tn-green { background: var(--green-soft); color: var(--green-ink); }
.tn-blue { background: var(--blue-soft); color: var(--blue-ink); }
.terms-card h2 { margin: 6px 0 8px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.terms-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.terms-card li { margin: 4px 0; }
.terms-box { padding: 20px 24px; border-radius: 24px; line-height: 1.6; }
.terms-disclaimer { background: var(--pink-soft); color: var(--pink-ink); }
.terms-note { background: var(--blue-soft); color: var(--blue-ink); }
.terms-back { justify-self: center; margin-top: 12px; }
@media (max-width: 560px) {
  .terms-hero { padding: 24px 0 16px; }
  .terms-card { gap: 14px; padding: 18px; border-radius: 20px; }
  .terms-no { width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }
  .terms-card h2 { margin-top: 4px; font-size: 18px; }
  .terms-box { padding: 18px; border-radius: 20px; }
}

/* ── Parent page ─────────────────────────── */
.parent-hero { padding: 40px 0 72px; text-align: center; }
.parent-hero .brand-dots { justify-content: center; }
.parent-hero h1 { max-width: 760px; margin: 0 auto 16px; font-family: var(--display); font-size: clamp(36px, 5.4vw, 60px); font-weight: 600; line-height: 1.08; }
.parent-hero p { max-width: 600px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.parent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.parent-link { color: var(--blue-ink); font-weight: 700; }
.parent-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.parent-chips li { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pc-pink { background: var(--pink-soft); color: var(--pink-ink); }
.pc-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.pc-green { background: var(--green-soft); color: var(--green-ink); }
.pc-blue { background: var(--blue-soft); color: var(--blue-ink); }
.parent-sen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; border-radius: 32px; background: var(--blue-soft); }
.parent-sen-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--blue-ink); font-size: 13px; font-weight: 700; }
.parent-sen h2 { margin: 12px 0 10px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; line-height: 1.15; }
.parent-sen p { margin: 0 0 22px; color: var(--muted); }
.parent-sen-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.parent-sen-list li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--white); }
.parent-sen-list b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--blue-ink); }
.parent-sen-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .parent-hero { padding: 24px 0 48px; }
  .parent-hero p { font-size: 16px; }
  .parent-sen { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; border-radius: 28px; text-align: center; }
  .parent-sen-list { text-align: left; }
}

/* ── Website account (Google sign-in) ────── */
button.login-link { border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.login-link.is-signed-in { background: var(--yellow); color: var(--ink); }
.nav-tutor { color: var(--muted); }
.mobile-account { margin: 4px 0; padding: 12px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mobile-account.is-signed-in { background: var(--yellow); color: var(--ink); }

body.acct-open { overflow: hidden; }
.acct-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.acct-modal[hidden] { display: none; }
.acct-backdrop { position: absolute; inset: 0; background: rgba(35, 42, 51, 0.45); }
.acct-card { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 24px 24px; border-radius: 28px; background: var(--white); box-shadow: 0 24px 60px rgba(35, 42, 51, 0.25); }
.acct-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.acct-h { margin: 0 0 6px; font-family: var(--display); font-size: 26px; font-weight: 600; }
.acct-p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.acct-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.acct-google:hover { border-color: var(--ink); }
.acct-google svg { width: 22px; height: 22px; }
.acct-fine, .acct-tutor { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.acct-tutor { padding-top: 14px; border-top: 1px solid var(--line); }
.acct-fine a, .acct-tutor a, .acct-check a { color: var(--blue-ink); font-weight: 700; text-decoration: underline; }
.acct-form { display: grid; gap: 12px; }
.acct-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.acct-form input:not([type=checkbox]), .acct-form select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.acct-form input:focus, .acct-form select:focus { outline: none; border-color: var(--ink); }
.acct-form .acct-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.acct-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.acct-primary { margin-top: 4px; padding: 14px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.acct-primary:disabled { opacity: .6; }
.acct-link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--pink-ink); font: inherit; font-weight: 700; cursor: pointer; }
.acct-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-ink); font-size: 14px; }
.priv-date { margin-top: 10px !important; font-size: 14px !important; }

/* Language-only blocks: "hidden" must win over any display rule. */
[data-lang-only][hidden] { display: none !important; }

/* Nav links centred on the page (logo left, account buttons right). */
.nav-center { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-center + .lang-switch { margin-left: auto; }
@media (min-width: 1180px) {
  .nav-center { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}
@media (max-width: 900px) { .nav-center { display: none; } }

/* Header after scrolling: white with a soft shadow, like the footer. */
.topbar-wrap { transition: background-color 200ms ease, box-shadow 200ms ease; }
.topbar-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(35, 42, 51, 0.06);
}

/* Blog comments (js/comments.js) */
.comments { width: min(100%, 760px); margin: 0 auto; padding: 0 28px 72px; }
.comments h2 { margin: 0 0 16px; font-family: var(--display); font-size: 28px; font-weight: 600; }
.cm-count { color: var(--muted); font-size: 20px; }
.cm-form { padding: 16px; border-radius: 22px; background: var(--white); box-shadow: 0 2px 0 var(--line); }
.cm-form textarea { display: block; width: 100%; min-height: 88px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.cm-form textarea:focus { border-color: var(--ink); outline: none; }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cm-hint { color: var(--muted); font-size: 13px; }
.cm-row button { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cm-row button:hover { opacity: 0.85; }
.cm-row button:disabled { opacity: 0.5; cursor: default; }
.cm-msg { margin: 8px 0 0; color: #2c7a52; font-size: 14px; font-weight: 600; }
.cm-msg:empty { display: none; }
.cm-msg.is-bad { color: #c7264a; }
.cm-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.cm-item { padding: 16px 18px; border-radius: 22px; background: var(--white); box-shadow: 0 2px 0 var(--line); }
.cm-head { display: flex; align-items: center; gap: 10px; }
.cm-avatar { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; }
.cm-head time { color: var(--muted); font-size: 13px; }
.cm-del { margin-left: auto; padding: 4px 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.cm-del:hover { color: #c7264a; }
.cm-body { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-empty { color: var(--muted); }

/* Home: news (two cards) and guides (one card) share a row, 2/3 and 1/3. */
.home-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 24px; }
.home-feed > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.home-feed-wide { grid-column: span 2; }
.home-feed-wide .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-feed-side .post-grid { grid-template-columns: minmax(0, 1fr); }
.home-feed .blog-head { flex-wrap: nowrap; align-items: start; }
.home-feed .blog-all { margin-top: 12px; }
@media (max-width: 900px) {
  .home-feed { display: block; }
  .home-feed > div { display: block; }
  .home-feed-side { margin-top: 48px; }
}
@media (max-width: 640px) {
  .home-feed-wide .post-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Tables inside articles (news dates) */
.article-body table { width: 100%; margin: 0 0 22px; border-collapse: collapse; font-size: 16px; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 2px solid var(--line); text-align: left; }
.article-body th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.news-figure { margin: 0 0 32px; }
.news-figure img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 24px; box-shadow: 0 2px 0 var(--line); }
.news-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
/* News cards show the whole poster, uncropped. */
.post-cover:has(img[src*="news-"]) { padding: 0; overflow: hidden; aspect-ratio: 1; }
.post-cover img[src*="news-"] { object-fit: cover; }
@media (max-width: 560px) {
  .article-body table { font-size: 14px; }
  .article-body th, .article-body td { padding: 8px 6px; }
}
/* Articles without a date line keep the gap under the title. */
.article h1 + .news-figure, .article h1 + .article-body, .article h1 + h1 + .news-figure, .article h1 + .article-cover, .article h1 + h1 + .article-cover { margin-top: 24px; }
