/* ============================================================
   The Family Ground — "Soft and friendly" (Concept 3)
   Forest #12503F · Sage #8FBC9F · Cream #F7F3EA · Ink #232A24
   Headings: Nunito · Body: Inter (Google Fonts)
   ============================================================ */

:root {
  --forest: #12503F;
  --forest-deep: #0B3A2D;
  --sage: #8FBC9F;
  --sage-soft: #DCEBDF;
  --sage-mist: #EFF5F0;
  --cream: #F7F3EA;
  --card: #FFFDF6;
  --ink: #232A24;
  --ink-soft: #4A524B;
  --ink-faint: #7A817B;
  --danger: #B3402E;
  --danger-soft: #F9E9E5;
  --line: rgba(18, 80, 63, 0.12);
  --shadow: 0 14px 34px rgba(18, 80, 63, 0.08);
  --shadow-lg: 0 18px 44px rgba(18, 80, 63, 0.14);
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 800; }
h4 { font-size: 1.05rem; font-weight: 800; }

p { margin: 0 0 1em; }
a { color: var(--forest); }
::selection { background: var(--sage); color: var(--forest); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* ---------- Floating pill nav ---------- */
.nav-float {
  position: sticky; top: 16px; z-index: 50;
  display: flex; justify-content: center;
  padding: 14px 16px 0;
}
.pill {
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 10px 22px;
  flex-wrap: wrap; justify-content: center;
  max-width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--forest);
  font-family: var(--font-head); font-weight: 900; font-size: 18px;
  margin-right: 14px; white-space: nowrap;
}
.leaf {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.pill nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pill nav a.nl {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 14.5px;
  padding: 9px 14px; border-radius: 999px; opacity: 0.75;
}
.pill nav a.nl:hover { opacity: 1; background: rgba(143, 188, 159, 0.22); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800; font-size: 15.5px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: none; cursor: pointer;
  text-align: center; line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-forest { background: var(--forest); color: var(--cream); box-shadow: 0 10px 24px rgba(18, 80, 63, 0.25); }
.btn-forest:hover { background: var(--forest-deep); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-soft { background: var(--sage-soft); color: var(--forest); }
.btn-soft:hover { background: var(--sage); color: var(--forest-deep); }
.btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline:hover { background: var(--sage-mist); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-google {
  background: #fff; color: var(--ink);
  border: 1px solid rgba(18, 80, 63, 0.16);
  box-shadow: 0 2px 8px rgba(35, 42, 36, 0.10);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-google:hover { background: var(--sage-mist); color: var(--ink); }
.btn-google svg { width: 20px; height: 20px; flex: none; }

.divider-or {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--ink-faint); font-size: 0.85rem;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; border-top: 1px solid rgba(18, 80, 63, 0.16);
}

/* ---------- Homepage hero ---------- */
.hero { text-align: center; padding: 70px 0 0; position: relative; }
.sun { width: 92px; height: 92px; margin: 0 auto 8px; display: block; }
.kicker {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--forest); background: var(--sage-soft);
  padding: 10px 22px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { max-width: 16em; margin: 0 auto 22px; }
.hero h1 .wiggle { position: relative; white-space: nowrap; }
.hero h1 .wiggle svg { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 14px; }
.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 36em; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.note { font-size: 13.5px; color: var(--ink-faint); font-weight: 500; }
.note b { color: var(--forest); }
.hills { display: block; width: 100%; height: auto; margin-top: 34px; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- "What's inside" ---------- */
.inside { background: var(--sage-soft); padding: 26px 0 100px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-head p { font-size: 17px; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border-radius: 28px; padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 80, 63, 0.07);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 64px; height: 64px; border-radius: 22px;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.flag {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest); background: rgba(143, 188, 159, 0.3);
  padding: 7px 15px; border-radius: 999px;
}

/* ---------- About section ---------- */
.about-sec { padding: 110px 0; text-align: center; position: relative; }
.about-sec .wrap-narrow { max-width: 700px; }
.stars { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.about-sec p { font-size: 18px; color: var(--ink-soft); margin-bottom: 16px; }
.about-sec p.big { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--forest); }
.textlink {
  font-family: var(--font-head); font-weight: 800; color: var(--forest);
  text-decoration: none; border-bottom: 3px solid var(--sage); padding-bottom: 2px;
}
.textlink:hover { background: rgba(143, 188, 159, 0.25); }

/* ---------- CTA card ---------- */
.cta-wrap { padding: 0 0 110px; }
.cta-card {
  background: var(--forest); border-radius: 36px;
  padding: 80px 40px; text-align: center; color: var(--cream);
  position: relative; overflow: hidden;
}
.cta-card .deco { position: absolute; opacity: 0.16; }
.cta-card h2 { color: var(--cream); font-size: clamp(2rem, 4.4vw, 3.25rem); margin-bottom: 16px; position: relative; }
.cta-card p { font-size: 18px; color: rgba(247, 243, 234, 0.85); max-width: 32em; margin: 0 auto 34px; position: relative; }
.cta-card .cta-row { position: relative; }
.priceline { margin-top: 26px !important; font-size: 14.5px !important; color: rgba(247, 243, 234, 0.7) !important; position: relative; }
.blogline { margin-top: 10px; font-size: 14.5px; color: rgba(247, 243, 234, 0.7); position: relative; }
.blogline a { color: var(--sage); font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding: 64px 0 20px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lede { font-size: 18px; }

/* ---------- Forms ---------- */
.form-section { padding: 40px 0 100px; }
.form-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 48px 44px;
  border: 1px solid rgba(18, 80, 63, 0.08);
  max-width: 560px; margin: 0 auto;
}
.form-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-align: center; margin-bottom: 10px; }
.form-card > p.lead { text-align: center; color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.badge {
  display: inline-block;
  background: var(--sage-soft); color: var(--forest);
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.badge-row { text-align: center; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; color: var(--ink); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 2px solid rgba(18, 80, 63, 0.14);
  border-radius: 16px;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(143, 188, 159, 0.25);
}
.form-hint { font-size: 0.85rem; color: var(--ink-faint); margin-top: 6px; }

.form-error {
  display: none;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid rgba(179, 64, 46, 0.3);
  border-radius: 16px; padding: 12px 16px;
  font-size: 0.92rem; margin-bottom: 20px;
}
.form-error.visible { display: block; }
.form-success {
  display: none;
  background: var(--sage-mist); color: var(--forest-deep);
  border: 1px solid rgba(18, 80, 63, 0.25);
  border-radius: 16px; padding: 12px 16px;
  font-size: 0.92rem; margin-bottom: 20px;
}
.form-success.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.divider { border: none; border-top: 1px solid rgba(18, 80, 63, 0.14); margin: 32px 0; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.95rem; color: var(--ink-soft); }
.perk-list { padding-left: 1.2em; color: var(--ink-soft); margin: 0 0 28px; font-size: 15.5px; }
.perk-list li { margin-bottom: 0.6em; }
.price-note { text-align: center; font-weight: 700; color: var(--forest); margin-bottom: 20px; }

/* ---------- Dashboard ---------- */
.dash-wrap { padding: 36px 0 110px; }
.dashboard-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 30px;
}
.dashboard-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.dash-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.member-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 999px;
  padding: 8px 18px 8px 8px;
  box-shadow: var(--shadow);
  font-size: 0.92rem; font-weight: 700; color: var(--forest);
  border: 1px solid rgba(18, 80, 63, 0.08);
}
.member-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
}

/* Tabs */
.tabs {
  display: inline-flex; gap: 6px;
  background: var(--card);
  border: 1px solid rgba(18, 80, 63, 0.08);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 6px; margin-bottom: 36px;
  max-width: 100%; overflow-x: auto;
}
.tab {
  background: none; border: none;
  font-family: var(--font-head); font-size: 15px; font-weight: 800;
  color: var(--ink-faint);
  padding: 12px 22px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--forest); background: var(--sage-mist); }
.tab.active { color: var(--cream); background: var(--forest); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-card {
  background: var(--card);
  border-radius: 28px; padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 80, 63, 0.07);
  margin-bottom: 28px;
}
.panel-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Chores */
.chore-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 20px;
  padding: 16px 18px; margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 80, 63, 0.07);
}
.chore-check {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--sage); background: #fff;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chore-check:hover { transform: scale(1.08); }
.chore-check.done { background: var(--forest); border-color: var(--forest); }
.chore-info { flex: 1; min-width: 0; }
.chore-title { font-weight: 600; margin: 0; }
.chore-meta { font-size: 0.85rem; color: var(--ink-faint); margin: 2px 0 0; }
.chore-delete {
  background: none; border: none; color: var(--ink-faint);
  cursor: pointer; font-size: 1.25rem; padding: 6px 10px; border-radius: 12px;
  font-family: var(--font-body);
}
.chore-delete:hover { color: var(--danger); background: var(--danger-soft); }

