/* BrainOnInterest free ADHD cleaning checklist */
@font-face { font-family: "Fredoka"; src: url("../assets/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --pink: #FF4F9A; --pink-deep: #D62F78; --tang: #FF8A3D; --lemon: #FFD43B; --mint: #7FD9B5;
  --lilac: #B79CFF; --sky: #6EC6FF; --cream: #FFF8EC; --ink: #2B2140; --ink-soft: #5A4B78; --white: #fff;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(circle at 8% 4%, rgba(255,212,59,.35) 0 120px, transparent 121px),
                    radial-gradient(circle at 96% 22%, rgba(183,156,255,.28) 0 110px, transparent 111px),
                    radial-gradient(circle at 2% 62%, rgba(127,217,181,.25) 0 130px, transparent 131px);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 10; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }

/* Header */
.site-header { padding: max(12px, env(safe-area-inset-top)) 0 8px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 12px; border: var(--line); width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.brand-text small { font-size: .78rem; color: var(--ink-soft); font-weight: 800; }
.header-shop { font-weight: 800; font-size: .9rem; color: var(--ink); text-decoration: none; background: #fff; border: var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.header-shop:hover { background: var(--lemon); }
@media (max-width: 380px) { .header-shop { font-size: .8rem; padding: 6px 10px; } .brand-text small { display: none; } }

/* Hero */
.hero { display: grid; gap: 8px; padding: 18px 0 8px; align-items: center; }
.pill { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .9rem; border: var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.pill-lemon { background: var(--lemon); }
.pill-pink { background: var(--pink); color: #fff; }
.hl { color: var(--pink-deep); display: block; font-size: .72em; margin-top: .15em; }
.lede { font-size: 1.12rem; max-width: 36em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-weight: 800; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.dot-pink { background: var(--pink); } .dot-mint { background: var(--mint); } .dot-sky { background: var(--sky); }
.hero-art { margin: 0; position: relative; justify-self: center; width: min(230px, 60vw); order: -1; }
@media (max-width: 519px) { .hide-sm { display: none; } .bubble { left: -38%; top: 18%; font-size: .82rem; max-width: 9.5em; } }
.char-hero { width: 100%; animation: bob 3.2s ease-in-out infinite; }
.bubble { position: absolute; left: -6px; top: 4px; background: #fff; border: var(--line); border-radius: 18px 18px 18px 4px; padding: 6px 12px; font-family: var(--head); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); max-width: 13em; line-height: 1.25; }
.char.is-fallback { background: var(--pink); border: var(--line); border-radius: 28%; padding: 9%; box-shadow: var(--shadow); }
.char-hero.is-fallback { width: 78%; margin: 40px auto 0; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.25fr .85fr; gap: 32px; padding: 34px 0 18px; }
  .hero-art { order: 0; width: 100%; max-width: 380px; }
  .bubble { left: auto; right: 6%; top: -4px; }
}

/* Cards */
.card { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Tool */
.tool { padding: 14px 0 26px; }
.tool-card { padding: 20px 16px 22px; position: relative; }
@media (min-width: 640px) { .tool-card { padding: 30px 30px 32px; } }
.step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.step legend { font-family: var(--head); font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0; }
.step-num { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; background: var(--pink); color: #fff; border: var(--line); border-radius: 50%; font-size: 1rem; }
.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 12px; background: var(--cream); border: var(--line); border-radius: 16px; font-weight: 800; font-size: .98rem; line-height: 1.2; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; user-select: none; -webkit-tap-highlight-color: transparent; }
.chip-icon { font-size: 1.35rem; line-height: 1; }
.chip:hover { background: #FFF1C4; }
input:checked + .chip { background: var(--lemon); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
input:focus-visible + .chip, input:focus-visible + .energy { outline: 3px solid var(--sky); outline-offset: 3px; }
.nudge { animation: nudge .5s; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.energy-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.energy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px 10px; border: var(--line); border-radius: 18px; background: var(--cream); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.energy strong { font-family: var(--head); font-weight: 600; font-size: 1.12rem; }
.energy small { font-size: .8rem; color: var(--ink-soft); font-weight: 700; line-height: 1.2; }
.meter { display: flex; gap: 4px; margin-bottom: 4px; }
.meter i { width: 12px; height: 20px; border: 2.5px solid var(--ink); border-radius: 5px; background: #fff; }
.energy-low .meter i:nth-child(1) { background: var(--sky); }
.energy-medium .meter i:nth-child(-n+2) { background: var(--tang); }
.energy-high .meter i { background: var(--pink); }
input:checked + .energy-low { background: #DDF1FF; }
input:checked + .energy-medium { background: #FFE6D4; }
input:checked + .energy-high { background: #FFE0EE; }
input:checked + .energy { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }

/* Buttons */
.btn { font: inherit; font-weight: 800; font-size: 1rem; color: var(--ink); background: #fff; border: var(--line); border-radius: 999px; padding: 12px 20px; min-height: 48px; cursor: pointer; box-shadow: var(--shadow-sm); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.2; transition: transform .1s, box-shadow .1s, background .12s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-deep); }
.btn-big { width: 100%; font-family: var(--head); font-weight: 600; font-size: 1.25rem; padding: 14px 24px; min-height: 58px; }
.btn-soft { background: var(--mint); }
.btn-secondary:hover { background: var(--lemon); }
.btn-link { background: none; border-color: transparent; box-shadow: none; color: var(--ink); text-decoration: underline; }
.btn-link:hover { box-shadow: none; transform: none; color: var(--pink-deep); }

/* Result */
.result { margin-top: 26px; padding-top: 22px; border-top: 3px dashed var(--ink); animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.char-result { width: 84px; height: 84px; object-fit: contain; flex: none; }
.char-result.is-fallback { width: 64px; height: 64px; padding: 8px; }
.result-kicker { margin: 0; font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.result-head h3 { margin: 0 0 2px; font-size: 1.45rem; outline: none; }
.result-total { margin: 0; font-size: .92rem; color: var(--ink-soft); font-weight: 700; }
.result.is-tiny .result-kicker { color: #1F7A57; }

.task-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; counter-reset: t; }
.task { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; background: var(--cream); border: var(--line); border-radius: 16px; padding: 12px 12px 12px 12px; transition: background .2s; }
.task-first { background: #FFF3BF; border-width: 3.5px; padding-top: 22px; }
.task input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.task label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 700; line-height: 1.35; }
.box { flex: none; width: 30px; height: 30px; border: var(--line); border-radius: 9px; background: #fff; display: grid; place-items: center; transition: background .15s, transform .15s; margin-top: -2px; }
.task input:checked + label .box { background: var(--mint); transform: scale(1.06); }
.task input:checked + label .box::after { content: ""; width: 9px; height: 16px; border: solid var(--ink); border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -2px); }
.task input:focus-visible + label .box { outline: 3px solid var(--sky); outline-offset: 3px; }
.task.is-done { background: #E5F8EF; }
.task.is-done .task-text { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }
.time { font-family: var(--head); font-weight: 600; font-size: .85rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.start-here { position: absolute; top: -12px; left: 12px; background: var(--pink); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; font-size: .74rem; font-weight: 900; padding: 1px 10px; letter-spacing: .04em; text-transform: uppercase; }

.gentle { background: #F1EBFF; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 14px; font-size: .98rem; }
.win-note { min-height: 0; margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.08rem; color: var(--ink); max-height: 0; overflow: hidden; transition: max-height .3s, margin .3s; }
.win-note.show { max-height: 6em; margin: 0 0 14px; background: var(--lemon); border: var(--line); border-radius: 16px; padding: 10px 14px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions #btn-lower { grid-column: 1 / -1; }
.actions #btn-print { grid-column: 1 / -1; }
@media (min-width: 640px) { .actions { grid-template-columns: repeat(3, 1fr); } .actions #btn-print { grid-column: auto; } }

/* How */
.how { padding: 18px 0 26px; }
.how-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.mini { padding: 18px 18px 8px; }
.mini-pink { background: #FFE4F0; } .mini-lemon { background: #FFF4C9; } .mini-mint { background: #E0F6EC; }
.char-mini { width: 72px; height: 72px; object-fit: contain; margin-bottom: 8px; }
.char-mini.is-fallback { width: 56px; height: 56px; padding: 6px; border-radius: 16px; }
.emoji-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; font-size: 1.8rem; background: #fff; border: var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.badge-slot { display: block; }

/* Shop */
.shop { padding: 10px 0 26px; }
.shop-card { display: grid; gap: 10px; padding: 22px 18px; background: linear-gradient(160deg, #fff 0%, #FFF0F6 100%); overflow: hidden; }
@media (min-width: 820px) { .shop-card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 32px; } }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.crew-fig { margin: 0; text-align: center; }
.char-crew { width: 100%; }
.char-crew.is-fallback { width: 160px; margin: 0 auto; }
.crew-fig figcaption { font-family: var(--head); font-weight: 600; color: var(--ink-soft); margin-top: -6px; }
.also-title { margin: 26px 0 12px; }
.also { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .also { grid-template-columns: repeat(3, 1fr); } }
.also-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); height: 100%; transition: transform .12s; }
.also-item:hover { transform: translate(-2px, -2px); }
.also-item strong { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.also-item span { font-size: .92rem; color: var(--ink-soft); font-weight: 700; }
.also-sky { background: #E2F4FF; } .also-lilac { background: #EFE9FF; } .also-mint { background: #E0F6EC; }

/* FAQ */
.faq { padding: 10px 0 30px; max-width: 780px; }
details { background: #fff; border: var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 800; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-size: 1.5rem; font-weight: 600; }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 14px; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 30px 0 max(30px, env(safe-area-inset-bottom)); margin-top: 16px; }
.footer-inner { text-align: center; }
.footer-logo { margin: 0 auto 8px; background: var(--cream); border-radius: 14px; padding: 6px 10px; width: 260px; }
.tagline { font-family: var(--head); font-weight: 500; font-size: 1.05rem; color: var(--lemon); }
.fine { font-size: .88rem; color: #E8E1F7; margin-bottom: .5em; }
.fine a { color: #FFB3D3; }

.print-only { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Print: only the checklist */
@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; font-size: 13pt; }
  .site-header, .hero, .how, .shop, .faq, .site-footer, .skip, .picker, .actions, .win-note, .char-result, .start-here { display: none !important; }
  .tool, .wrap { width: 100%; padding: 0; margin: 0; }
  .tool-card { border: 0; box-shadow: none; padding: 0; }
  .result { border: 0; margin: 0; padding: 0; display: block !important; animation: none; }
  .result[hidden] { display: none !important; }
  .print-only { display: flex; }
  .print-head { align-items: center; gap: 12px; border-bottom: 2px solid #2B2140; padding-bottom: 10px; margin-bottom: 14px; font-family: var(--head); }
  .print-head img { border-radius: 10px; }
  .print-head span { color: #5A4B78; }
  .print-foot { display: block; margin-top: 18px; padding-top: 8px; border-top: 1px solid #999; font-size: 9.5pt; color: #444; }
  .task { break-inside: avoid; background: #fff !important; border: 2px solid #2B2140; padding: 12px; }
  .task-first { padding-top: 12px; }
  .box { border: 2px solid #2B2140; }
  .time { border: 1.5px solid #2B2140; }
  .gentle { background: #fff; border: 1.5px dashed #2B2140; }
  a { color: inherit; text-decoration: none; }
}
