/* ===========================================================
   모모, 테리 — 영유아 교육 사이트
   Base styles. Theme colors are injected as CSS vars on :root
   by the React app (driven by Tweaks).
   =========================================================== */

@font-face {
  font-family: 'Pretendard';
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
}

:root {
  /* defaults; overridden by JS theme */
  --primary: #7c5cc4;
  --primary-strong: #5e3fa6;
  --primary-soft: #b89fe0;
  --primary-tint: #efe9fa;
  --primary-tint-2: #f6f2fc;
  --accent: #f5a8c8;
  --bg: #f4f1f8;
  --surface: #ffffff;
  --ink: #2c2440;
  --muted: #8a82a0;
  --line: #ece7f4;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --heading-font: 'Pretendard', system-ui, sans-serif;
  --body-font: 'Pretendard', system-ui, sans-serif;

  --shadow-sm: 0 2px 10px rgba(60, 40, 100, 0.06);
  --shadow-md: 0 10px 30px rgba(70, 45, 120, 0.10);
  --shadow-lg: 0 20px 50px rgba(70, 45, 120, 0.16);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.app { min-height: 100vh; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--primary-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--primary-tint); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- play button ---------- */
.play {
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; color: var(--primary-strong);
  display: grid; place-items: center; border: none;
  box-shadow: var(--shadow-sm); flex: none;
  transition: transform .15s ease;
}
.play:hover { transform: scale(1.08); }
.play svg { width: 16px; height: 16px; margin-left: 2px; }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: var(--primary-tint); color: var(--primary-strong);
}
.badge-solid { background: var(--primary); color: #fff; }
.badge-accent { background: color-mix(in srgb, var(--accent) 22%, #fff); color: color-mix(in srgb, var(--accent) 60%, #3a2a3a); }

.chip {
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--muted); font-weight: 700; font-size: 14.5px;
  padding: 10px 18px; border-radius: 999px;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--primary-soft); color: var(--primary-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

/* ---------- card base ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- placeholder (image stand-in) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 8%, #fff) 0 10px,
      color-mix(in srgb, var(--primary) 14%, #fff) 10px 20px);
  display: grid; place-items: center;
  color: color-mix(in srgb, var(--primary-strong) 70%, #777);
}
.ph span {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.72); padding: 4px 9px; border-radius: 8px;
  text-align: center;
}

/* character round placeholder */
.face {
  border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-family: ui-monospace, Menlo, monospace; font-weight: 700;
  color: #fff;
}

/* ---------- section heading ---------- */
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  color: var(--primary); margin-bottom: 10px;
}
.sec-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.sec-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

section { padding: 56px 0; }

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 72px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--heading-font); flex: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.logo-img { height: 58px; width: auto; display: block; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-weight: 700; font-size: 15.5px; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; transition: all .15s ease;
}
.nav a:hover { color: var(--primary-strong); background: var(--primary-tint); }
.nav a.active { color: var(--primary-strong); background: var(--primary-tint); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.icon-logout-btn { border: none; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-logout-btn:hover { background: var(--primary-tint-2); color: var(--primary-strong); }
.icon-logout-btn svg { width: 17px; height: 17px; }

.burger { display: none; border: none; background: none; padding: 8px; color: var(--ink); }
.burger svg { width: 26px; height: 26px; }

.mobile-nav { display: none; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); padding: 46px 0 36px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col h5 { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 800; letter-spacing: .04em; }
.footer-col a { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; padding: 5px 0; opacity: .8; }
.footer-col a:hover { opacity: 1; color: var(--primary-strong); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===========================================================
   FORM FIELDS & LOGIN — shared by admin forms and site login
   =========================================================== */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.form-field .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.form-field input:not([type=checkbox]):not([type=radio]), .form-field textarea, .form-field select {
  width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:not([type=checkbox]):not([type=radio]):focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--primary-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .75; }
.form-field textarea { resize: vertical; min-height: 90px; }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, var(--primary-tint) 0%, var(--bg) 55%);
}
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0;
  background: linear-gradient(135deg, var(--primary-tint), color-mix(in srgb, var(--accent) 22%, #fff));
}
.login-wrap::before { width: 420px; height: 420px; top: -140px; left: -160px; }
.login-wrap::after { width: 320px; height: 320px; bottom: -140px; right: -120px; opacity: .8; }

.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 38px 34px 32px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.login-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 26px; }
.login-head .logo-mark { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
.login-head .logo-img { height: 84px; }
.login-head h1 { font-size: 20px; font-weight: 800; }
.login-head p { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.login-card .form-field label { font-size: 13px; }
.login-card .form-field { margin-bottom: 16px; }
.login-error {
  color: #c0392b; background: color-mix(in srgb, #c0392b 10%, #fff); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; margin: 2px 0 16px; text-align: center;
}
.login-card .btn { margin-top: 4px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 22px; }

/* ===========================================================
   HOME
   =========================================================== */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); margin-top: 20px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; }
.hero-stats div b { font-size: 26px; font-weight: 800; color: var(--primary-strong); font-family: var(--heading-font); }
.hero-stats div span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-blob {
  position: absolute; inset: 0; border-radius: 42% 58% 56% 44% / 50% 44% 56% 50%;
  background: linear-gradient(150deg, var(--primary-tint), color-mix(in srgb, var(--accent) 22%, #fff));
}
.hero-stage {
  position: absolute; inset: 8% 6% 5%;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-stage img.duo { max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 16px 22px rgba(40,70,110,.18)); }
.hero-card {
  position: absolute; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px; display: flex; align-items: center; gap: 12px;
}
.hero-card .face { width: 46px; height: 46px; font-size: 13px; }
.hero-card b { font-size: 15px; font-weight: 800; }
.hero-card small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* age strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-item { background: var(--surface); border-radius: var(--radius-sm); padding: 22px 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; }
.strip-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.strip-item b { display: block; font-weight: 800; font-size: 16px; }
.strip-item small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* recommended cards */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rec-card { overflow: hidden; }
.rec-card .thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: #000; }
.rec-card .thumb iframe { pointer-events: none; }
.rec-card .thumb .play { position: absolute; right: 12px; bottom: 12px; }
.rec-card .thumb .badge { position: absolute; left: 12px; top: 12px; }
.rec-body { padding: 16px 18px 20px; }
.rec-body .meta { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.rec-body h4 { font-size: 17px; font-weight: 800; margin: 7px 0 0; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { padding: 24px; display: flex; align-items: center; gap: 18px; cursor: pointer; }
.cat-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex: none; }
.cat-card b { display: block; font-size: 18px; font-weight: 800; }
.cat-card small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.cat-card .arrow { margin-left: auto; color: var(--primary-soft); transition: transform .15s ease; }
.cat-card:hover .arrow { transform: translateX(4px); color: var(--primary); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center; }
.step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-strong); font-family: var(--heading-font); font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 16px; }
.step h4 { font-size: 19px; font-weight: 800; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.band { background: var(--primary-tint-2); }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); border-radius: var(--radius-lg); padding: 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { opacity: .9; margin-top: 10px; }
.cta-band .btn-ghost { background: #fff; color: var(--primary-strong); }

/* ===========================================================
   MATERIALS PAGE
   =========================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; padding: 46px 0; text-align: center; position: relative; overflow: hidden;
}
.page-banner::after { content:''; position:absolute; right:-60px; top:-60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.page-banner::before { content:''; position:absolute; left:-40px; bottom:-80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); }
.page-banner .crumb { font-size: 13.5px; font-weight: 700; opacity: .85; margin-bottom: 12px; }
.page-banner h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.page-banner p { opacity: .9; margin-top: 12px; }

.tabs { display: flex; gap: 8px; background: var(--primary-tint); padding: 7px; border-radius: 999px; width: max-content; margin: -28px auto 0; position: relative; z-index: 2; box-shadow: var(--shadow-md); }
.tab { border: none; background: transparent; color: var(--primary-strong); font-weight: 800; font-size: 16px; padding: 12px 40px; border-radius: 999px; transition: all .18s ease; }
.tab.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.step-list-wrap {
  position: relative; z-index: 2; margin: -28px auto 0; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 2px;
  background: var(--surface); padding: 8px; border-radius: 20px; box-shadow: var(--shadow-md);
}
.step-list { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; scroll-behavior: smooth; }
.step-list::-webkit-scrollbar { display: none; }
.step-item { border: none; background: transparent; color: var(--muted); font-weight: 800; font-size: 14.5px; padding: 11px 20px; border-radius: 12px; transition: all .15s ease; white-space: nowrap; flex: none; }
.step-item:hover { background: var(--primary-tint-2); color: var(--primary-strong); }
.step-item.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.step-arrow { width: 38px; height: 38px; border-radius: 13px; border: none; background: transparent; color: var(--primary-strong); display: grid; place-items: center; flex: none; transition: background .15s ease, color .15s ease; }
.step-arrow:hover { background: var(--primary-tint); }
.step-arrow svg { width: 18px; height: 18px; }

.theme-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 30px 0 8px; }

/* week rail — floating scroll-following nav */
.week-rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-lg);
}
.week-rail button {
  border: none; background: transparent; color: var(--muted); font-weight: 800; font-size: 13.5px;
  padding: 10px 16px; border-radius: 12px; white-space: nowrap; text-align: left;
  transition: background .15s ease, color .15s ease;
}
.week-rail button:hover { background: var(--primary-tint-2); color: var(--primary-strong); }
.week-rail button.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

@media (max-width: 1280px) {
  .week-rail { display: none; }
}

.detail-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 38px; margin-top: 26px; }
.detail-head { text-align: center; padding-bottom: 26px; border-bottom: 2px dashed var(--line); }
.detail-head h2 { font-size: 26px; font-weight: 800; color: var(--primary-strong); }
.detail-meta { display: flex; gap: 18px; justify-content: center; margin-top: 14px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: 14px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary-soft); }