.week-grid { overflow-x: auto; margin-top: 8px; }
.week-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); min-width: 560px;
  border: 1px solid rgba(18, 80, 63, 0.07);
}
.week-table th, .week-table td { padding: 12px 8px; text-align: center; font-size: 0.9rem; border-bottom: 1px solid rgba(18, 80, 63, 0.08); }
.week-table th { background: var(--sage-soft); color: var(--forest); font-family: var(--font-head); font-weight: 800; font-size: 0.82rem; }
.week-table th:first-child, .week-table td:first-child { text-align: left; padding-left: 18px; }
.week-table tr:last-child td { border-bottom: none; }
.day-cell { cursor: pointer; }
.day-dot {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(18, 80, 63, 0.18);
  align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff;
  transition: all 0.15s ease;
}
.day-dot.done { background: var(--forest); border-color: var(--forest); }
.day-cell:hover .day-dot:not(.done) { border-color: var(--sage); transform: scale(1.1); }

/* Agreement builder */
.agreement-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.agreement-preview {
  background: var(--card); border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  border-top: 8px solid var(--forest);
  position: sticky; top: 92px;
}
.agreement-preview h2 { text-align: center; }
.agreement-preview h4 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 1.6em 0 0.5em; border-bottom: 2px solid var(--sage-soft); padding-bottom: 6px;
}
.agreement-preview ol, .agreement-preview ul { padding-left: 1.3em; color: var(--ink-soft); }
.agreement-preview li { margin-bottom: 0.4em; }
.signature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.signature-line { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 0.9rem; }
.signature-line strong { display: block; font-size: 1.02rem; }
.agreement-date { text-align: center; margin-top: 20px; color: var(--ink-soft); font-size: 0.92rem; }

