/* ============================================================
   GrowWell — ptgrowwell.com
   See · Learn · Grow
   Design system: "treehouse field notebook"
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0f2e29;
  --ink-soft: #3c5a54;
  --ink-mute: #6b807b;

  --teal: #0d7367;
  --teal-deep: #0a574e;
  --emerald: #149c6a;
  --lime: #a8e05f;
  --amber: #f2a339;
  --coral: #f0708c;
  --violet: #7a5af8;
  --sky: #2f8fd6;
  --orange: #ef7d3a;
  --rose: #e85f86;

  --cream: #fdfaf3;
  --sand: #f6f0e4;
  --paper: #ffffff;
  --line: #e6ddcc;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 46, 41, .06), 0 4px 12px -6px rgba(15, 46, 41, .12);
  --shadow: 0 2px 4px rgba(15, 46, 41, .05), 0 14px 30px -14px rgba(15, 46, 41, .22);
  --shadow-lg: 0 30px 60px -28px rgba(15, 46, 41, .35);

  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(168, 224, 95, .20), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(47, 143, 214, .13), transparent 40%),
    radial-gradient(rgba(15, 46, 41, .05) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  background-attachment: fixed, fixed, scroll;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .38rem; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2.4rem 0; }
strong { font-weight: 800; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1320px; }

.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section--tight { padding: clamp(1.8rem, 4vw, 2.8rem) 0; }
.section--tint { background: rgba(255, 255, 255, .62); border-block: 2px solid var(--line); backdrop-filter: blur(3px); }
.section--deep { background: var(--ink); color: #eef5f2; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: var(--lime); }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.stack > * + * { margin-top: 1rem; }
.stack--lg > * + * { margin-top: 1.9rem; }

.section-head { max-width: 660px; margin-bottom: 1.9rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- 4. Utilities ---------- */
.muted { color: var(--ink-mute); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: .5rem; }
.gap { gap: .85rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .55rem; } .mt-2 { margin-top: 1.1rem; }
.mt-3 { margin-top: 1.9rem; } .mt-4 { margin-top: 2.8rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
/* Screen-reader-only label text (visually hidden, still announced). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.hl { background: linear-gradient(transparent 62%, rgba(168, 224, 95, .75) 62%); padding-inline: .1em; font-weight: 700; }

/* ---------- 5. Chrome: header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(253, 250, 243, .9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}
.app-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--lime), var(--emerald));
  border-radius: 13px 13px 13px 4px;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1; letter-spacing: -.02em; }
.brand__tag { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 800; }

.nav { display: flex; align-items: center; gap: .18rem; }
.nav__link {
  display: block; padding: .48rem .68rem; border-radius: var(--radius-pill);
  font-size: .93rem; font-weight: 700; color: var(--ink-soft);
}
.nav__link:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { background: var(--ink); color: #fff; }
.header-tools { display: flex; align-items: center; gap: .5rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border: 2px solid var(--line); background: var(--paper);
  border-radius: var(--radius-sm); font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

.profile-chip {
  display: flex; align-items: center; gap: .5rem;
  padding: .38rem .8rem .38rem .45rem;
  border: 2px solid var(--line); background: var(--paper);
  border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--body); font-size: .88rem; font-weight: 800; color: var(--ink);
}
.profile-chip:hover { border-color: var(--teal); background: #fff; }
.profile-chip__av { font-size: 1.15rem; line-height: 1; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem;
  font-family: var(--body); font-size: .95rem; font-weight: 800;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-deep); }
.btn--grow { background: linear-gradient(135deg, var(--emerald), var(--teal)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--soft { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn--soft:hover { border-color: var(--teal); color: var(--teal); }
.btn--tiny { padding: .42rem .85rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- 7. Pills, badges, meters ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .36rem;
  padding: .26rem .7rem; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 800; letter-spacing: .01em;
  background: var(--sand); color: var(--ink-soft); border: 1.5px solid transparent;
  white-space: nowrap;
}
.pill--topic { background: #eaf4ff; color: #14568a; }
.pill--kind { background: #f3eaff; color: #573ba8; }
.pill--age { background: #e8f7ee; color: #14683f; }
.pill--on { background: var(--ink); color: #fff; }
.pill--safe { background: #e8f7ee; color: #14683f; }
.pill--warn { background: #fdf3e2; color: #8a5a10; }
.pill--live { background: var(--lime); color: var(--ink); }

.badge-sticker {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: var(--radius-sm);
  background: #fff; border: 2px solid var(--line);
  font-size: .78rem; font-weight: 800;
  box-shadow: 0 2px 0 var(--line);
}

.meter { height: 8px; border-radius: var(--radius-pill); background: var(--sand); overflow: hidden; }
.meter__fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--lime), var(--emerald)); }
.meter--sm { height: 6px; }

.stars { display: inline-flex; gap: .1rem; color: var(--amber); font-size: .82rem; }
.stars .far { color: #d8cfbf; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card--pad-lg { padding: 1.7rem; }
.card--flush { padding: 0; overflow: hidden; }

.content-card { display: flex; flex-direction: column; gap: .7rem; height: 100%; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5c9b2; }
.content-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.content-card__title { font-size: 1.1rem; margin: 0; }
.content-card__title a { color: inherit; }
.content-card__title a:hover { color: var(--teal); text-decoration: none; }
.content-card__desc { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.content-card__foot { margin-top: auto; padding-top: .75rem; border-top: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }

.tile {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 15px 15px 15px 5px;
  background: var(--sand);
}
.tile--emerald { background: linear-gradient(150deg, #d9f7e6, #a9e7c4); }
.tile--sky { background: linear-gradient(150deg, #dceeff, #b3d8f9); }
.tile--indigo { background: linear-gradient(150deg, #e3e4ff, #c0c2fb); }
.tile--amber { background: linear-gradient(150deg, #fdeed2, #fbd9a1); }
.tile--rose { background: linear-gradient(150deg, #ffe1ea, #fbc2d1); }
.tile--violet { background: linear-gradient(150deg, #ece3ff, #d4c3fb); }
.tile--teal { background: linear-gradient(150deg, #d6f2ee, #aee3db); }
.tile--orange { background: linear-gradient(150deg, #ffead9, #fbcda9); }

.pillar { text-align: left; }
.pillar__num {
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
}

.rank-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  border: 2px solid transparent;
}
.rank-row:nth-child(odd) { background: rgba(246, 240, 228, .55); }
.rank-row--me { border-color: var(--lime); background: #f4fce8 !important; }
.rank-row__pos { font-family: var(--display); font-weight: 700; font-size: 1.05rem; width: 1.7rem; color: var(--ink-mute); }
.rank-row__name { font-weight: 800; }
.rank-row__xp { margin-left: auto; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }

.avatar { font-size: 1.5rem; line-height: 1; }

/* ---------- 8a. Illustrated character avatars ----------
   images/avatars/*.jpg — kid-safe illustrated characters (no photos).
   Legacy emoji values still render through the plain .avatar rule. */
.avatar-img {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 50%; object-fit: cover; display: block;
  background: var(--sand); border: 2px solid var(--line);
}
.avatar-img--chip { width: 30px; height: 30px; flex: 0 0 30px; border-width: 0; }
.avatar-img--me {
  width: 84px; height: 84px; flex: 0 0 84px;
  border-radius: 22px 22px 22px 8px; border-width: 3px;
}
.avatar-img--chart { width: 22px; height: 22px; flex: 0 0 22px; }

/* Profile picker */
.avatar-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.avatar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: .5rem; max-height: 320px; overflow-y: auto; padding: .15rem;
}
.avatar-pick {
  display: flex; flex-direction: column; align-items: center; gap: .12rem;
  padding: .35rem .25rem; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper);
}
.avatar-pick img {
  width: 64px; height: 64px; border-radius: 16px;
  object-fit: cover; display: block; background: var(--sand);
}
.avatar-pick--starter { min-width: 74px; }
.avatar-pick:hover { border-color: var(--teal); }
.avatar-pick.is-active { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(20, 156, 106, .2); }