.goal-box { border: 2px solid var(--primary-tint); border-radius: var(--radius); padding: 26px 28px; margin-top: 28px; }
.goal-box .goal-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--primary-strong); margin-bottom: 16px; }
.goal-box ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 11px; }
.goal-box li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink); }
.goal-box li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

/* ---------- materials track picker (모모/테리) ---------- */
.track-pick {
  border: none; cursor: pointer; font-family: inherit; width: 100%;
  padding: 32px 30px; text-align: center; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.track-pick:hover { transform: translateY(-3px); }
.track-switch {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px 0 -6px; font-size: 14px; font-weight: 700; color: var(--muted);
}
.track-switch b { color: var(--ink); }
.track-switch button {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--primary-strong);
  font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.track-switch button:hover { border-color: var(--primary-soft); background: var(--primary-tint-2); }

/* ---------- download checklist (flat, editorial) ---------- */
.dl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px; }
.dl-multi-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--bg); padding: 5px 11px; border-radius: 999px;
}

.dl-rows {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
/* .dl-row reuses .activity-card (color/layout) but overrides its size — this is a
   deliberately smaller variant, hence the !important on the dimension props. */
.dl-row {
  border: none; width: 100%; cursor: pointer; font-family: inherit;
  padding: 14px 15px !important; min-height: 92px !important; border-radius: 16px !important;
  transition: transform .15s ease, box-shadow .2s ease;
}
.dl-row h4 { text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dl-row .ac-foot small { text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.dl-row:active { transform: scale(.98); }
.dl-row.checked { box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--primary) 55%, transparent), var(--shadow-md); }

.dl-row-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex: none;
  background: rgba(255,255,255,.85); display: grid; place-items: center;
  font-size: 15px; border: 2px solid rgba(255,255,255,.6);
}
.dl-row-check {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  background: rgba(255,255,255,.9); color: var(--primary-strong);
  display: grid; place-items: center;
}
.dl-row-check svg { width: 13px; height: 13px; opacity: .25; transition: opacity .2s ease; }
.dl-row.checked .dl-row-check svg { opacity: 1; }