.saved-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.saved-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sage-mist); border-radius: 18px; padding: 12px 18px;
}
.saved-item strong { font-size: 0.95rem; }
.saved-actions { display: flex; gap: 4px; }
.link-btn {
  background: none; border: none; color: var(--forest);
  font-family: var(--font-head); font-weight: 800; font-size: 0.9rem;
  cursor: pointer; padding: 6px 8px; border-radius: 10px;
}
.link-btn:hover { background: rgba(143, 188, 159, 0.3); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { background: var(--danger-soft); }

/* Courses (inside membership) */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card h3 { margin-bottom: 8px; }
.course-status {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.status-members { background: var(--forest); color: var(--cream); }
.status-soon { background: rgba(18, 80, 63, 0.10); color: var(--ink-soft); }
.lesson-count { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 12px; }

.lesson-list { margin: 18px 0 0; padding: 0; list-style: none; }
.lesson-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(18, 80, 63, 0.10);
  font-size: 0.95rem;
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-soft); color: var(--forest);
  font-family: var(--font-head); font-weight: 800; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.lesson-check {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  transition: background 0.15s ease; font-size: 0.95rem;
}
.lesson-check:hover { background: var(--sage-mist); }
.lesson-check input { width: 22px; height: 22px; accent-color: var(--forest); cursor: pointer; flex-shrink: 0; }
.lesson-check span.done { text-decoration: line-through; color: var(--ink-faint); }

.progress { height: 10px; background: rgba(18, 80, 63, 0.10); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--forest)); border-radius: 999px; transition: width 0.4s ease; }
.progress-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Story page ---------- */
.story p { font-size: 18px; color: var(--ink-soft); margin-bottom: 1.2em; }
.story p.big { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--forest); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 0 0 44px; }
footer .fin { text-align: center; }
footer .links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 26px 0; }
footer .links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
footer .links a:hover { color: var(--forest); }
footer .copy { font-size: 13px; color: var(--ink-faint); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .agreement-layout { grid-template-columns: 1fr; }
  .agreement-preview { position: static; }
  .hero { padding-top: 46px; }
  .cta-card { padding: 56px 26px; border-radius: 28px; }
  .about-sec { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .pill nav a.nl { padding: 8px 10px; font-size: 13.5px; }
  .brand { font-size: 16px; margin-right: 6px; }
  .form-card { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .panel-card { padding: 28px 20px; }
  .signature-block { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 12px 10px; font-size: 13.5px; }
}

/* ---------- Print (family agreement) ----------
   Dashboard copies the agreement into #printArea (a direct child
   of <body>) and calls window.print(). Only #printArea prints. */
#printArea { display: none; }

@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  body { background: #fff; font-size: 12pt; }
  #printArea .pa-doc { max-width: 100%; color: #000; }
  #printArea h2 { text-align: center; color: #000; margin-bottom: 0.3em; font-size: 20pt; font-family: var(--font-body); }
  #printArea .pa-sub { text-align: center; color: #333; margin-bottom: 1.2em; }
  #printArea h4 {
    color: #000; text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 11pt; border-bottom: 2px solid #000; padding-bottom: 4px;
    margin: 1.4em 0 0.5em; font-family: var(--font-body);
  }
  #printArea ol, #printArea ul { padding-left: 1.4em; }
  #printArea li { margin-bottom: 0.35em; }
  #printArea .pa-sigs { display: flex; gap: 40px; margin-top: 40px; }
  #printArea .pa-sig { flex: 1; border-top: 2px solid #000; padding-top: 6px; font-size: 10pt; }
  #printArea .pa-sig strong { display: block; font-size: 12pt; }
  #printArea .pa-date { text-align: center; margin-top: 28px; color: #333; }
}

/* ---------- Kids: parent tab + kid pages ---------- */
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; color: var(--ink); }
.check-row input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; }