/* ---------- 9. Forms ---------- */
.field { display: block; margin-bottom: .95rem; }
.label { display: block; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .32rem; }
.input, .select, .textarea {
  width: 100%; padding: .7rem .85rem;
  font-family: var(--body); font-size: .95rem; color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 115, 103, .13); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230f2e29' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 11px; padding-right: 2.1rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; margin-bottom: .5rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 150px; }
.chip-set { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .34rem .8rem; border-radius: var(--radius-pill);
  border: 2px solid var(--line); background: var(--paper);
  font-family: var(--body); font-size: .81rem; font-weight: 800; color: var(--ink-soft);
  cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 10. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: flex-start; justify-content: center;
  padding: 3vh 1rem 4vh;
  background: rgba(15, 46, 41, .52);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__panel {
  width: 100%; max-width: 640px;
  background: var(--paper); border-radius: var(--radius-lg);
  border: 2px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 1.7rem; margin: auto 0;
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.modal__head h3 { margin: 0; }
.modal__close {
  width: 38px; height: 38px; flex: 0 0 38px;
  border: 2px solid var(--line); background: var(--paper); border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--ink);
}
.modal__close:hover { background: var(--sand); }

/* ---------- 11. Toast ---------- */
.toast-wrap { position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 200; display: flex; flex-direction: column; gap: .55rem; max-width: min(360px, 92vw); }
.toast {
  background: var(--ink); color: #fff;
  padding: .8rem 1.05rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-size: .89rem; font-weight: 700;
  border-left: 5px solid var(--lime);
  animation: slide-in .22s ease;
}
.toast--bad { border-left-color: var(--coral); }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ---------- 12. Hero ---------- */
.hero { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.6rem, 4vw, 2.6rem); position: relative; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 2px solid var(--line);
  padding: .34rem .85rem; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 54ch; }
