/* Pocket Piggy — matches the app: Baloo 2 display face, ink navy,
   cream page, chunky 24px corners, one accent purple. */
:root {
  --ink: #1b1f3b;
  --cream: #fdf9f3;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --pig: #ff7a7a;
  --spend: #3f9c62;
  --save: #d99a2b;
  --give: #8b5cf6;
  --muted: #6b7280;
  --card: #ffffff;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
a { color: var(--purple-dark); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header / hero */
header.site { padding: 28px 0 0; }
.site-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--purple); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; }
.hero { text-align: center; padding: 48px 0 40px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); margin: 18px 0 10px; }
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.hero svg.penny { width: 120px; height: 120px; }
.cta { display: inline-block; background: var(--purple); color: #fff; text-decoration: none; font-weight: 700; padding: 15px 28px; border-radius: 999px; font-family: "Baloo 2", sans-serif; font-size: 18px; }
.cta:hover { background: var(--purple-dark); }
.fineprint { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Sections */
section { padding: 44px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 3px rgba(27,31,59,.06); }
.card h3 { margin: 10px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.emoji { font-size: 28px; line-height: 1; }

/* Buckets strip */
.buckets { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bucket { border-radius: 18px; padding: 14px 20px; font-family: "Baloo 2", sans-serif; font-weight: 700; }
.bucket.spend { background: rgba(63,156,98,.12); color: var(--spend); }
.bucket.save { background: rgba(217,154,43,.14); color: var(--save); }
.bucket.give { background: rgba(139,92,246,.12); color: var(--give); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.price { background: var(--card); border-radius: var(--radius); padding: 26px; }
.price.featured { outline: 3px solid var(--purple); }
.price h3 { margin: 0 0 4px; font-size: 24px; }
.price .amount { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 34px; margin: 6px 0 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 18px; }
.price li { padding: 6px 0; color: var(--muted); }

/* FAQ + legal prose */
details { background: var(--card); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; font-family: "Baloo 2", sans-serif; font-size: 18px; }
details p { color: var(--muted); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.back { display: inline-block; margin: 24px 0 8px; text-decoration: none; font-weight: 700; }

/* Footer */
footer { background: var(--ink); color: #cbd0e8; margin-top: 40px; padding: 34px 0; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
footer .foot-nav a { display: block; padding: 3px 0; }
footer .foot-head { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: #8b93bd; margin: 0 0 6px; }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
footer .social { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .15s; }
footer .social a:hover { background: var(--purple); text-decoration: none; }
footer .social svg { width: 20px; height: 20px; }
footer .copy { text-align: center; color: #8b93bd; font-size: 14px; margin: 14px 0 0; }
footer .social + .copy { margin-top: 22px; }

/* Screenshots */
#screens .wrap { max-width: 1100px; }
#screens img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(27,31,59,.14); display: block; }
.shot-lead { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.shot-lead h3 { font-size: 26px; margin: 0 0 8px; }
.shot-lead p { color: var(--muted); margin: 0; }
/* The App Store preview, sized like the phone screenshots it sits among. */
.preview-video { display: block; width: 100%; max-width: 340px !important; aspect-ratio: 540 / 1170; height: auto; border-radius: 18px; background: #fbf7f0; box-shadow: 0 10px 30px rgba(27,31,59,.14); }
/* A portrait iPad shot and a landscape TV shot at matched *widths* end up
   wildly different heights side by side, so they are matched by height
   instead. Two things this has to get right:
   - The image must centre inside its own figure. A figure is sized by its
     widest child, which is the caption, not the picture; without an explicit
     centre the picture sits flush against the caption's left edge and reads
     as broken alignment.
   - When the pair is too wide for the viewport the images must SHRINK, not
     wrap. Wrapping drops a 270px-wide tablet shot onto one line and a
     700px-wide TV shot onto the next, at wildly different scales. */
.shot-row { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.shot-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; min-width: 0; }
#screens .shot-row img { width: auto; height: auto; max-height: 390px; max-width: 100%; margin: 0 auto; }
#screens .shot-row .narrow-figure img { max-height: 460px; }
.shot-row figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; text-align: center; max-width: 34ch; }
@media (max-width: 640px) {
  .shot-row { flex-direction: column; align-items: center; }
  .shot-lead { grid-template-columns: 1fr; gap: 16px; }
  .shot-lead img { max-width: 260px; margin: 0 auto; }
  /* !important because the tag carries an inline max-width:100% so the
     video can never overflow the screen when this stylesheet is stale or
     missing; these caps must still win when it loads. */
  .preview-video { max-width: 260px !important; margin: 0 auto; }
  /* A landscape TV shot capped to a portrait phone's width becomes an
     unreadable strip, so cap by height and let each shape take the width
     its own aspect ratio needs. */
  #screens .shot-row img, #screens .shot-row .narrow-figure img { max-height: 420px; max-width: 100%; }
}

/* Penny: breathing, blinking, and a line when you say hello */
.penny-stage { position: relative; display: inline-block; cursor: pointer; outline: none; }
.penny-stage svg.penny { width: 120px; height: 120px; display: block; overflow: visible; }
.penny-body { transform-origin: 100px 160px; animation: breathe 3.6s ease-in-out infinite; }
.penny-stage:hover .penny-body,
.penny-stage:focus-visible .penny-body { animation: wiggle .5s ease-in-out; }
.penny-stage .eyes { transform-origin: 100px 88px; transition: transform .08s ease; }
.penny-stage.blinking .eyes { transform: scaleY(.12); }
.penny-stage .ear-l { transform-origin: 57px 60px; }
.penny-stage .ear-r { transform-origin: 143px 60px; }
.penny-stage:hover .ear-l { animation: earTwitch .5s ease-in-out; }
.penny-stage:hover .ear-r { animation: earTwitch .5s ease-in-out reverse; }

.penny-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px) scale(.92);
  width: max-content; max-width: 260px; padding: 10px 14px;
  background: #fff; color: var(--ink); border-radius: 16px;
  font-family: "Baloo 2", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.35;
  box-shadow: 0 8px 24px rgba(27,31,59,.18);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.penny-bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #fff;
}
.penny-stage.talking .penny-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes earTwitch { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) {
  .penny-body, .penny-stage:hover .penny-body, .penny-stage .ear-l, .penny-stage .ear-r { animation: none !important; }
}


/* Feature and comparison pages */
.page-hero { text-align: center; padding: 40px 0 24px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 54px); margin: 14px auto 10px; max-width: 820px; }
.page-hero p.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.hero-penny { display: block; margin: 0 auto; }
.reviewed { display: inline-block; background: var(--card); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0; }
.prose { padding-top: 12px; padding-bottom: 12px; }
.prose h2 { font-size: clamp(24px, 3.6vw, 30px); margin: 40px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 4px; }
.prose p, .prose li { color: #3b3f5c; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose-shot { margin: 28px auto; text-align: center; }
.prose-shot img { max-width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(27,31,59,.14); display: block; margin: 0 auto; }
.prose-shot.narrow-shot img { max-height: 520px; width: auto; }
.prose-shot figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.prose-prices { margin: 18px 0; }
.prose-prices .price li { color: var(--muted); }
.facts { list-style: none; padding: 0 !important; }
.facts li { background: var(--card); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.src { color: var(--muted); font-size: 14px; white-space: normal; }
.src a { color: var(--purple-dark); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 18px 0; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; font-size: 16px; }
.compare-table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 14px; padding-top: 8px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee7dc; }
.compare-table thead th { font-family: "Baloo 2", sans-serif; font-size: 17px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.note { background: rgba(139,92,246,.08); border-left: 4px solid var(--purple); border-radius: 12px; padding: 14px 18px; }
.small-print { color: var(--muted) !important; font-size: 14px; margin-top: 36px; }
.cta-band { text-align: center; }
.cta-band .wrap { background: var(--card); border-radius: var(--radius); padding: 34px 24px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 20px; }
.cta-band .fineprint { margin: 14px 0 0; }
.link-card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,31,59,.12); }
.link-card h3 { margin-top: 0; color: var(--purple-dark); }
.not-found { padding: 70px 0 40px; }
.not-found-links { margin-bottom: 26px; }
@media (max-width: 640px) {
  header.site { padding-top: 18px; }
  .site-bar { justify-content: center; }
  .site-nav { justify-content: center; }
  .cta-band .wrap { border-radius: 0; }
}

/* Chore app price chart: scrolls sideways on phones with the feature
   column pinned. Pocket Piggy's column gets a light tint; every other
   column is styled the same, never negatively. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chart-wrap { max-width: 1100px; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: var(--card); box-shadow: 0 1px 3px rgba(27,31,59,.06); }
.chart-scroll:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.chart-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font-size: 15px; }
.chart-table caption { caption-side: top; text-align: left; padding: 14px 16px 4px; color: var(--muted); font-size: 14px; }
.chart-table th, .chart-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #eee7dc; }
.chart-table thead th { font-family: "Baloo 2", sans-serif; font-size: 17px; line-height: 1.2; }
.chart-table tbody tr:last-child th, .chart-table tbody tr:last-child td { border-bottom: 0; }
.chart-table tr > th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); width: 170px; min-width: 150px; font-weight: 700; box-shadow: 1px 0 0 #eee7dc; }
.chart-table .pp-col { background: rgba(139,92,246,.09); font-weight: 600; }
.chart-table .cite { font-size: 11px; margin-left: 2px; }
.chart-table .cite a { text-decoration: none; }
.chart-note { color: var(--muted); font-size: 14px; max-width: 760px; margin: 14px auto 0; }
.sources li { overflow-wrap: anywhere; font-size: 15px; }
.sources li:target { background: rgba(139,92,246,.1); border-radius: 8px; }
@media (max-width: 640px) {
  .chart-wrap { padding: 0 12px; }
  .chart-table tr > th:first-child { width: 120px; min-width: 120px; }
}

/* ---- Free tools: printable charts, chart maker, allowance calculator ---- */
/* Layout rules like display:grid must never un-hide a [hidden] element. */
[hidden] { display: none !important; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.tool-hero { padding-top: 22px; }

/* Downloads on the age pages */
.downloads { background: var(--card); border-radius: var(--radius); padding: 22px 22px 8px; margin: 8px 0 12px; }
.downloads h2 { margin-top: 0 !important; }
.dl-row h3 { font-size: 18px; margin: 16px 0 8px; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.dl-btn { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--purple); color: var(--purple-dark); text-decoration: none; background: #fff; min-height: 44px; }
.dl-btn:hover, .dl-btn:focus-visible { background: rgba(139,92,246,.08); }
.dl-paper { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 18px; }
.dl-paper::before { content: "⤓ "; }
.dl-meta { font-size: 13px; color: var(--muted); }
.chore-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.chore-group { background: var(--card); border-radius: 18px; padding: 14px 18px; }
.chore-group h3 { margin: 0 0 6px !important; font-size: 18px; }
.chore-group ul { margin: 0; padding-left: 18px; }
.chore-group li { font-size: 16px; margin-bottom: 4px; }
.age-card h3 { font-size: 26px; }
.age-card-go { display: block; margin-top: 10px; font-weight: 700; color: var(--purple-dark); font-size: 15px; }

/* Shared tool layout and form controls */
.tool { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; margin-bottom: 20px; }
.tool-form { background: var(--card); border-radius: var(--radius); padding: 22px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.tool input[type="text"], .tool input[type="number"], .tool select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; min-height: 44px;
  padding: 9px 12px; border: 1.5px solid #ddd5c6; border-radius: 12px; }
.tool input:focus-visible, .tool select:focus-visible, .tool button:focus-visible, .tool input[type="range"]:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.choice input { width: 20px; height: 20px; accent-color: var(--purple); margin: 0; }
.choice label { font-weight: 500; }
.btn-secondary, .icon-btn { font: inherit; font-weight: 700; border-radius: 12px; border: 1.5px solid #ddd5c6; background: #fff; color: var(--ink); cursor: pointer; min-height: 44px; }
.btn-secondary { padding: 8px 16px; }
.btn-secondary:disabled, .icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn { width: 44px; flex: 0 0 44px; font-size: 16px; }
.icon-btn.remove { color: #9a3b3b; }
.print-btn { border: 0; cursor: pointer; width: 100%; }
.chore-edit { list-style: none; padding: 0; margin: 0 0 10px; counter-reset: chore; }
.chore-edit li { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; counter-increment: chore; }
.chore-edit li::before { content: counter(chore); width: 20px; flex: 0 0 20px; color: var(--muted); font-size: 14px; text-align: right; }
.chore-edit input { flex: 1; min-width: 0; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; }
.tool-preview { min-width: 0; position: sticky; top: 16px; }
.tool-preview .eyebrow { text-align: left; margin-bottom: 10px; }
.preview-scroll { width: 100%; }
#cm-preview { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 8px 28px rgba(27,31,59,.16); background: #fff; }
#cm-preview .pc-sheet { position: absolute; top: 0; left: 0; transform-origin: top left; }
#print-root { display: none; }

/* The printable chart (preview and print share this) */
.pc-sheet { width: var(--page-w); height: calc(var(--page-h) - 0.02in); padding: 0.45in; background: #fff; color: #1b1f3b;
  display: flex; flex-direction: column; overflow: hidden; font: 11pt/1.25 -apple-system, "Helvetica Neue", Arial, sans-serif;
  --row-h: calc((var(--page-h) - 3.95in) / var(--rows)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; height: 0.9in; }
.pc-title { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 32pt; line-height: 1; }
.pc-penny { width: 0.85in; height: 0.85in; }
.pc-fields { display: flex; gap: 24px; height: 0.55in; align-items: center; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13pt; }
.pc-fields > div { flex: 1; display: flex; align-items: flex-end; gap: 8px; }
.pc-fields .pc-name { flex: 1.6; }
.pc-line { flex: 1; border-bottom: 1.5px solid #1b1f3b; min-height: 1.3em; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; font-weight: 600; padding-left: 4px; }
.pc-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1.5px solid #cdbffa; border-radius: 12px; overflow: hidden; }
.pc-weekly .pc-chore-col { width: 31%; }
.pc-monthly .pc-chore-col { width: 20%; }
.pc-table thead th { background: #f4f0fe; font-family: "Baloo 2", sans-serif; font-weight: 700; height: 0.4in; text-align: center; border-bottom: 1.5px solid #cdbffa; padding: 0; }
.pc-table thead th:first-child { text-align: left; padding-left: 10px; }
.pc-weekly thead th { font-size: 12pt; }
.pc-monthly thead th { font-size: 7.5pt; }
.pc-table tbody tr { height: var(--row-h); }
.pc-table tbody th { text-align: left; font-weight: 600; padding: 2px 8px 2px 10px; border-top: 1px solid #e7e0fb; vertical-align: middle; }
.pc-weekly tbody th { font-size: 11.5pt; }
.pc-monthly tbody th { font-size: 8.5pt; line-height: 1.1; }
.pc-chore { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-table tbody td { text-align: center; vertical-align: middle; border-top: 1px solid #e7e0fb; border-left: 1px solid #efeafc; padding: 0; }
.pc-table tbody tr:first-child > * { border-top: 0; }
.pc-box { display: inline-block; border: 1.6px solid #b9a6f7; border-radius: 6px; vertical-align: middle; }
.pc-weekly .pc-box { width: min(28px, calc(var(--row-h) * 0.55)); height: min(28px, calc(var(--row-h) * 0.55)); }
.pc-monthly .pc-box { width: 11px; height: 11px; border-width: 1.2px; border-radius: 3px; }
.pc-write { display: block; border-bottom: 1px dashed #c9c3d9; height: 1.1em; }
.pc-table tfoot th, .pc-table tfoot td { background: #fdf6e7; border-top: 1.5px solid #cdbffa; height: 0.55in; vertical-align: middle; font-family: "Baloo 2", sans-serif; }
.pc-table tfoot th { font-weight: 800; font-size: 14pt; text-align: left; padding-left: 10px; color: #b7791f; }
.pc-table tfoot td { font-weight: 700; font-size: 12pt; padding-left: 12px; text-align: left; }
.pc-amt { display: inline-block; width: 1.5in; border-bottom: 1.5px solid #1b1f3b; margin-left: 6px; }
.pc-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 8.5pt; color: #8a8fa8; padding-top: 8px; }

@media print {
  html, body { background: #fff !important; margin: 0; padding: 0; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .pc-sheet { transform: none !important; }
}

/* Allowance calculator */
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.age-field { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.age-field label { font-weight: 600; }
.age-field input { max-width: 90px; }
.age-field .unit { color: var(--muted); font-size: 14px; }
.money { display: flex; align-items: center; gap: 6px; }
.money span { font-weight: 700; }
.segmented { position: relative; display: inline-flex; background: #f1ece3; border-radius: 999px; padding: 4px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; pointer-events: none; }
.segmented label { padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.segmented input:checked + label { background: #fff; box-shadow: 0 1px 3px rgba(27,31,59,.15); color: var(--purple-dark); }
.segmented input:focus-visible + label { outline: 3px solid var(--purple); outline-offset: 1px; }
.split-row { display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 10px; min-height: 40px; }
.split-row label { font-weight: 600; }
.split-row output { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.split-row input[type="range"] { width: 100%; height: 28px; }
.split-row.spend input { accent-color: var(--spend); }
.split-row.save input { accent-color: var(--save); }
.split-row.give input { accent-color: var(--give); }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 8px; background: #eee; }
.split-bar span { transition: width .15s; }
.split-bar .spend { background: var(--spend); }
.split-bar .save { background: var(--save); }
.split-bar .give { background: var(--give); }
.tool-results { min-width: 0; }
.tool-results .eyebrow { text-align: left; margin-bottom: 10px; }
.kid-result, .family-total { background: var(--card); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; }
.kid-result h3, .family-total h3 { margin: 0 0 8px; font-size: 20px; }
.kid-result h3 span { font-family: -apple-system, sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); }
.amounts { display: flex; gap: 24px; margin: 0 0 10px; }
.amounts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.amounts dd { margin: 0; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.split-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.split-list li { border-radius: 12px; padding: 6px 12px; font-size: 15px; }
.split-list .spend { background: rgba(63,156,98,.12); color: #2d7a4a; }
.split-list .save { background: rgba(217,154,43,.15); color: #946414; }
.split-list .give { background: rgba(139,92,246,.12); color: var(--purple-dark); }
.per-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.family-total { background: var(--ink); color: #fff; }
.family-total p { margin: 0; font-size: 18px; }

@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; gap: 20px; }
  .tool-preview { position: static; }
}
@media (max-width: 640px) {
  .tool-form { padding: 18px 14px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .downloads { padding: 18px 14px 4px; }
  /* Give the chore text room on a phone: drop the row numbers, tighten the buttons. */
  .chore-edit li { gap: 4px; }
  .chore-edit li::before { display: none; }
  .icon-btn { width: 40px; flex-basis: 40px; }
}

/* Guides, bylines and the About page. */
.byline { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.byline a { font-weight: 700; }
.page-hero .byline { margin-top: -8px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.guide-hero { padding: 10px 0 8px; }
.guide-hero h1 { font-size: clamp(32px, 5.4vw, 48px); margin: 10px 0 6px; }
.guide h2 { font-size: clamp(22px, 3.2vw, 27px); }
.guide-grid .link-card p { color: var(--muted); }
.about-hero { display: flex; align-items: center; gap: 28px; padding: 18px 20px 8px; }
.about-hero h1 { font-size: clamp(32px, 5.4vw, 48px); margin: 0 0 8px; }
.about-hero .lede { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); margin: 0; }
.founder-photo { flex: 0 0 180px; margin: 0; }
.founder-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; background: #ffe3e0; padding: 18px; display: block; }
#how-kids-use-it { padding-top: 12px; }
#how-kids-use-it h2 { margin-top: 0; }
.home-kids .card h3 { margin-bottom: 4px; }
.faq-more { text-align: center; margin-top: 18px; }
@media (max-width: 640px) {
  .about-hero { flex-direction: column; text-align: center; gap: 14px; }
  .founder-photo { flex-basis: auto; }
  .founder-photo img { width: 140px; height: 140px; padding: 14px; }
}
@media (max-width: 640px) {
  .site-nav { gap: 2px 14px; }
  .site-nav a { font-size: 15px; }
}