.code-reveal { margin-top: 20px; padding: 20px; background: var(--sage-soft); border-radius: 20px; text-align: center; }
.invite-code {
  font-family: var(--font-head); font-weight: 900; font-size: 2.6rem;
  letter-spacing: 0.3em; text-indent: 0.3em; color: var(--forest); margin: 4px 0;
}
.invite-code.sm { font-size: 1.5rem; }

.kid-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kid-card-head h3 { margin: 0; }
.kid-card h4 { color: var(--forest); margin-bottom: 12px; }

.review-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.review-item .chore-info { flex: 1; min-width: 0; }
.review-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.note-input { margin-top: 10px; }
.proof-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex: none; }

/* Kid-facing pages */
.kid-hero { text-align: center; margin-bottom: 32px; }
.kid-sun { width: 72px; height: 72px; margin-bottom: 8px; }
.form-card.kid-card { text-align: center; }
.form-card.kid-card .form-group { text-align: left; }
.code-input {
  text-align: center; font-size: 1.5rem; font-weight: 800;
  letter-spacing: 0.25em; text-indent: 0.25em; text-transform: uppercase;
}
.kid-chip { font-weight: 800; color: var(--forest); }
.kid-chore {
  background: var(--card); border-radius: 20px;
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.kid-chore-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.photo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--sage);
  color: var(--forest); font-weight: 800; cursor: pointer; background: var(--sage-soft);
}
.parent-says {
  background: #FFF6DE; border-left: 4px solid #E8B93C;
  padding: 10px 12px; border-radius: 0 12px 12px 0;
  margin-top: 8px; font-weight: 600; color: var(--ink);
}
.celebrate {
  background: var(--forest); color: var(--cream); font-weight: 800;
  border-radius: 20px; padding: 16px 20px; margin-bottom: 14px; text-align: center;
}

@media (max-width: 640px) {
  .invite-code { font-size: 2rem; }
  .review-item { flex-wrap: wrap; }
  .proof-img { width: 100%; height: 180px; }
}