.hero__art {
  position: relative;
  background: linear-gradient(150deg, #ffffff, #f2fbf4);
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.hero__art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hero__art-tile {
  background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: .8rem;
  font-size: .84rem; font-weight: 800;
}
.hero__art-tile span { display: block; font-size: 1.5rem; margin-bottom: .3rem; }
.hero__art-note {
  margin-top: 1rem; padding-top: .9rem; border-top: 2px dashed var(--line);
  font-size: .84rem; color: var(--ink-soft);
}
.sticker {
  position: absolute; background: var(--lime); color: var(--ink);
  border-radius: var(--radius-pill); padding: .3rem .75rem;
  font-size: .74rem; font-weight: 900; letter-spacing: .04em;
  box-shadow: var(--shadow-sm); transform: rotate(-6deg);
}
.sticker--tl { top: -14px; left: 18px; }
.sticker--br { bottom: -14px; right: 20px; transform: rotate(5deg); background: var(--amber); }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: .9rem;
  margin-top: 2.4rem;
}
.stat {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.05rem; box-shadow: var(--shadow-sm);
}
.stat__num { font-family: var(--display); font-size: 1.85rem; font-weight: 700; line-height: 1; color: var(--teal-deep); }
.stat__label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); margin-top: .35rem; }

/* ---------- 13. Ad slots ---------- */
.ad-slot {
  border: 2px dashed #cfc3ac; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #fdfaf3, #fdfaf3 12px, #f8f3e8 12px, #f8f3e8 24px);
  padding: 1.1rem 1.25rem; text-align: center;
}
.ad-slot__label {
  font-size: .66rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.ad-slot__title { font-family: var(--display); font-weight: 600; margin: .35rem 0 .15rem; }
.ad-slot--inline { padding: .85rem 1rem; }

/* ---------- 14. Tables & lists ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.data th, table.data td { padding: .7rem .85rem; text-align: left; border-bottom: 1.5px solid var(--line); vertical-align: top; }
table.data th { background: var(--sand); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Small key/value rows, used by the gated back-office pages
   (explorers.html, referrals.html partner cards). */
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--ink-mute); }
.kv__v { font-weight: 800; font-variant-numeric: tabular-nums; }