.dl-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  border: none; border-radius: 14px; background: var(--primary-strong); color: #fff;
  font-weight: 700; font-size: 14.5px; padding: 14px; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.dl-cta:hover { background: color-mix(in srgb, var(--primary-strong) 88%, #000); }
.dl-cta:active { transform: scale(.99); }
.dl-cta.disabled { background: var(--line); color: var(--muted); cursor: not-allowed; pointer-events: none; }

.activity-head { display: flex; align-items: center; gap: 12px; margin: 36px 0 18px; }
.activity-head .wk { background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 999px; }
.activity-head h3 { font-size: 20px; font-weight: 800; }

.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.activity-card { border-radius: var(--radius); padding: 24px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.activity-card .ac-top { display: flex; justify-content: space-between; align-items: flex-start; }
.activity-card .ac-badge { background: rgba(255,255,255,.22); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.activity-card h4 { font-size: 21px; font-weight: 800; margin-top: 18px; max-width: 14ch; }
.activity-card .ac-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.activity-card .ac-foot small { font-weight: 700; opacity: .9; font-size: 13px; }

.chapter-list { display: grid; gap: 10px; margin-top: 14px; }
.chapter-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: all .15s ease; }
.chapter-row:hover { border-color: var(--primary-soft); background: var(--primary-tint-2); }
.chapter-row .ch-num { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-tint); color: var(--primary-strong); font-weight: 800; display: grid; place-items: center; flex: none; }
.chapter-row b { font-weight: 800; font-size: 15.5px; }
.chapter-row small { color: var(--muted); font-size: 13px; font-weight: 600; }
.chapter-row .ch-time { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ===========================================================
   FAMILY PAGE
   =========================================================== */
.week-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 34px 0 36px; }
.fam-col .fam-label { text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fam-card { border-radius: var(--radius); overflow: hidden; }
.fam-card .fam-thumb { aspect-ratio: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.fam-card .fam-thumb .badge { align-self: flex-start; background: rgba(255,255,255,.85); }
.fam-card .fam-thumb h4 { font-size: 22px; font-weight: 800; }
.fam-card .fam-thumb .play { position: absolute; right: 16px; bottom: 16px; }
.fam-card .fam-foot { padding: 14px 18px 18px; background: var(--surface); }
.fam-card .fam-foot b { font-weight: 800; font-size: 15px; }
.fam-card .fam-foot small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }

.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
.video-card { border-radius: var(--radius); overflow: hidden; position: relative; }
.video-card .v-thumb { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; }
.video-card .v-thumb .play { width: 54px; height: 54px; }
.video-card .v-thumb .v-tag { position: absolute; left: 14px; top: 14px; }
.video-card .v-foot { padding: 14px 18px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; }
.video-card .v-foot b { font-weight: 800; font-size: 16px; }
.video-card .v-foot small { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 920px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 380px; margin: 0 auto; width: 100%; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-rows { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .family-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .video-row { grid-template-columns: 1fr; max-width: 460px; margin: 14px auto 0; }

  .mobile-nav.open { display: block; position: fixed; inset: 72px 0 0; background: var(--surface); z-index: 49; padding: 20px 24px; }
  .mobile-nav.open a { display: block; font-size: 19px; font-weight: 800; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-nav.open a.active { color: var(--primary-strong); }
}

@media (max-width: 560px) {
  .step-list-wrap { margin-top: -20px; padding: 6px; }
  .step-arrow { width: 34px; height: 34px; }
  section { padding: 40px 0; }
  .wrap { padding: 0 18px; }
  .rec-grid, .strip, .cat-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 22px; }
  .cta-band { padding: 32px 24px; }
  .hero-stats { gap: 18px; }

  .dl-rows { grid-template-columns: 1fr; gap: 12px; }
}