/* A PIN shown in the back office (explorers.html). Masked until deliberately
   revealed — this is a family guard, not a secret. */
.pin-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800; letter-spacing: .16em;
  background: var(--sand); border: 1.5px solid var(--line);
  border-radius: 6px; padding: .1rem .5rem;
}
.pin-val--none { color: var(--ink-mute); background: transparent; border-style: dashed; letter-spacing: 0; }

.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.clean-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--emerald); font-weight: 900;
}
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list li { counter-increment: step; padding-left: 2.35rem; position: relative; margin-bottom: .6rem; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .76rem; font-weight: 800;
}

/* ---------- 15. Empty / loading ---------- */
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.4rem; text-align: center; background: rgba(255, 255, 255, .6);
}
.empty__emoji { font-size: 2rem; }
.skeleton { height: 168px; border-radius: var(--radius); background: linear-gradient(90deg, #f2ece0, #faf6ee, #f2ece0); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 16. Footer ---------- */
.app-footer { background: var(--ink); color: #cfdcd8; margin-top: 3.4rem; padding: 3rem 0 1.6rem; }
.app-footer h4 { color: #fff; font-family: var(--body); font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .7rem; }
.app-footer a { color: #cfdcd8; font-size: .9rem; }
.app-footer a:hover { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.6rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: .4rem; }
.footer__bottom {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: #9db3ae;
}
.footer__pledge {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .87rem;
}

/* ---------- 17. Chart helpers ---------- */
.chart-box { position: relative; width: 100%; }
.chart-box--sm { height: 240px; }
.chart-box--md { height: 320px; }
.chart-box--lg { height: 400px; }

.callout {
  border-left: 6px solid var(--amber); background: #fffaf0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
}
.callout--good { border-left-color: var(--emerald); background: #f1fbf5; }
.callout--info { border-left-color: var(--sky); background: #f0f7fe; }
.callout--warn { border-left-color: var(--coral); background: #fff3f6; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1000px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 23. Partner placement (paid creative) ---------- */
.partner-slot {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.partner-slot__creative { display: block; line-height: 0; background: #0b1f1a; }
.partner-slot__creative img { display: block; width: 100%; height: auto; }
.partner-slot__creative:hover img { opacity: .95; }
.partner-slot__disclosure {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  padding: .7rem 1.1rem;
  border-top: 2px solid var(--line);
  background: var(--cream);
  font-size: .78rem; color: var(--ink-soft);
}
.partner-slot__disclosure .spacer { margin-left: auto; }
.partner-slot__disclosure span, .partner-slot__disclosure a { min-width: 0; }
.partner-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .65rem; border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
  background: var(--sand); color: var(--ink-soft); border: 1.5px solid var(--line);
  white-space: nowrap;
}
.partner-tag--paid { background: #eef7f0; color: #1c6b45; border-color: #d5ebdd; }

@media (max-width: 880px) {
  .partner-slot__disclosure { font-size: .74rem; padding: .65rem .9rem; }
  .nav__toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--paper); border-bottom: 2px solid var(--line);
    padding: .8rem 1.25rem 1.1rem; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: .7rem .8rem; border-radius: var(--radius-sm); font-size: 1rem; }
  .split { grid-template-columns: 1fr; }
  .app-header__bar { position: relative; }
  .profile-chip__label { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 1rem; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__art-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .modal__panel { padding: 1.25rem; border-radius: var(--radius); }
  .btn { width: 100%; }
  .btn--tiny, .btn-row .btn { width: auto; }
  .card { padding: 1.1rem; }
  .toast-wrap { left: 1rem; right: 1rem; bottom: 1rem; }
  .filter-bar .input, .filter-bar .select { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 19. Media (film & TV) cards ---------- */
.media-card { display: flex; flex-direction: column; gap: .65rem; height: 100%; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5c9b2; }
.media-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.media-card__title { font-size: 1.1rem; margin: .1rem 0 0; }
.media-card__meta { font-size: .78rem; color: var(--ink-mute); margin: 0; }
.media-card__desc { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.media-card__foot {
  margin-top: auto; padding-top: .7rem; border-top: 1.5px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
}

.service-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .26rem .66rem; border-radius: var(--radius-xs);
  font-size: .72rem; font-weight: 900; letter-spacing: .02em; color: #fff;
  white-space: nowrap;
}
.service-badge--Netflix { background: #b81f1f; }
.service-badge--Prime { background: #0a6ba8; }
.service-badge--Disney { background: #1b3a8c; }

.theme-tag {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem; border-radius: var(--radius-pill);
  font-size: .71rem; font-weight: 800;
  background: #eef7f0; color: #1c6b45; border: 1.5px solid #d5ebdd;
}
.theme-tag--core { background: #f4fce8; color: #3d6b12; border-color: #dcefc0; }

.theme-picker { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- 20. Printable marketing / business cards ---------- */
.share-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.share-card__top {
  padding: 1.4rem 1.4rem 1.1rem;
  background: linear-gradient(150deg, var(--teal-deep), var(--emerald));
  color: #fff;
}
.share-card__top h3 { color: #fff; margin: .35rem 0 .3rem; }
.share-card__top p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.86); }
.share-card__body { padding: 1.2rem 1.4rem; flex: 1; }
.share-card__body h4 { margin-bottom: .35rem; }
.share-card__foot {
  padding: .95rem 1.4rem 1.15rem; border-top: 1.5px dashed var(--line);
  background: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
}
.share-card__logo {
  display: flex; align-items: center; gap: .5rem; font-family: var(--display);
  font-weight: 700; font-size: 1.1rem;
}
.share-card--flyer { box-shadow: var(--shadow-lg); }
.qr-box {
  width: 108px; height: 108px; flex: 0 0 108px;
  border: 2px dashed #cfc3ac; border-radius: var(--radius-sm);
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #fdfaf3, #fdfaf3 8px, #f6f0e4 8px, #f6f0e4 16px);
  font-size: .62rem; font-weight: 800; color: var(--ink-mute);
  line-height: 1.25; padding: .4rem;
}

.social-tile {
  border-radius: var(--radius); border: 2px solid var(--line); background: var(--paper);
  overflow: hidden; display: flex; flex-direction: column;
}
.social-tile__head {
  padding: .7rem .95rem; border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .84rem;
}
.social-tile__body { padding: 1rem; font-size: .9rem; flex: 1; }
.social-tile__foot { padding: .6rem .95rem; border-top: 1.5px dashed var(--line); display: flex; justify-content: space-between; align-items: center; }

.copy-pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--sand); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; line-height: 1.55; margin: 0; color: var(--ink);
}

/* ---------- 21. Print ---------- */
@media print {
  body { background: #fff; }
  .print-hide, .app-header, .app-footer, .ad-slot, .btn, .nav, .theme-picker { display: none !important; }
  .section { padding: .4cm 0; }
  .card, .share-card, .social-tile { box-shadow: none !important; break-inside: avoid; }
  .print-sheet { padding: 0; }
  a[href]::after { content: ""; }
  @page { margin: 1.4cm; }
}

/* ---------- 22. Responsive (section 19–21) ---------- */
@media (max-width: 620px) {
  .share-card__top { padding: 1.1rem; }
  .share-card__body, .share-card__foot { padding-inline: 1.1rem; }
  .qr-box { width: 92px; height: 92px; flex-basis: 92px; }
}

