@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-latin-ext.woff2) format('woff2-variations');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/jakarta-latin.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light}body{margin:0}[hidden]{display:none!important}/* myKesho design system.
   Parent app + site: neutral and quiet (reference: the user's fintech screens, Wise/Ramp DESIGN.md via Refero Styles):
   grey canvas, white cards, black pill actions, one blue for data, big centred numbers.
   Kids app (.toy): teen-fintech (reference: NxtPay showreel): Plus Jakarta Sans, violet hero, white outlined cards, green money.
   Jar colours are shared by both so a child's Spend is lime everywhere. */
:root {
  --canvas: #ececee;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e7e7ea;
  --ink: #111113;
  --ink-2: #55565c;
  --ink-3: #6e6f76;
  --line: #e4e4e7;
  --line-strong: #d1d1d6;
  --action: #111113;
  --on-action: #ffffff;
  --wash: #f4f4f5;
  --brand: #111113;
  --brand-fg: #ffffff;
  --accent: #0a84ff;
  --accent-soft: #e5f1ff;
  --spend: #dae937;
  --spend-soft: #f4f8c8;
  --save: #2b9a86;
  --save-soft: #dff3ef;
  --give: #e06aa0;
  --give-soft: #fce4ef;
  --pot: #8f96e0;
  --pot-soft: #e9eafb;
  --success: #1a7f4b;
  --success-soft: #e3f4ea;
  --warning: #9a6200;
  --warning-soft: #fdf1d8;
  --error: #d12d3a;
  --error-soft: #fde6e8;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow-sheet: 0 -8px 40px rgba(17, 17, 19, 0.14);
  --shadow-float: 0 12px 32px -12px rgba(17, 17, 19, 0.18);
  --backdrop: rgba(17, 17, 19, 0.38);

  /* One brand face everywhere: website, parent app, kids app. */
  --font-display: 'Plus Jakarta Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --display-weight: 800;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --pop: cubic-bezier(0.34, 1.36, 0.64, 1);
  --t-press: 120ms;
  --t-quick: 150ms;
  --t-fast: 250ms;
  --t-slow: 400ms;

  --r-card: 24px;
  --r-field: 14px;
  --tap: 48px;
}
@media not all {
  :root:not([data-theme='light']) {
    --canvas: #0b0b0c;
    --surface: #18181b;
    --surface-2: #232327;
    --surface-3: #2e2e33;
    --ink: #f4f4f5;
    --ink-2: #a9aab1;
    --ink-3: #8b8c93;
    --line: #2a2a2f;
    --line-strong: #3a3a40;
    --action: #f4f4f5;
    --on-action: #111113;
    --wash: #1f1f23;
    --brand: #f4f4f5;
    --brand-fg: #111113;
    --accent: #3b9eff;
    --accent-soft: #10243a;
    --spend-soft: #2b2f0c;
    --save: #4cc3ae;
    --save-soft: #12302a;
    --give: #f08bbb;
    --give-soft: #3a1828;
    --pot: #a4aaf0;
    --pot-soft: #24264a;
    --success: #4cc38a;
    --success-soft: #11291c;
    --warning: #f5b84a;
    --warning-soft: #33250b;
    --error: #ff8a8f;
    --error-soft: #3a1418;
    --glass: rgba(24, 24, 27, 0.82);
    --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --backdrop: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --canvas: #0b0b0c;
  --surface: #18181b;
  --surface-2: #232327;
  --surface-3: #2e2e33;
  --ink: #f4f4f5;
  --ink-2: #a9aab1;
  --ink-3: #8b8c93;
  --line: #2a2a2f;
  --line-strong: #3a3a40;
  --action: #f4f4f5;
  --on-action: #111113;
  --wash: #1f1f23;
  --brand: #f4f4f5;
  --brand-fg: #111113;
  --accent: #3b9eff;
  --accent-soft: #10243a;
  --spend-soft: #2b2f0c;
  --save: #4cc3ae;
  --save-soft: #12302a;
  --give: #f08bbb;
  --give-soft: #3a1828;
  --pot: #a4aaf0;
  --pot-soft: #24264a;
  --success: #4cc38a;
  --success-soft: #11291c;
  --warning: #f5b84a;
  --warning-soft: #33250b;
  --error: #ff8a8f;
  --error-soft: #3a1418;
  --glass: rgba(24, 24, 27, 0.82);
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --backdrop: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

html,
body {
  height: 100%;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#root {
  min-height: 100%;
}
* {
  box-sizing: border-box;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
p {
  margin: 0;
}
.num {
  font-variant-numeric: tabular-nums;
}
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--ink-2);
}
.faint {
  color: var(--ink-3);
}
.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- type scale ---------- */
.t-balance {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 3.25rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.t-large {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2.125rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.t-title {
  font-size: 1.375rem;
  line-height: 1.27;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.t-head {
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
}
.t-sub {
  font-size: 0.9375rem;
  line-height: 1.35;
}
.t-cap {
  font-size: 0.8125rem;
  line-height: 1.38;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-quick) ease, opacity var(--t-quick) ease;
  user-select: none;
  touch-action: manipulation;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn:disabled {
  cursor: not-allowed;
}
/* Disabled: still readable (4.5:1), clearly not ready. */
.btn-primary:disabled,
.btn-dark:disabled,
.btn-danger:disabled {
  background: var(--line-strong, #d6d6da);
  color: #55565c;
  opacity: 1;
  box-shadow: none;
}
.btn-secondary:disabled,
.btn-outline:disabled,
.btn-ghost:disabled {
  opacity: 0.55;
}
.btn-primary {
  background: var(--action);
  color: var(--on-action);
}
.btn-dark {
  background: var(--ink);
  color: var(--canvas);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
}
.btn-danger {
  background: var(--error-soft);
  color: var(--error);
}
.btn-lg {
  min-height: 54px;
  font-size: 1.0625rem;
  padding: 0 26px;
}
.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  width: var(--tap);
  height: var(--tap);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-quick) ease;
}
.icon-btn:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover,
  .btn-ghost:hover {
    background: var(--surface-2);
  }
  .btn-secondary:hover {
    background: var(--surface-3);
  }
  .row-btn:hover {
    background: var(--surface-2);
  }
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 600ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.card-pad {
  padding: 20px;
}
.group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  min-height: 56px;
  width: 100%;
  text-align: left;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.row-btn {
  transition: background-color var(--t-quick) ease;
}
.row-btn:active {
  background: var(--surface-2);
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.row-sub {
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.row-end {
  text-align: right;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
  background: var(--surface-2);
  color: var(--ink);
}
.dot-ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface-2);
  color: var(--ink-2);
}
.section {
  display: grid;
  gap: 12px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 4px;
}
.stack {
  display: grid;
  gap: 16px;
}
.hstack {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.chip-good {
  background: var(--success-soft);
  color: var(--success);
}
.chip-warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.chip-bad {
  background: var(--error-soft);
  color: var(--error);
}
.chip-info {
  background: var(--surface-2);
  color: var(--ink-2);
}
.chip-save {
  background: var(--save-soft);
  color: var(--save);
}

/* ---------- jars ---------- */
.jar-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  flex: none;
}
.c-spend {
  --jar: var(--spend);
  --jar-soft: var(--spend-soft);
}
.c-save {
  --jar: var(--save);
  --jar-soft: var(--save-soft);
}
.c-give {
  --jar: var(--give);
  --jar-soft: var(--give-soft);
}
.c-pot {
  --jar: var(--pot);
  --jar-soft: var(--pot-soft);
}
.jar-dot {
  background: var(--jar);
}
.jars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.jar {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-press) var(--ease-out);
}
button.jar:active {
  transform: scale(0.97);
}
.jar svg {
  width: 64px;
  height: 80px;
  overflow: visible;
}
.jar-label {
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jar-amt {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.jar-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.25;
}
.jar-fill {
  transition: y var(--t-slow) var(--ease-out), height var(--t-slow) var(--ease-out);
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--jar, var(--ink));
  transform-origin: left;
  transition: width var(--t-slow) var(--ease-out);
}

/* ---------- the exercise-book rule (the one signature) ---------- */
.ruled {
  background: var(--wash);
  border-color: transparent;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
}
.label {
  font-weight: 700;
  font-size: 0.9375rem;
}
.hint {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.err {
  font-size: 0.875rem;
  color: var(--error);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.input {
  width: 100%;
  min-height: 50px;
  border-radius: var(--r-field);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  padding: 0 14px;
  font-size: 1.0625rem;
  transition: border-color var(--t-quick) ease;
}
.input:focus {
  outline: none;
  border-color: var(--ink);
}
.input[aria-invalid='true'] {
  border-color: var(--error);
}
.pw-wrap {
  position: relative;
}
.pw-wrap .input {
  padding-right: 76px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  min-width: 60px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface-2);
}
.pw-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.money-input {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--line-strong);
  padding: 4px 2px 8px;
  transition: border-color var(--t-quick) ease;
}
.money-input:focus-within {
  border-color: var(--ink);
}
.money-input span {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.5rem;
  color: var(--ink-3);
}
.money-input input {
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.seg {
  display: flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
  padding: 0 10px;
  transition: background-color var(--t-quick) ease, color var(--t-quick) ease;
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.switch {
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  flex: none;
  transition: background-color var(--t-fast) var(--ease-out);
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--ease-out);
}
.switch[aria-checked='true'] {
  background: var(--success);
}
.switch[aria-checked='true']::after {
  transform: translateX(20px);
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 380px;
}
.days button {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--surface-2);
  color: var(--ink-2);
}
.days button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--canvas);
}

/* ---------- sheets (Vaul) ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: var(--backdrop);
  z-index: 60;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  margin-inline: auto;
  max-width: 560px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-sheet);
  outline: none;
}
.sheet-grab {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 10px auto 0;
  flex: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px 20px;
}
.sheet-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.sheet-body {
  overflow-y: auto;
  min-height: 0; /* lets the body scroll when the keyboard makes the sheet shorter */
  overscroll-behavior: contain;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 18px;
}

/* ---------- toast ---------- */
.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  gap: 8px;
  z-index: 80;
  pointer-events: none;
  padding-inline: 16px;
}
.toast {
  pointer-events: auto;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 440px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  @starting-style {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

/* ---------- app shells ---------- */
.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.demobar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.demobar b {
  color: var(--ink);
}
.demobar .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}
.main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 20px 16px calc(110px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 28px;
  align-content: start;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.tabbar nav {
  pointer-events: auto;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(28, 36, 32, 0.12);
}
.tab {
  min-width: 72px;
  min-height: 52px;
  border-radius: 999px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
  padding: 0 10px;
  transition: color var(--t-quick) ease, background-color var(--t-quick) ease, transform var(--t-press) var(--ease-out);
  position: relative;
}
.tab:active {
  transform: scale(0.95);
}
.tab[aria-current='page'] {
  color: var(--ink);
  background: var(--surface);
}
.tab .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.6875rem;
  display: grid;
  place-items: center;
}
.sidebar {
  display: none;
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar nav {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .tabbar nav {
    background: var(--surface);
    backdrop-filter: none;
    border-color: var(--ink);
  }
}
@media (min-width: 1024px) {
  .shell.has-side {
    flex-direction: row;
  }
  .shell.has-side .tabbar {
    display: none;
  }
  .shell.has-side .sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 248px;
    flex: none;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    height: 100vh;
  }
  .shell.has-side .content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .shell.has-side .main {
    padding-bottom: 48px;
  }
  .side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--ink-2);
    text-align: left;
  }
  .side-link[aria-current='page'] {
    background: var(--surface-2);
    color: var(--ink);
  }
  .toasts {
    bottom: 24px;
  }
}
.content {
  display: contents;
}
.brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.brand i {
  font-style: normal;
  color: var(--brand);
}

/* ---------- parent specifics ---------- */
.hero-balance {
  display: grid;
  gap: 6px;
}
.payday {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.payday-lines {
  display: grid;
  gap: 10px;
}
.split-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface-2);
}
.split-bar i {
  display: block;
  height: 100%;
}
.kids-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.kid-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  text-align: left;
  width: 100%;
  transition: transform var(--t-press) var(--ease-out);
}
.kid-card:active {
  transform: scale(0.985);
}
.kid-jars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.kid-jar {
  display: grid;
  gap: 2px;
}
.kid-jar b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-weight: 400;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.kid-jar span {
  font-size: 0.75rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.paycard {
  position: relative;
  aspect-ratio: 1.586;
  max-width: 340px;
  width: 100%;
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--brand-fg);
  background: var(--brand);
  display: grid;
  align-content: space-between;
  overflow: hidden;
}
.paycard::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 28px solid currentColor;
  opacity: 0.12;
  pointer-events: none;
}
.paycard.frozen {
  filter: grayscale(0.8);
  opacity: 0.75;
}
.paycard .pc-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.375rem;
}
.paycard .pc-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.paycard .pc-brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1rem;
}
.paycard .pc-chip {
  width: 36px;
  height: 27px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e7c46b, #c99a32);
}
.paycard .pc-stamp {
  position: absolute;
  right: 16px;
  top: 16px;
  font-weight: 700;
  font-size: 0.75rem;
  background: var(--brand-fg);
  color: var(--brand);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.term-weeks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22px, 1fr));
  gap: 4px;
}
.term-weeks i {
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  display: block;
}
.term-weeks i.done {
  background: var(--pot);
}
.term-weeks i.now {
  background: var(--spend);
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 8px;
}
.chart > div {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 4px;
  justify-items: center;
  height: 100%;
}
.chart b {
  display: block;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--spend);
  min-height: 2px;
}
.chart span {
  font-size: 0.6875rem;
  color: var(--ink-3);
}

/* ---------- M-Pesa phone mock ---------- */
.phone-mock {
  border-radius: 18px;
  background: #1c2420;
  color: #f6efe0;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.phone-mock .pm-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  color: #9fd8b5;
}
.phone-mock .pm-pin {
  display: flex;
  gap: 10px;
}
.phone-mock .pm-pin i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #f6efe0;
  display: block;
}
.phone-mock .pm-pin i.on {
  background: #f6efe0;
}
.countdown {
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 239, 224, 0.2);
  overflow: hidden;
}
.countdown i {
  display: block;
  height: 100%;
  background: #f6efe0;
  transition: width 1s linear;
}

/* ---------- kids ---------- */
.kids-app {
  --tap: 48px;
}
.kids-app.young {
  --tap: 56px;
  font-size: 1.15rem;
}
.kids-app.young .t-sub,
.kids-app.young .row-sub {
  font-size: 1rem;
}
.kids-app.young .jar svg {
  width: 76px;
  height: 94px;
}
.kids-app.young .jar-amt {
  font-size: 1.5rem;
}
.kid-hello {
  padding: 22px 20px 20px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.task {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  min-height: 64px;
}
.task + .task {
  border-top: 1px solid var(--line);
}
.tick {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex: none;
  color: transparent;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.tick:active {
  transform: scale(0.9);
}
.tick[data-state='done'] {
  border-color: var(--ink-3);
  color: var(--ink-3);
}
.tick[data-state='approved'] {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.goal {
  padding: 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin-inline: auto;
  width: 100%;
}
.keypad button {
  height: 64px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-quick) ease;
}
.keypad button:active {
  transform: scale(0.94);
  background: var(--surface-2);
}
.pin-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.pin-dots i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--ink-2);
  display: block;
  transition: background-color var(--t-quick) ease, transform var(--t-quick) var(--pop);
}
.pin-dots i.on {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.08);
}
.shake {
  animation: shake 240ms ease-in-out;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-3px);
  }
}
.mission-choice {
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  width: 100%;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-quick) ease, background-color var(--t-quick) ease;
}
.mission-choice:active {
  transform: scale(0.98);
}
.mission-choice[data-result='good'] {
  border-color: var(--success);
  background: var(--success-soft);
}
.mission-choice[data-result='bad'] {
  border-color: var(--error);
  background: var(--error-soft);
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--warning);
}
.payday-burst {
  animation: rise var(--t-slow) var(--pop) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.stagger > * {
  animation: rise var(--t-fast) var(--ease-out) both;
}
.stagger > *:nth-child(2) {
  animation-delay: 40ms;
}
.stagger > *:nth-child(3) {
  animation-delay: 80ms;
}
.stagger > *:nth-child(4) {
  animation-delay: 120ms;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
}
.notice-good {
  background: var(--success-soft);
}
.notice-warn {
  background: var(--warning-soft);
}
.notice-bad {
  background: var(--error-soft);
}
.notice-info {
  background: var(--surface-2);
}
.notice .ic-good {
  color: var(--success);
}
.notice .ic-warn {
  color: var(--warning);
}
.notice .ic-bad {
  color: var(--error);
}
.notice .ic-info {
  color: var(--ink-2);
}
.empty {
  padding: 28px 20px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--ink-2);
}

/* ---------- sign-in ---------- */
.signin {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.signin-card {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 22px;
}
.demo-logins {
  display: grid;
  gap: 8px;
}

/* ---------- site ---------- */
.site {
  --col: 1120px;
}
.site-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-nav-in {
  max-width: var(--col);
  margin-inline: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .site-nav-links {
    display: none;
  }
  .site-nav-in .btn {
    margin-left: auto;
  }
}
.wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: 16px;
}
.hero {
  display: grid;
  gap: 40px;
  padding-block: 56px 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 88px 104px;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: normal;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.reassure {
  font-size: 0.9375rem;
  color: var(--ink-3);
  display: flex;
  gap: 6px;
  align-items: center;
}
.device {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 36px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(28, 36, 32, 0.35);
}
.device-screen {
  border-radius: 28px;
  background: var(--canvas);
  padding: 18px 14px 20px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}
.site-section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.site-section h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 38em;
  line-height: 1.55;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  min-width: 860px;
}
.week-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  margin-inline: -16px;
  padding-inline: 16px;
}
.week > div {
  padding: 16px 14px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-right: 1px solid var(--line);
  min-height: 190px;
}
.week > div:last-child {
  border-right: 0;
}
.week > div.pay {
  background: var(--wash);
}
.week .wd {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.week .ev {
  font-size: 0.9375rem;
  line-height: 1.4;
}
.split-2 {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .split-2 {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 16px 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  transition: transform var(--t-fast) var(--ease-out);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  padding-bottom: 18px;
  color: var(--ink-2);
  max-width: 44em;
  line-height: 1.55;
}
.pilot {
  padding: 28px;
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
  display: grid;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .spinner {
    animation-duration: 1.2s !important;
    animation-iteration-count: infinite !important;
  }
}

/* inbox rows: text first, actions underneath on phones */
.inbox-row {
  flex-wrap: wrap;
  align-items: flex-start;
}
.inbox-row .row-main {
  flex: 1 1 calc(100% - 60px);
}
.inbox-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-basis: 100%;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .inbox-row {
    flex-wrap: nowrap;
    align-items: center;
  }
  .inbox-row .row-main {
    flex: 1 1 auto;
  }
  .inbox-actions {
    flex-basis: auto;
    flex-wrap: nowrap;
  }
}
.demo-clock,
.demo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .demo-word {
    display: none;
  }
}
a.btn {
  text-decoration: none;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--action) 62% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ================= parent app: neutral fintech ================= */
.card,
.group {
  border: 0;
  border-radius: var(--r-card);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-lg {
  min-height: 56px;
}
.t-balance {
  font-weight: 600;
  letter-spacing: -0.045em;
  font-size: 3.5rem;
  line-height: 1;
}
.t-large {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.money-cur {
  font-size: 0.42em;
  vertical-align: 0.95em;
  letter-spacing: 0;
  margin-right: 0.18em;
  font-weight: 600;
  color: var(--ink-2);
}
.p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(140deg, var(--spend) 0%, var(--pot) 100%);
  color: #161c2e;
}
.p-round {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--ink);
  transition: transform var(--t-press) var(--ease-out);
}
.p-round:active {
  transform: scale(0.94);
}
.p-round .dot {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--canvas);
}
.p-balance {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding-block: 4px 4px;
}
.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.p-chip b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.p-label {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.p-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}
.p-actions .btn {
  min-height: 56px;
  font-size: 1rem;
}
.p-head {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
}
.p-head h1 {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.p-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.limit {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}
.limit-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 6px, transparent 6px 12px), var(--surface-2);
  overflow: visible;
}
.limit-track > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}
.limit-track > b {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 999px;
  background: var(--surface);
  border: 5px solid var(--accent);
  transition: left var(--t-slow) var(--ease-out);
}
.limit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.limit-row b {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.spark {
  padding: 18px 16px 16px;
  display: grid;
  gap: 12px;
}
.spark-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 160px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7));
}
.spark-bars button {
  height: 100%;
  display: grid;
  align-items: end;
  border-radius: 8px;
  padding: 0;
}
.spark-bars button.on {
  background: var(--accent-soft);
}
.spark-bars button i {
  display: block;
  border-radius: 6px 6px 3px 3px;
  background: var(--accent);
  min-height: 3px;
  transform-origin: bottom;
  animation: grow var(--t-slow) var(--ease-out) both;
}
.spark-bars button:not(.on) i {
  opacity: 0.85;
}
@keyframes grow {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}
.spark-tip {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
}
.spark-tip small {
  display: block;
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.6875rem;
}
.spark-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-3);
  text-align: center;
}
.stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.stats3 > div {
  display: grid;
  gap: 2px;
  padding-inline: 4px;
}
.stats3 > div + div {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.stats3 span {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.stats3 b {
  font-variant-numeric: tabular-nums;
}
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 6px;
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-weight: 600;
}
.merchant {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink);
}
.merchant.m-in {
  background: var(--success-soft);
  color: var(--success);
}
.merchant.m-bad {
  background: var(--error-soft);
  color: var(--error);
}
.kid-color-lime {
  --kc: #dae937;
}
.kid-color-teal {
  --kc: #6bbdae;
}
.kid-color-pink {
  --kc: #f8bbd0;
}
.kid-color-peri {
  --kc: #9aa1e3;
}
.paycard {
  background: var(--kc, #dae937);
  color: #161c2e;
  border-radius: 22px;
  box-shadow: var(--shadow-float);
}
.paycard .pc-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.paycard .pc-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.paycard .pc-chip {
  background: linear-gradient(135deg, #f3d77a, #c9a03c);
}
.paycard::after {
  border-color: #161c2e;
  opacity: 0.08;
}
.paycard .pc-stamp {
  background: #161c2e;
  color: #fff;
}
.paycard.mini {
  max-width: 120px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.75rem;
}
.paycard.mini::after {
  display: none;
}
.kid-card {
  padding: 18px;
}
.tabbar nav {
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  padding: 6px;
}
.tab {
  min-width: 76px;
  min-height: 56px;
  border-radius: 22px;
  color: var(--ink-3);
}
.tab[aria-current='page'] {
  background: var(--surface-2);
  color: var(--ink);
}
.demobar {
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.payday {
  padding: 20px;
}
.hero h1 em {
  background: linear-gradient(transparent 60%, var(--spend) 60% 92%, transparent 92%);
}
.chip-good {
  background: var(--success-soft);
}
@media (min-width: 1024px) {
  .shell.has-side .sidebar {
    background: var(--canvas);
  }
  .side-link[aria-current='page'] {
    background: var(--surface);
  }
}

.svg-spin {
  flex: none;
}
.kid-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -16px;
  padding: 2px 16px 6px;
  scrollbar-width: none;
}
.kid-strip::-webkit-scrollbar {
  display: none;
}
.kid-tile {
  scroll-snap-align: start;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: var(--kc);
  color: #161c2e;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-press) var(--ease-out);
}
.kid-tile:active {
  transform: scale(0.97);
}
.kid-tile::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 18px solid rgba(22, 28, 46, 0.07);
}
.kid-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
.kid-tile-face {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.kid-tile-card {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(22, 28, 46, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}
.kid-tile-name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.kid-tile-amt {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.kid-tile-amt .money-cur {
  color: inherit;
  opacity: 0.7;
}
.kid-tile-sub {
  font-size: 0.8125rem;
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .burst,
  .spark-bars button i {
    animation: none !important;
  }
  .burst {
    display: none;
  }
  .toy-btn,
  .toy-tick,
  .toy-jar,
  .who,
  .toy-amt {
    transition: none;
  }
}
.jar-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}
.jar-tile {
  display: grid;
  gap: 4px;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px;
}
.jar-tile-ic {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--jar-soft);
  color: var(--ink);
  margin-bottom: 4px;
}
.jar-tile-l {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.jar-tile b {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.coin-ring {
  flex: none;
}
.coin-ring circle:nth-child(2) {
  transition: stroke-dashoffset var(--t-slow) var(--ease-out);
}
.jar-tile {
  padding: 12px;
}
.jar-tile b {
  font-size: 1rem;
}
/* site: example week as snapping day cards */
.week {
  grid-template-columns: repeat(7, 240px);
  gap: 12px;
  border: 0;
  background: transparent;
  overflow: visible;
  min-width: 0;
  border-radius: 0;
}
.week-scroll {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.week-scroll::-webkit-scrollbar {
  display: none;
}
.week > div {
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 22px;
  border-right: 0;
  min-height: 200px;
  padding: 18px;
}
.week > div.pay {
  background: var(--spend);
  color: #161c2e;
}
.week > div.pay .wd {
  color: #161c2e;
}
.week .wd {
  font-size: 0.875rem;
}

/* ================= kids app: teen fintech (ref: NxtPay showreel) =================
   One violet hero per screen, white cards with a soft violet outline and a short drop,
   violet pill actions, green for money that's grown. Calm enough for a 15-year-old,
   friendly enough for an 8-year-old. Targets stay 56px+. */
body.toy,
.toy-scope {
  --k-ink: #13111c;
  --k-bg: #f3f0fa;
  --k-violet: #6a3df5;
  --k-violet-2: #8a64ff;
  --k-violet-soft: #ece6ff;
  --k-green: #18a957;
  --k-green-soft: #dcf7e6;
  --k-lime: #d4f56a;
  --k-lime-soft: #f1fbd2;
  --k-pink: #e04bc4;
  --k-pink-soft: #fbe4f6;
  --k-coin: #ffc928;
  --k-cream: #fff6dc;
  --k-sky: #dff1ff;
  --k-line: #d3c9f1;
  --k-drop: 0 3px 0 #d3c9f1;
  --k-deep: #5b33e3;
  --canvas: var(--k-bg);
  --surface: #ffffff;
  --surface-2: #f5f3fb;
  --surface-3: #e8e4f3;
  --ink: var(--k-ink);
  --ink-2: #4a4659;
  --ink-3: #6b6779;
  --line: #e2ddef;
  --line-strong: var(--k-ink);
  --action: var(--k-deep);
  --on-action: #fff;
  --accent: var(--k-violet);
  --accent-soft: var(--k-violet-soft);
  --wash: var(--surface-2);
  --spend: var(--k-violet);
  --spend-soft: var(--k-violet-soft);
  --save: var(--k-green);
  --save-soft: var(--k-green-soft);
  --give: var(--k-pink);
  --give-soft: var(--k-pink-soft);
  --success: var(--k-green);
  --success-soft: var(--k-green-soft);
  --error: #d92d4b;
  --error-soft: #fde6ea;
  --glass: rgba(255, 255, 255, 0.94);
  --backdrop: rgba(19, 17, 28, 0.45);
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --display-weight: 800;
  --tap: 56px;
  color-scheme: light;
  background: var(--k-bg);
  color: var(--k-ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
body.toy .main.toy-main {
  max-width: 520px;
  gap: 18px;
  padding-top: 12px;
}
body.toy .demobar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--line);
}
/* type */
.toy-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--k-ink);
}
.toy-brand b {
  font-weight: 800;
  color: var(--k-violet);
}
.toy-brand i {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--k-lime);
  color: var(--k-ink);
}
.toy-brand.small {
  font-size: 1rem;
}
.toy-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.toy-h2 {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.toy-small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
}
.toy-link {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--k-violet);
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* buttons */
.toy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--k-line);
  background: #fff;
  color: var(--k-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  width: 100%;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, opacity 150ms ease;
}
.toy-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.toy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.toy-btn.dark {
  background: var(--k-deep);
  color: #fff;
}
.toy-btn.lime {
  background: var(--k-lime);
}
.toy-btn.teal {
  background: var(--k-green-soft);
}
.toy-btn.pink {
  background: var(--k-pink-soft);
}
.toy-btn[aria-pressed='true'].teal,
.toy-btn[aria-pressed='true'].pink {
  box-shadow: inset 0 0 0 1px var(--k-ink);
}
.toy-round {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--k-line);
  display: grid;
  place-items: center;
}
.toy-round:active {
  transform: scale(0.94);
}
.toy-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* surfaces */
.toy-card,
.toy-note,
.toy-task,
.toy-goal,
.toy-list,
.toy-mission,
.toy-jar,
.who {
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 22px;
  box-shadow: var(--k-drop);
}
.toy-card {
  padding: 16px;
}
.toy-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  padding: 24px;
  color: var(--ink-2);
}
.toy-empty svg {
  color: var(--k-violet);
}
/* hero: the one loud thing on a screen */
.toy-hero {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 20px 20px 22px;
  border-radius: 28px;
  background: var(--k-violet);
  background-image: radial-gradient(120% 90% at 100% 0%, var(--k-violet-2) 0%, rgba(138, 100, 255, 0) 60%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.toy-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  border: 26px solid rgba(255, 255, 255, 0.08);
  z-index: -1;
}
.toy-hero.lime {
  background: var(--k-lime);
  background-image: none;
  color: var(--k-ink);
  border: 2px solid var(--k-line);
  box-shadow: var(--k-drop);
}
.toy-hero.teal {
  background: var(--k-green);
  background-image: radial-gradient(120% 90% at 100% 0%, #3fd07f 0%, rgba(63, 208, 127, 0) 60%);
}
.toy-hero.peri {
  background: var(--k-cream);
  background-image: none;
  color: var(--k-ink);
  border: 2px solid var(--k-line);
  box-shadow: var(--k-drop);
}
.toy-hero.lime::after,
.toy-hero.peri::after {
  border-color: rgba(19, 17, 28, 0.05);
}
.toy-hi {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.85;
}
.toy-hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 6px;
}
.toy-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: proportional-nums;
}
.toy-total .money-cur {
  font-size: 0.42em;
  color: inherit;
  opacity: 0.75;
  vertical-align: 0.9em;
  margin-right: 0.2em;
  letter-spacing: 0;
}
.toy-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.toy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
.toy-chip svg {
  width: 16px;
  height: 16px;
}
.toy-hero.lime .toy-chip,
.toy-hero.peri .toy-chip,
.toy-card .toy-chip,
.sheet .toy-chip {
  background: rgba(19, 17, 28, 0.08);
}
.toy-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}
.toy-hero-actions .toy-btn {
  border-color: var(--k-ink);
  padding: 0 12px;
}
.toy-hero .toy-btn.white,
.toy-hero > .toy-btn {
  margin-top: 12px;
}
/* notices */
.toy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}
.toy-note > svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}
.toy-note b {
  font-weight: 700;
  display: block;
}
.toy-note p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.toy-note.lime {
  background: var(--k-green-soft);
}
.toy-note.lime > svg {
  color: var(--k-green);
}
.toy-note.pink {
  background: var(--k-pink-soft);
}
.toy-note.pink > svg {
  color: var(--k-pink);
}
/* jars */
.toy-jars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.toy-jar {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 2px;
  padding: 12px 12px 14px;
  text-align: left;
  min-width: 0;
  color: var(--k-ink);
  transition: transform 120ms var(--ease-out);
}
button.toy-jar:active {
  transform: scale(0.97);
}
.toy-jar-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: var(--jar-soft);
  color: var(--jar);
}
.toy-jar.jar-spend {
  --jar: var(--k-violet);
  --jar-soft: var(--k-violet-soft);
}
.toy-jar.jar-save {
  --jar: var(--k-green);
  --jar-soft: var(--k-green-soft);
}
.toy-jar.jar-give {
  --jar: var(--k-pink);
  --jar-soft: var(--k-pink-soft);
}
.toy-jar-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}
.toy-jar-amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toy-jar-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  margin-top: 8px;
  overflow: hidden;
}
.toy-jar-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--jar);
}
/* lists */
.toy-list {
  overflow: hidden;
  padding: 4px 0;
}
.toy-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  min-height: 64px;
}
.toy-item + .toy-item {
  border-top: 1px solid var(--line);
}
.toy-item b {
  font-weight: 700;
}
.toy-item .row-main {
  min-width: 0;
}
.toy-item .row-main b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toy-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface-2);
  color: var(--k-ink);
}
.toy-icon.big {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}
.toy-icon.lime {
  background: var(--k-green-soft);
  color: var(--k-green);
}
.toy-icon.pink {
  background: var(--k-pink-soft);
  color: var(--k-pink);
}
.toy-icon.white {
  background: var(--surface-2);
}
.tile-lime {
  background: var(--k-lime-soft);
  color: #4f6a00;
}
.tile-teal {
  background: var(--k-green-soft);
  color: var(--k-green);
}
.tile-pink {
  background: var(--k-pink-soft);
  color: var(--k-pink);
}
.tile-peri {
  background: var(--k-violet-soft);
  color: var(--k-violet);
}
/* term pot weeks */
.toy-weeks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18px, 1fr));
  gap: 4px;
}
.toy-weeks i {
  height: 22px;
  border-radius: 6px;
  background: var(--surface-3);
}
.toy-weeks i.on {
  background: var(--k-violet);
}
.toy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.toy-label svg {
  color: var(--k-violet);
}
.toy-num-m {
  font-weight: 800;
  font-size: 1.125rem;
}
/* tasks */
.toy-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 80px;
}
.toy-task .row-main {
  min-width: 0;
  flex: 1;
}
.toy-task .toy-icon {
  background: var(--k-cream);
}
.toy-task.is-approved {
  background: var(--k-green-soft);
}
.toy-task.is-approved .toy-icon {
  background: #fff;
}
.toy-task-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  display: block;
}
.toy-tick {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--k-line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--k-ink);
  flex: none;
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.toy-tick:active:not(:disabled) {
  transform: scale(0.92);
}
.toy-tick.todo svg,
.toy-tick.notyet svg {
  opacity: 0.2;
}
.toy-tick.done {
  background: var(--k-violet-soft);
  color: var(--k-violet);
  border-color: var(--k-violet);
}
.toy-tick.approved {
  background: var(--k-green);
  border-color: var(--k-green);
  color: #fff;
}
.toy-tick:disabled {
  cursor: default;
}
/* goals */
.toy-goal {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.toy-goal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toy-goal-head .row-main {
  min-width: 0;
}
.goal-ring {
  position: relative;
  width: min(200px, 64vw);
  aspect-ratio: 1;
  justify-self: center;
}
.goal-ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.goal-ring-track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 16;
}
.goal-ring-fill {
  fill: none;
  stroke: var(--k-green);
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms var(--ease-out);
}
.goal-ring-coin {
  fill: var(--k-coin);
  stroke: var(--k-ink);
  stroke-width: 2;
}
.goal-ring-coin-t {
  font: 800 13px var(--font-display);
  fill: var(--k-ink);
}
.goal-ring-mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 2px;
}
.goal-ring-mid b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.goal-ring-mid span {
  font-weight: 700;
  color: var(--ink-3);
  font-size: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 4px;
}
.goal-ring-mid svg {
  color: var(--k-coin);
}
.toy-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.toy-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--k-green);
  transition: width 600ms var(--ease-out);
}
/* sign in */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.who {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 6px 14px;
  min-width: 0;
  transition: transform 120ms var(--ease-out);
}
.who:active {
  transform: scale(0.97);
}
.who-face {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--k-violet-soft);
  color: var(--k-violet);
  border: 0;
}
button.who-face {
  width: 48px;
  height: 48px;
  border: 2px solid var(--k-line);
  background: #fff;
  color: var(--k-ink);
  font-size: 1.0625rem;
}
.who-face.big {
  width: 84px;
  height: 84px;
  font-size: 2rem;
  background: var(--k-violet);
  color: #fff;
}
.who-name {
  font-weight: 700;
  font-size: 1rem;
}
.who-pin {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
body.toy .signin {
  background: var(--k-bg);
}
body.toy .signin-card {
  background: transparent;
  box-shadow: none;
  border: 0;
}
body.toy .keypad {
  max-width: 300px;
  gap: 12px;
}
body.toy .keypad button {
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--k-line);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--k-ink);
  transition: transform 100ms var(--ease-out), background-color 120ms ease;
}
body.toy .keypad button:active {
  transform: scale(0.94);
  background: var(--k-violet-soft);
}
body.toy .pin-dots i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--k-line);
  background: transparent;
}
body.toy .pin-dots i.on {
  background: var(--k-violet);
  border-color: var(--k-violet);
}
/* amounts and choices */
.toy-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.toy-amt {
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid var(--k-line);
  background: #fff;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--k-ink);
  transition: transform 120ms var(--ease-out);
}
.toy-amt.on {
  background: var(--k-ink);
  color: #fff;
}
.toy-amt:active {
  transform: scale(0.95);
}
.toy-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.toy-idea {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px;
  border: 2px solid var(--k-line);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--k-ink);
}
.toy-idea svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--k-violet);
}
.toy-idea.on {
  background: var(--k-violet-soft);
  border-color: var(--k-violet);
}
/* missions */
.toy-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.toy-mission {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  padding: 14px;
  min-width: 0;
  text-align: left;
  min-height: 150px;
  color: var(--k-ink);
  transition: transform 120ms var(--ease-out);
}
.toy-mission b {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
}
.toy-mission:active:not(:disabled) {
  transform: scale(0.97);
}
.toy-mission.locked {
  box-shadow: none;
  background: #f6f4fb;
  color: #5b5768;
}
.toy-mission.locked .toy-icon {
  opacity: 0.5;
}
.toy-mission.done {
  background: var(--k-green-soft);
}
.toy-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin-top: auto;
  color: var(--k-coin);
}
.toy-stars .toy-done {
  color: var(--k-green);
  margin-right: 4px;
}
.toy-coin {
  color: var(--k-coin);
  stroke: var(--k-ink);
}
.toy-steps {
  display: flex;
  gap: 6px;
}
.toy-steps i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
}
.toy-steps i.on {
  background: var(--k-violet);
}
.toy-question {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}
.toy-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--k-line);
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  color: var(--k-ink);
  width: 100%;
}
.toy-choice svg {
  flex: none;
}
.toy-choice.good {
  background: var(--k-green-soft);
  border-color: var(--k-green);
}
.toy-choice.good svg {
  color: var(--k-green);
}
.toy-choice.bad {
  background: var(--error-soft);
  border-color: var(--error);
  animation: wiggle 320ms ease-in-out;
}
.toy-choice.bad svg {
  color: var(--error);
}
@keyframes wiggle {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
/* the kid's card */
.toy-cardface {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #8a3df5 0%, #c23fd9 100%);
}
.toy-cardface::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 30px solid rgba(255, 255, 255, 0.1);
}
.toy-cardface .toy-brand,
.toy-cardface .toy-brand b {
  color: #fff;
}
.toy-cardface .toy-total {
  font-size: 2.25rem;
}
.toy-cardface.frozen {
  background: linear-gradient(140deg, #8d93a8, #b9bdcc);
}
.toy-cardface .toy-chip {
  background: rgba(255, 255, 255, 0.22);
}
/* tab bar */
.toy-tabbar nav {
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 999px;
  box-shadow: var(--k-drop);
  padding: 6px;
  gap: 2px;
}
.toy-tabbar .tab {
  min-width: 72px;
  min-height: 56px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 700;
}
.toy-tabbar .tab[aria-current='page'] {
  background: var(--k-violet);
  color: #fff;
}
.toy-tabbar .tab .badge {
  background: var(--k-pink);
  color: #fff;
  border: 2px solid #fff;
}
/* sheets and fields */
body.toy .sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
}
body.toy .sheet-title {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
body.toy .input {
  min-height: 56px;
  border: 2px solid var(--k-line);
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.0625rem;
}
body.toy .input:focus {
  border-color: var(--k-violet);
  box-shadow: 0 0 0 3px var(--k-violet-soft);
}
body.toy .label {
  font-weight: 700;
  font-size: 0.9375rem;
}
body.toy .money-input {
  border-bottom: 2px solid var(--k-line);
}
body.toy .money-input input {
  font-weight: 800;
}
body.toy .seg {
  background: var(--surface-2);
  border: 2px solid var(--k-line);
  padding: 4px;
  border-radius: 999px;
}
body.toy .seg button {
  min-height: 48px;
  font-weight: 700;
  color: var(--k-ink);
  border-radius: 999px;
}
body.toy .seg button[aria-pressed='true'] {
  background: var(--k-ink);
  color: #fff;
}
body.toy .icon-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--k-line);
  background: #fff;
}
body.toy .toast {
  background: var(--k-ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 18px;
}
body.toy .err {
  font-weight: 600;
  color: var(--error);
}
body.toy .num,
.toy-scope .num {
  font-variant-numeric: proportional-nums;
}
/* confetti: one small pop on a real win */
.burst-host {
  position: relative;
  display: inline-grid;
}
.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  animation: burst 650ms var(--ease-out) forwards;
}
@keyframes burst {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1) rotate(160deg);
    opacity: 0;
  }
}
.toy-hero .burst {
  left: 25%;
  top: 60%;
}

/* site: the kids app preview inside the phone */
.toy-scope.device-screen {
  background: var(--k-bg);
  padding: 16px 12px 18px;
  gap: 12px;
}
.toy-scope .toy-hero {
  padding: 16px;
  border-radius: 22px;
}
.toy-scope .toy-total {
  font-size: 2.25rem;
}
.toy-scope .toy-jar {
  padding: 10px 10px 12px;
}
.toy-scope .toy-jar-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.toy-scope .toy-jar-amt {
  font-size: 1.0625rem;
}
.toy-scope .who-face {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
/* the switch is 31px tall; give it a 47px hit area without changing its look */
.switch::before {
  content: '';
  position: absolute;
  inset: -8px -6px;
}

/* ---------- polish pass ---------- */
.spark-tip.at-start {
  transform: none;
}
.spark-tip.at-end {
  transform: none;
}
.kid-strip {
  scroll-padding-inline: 16px;
}
.kid-tile {
  grid-template-rows: 36px auto auto auto;
  align-content: start;
}
.kid-tile-top {
  height: 36px;
  margin-bottom: 10px;
}
.kid-tile-name,
.kid-tile-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.kid-tile-name {
  margin-top: 10px;
}
.kid-tile-amt .money-cur {
  vertical-align: 0.6em;
}
.jar-tiles.four {
  grid-template-columns: 1fr 1fr;
}
.row .coin-ring + .row-main {
  min-width: 0;
}
/* kids: round keypad, soft close button, reason pills */
body.toy .keypad {
  grid-template-columns: repeat(3, 72px);
  justify-content: center;
  max-width: none;
  gap: 14px 22px;
}
body.toy .keypad button {
  width: 72px;
  height: 72px;
  border-radius: 999px;
}
body.toy .sheet .icon-btn {
  border: 0;
  background: var(--surface-2);
}
.toy-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toy-reason {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--k-line);
  background: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--k-ink);
}
.toy-reason.on {
  background: var(--k-ink);
  color: #fff;
}
/* demo bar fits a 320px phone */
.demobar {
  min-width: 0;
  gap: 6px;
}
.demo-clock {
  min-width: 0;
  overflow: hidden;
}
.demo-clock > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-actions {
  gap: 4px;
  flex: none;
}
@media (max-width: 360px) {
  .demobar {
    padding-inline: 12px;
  }
  .demo-clock svg,
  .demo-word-sm {
    display: none;
  }
  .demobar .btn-secondary {
    width: 40px;
    padding: 0;
  }
}
/* tab bars fit a 320px phone */
@media (max-width: 360px) {
  .tab,
  .toy-tabbar .tab {
    min-width: 0;
    flex: 1;
    padding: 0 6px;
  }
  .tabbar nav {
    width: 100%;
  }
  .toy-hero-actions {
    grid-template-columns: 1fr;
  }
}
.row-main {
  min-width: 0;
}
.sheet > *,
.sheet .stack > * {
  min-width: 0;
}
/* grid children never force their track wider than the screen */
.main > *,
.section > *,
.stack > *,
.group > *,
.card > * {
  min-width: 0;
}
.row-sub {
  overflow-wrap: anywhere;
}
.p-actions .btn {
  min-width: 0;
  padding-inline: 12px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 380px) {
  .p-actions .btn .icon {
    display: none;
  }
}
@media (max-width: 359px) {
  body:not(.toy) .p-actions .btn {
    padding-inline: 8px;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
  }
}
.p-chip {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
}
.sheet-body > * {
  min-width: 0;
}
.sheet-body .row .input {
  flex: none;
  max-width: 45%;
}
.jar-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jar-tiles.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 360px) {
  .jar-tile {
    padding: 10px;
  }
  .jar-tile b {
    font-size: 0.9375rem;
  }
}
.sheet-body .row .input {
  max-width: none;
  min-width: 128px;
  width: auto !important;
}
.spark .topline .t-head.num {
  white-space: nowrap;
}
@media not all {
  :root:not([data-theme='light']) .hero h1 em {
    background: none;
    color: var(--spend);
  }
}
:root[data-theme='dark'] .hero h1 em {
  background: none;
  color: var(--spend);
}

/* ================= sandbox: test money, card machine, giftlink, test plan ================= */
.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff4c2;
  color: #6b4f00;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
@media not all {
  :root:not([data-theme='light']) .test-badge {
    background: #3a3000;
    color: #ffe27a;
  }
}
@media (max-width: 380px) {
  .demobar .test-badge svg {
    display: none;
  }
  .demobar .test-badge {
    padding: 0 7px;
  }
}
.till {
  min-height: 100dvh;
  background: var(--canvas);
}
.till-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  max-width: 560px;
  margin-inline: auto;
}
.till-main {
  max-width: 560px;
  margin-inline: auto;
  padding: 8px 16px 48px;
  display: grid;
  gap: 22px;
}
.till-main > * {
  min-width: 0;
}
.till-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.till-result {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px 20px 20px;
}
.till-mark {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  animation: till-pop var(--t-slow) cubic-bezier(0.34, 1.36, 0.64, 1) both;
}
.till-result.no .till-mark {
  background: var(--error);
}
.till-result h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.till-amt {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
@keyframes till-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.till-receipt {
  width: 100%;
  display: grid;
  gap: 0;
  margin: 6px 0 8px;
  border-top: 1px dashed var(--line-strong);
}
.till-receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}
.till-receipt dt {
  color: var(--ink-2);
}
.till-receipt dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.gift-hero {
  display: grid;
  gap: 10px;
}
.gift-ic {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--give-soft);
  color: var(--give);
}
.test-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .test-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.test-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--t-press) var(--ease-out);
}
.test-link span {
  flex: 1;
  min-width: 0;
}
.test-link:active {
  transform: scale(0.98);
}
.test-row {
  align-items: flex-start;
  padding-block: 16px;
}
.test-row.is-done .row-title {
  text-decoration: line-through;
  color: var(--ink-3);
}
.test-check {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.875rem;
}
.test-check.on {
  background: var(--success);
  color: #fff;
}
.test-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
/* card details in the parent's card sheet */
.card-details {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
}
.cd-num {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cd-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cd-row > span {
  display: grid;
  gap: 2px;
}
.cd-row small {
  font-size: 0.75rem;
  color: var(--ink-3);
}
.cd-row .icon-btn {
  margin-left: auto;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
}
.paycard .pc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}
.pc-test {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(22, 28, 46, 0.12);
}
.paycard.mini .pc-foot {
  display: none;
}
.toy-card-foot {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.till-cards {
  display: grid;
  gap: 10px;
}
.till-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  transition: transform var(--t-press) var(--ease-out);
}
.till-card:active {
  transform: scale(0.98);
}
.till-card-top,
.till-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.till-card-num {
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.till-card-meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.test-link {
  font-size: 0.9375rem;
}
/* M-Pesa */
:root {
  --mpesa: #1f8f3a;
  --mpesa-soft: #e2f4e6;
}
.mp-phone {
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}
.mp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--mpesa);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.mp-test {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.mp-body {
  padding: 18px;
}
.mp-sms {
  background: var(--surface-2);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 16px;
  line-height: 1.45;
}
.mp-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.mp-note svg {
  color: var(--mpesa);
  flex: none;
}
.mp-body .pm-pin {
  display: flex;
  gap: 12px;
}
.mp-body .pm-pin i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.mp-body .pm-pin i.on {
  background: var(--ink);
}
.payout-row {
  width: 100%;
  text-align: left;
}
.row-main > .row-title,
.row-main > .row-sub {
  display: block;
}
@media (max-width: 420px) {
  .test-badge .tb-long {
    display: none;
  }
}
/* Ask myKesho */
.ask-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  transition: transform var(--t-press) var(--ease-out);
}
.ask-entry:active {
  transform: scale(0.98);
}
.ask-badge {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #161c2e;
  background: linear-gradient(140deg, var(--spend), #9aa1e3);
}
.ask {
  display: grid;
  gap: 14px;
  min-height: 52dvh;
  align-content: end;
}
.ask-intro {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-2);
}
.ask-log {
  display: grid;
  gap: 12px;
  max-height: 46dvh;
  overflow-y: auto;
}
.ask-msg {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.ask-msg.me {
  justify-items: end;
}
.ask-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-2);
  display: grid;
  gap: 4px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ask-msg.me .ask-bubble {
  border-radius: 18px 18px 6px 18px;
  background: var(--action);
  color: var(--on-action);
}
.ask-note {
  font-size: 0.75rem;
  color: var(--ink-3);
  padding-left: 4px;
}
.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ask-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  text-align: left;
}
.ask-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ask-input .input {
  flex: 1;
  min-width: 0;
}
.ask-send {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--action);
  color: var(--on-action);
}
.ask-send:disabled {
  opacity: 0.35;
}
body.toy .ask-chip {
  box-shadow: inset 0 0 0 2px var(--k-ink);
  background: #fff;
}
body.toy .ask-badge {
  background: var(--k-violet-soft);
  color: var(--k-violet);
}
.avatar-img {
  display: inline-block;
  flex: none;
  border-radius: 999px;
  overflow: hidden;
}
.avatar-img svg {
  width: 100%;
  height: 100%;
  display: block;
}
.p-avatar {
  padding: 0;
  overflow: hidden;
  background: none;
}
.kid-tile-av {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
button.who-face.av-btn {
  padding: 0;
  overflow: hidden;
  width: 48px;
  height: 48px;
}
.who .avatar-img {
  box-shadow: 0 0 0 2px var(--k-ink);
}
.who-av-big {
  box-shadow: 0 0 0 3px var(--k-ink), 0 4px 0 3px var(--k-ink);
}
.av-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
}
.av-choice {
  border-radius: 999px;
  padding: 3px;
  min-width: 64px;
  min-height: 64px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px transparent;
  transition: transform 120ms var(--ease-out), box-shadow 150ms ease;
}
.av-choice.on {
  box-shadow: inset 0 0 0 3px var(--k-violet);
}
.av-choice:active {
  transform: scale(0.94);
}
/* site: highlighter sweeps in (idea from Fancy Components' Text Highlighter) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: highlight 900ms 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}
@keyframes highlight {
  to {
    background-size: 100% 100%;
  }
}

/* ================= parent v3: reference layout (card stack, pills, limits, insights) ================= */
.h-pill-row {
  display: flex;
  justify-content: center;
}
.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100%;
}
.h-pill-amt {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
}
.h-pill-amt .money-cur {
  font-size: 0.85em;
  vertical-align: 0;
  color: var(--ink);
}
.h-select {
  position: relative;
  padding: 0 12px;
  gap: 8px;
}
.h-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  padding-right: 4px;
  min-height: 40px;
  max-width: 62vw;
  text-overflow: ellipsis;
}
.h-select select:focus-visible {
  outline: none;
}
.h-select:focus-within {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* kids' cards, swipeable */
.cc-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 340px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  margin-inline: -16px;
  padding: 4px 16px 10px;
  scrollbar-width: none;
}
.cc-strip::-webkit-scrollbar {
  display: none;
}
.cc {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 1.586;
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: left;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #9a9ca3 0%, #6e7078 45%, #8d8f96 100%);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--t-press) var(--ease-out);
}
.cc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.28), transparent 55%), linear-gradient(120deg, transparent 40%, var(--kc, transparent) 140%);
  opacity: 0.9;
}
.cc:active {
  transform: scale(0.98);
}
.cc.is-frozen {
  filter: saturate(0.3) brightness(1.05);
}
.cc-top,
.cc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.cc-brand i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--kc, #dae937);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.cc-num {
  font-size: 0.875rem;
  opacity: 0.9;
  letter-spacing: 0.04em;
}
.cc-mid {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-chip {
  width: 44px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6dc8a, #c69a3a 60%, #e9c86c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.cc-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
.cc-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cc-who > span {
  display: grid;
  line-height: 1.15;
}
.cc-who b {
  font-weight: 700;
}
.cc-amt {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.95;
}
.cc-amt .money-cur {
  font-size: 0.8em;
  vertical-align: 0;
  color: inherit;
}
.cc-who .avatar-img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.cc-net {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.85;
  white-space: nowrap;
}
.cc-add {
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 2px var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  font-weight: 600;
}
.cc-add::before {
  display: none;
}
/* two tiles */
.h-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
}
.h-tile {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  min-width: 0;
}
.h-tile + .h-tile {
  border-left: 1px solid var(--line);
}
.h-tile svg {
  margin-bottom: 14px;
}
.h-tile-l {
  font-weight: 600;
  font-size: 0.9375rem;
}
.h-tile-v {
  color: var(--ink-2);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.h-tile-v small {
  font-size: inherit;
}
/* payday next */
.pay-next {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.pay-next-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 0;
}
.pay-next-ic {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface-2);
}
.pay-next-amt {
  display: grid;
  justify-items: end;
  text-align: right;
}
.pay-next-amt b {
  font-size: 1.0625rem;
}
.pay-next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.pay-next-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
  min-width: 0;
}
.pay-next-bar .btn {
  min-height: 44px;
  padding: 0 20px;
}
/* child page */
.bal-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eye-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.card.limit {
  padding: 4px 18px 18px;
  gap: 14px;
}
.limit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  width: 100%;
}
.limit-body {
  display: grid;
  gap: 12px;
}
.limit-fig {
  color: var(--ink-2);
}
.limit-fig b {
  color: var(--ink);
  font-size: 1.125rem;
}
.tx-group .day-head {
  padding-top: 14px;
}
.tx-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  font-weight: 600;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.p-section-title {
  margin-bottom: 2px;
}


.toy-item .row-main b {
  white-space: normal;
  overflow: visible;
}

/* ================= parent v4: follows the reference screens; type from Kodibook ================= */
@media all {
  :root:not([data-theme='dark']) {
    --canvas: #e4e4e6;
    --surface: #ffffff;
    --surface-2: #f2f2f3;
    --surface-3: #e9e9eb;
    --ink: #1c1c1e;
    --ink-2: #6b6b70;
    --ink-3: #8a8a8f;
    --line: #ececee;
    --line-strong: #d6d6da;
    --action: #1c1c1e;
    --on-action: #ffffff;
  }
}
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body:not(.toy) {
  background: var(--canvas);
}
/* the test strip: pinned, one line, never shifts */
.demobar,
body.toy .demobar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  background: rgba(228, 228, 230, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}
body.toy .demobar {
  background: rgba(243, 240, 250, 0.88);
}
.demobar .test-badge {
  flex: none;
}
.demo-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  overflow: visible;
}
.demo-clock b {
  color: var(--ink);
  font-weight: 600;
}
.demo-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.demo-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 6px;
}
.demo-ctl {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
/* surfaces: white, borderless, radius 24 */
body:not(.toy) .card,
body:not(.toy) .group,
body:not(.toy) .h-tiles,
body:not(.toy) .pay-next,
body:not(.toy) .jar-tile,
body:not(.toy) .notice,
body:not(.toy) .ask-entry,
body:not(.toy) .test-link,
body:not(.toy) .till-card,
body:not(.toy) .till-result,
body:not(.toy) .mp-phone {
  border: 0;
  box-shadow: none;
  border-radius: 24px;
  background: var(--surface);
}
body:not(.toy) .jar-tile {
  border-radius: 20px;
}
/* buttons: pills */
body:not(.toy) .btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  border: 0;
}
body:not(.toy) .btn-primary {
  background: var(--action);
  color: var(--on-action);
}
body:not(.toy) .btn-secondary,
body:not(.toy) .btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 0;
  box-shadow: none;
}
body:not(.toy) .btn-outline {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
body:not(.toy) .p-actions .btn,
body:not(.toy) .btn-lg {
  min-height: 52px;
  font-size: 1rem;
}
body:not(.toy) .btn-sm {
  min-height: 44px;
  padding: 0 16px;
}
body:not(.toy) .p-round,
body:not(.toy) .icon-btn {
  background: var(--surface);
  border: 0;
  box-shadow: none;
}
body:not(.toy) .sheet .icon-btn {
  background: var(--surface-2);
}
body:not(.toy) .input {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
body:not(.toy) .seg {
  background: var(--surface-3);
  border: 0;
  border-radius: 999px;
  padding: 4px;
}
body:not(.toy) .seg button {
  border-radius: 999px;
  min-height: 40px;
  font-weight: 500;
  color: var(--ink-2);
}
body:not(.toy) .seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* pills like "Total balance  KES 5,860" */
.h-pill,
body:not(.toy) .h-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink-2);
  gap: 8px;
}
.h-pill-amt {
  font-size: 0.875rem;
  font-weight: 700;
}
.h-pill-amt .money-cur {
  font-size: 1em;
  margin-right: 0.25em;
}
.h-select select {
  font-size: 0.875rem;
  min-height: 34px;
}
/* type */
body:not(.toy) .p-section-title,
body:not(.toy) .t-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body:not(.toy) .t-large {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
body:not(.toy) .row-title {
  font-weight: 600;
}
body:not(.toy) .row-sub,
body:not(.toy) .p-label,
body:not(.toy) .day-head {
  color: var(--ink-2);
}
body:not(.toy) .t-balance {
  font-size: 2.875rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
body:not(.toy) .t-balance .money-cur {
  font-size: 0.42em;
  color: var(--ink);
  font-weight: 600;
  vertical-align: 1.05em;
  margin-right: 0.12em;
}
.p-label {
  font-size: 0.9375rem;
}
/* home: one card at a time, dots below */
.cc-strip {
  grid-auto-columns: 100%;
  gap: 12px;
  margin-inline: 0;
  padding: 0;
  scroll-padding-inline: 0;
}
.cc {
  border-radius: 22px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(140deg, #b4b5ba 0%, #8e9096 38%, #a6a7ac 62%, #7f8187 100%);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cc::before {
  background: radial-gradient(140% 90% at 0% 0%, rgba(255, 255, 255, 0.32), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, 0.12), transparent 60%);
  opacity: 1;
}
.cc-brand {
  font-size: 1.1875rem;
  font-weight: 600;
  gap: 8px;
}
.cc-brand i {
  width: 12px;
  height: 12px;
  box-shadow: none;
}
.cc-num {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.92;
}
.cc-chip {
  width: 46px;
  height: 36px;
  border-radius: 9px;
}
.cc-bottom {
  align-items: flex-end;
}
.cc-who b {
  font-size: 1rem;
  font-weight: 600;
}
.cc-amt {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}
.cc-net {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  opacity: 0.95;
}
.cc-add {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
  color: var(--ink-2);
}
.cc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -8px;
}
.cc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transition: width var(--t-fast) var(--ease-out), background-color var(--t-fast) ease;
}
.cc-dots i.on {
  width: 18px;
  background: var(--ink);
}
/* the two tiles */
.h-tiles {
  border-radius: 24px;
}
.h-tile {
  padding: 18px 18px 20px;
  gap: 2px;
}
.h-tile + .h-tile {
  border-left: 1px solid var(--line);
}
.h-tile svg {
  margin-bottom: 18px;
}
.h-tile-l {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.h-tile-v {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
/* payday next */
.pay-next {
  padding: 16px;
  gap: 14px;
}
.pay-next-ic {
  width: 52px;
  height: 52px;
  background: var(--surface-2);
}
.pay-next-bar {
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.pay-next-bar .btn {
  min-height: 44px;
}
/* tab bar */
.tabbar {
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.tabbar nav,
body:not(.toy) .tabbar nav {
  width: min(100%, 420px);
  justify-content: space-between;
  background: var(--surface);
  border: 0;
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:not(.toy) .tab {
  flex: 1;
  min-width: 0;
  min-height: 58px;
  border-radius: 22px;
  border: 0;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 500;
}
body:not(.toy) .tab[aria-current='page'] {
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 600;
  border: 0;
  box-shadow: none;
}
/* child page */
.bal-row {
  gap: 4px;
}
.eye-btn {
  color: var(--ink);
}
.card.limit {
  padding: 4px 18px 18px;
}
.limit-head {
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.limit-track {
  height: 16px;
  background: repeating-linear-gradient(135deg, #bfe2f7 0 2px, transparent 2px 7px), #e9f5fc;
}
.limit-track > i {
  background: #1b9df0;
}
.limit-track > b {
  border-color: #1b9df0;
}
.spark-bars button i {
  background: #1b9df0;
}
.spark-bars button.on {
  background: #e3f3fd;
}
.tx-group {
  padding-bottom: 4px;
}
.merchant {
  background: var(--surface-2);
}
.dot-ic {
  background: var(--surface-2);
}
@media not all {
  :root:not([data-theme='light']) .demobar {
    background: rgba(20, 20, 22, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
  :root:not([data-theme='light']) .demo-ctl {
    background: var(--surface-2);
  }
}
/* homepage: the logo bar is fixed, not sticky, so it never moves on mobile browsers */
.site {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
}
.site-nav-in {
  height: 60px;
  padding-block: 0;
}
@media not all {
  :root:not([data-theme='light']) .site-nav {
    background: rgba(18, 18, 20, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
}
html,
body {
  overflow-x: clip;
  overscroll-behavior-x: none;
}
.site section[id] {
  scroll-margin-top: 76px;
}
.h-pill,
body:not(.toy) .h-pill {
  min-height: 40px;
}
body:not(.toy) .card .btn-secondary,
body:not(.toy) .group .btn-secondary,
body:not(.toy) .pay-next .btn-secondary,
body:not(.toy) .notice .btn-secondary,
body:not(.toy) .sheet .btn-secondary {
  background: var(--surface-2);
}

/* ================= v5: light only, one colour theme for both apps =================
   Lavender canvas, white cards, violet pill actions, violet for cards and data, lime and pink as accents. */
html:root,
html:root:not([data-theme='dark']) {
  color-scheme: light;
  --canvas: #f3f0fa;
  --surface: #ffffff;
  --surface-2: #f5f3fb;
  --surface-3: #ece6ff;
  --ink: #13111c;
  --ink-2: #5b5768;
  --ink-3: #757082;
  --line: #ebe6f5;
  --line-strong: #d9d2ea;
  --action: #5b33e3;
  --on-action: #ffffff;
  --wash: #f5f3fb;
  --brand: #13111c;
  --brand-fg: #ffffff;
  --accent: #6a3df5;
  --accent-soft: #ece6ff;
  --spend: #6a3df5;
  --spend-soft: #ece6ff;
  --save: #18a957;
  --save-soft: #dcf7e6;
  --give: #e04bc4;
  --give-soft: #fbe4f6;
  --pot: #8a64ff;
  --pot-soft: #ece6ff;
  --success: #18a957;
  --success-soft: #dcf7e6;
  --error: #d92d4b;
  --error-soft: #fde6ea;
  --glass: rgba(255, 255, 255, 0.92);
  --backdrop: rgba(19, 17, 28, 0.42);
}
html,
body,
body:not(.toy) {
  background: #f3f0fa;
  color: var(--ink);
}
.demobar,
body.toy .demobar {
  background: rgba(243, 240, 250, 0.9);
  border-bottom: 1px solid rgba(19, 17, 28, 0.06);
}
.cc {
  background: #6a3df5;
  background-image: radial-gradient(120% 90% at 100% 0%, #8a64ff 0%, rgba(138, 100, 255, 0) 60%), linear-gradient(150deg, #6a3df5 0%, #5a2fe0 55%, #b13fd0 100%);
  box-shadow: 0 16px 30px -16px rgba(74, 34, 200, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cc::before {
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
}
.cc-brand i {
  background: #d4f56a;
}
.cc.is-frozen {
  background: #8b8698;
  background-image: none;
}
.cc-add {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #e2ddef;
  color: #6a3df5;
}
.cc-dots i.on {
  background: #6a3df5;
}
body:not(.toy) .tab[aria-current='page'] {
  background: #ece6ff;
  color: #4a22d0;
}
.limit-track {
  background: repeating-linear-gradient(135deg, #d9cdff 0 2px, transparent 2px 7px), #f2eeff;
}
.limit-track > i,
.spark-bars button i {
  background: #6a3df5;
}
.limit-track > b {
  border-color: #6a3df5;
}
.spark-bars button.on {
  background: #ece6ff;
}
.site-nav {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- pinned headers: under the test strip, never move ---------- */
body:not(.toy) .p-top,
body:not(.toy) .p-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  padding-block: 8px;
  margin-block: -8px;
  background: var(--canvas);
  box-shadow: -16px 0 0 var(--canvas), 16px 0 0 var(--canvas);
}
.toy-top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding-inline: max(16px, calc((100% - 520px) / 2 + 16px));
  background: rgba(243, 240, 250, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(19, 17, 28, 0.05);
  transform: translateZ(0);
}
body.toy .main.toy-main {
  padding-top: 16px;
}

/* ---------- kids: 5 tabs ---------- */
.toy-tabbar nav {
  width: min(100%, 460px);
  justify-content: space-between;
}
.toy-tabbar .tab {
  flex: 1;
  min-width: 0;
  padding: 0 2px;
}

/* ---------- kids home ---------- */
.kid-hero {
  gap: 4px;
}
.kid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}
.kid-two > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.kid-two > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 14px;
}
.kid-two .toy-hero-label {
  margin: 0;
}
.kid-two-v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.kid-two-v .money-cur {
  font-size: 0.45em;
  opacity: 0.75;
  vertical-align: 0.8em;
  margin-right: 0.2em;
  letter-spacing: 0;
}
.kid-limit {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
}
.kid-limit-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.kid-limit-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #d4f56a;
}
.kid-limit-t {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.9;
}
.eq-card {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 22px;
  box-shadow: var(--k-drop);
  color: var(--k-ink);
  transition: transform 120ms var(--ease-out);
}
.eq-card:active,
.kid-tasks-card:active,
.kid-action:active,
.go-row:active {
  transform: scale(0.98);
}
.eq-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.eq-row > i {
  font-style: normal;
  font-weight: 800;
  color: var(--ink-3);
  flex: none;
}
.eq-part {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--jar-soft);
  text-align: center;
}
.eq-part.jar-spend {
  --jar: var(--k-violet);
  --jar-soft: var(--k-violet-soft);
}
.eq-part.jar-save {
  --jar: var(--k-green);
  --jar-soft: var(--k-green-soft);
}
.eq-part.jar-give {
  --jar: var(--k-pink);
  --jar-soft: var(--k-pink-soft);
}
.eq-part small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jar);
}
.eq-part b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eq-total {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.eq-total > span {
  flex: 1;
  display: grid;
  min-width: 0;
}
.eq-total small {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-3);
}
.eq-total-v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.eq-total-v .money-cur {
  font-size: 0.55em;
  opacity: 0.6;
  margin-right: 0.2em;
}
.kid-tasks-card,
.go-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 22px;
  box-shadow: var(--k-drop);
  color: var(--k-ink);
  transition: transform 120ms var(--ease-out);
}
.kid-tasks-card b,
.go-row b {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
}
.kid-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kid-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 6px;
  min-height: 96px;
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 22px;
  box-shadow: var(--k-drop);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--k-ink);
  text-align: center;
  transition: transform 120ms var(--ease-out);
}
.kid-action-ic {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--k-violet-soft);
  color: var(--k-violet);
}
.kid-action-ic.pink {
  background: var(--k-pink-soft);
  color: var(--k-pink);
}
.toy-hero-actions.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.toy-hero-actions.three .toy-btn {
  padding: 0 8px;
  gap: 6px;
}
.goals-free {
  margin-top: -12px;
}

/* M-Pesa mark: green tile, used on both apps */
.mp-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  background: #2fb24c;
  color: #fff;
  font-weight: 900;
  font-size: 1.125rem;
  font-style: italic;
  letter-spacing: -0.04em;
}
.mp-dot {
  background: #e3f6e7 !important;
  color: #1f8f3a;
}
.mp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
}
.mp-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 100%;
  min-width: 0;
}
.mp-card > .btn {
  flex: 1 1 100%;
}
.mp-card-actions {
  display: flex;
  gap: 8px;
  flex: 1 1 100%;
}
.mp-card-actions .btn {
  flex: 1;
}
.mp-explain {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
}
.test-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff6dc;
  color: #6b5200;
  font-size: 0.875rem;
}

/* ---------- stickers ---------- */
.sticker {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  line-height: 1;
}
.sticker svg {
  display: block;
  width: var(--st);
  height: var(--st);
}
.sticker b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: max(10px, calc(var(--st) * 0.2));
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--k-ink, #13111c);
  color: #fff;
  transform: rotate(-4deg);
  white-space: nowrap;
}
.sticker-pick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.sticker-pick button {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px transparent;
  transition: transform 120ms var(--ease-out), box-shadow 150ms ease;
}
.sticker-pick button.on {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--k-violet, #6a3df5);
}
.sticker-pick button:active {
  transform: scale(0.94);
}
.sticker-pick .sticker svg {
  width: 30px;
  height: 30px;
}
.sticker-pick .sticker b {
  font-size: 0.5625rem;
  padding: 2px 5px;
}
@media (max-width: 380px) {
  .sticker-pick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.inbox-row .sticker {
  margin-top: 6px;
}

/* ---------- family send ---------- */
.fam-pick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.fam-pick button {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 12px;
  min-width: 84px;
  border-radius: 18px;
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: inset 0 0 0 2px transparent;
}
.fam-pick button.on {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--k-violet, #6a3df5);
}

/* ---------- me ---------- */
.me-head {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding-top: 8px;
}
.me-stars {
  background: var(--k-violet-soft);
  color: var(--k-violet);
  margin-top: 4px;
}

/* ---------- first run: pick a look ---------- */
.toy-first {
  min-height: 100dvh;
  background: var(--k-bg);
}
.toy-first-in {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}
.toy-first-in > .toy-btn,
.toy-first-in > .av-grid {
  width: 100%;
}
.toy-first-sub {
  color: var(--ink-2);
  font-size: 1rem;
  margin-top: -8px;
}
.toy-first-big {
  width: 172px;
  height: 172px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--k-violet-soft);
  border: 3px solid var(--k-line);
  box-shadow: 0 4px 0 var(--k-ink);
  overflow: hidden;
}
.toy-first-in.is-done {
  padding-top: 64px;
}
.toy-first-in.is-done .toy-first-big {
  width: 200px;
  height: 200px;
  background: var(--k-lime);
}
@media (prefers-reduced-motion: no-preference) {
  .toy-first-in.is-done .toy-first-big {
    animation: pop-in 500ms cubic-bezier(0.34, 1.36, 0.64, 1) both;
  }
}
@keyframes pop-in {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* ---------- celebration: full screen, once ---------- */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #6a3df5;
  background-image: radial-gradient(120% 80% at 50% 0%, #8a64ff 0%, rgba(138, 100, 255, 0) 60%);
  color: #fff;
  overflow: hidden;
}
.celebrate-in {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.celebrate-in .toy-h1 {
  color: #fff;
}
.celebrate-in p {
  opacity: 0.9;
  font-size: 1.0625rem;
}
.celebrate-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.celebrate .toy-btn {
  margin-top: 12px;
  color: var(--k-ink);
}
.celebrate .sticker b {
  background: #d4f56a;
  color: #13111c;
}
@media (prefers-reduced-motion: no-preference) {
  .celebrate-in {
    animation: pop-in 500ms cubic-bezier(0.34, 1.36, 0.64, 1) both;
  }
}

/* ---------- first-run tips ---------- */
.tip-host {
  position: relative;
  display: grid;
}
.tip-host.has-tip > :first-child {
  box-shadow: 0 0 0 4px var(--k-lime), var(--k-drop);
}
.tip {
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  background: var(--k-ink);
  color: #fff;
}
.tip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: var(--k-ink);
  transform: rotate(45deg);
  border-radius: 2px;
}
.tip p {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.tip-step {
  flex: none;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--k-lime);
}
.tip-ok {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--k-lime);
  color: var(--k-ink);
  font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
  .tip {
    animation: tip-in 250ms var(--ease-out) both;
  }
}
@keyframes tip-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.toy-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.toy-row-2 .toy-btn {
  padding: 0 10px;
  gap: 6px;
}
/* a real card never gets wider than a card */
.cc-strip {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  margin-inline: auto;
}
/* violet Spend: anything that put dark text on the old lime gets white text, and the site highlighter stays lime */
.hero h1 em {
  background: linear-gradient(transparent 60%, #d4f56a 60% 92%, transparent 92%);
}
.week > div.pay,
.p-avatar,
.ask-badge {
  color: #fff;
}
/* kids: card settings */
.toy-mini {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--k-line);
  background: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--k-ink);
}
.toy-mini:active {
  transform: scale(0.96);
}
.card-pin-form {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--line);
}
.invite-code {
  justify-self: center;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  border-radius: 18px;
  background: var(--surface-2);
}
/* consent checkbox: the whole line is the target */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #6a3df5;
}
.consent a {
  color: #4a22d0;
  font-weight: 600;
}
.offline-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 14px;
  background: #13111c;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.install-row {
  display: grid;
  gap: 14px;
}
.install-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.install-head .row-main {
  flex: 1;
  min-width: 0;
}
.install-steps {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line, rgba(19, 17, 28, 0.08));
  display: grid;
  gap: 12px;
}
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}
.install-steps svg {
  display: inline-block;
  vertical-align: -3px;
}
.install-n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--k-violet-soft, #ece7fb);
  color: var(--k-violet, #6c3cf5);
  font-weight: 800;
  font-size: 0.875rem;
}
.install-head .row-main > b {
  display: block;
}
.legal {
  max-width: 720px;
}
.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 8px;
}
.legal p,
.legal li {
  color: var(--ink-2);
  line-height: 1.6;
}
.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.legal-note {
  padding: 12px 16px;
  border-radius: 14px;
  background: #ece6ff;
  color: #3d3a4a;
  font-size: 0.9375rem;
}
/* legal header lines up with the text column */
.till:has(.legal) .till-top {
  max-width: 720px;
}

/* ================= phones: an app shell. The page itself never scrolls, only .main does,
   so the browser's address bar never collapses and the top strip, header and tab bar stay put. ================= */
@media (max-width: 1023px) {
  html:has(body .shell),
  body:has(.shell) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .shell {
    position: fixed;
    inset: 0;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .shell > .demobar,
  .shell > .content > .demobar,
  .shell > .toy-top {
    position: relative;
    top: auto;
    flex: none;
  }
  .shell .main,
  body.toy .shell .main.toy-main {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-inline: max(16px, calc((100% - 720px) / 2 + 16px));
  }
  body.toy .shell .main.toy-main {
    padding-inline: max(16px, calc((100% - 520px) / 2 + 16px));
  }
  body:not(.toy) .p-top,
  body:not(.toy) .p-head {
    top: -20px;
  }
  .tabbar {
    transform: translateZ(0);
  }
}

/* ---------- Learn ---------- */
.stars-hero {
  width: 100%;
  text-align: left;
  color: var(--k-ink);
}
.stars-hero:active {
  transform: scale(0.99);
}
.stars-next {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 700;
}
.stars-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(19, 17, 28, 0.1);
  overflow: hidden;
}
.stars-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--k-violet);
}
.stars-how {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-weight: 800;
  color: var(--k-violet);
}
.learn-next {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  padding: 16px;
  text-align: left;
  border-radius: 22px;
  background: var(--k-ink);
  color: #fff;
}
.learn-next:active {
  transform: scale(0.98);
}
.learn-next b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.learn-next .toy-small {
  color: rgba(255, 255, 255, 0.75);
}
.learn-next-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--k-lime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.learn-next-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--k-lime);
  color: var(--k-ink);
  font-weight: 800;
}
.learn-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.learn-tip b {
  display: block;
  margin-bottom: 2px;
}
.learn-tip p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.learn-level {
  color: var(--ink-3);
  font-size: 0.875rem;
}
.toy-mission .toy-small {
  margin-top: auto;
}
.word + .word {
  border-top: 1px solid var(--line);
}
.word-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  text-align: left;
  color: var(--k-ink);
}
.word-q[aria-expanded='true'] svg {
  transform: scaleY(-1);
}
.word-a {
  padding: 0 16px 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.level {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink-3);
}
.level b {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.level span {
  font-size: 0.8125rem;
}
.level.on {
  background: var(--k-violet-soft);
  color: var(--k-violet);
}
.level.on b {
  color: var(--k-ink);
}
.level.now {
  box-shadow: inset 0 0 0 2px var(--k-violet);
}
.stars-plus {
  color: var(--k-violet);
}
button.toy-chip.me-stars {
  min-height: 44px;
}
/* parent kids list: three even columns, one-line labels, amounts on one baseline */
.kid-jars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.kid-jar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kid-jar b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 360px) {
  .kid-jar b {
    font-size: 1rem;
  }
}
.till-card-meta {
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 2px;
}
.till-card-meta span {
  white-space: nowrap;
}
/* small phones (320 to 360): labels stay on one line so rows line up */
@media (max-width: 360px) {
  .h-tile-l,
  .h-tile-v {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .kid-two .toy-hero-label {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .kid-two-v {
    font-size: 1.5rem;
  }
  .kid-two > div + div {
    padding-left: 10px;
  }
  .kid-jar b {
    font-size: 0.9375rem;
  }
  .seg button {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding-inline: 6px;
  }
}
.toy-mission .toy-small {
  font-size: 0.8125rem;
}

/* ---------- kids wallet ---------- */
.kid-actions.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.kid-actions.four .kid-action {
  min-height: 88px;
  padding: 12px 4px;
  font-size: 0.875rem;
}
.kid-action-ic.lime {
  background: var(--k-lime);
  color: var(--k-ink);
}
.toy-mini.lime {
  background: var(--k-lime);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.in-amt {
  color: var(--k-green);
}
.wallet-bal {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px;
  border-radius: 20px;
  background: var(--k-violet-soft);
  text-align: center;
}
.wallet-bal > span:first-child {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--k-violet);
}
.wallet-bal-v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.wallet-bal-v .money-cur {
  font-size: 0.5em;
  opacity: 0.6;
  margin-right: 0.2em;
}
.gift-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-2);
}
.gift-link b {
  display: block;
}

/* ---------- my savings journey ---------- */
.journey {
  list-style: none;
  margin: 0;
  padding: 6px 14px;
  background: #fff;
  border: 2px solid var(--k-line);
  border-radius: 22px;
  box-shadow: var(--k-drop);
}
.jstep {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.jstep + .jstep {
  border-top: 1px dashed var(--line);
}
.jstep::before {
  content: '';
  position: absolute;
  left: 17px;
  top: -1px;
  height: 12px;
  border-left: 2px solid var(--line);
}
.jstep:first-child::before {
  display: none;
}
.jdot {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  background: var(--surface-2);
  color: var(--ink-3);
  border: 2px solid transparent;
}
.jstep.now .jdot {
  border-color: var(--k-violet);
  color: var(--k-violet);
  background: #fff;
}
.jstep.ready .jdot {
  background: var(--k-lime);
  color: var(--k-ink);
}
.jstep.claimed .jdot {
  background: var(--k-green);
  color: #fff;
}
.jbody {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.jbody b {
  font-weight: 800;
}
.jstep.later .jbody b {
  color: var(--ink-2);
}
.jbar {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.jbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--k-green);
}
.jstars {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.jstars.got {
  color: var(--k-green);
}
/* the scrolling .main has a fixed height on phones: rows must never shrink below their content */
.main {
  grid-auto-rows: max-content;
}
/* term charts: bars use real heights, weeks fit one row */
.chart > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.chart b {
  flex: none;
  max-height: calc(100% - 18px);
  background: var(--k-violet, #6a3df5);
}
.term-weeks {
  gap: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .offline-bar.nudge {
    animation: nudge 360ms var(--ease-out);
  }
}
@keyframes nudge {
  20% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}
/* toasts sit at the top, under the test strip, so they never cover a sheet's buttons or the tab bar */
.toasts,
.toasts[class] {
  top: calc(52px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 120;
}
@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 250ms var(--ease-out) both;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
/* tips scroll clear of the header and the tab bar */
.tip-host {
  scroll-margin: 120px 0 140px;
}
/* KES prefix on violet stays readable */
.kid-two-v .money-cur,
.toy-hero .money-cur {
  color: #fff;
  opacity: 0.72;
}
.toy-hero.lime .money-cur,
.toy-hero.cream .money-cur,
.toy-hero.white .money-cur {
  color: var(--k-ink);
  opacity: 0.65;
}
.cc-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}
.legal h2 + ul,
.legal h2 + p {
  margin-top: -6px;
}
.toy-item > b.num {
  flex: none;
  white-space: nowrap;
}
.pay-again {
  width: 100%;
  text-align: left;
  color: var(--k-ink);
}
/* every section header starts on the same left edge */
.section-head {
  padding-inline: 0;
  align-items: center;
}
/* the longer "Term pocket money" label may wrap; amounts still share one baseline */
.kid-jar.c-pot span,
.board-card .kid-jar span {
  white-space: normal;
  align-items: flex-start;
}
.kid-jar.c-pot span .jar-dot {
  margin-top: 4px;
}
/* site week strip: a real gutter, cards as tall as their content, and a visible peek on wide screens */
.week-scroll {
  margin-inline: -16px;
  padding-inline: 16px;
  scroll-padding-inline: 16px;
}
.week {
  grid-template-columns: repeat(7, 232px);
  align-items: start;
  width: max-content;
}
.week > div {
  scroll-snap-align: start;
}
@media (min-width: 900px) {
  .week-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}
.till-card-meta {
  display: grid;
  gap: 2px;
}
.who-pin {
  white-space: nowrap;
  font-size: 0.75rem;
}
@media (max-width: 360px) {
  .who {
    padding-inline: 4px;
  }
  .who-pin {
    font-size: 0.6875rem;
  }
}
@media (max-width: 360px) {
  .who-pin-l {
    display: none;
  }
}
.jcollect {
  justify-self: start;
  margin-top: 8px;
}
.kid-jars {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.jcollect {
  white-space: nowrap;
}

/* ---------- PIN and code boxes (input-otp) ---------- */
.pin-boxes {
  display: flex;
  gap: 8px;
}
.pin-box {
  flex: 1 1 0;
  max-width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: box-shadow var(--t-quick) ease, background-color var(--t-quick) ease;
}
.pin-box.on {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.pin-box.filled {
  background: var(--surface-2);
}
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}
.pin-caret {
  width: 2px;
  height: 22px;
  background: var(--accent);
  animation: pin-blink 1s steps(2, start) infinite;
}
@keyframes pin-blink {
  to {
    visibility: hidden;
  }
}
body.toy .pin-box {
  box-shadow: inset 0 0 0 2px var(--k-ink);
  border-radius: 16px;
}
body.toy .pin-box.on {
  box-shadow: inset 0 0 0 3px var(--k-violet);
}
.toy-row-2 .pin-box {
  height: 50px;
}
@media (prefers-reduced-motion: reduce) {
  .pin-caret {
    animation: none;
  }
}

/* ---------- transitions.dev "Tabs sliding" (free recipe), in our colours ---------- */
:root {
  --tabs-dur: 250ms;
  --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.has-pill {
  position: relative;
  isolation: isolate;
}
.has-pill > button {
  position: relative;
  z-index: 1;
}
.slide-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  transition: transform var(--tabs-dur) var(--tabs-ease), width var(--tabs-dur) var(--tabs-ease), height var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
}
/* The active tab and segment carry their own colour (their base styles), so they can never show as white text
   on a white bar if script runs late or a browser measures oddly. The sliding pill is retired. */
.slide-pill {
  display: none;
}
.has-pill > button {
  transition: color var(--tabs-dur) var(--tabs-ease), background-color var(--tabs-dur) var(--tabs-ease), transform var(--t-press) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .slide-pill,
  .has-pill > button {
    transition: none !important;
  }
}

/* ---------- transitions.dev "Success check" (free recipe), toned for a toast ---------- */
:root {
  --check-dur: 500ms;
  --check-rotate-from: 80deg;
  --check-y-amount: 10px;
  --check-blur-from: 6px;
  --check-path-delay: 80ms;
  --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
}
.t-success-check {
  display: inline-block;
  flex: none;
  transform-origin: center;
  opacity: 0;
  color: #d4f56a;
  will-change: transform, opacity, filter;
}
.t-success-check svg {
  display: block;
  overflow: visible;
}
.t-success-check[data-state='in'] {
  animation: t-check-fade var(--check-dur) var(--check-ease-out) forwards, t-check-rotate var(--check-dur) var(--check-ease-out) forwards, t-check-blur var(--check-dur) var(--check-ease-out) forwards,
    t-check-bob var(--check-dur) var(--check-ease-bob) forwards;
}
.t-success-check[data-state='in'] svg * {
  animation: t-check-draw var(--check-dur) var(--check-ease-out) var(--check-path-delay) forwards;
}
@keyframes t-check-fade {
  to {
    opacity: 1;
  }
}
@keyframes t-check-rotate {
  from {
    transform: rotate(var(--check-rotate-from));
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes t-check-blur {
  from {
    filter: blur(var(--check-blur-from));
  }
  to {
    filter: blur(0);
  }
}
@keyframes t-check-bob {
  from {
    translate: 0 var(--check-y-amount);
  }
  to {
    translate: 0 0;
  }
}
@keyframes t-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .t-success-check {
    animation: none !important;
    opacity: 1;
  }
  .t-success-check svg * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- contrast pass (scripts/contrast.mjs): text colours that meet WCAG AA ---------- */
html:root,
html:root:not([data-theme='dark']),
body.toy,
.toy-scope {
  --ink-3: #6b6679;
  --success: #12803f;
  --k-green-text: #0f7a3b;
  --k-pink-text: #b02a93;
}
.in-amt,
.eq-part.jar-save small,
.jstars.got,
.toy-jar.jar-save .toy-jar-ic {
  color: var(--k-green-text);
}
.eq-part.jar-give small,
.toy-jar.jar-give .toy-jar-ic {
  color: var(--k-pink-text);
}
.toy-icon.lime,
.toy-note.lime > svg {
  color: var(--k-green-text);
}
.toy-icon.pink,
.toy-note.pink > svg,
.kid-action-ic.pink {
  color: var(--k-pink-text);
}
.toy-hero-label,
.toy-hi,
.kid-limit-t {
  opacity: 0.9;
}
.mp-mark {
  background: #17913a;
}
.mp-dot {
  color: #17782f !important;
}
body.toy .signin {
  min-height: 100dvh;
}

/* ---------- pilot: sign-up, recovery, how it works, feedback ---------- */
.recovery {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 2px dashed var(--line-strong);
  background: var(--surface);
}
.recovery-code {
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.pilot-how p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.pilot-line {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.pilot-line svg {
  margin-top: 2px;
  color: var(--ink);
}
.faces {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.face {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 2px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 2px solid transparent;
  min-height: 56px;
}
.face.on {
  border-color: var(--ink);
  background: var(--surface);
}
.face-n {
  font-weight: 800;
  font-size: 1.125rem;
}
.face-l {
  font-size: 0.75rem;
  color: var(--ink-2);
  white-space: nowrap;
}
textarea.input {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
  font: inherit;
}

/* ---------- Learn: levels and quizzes ---------- */
.learn-level-box.is-locked {
  opacity: 0.6;
}
.learn-blurb {
  margin: -4px 0 0;
}
.toy-mission.quiz {
  background: var(--k-lime, #d4f56a);
}
.toy-mission.quiz.locked {
  background: #fff;
}
.toy-mission.quiz.done {
  background: var(--k-green-soft);
}
.mission-fact p {
  margin: 2px 0 0;
}

/* ---------- pilot admin ---------- */
.admin {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
  background: var(--canvas);
  min-height: 100dvh;
}
.admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-head .t-cap {
  flex: 1;
}
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.admin-tile {
  display: grid;
  gap: 4px;
}
.admin-tile b {
  font-size: 1.5rem;
}
.admin-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
}
.admin-bars span {
  flex: 1;
  background: var(--surface-3);
  border-radius: 4px 4px 0 0;
}
.admin-bars span.on {
  background: var(--ink);
}
.admin-fb {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.admin-fb p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.admin-table {
  display: grid;
  overflow-x: auto;
}
.admin-tr {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(200px, 2fr) 56px 64px 56px minmax(110px, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  min-width: 720px;
}
.admin-th {
  font-weight: 600;
  color: var(--ink-2);
  border-top: 0;
}
.admin-lessons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 16px;
}
.admin-lesson {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .admin-tr {
    grid-template-columns: 1fr 1fr 1fr;
    min-width: 0;
  }
  .admin-tr > span:nth-child(1),
  .admin-tr > span:nth-child(2) {
    grid-column: 1 / -1;
  }
  .admin-tr > span:last-child {
    grid-column: 1 / -1;
  }
  .admin-th {
    display: none;
  }
  .admin-tr > .num::before {
    color: var(--ink-3);
    font-size: 0.75rem;
    display: block;
  }
  .admin-tr > .num:nth-child(3)::before { content: 'Kids'; }
  .admin-tr > .num:nth-child(4)::before { content: 'Lessons'; }
  .admin-tr > .num:nth-child(5)::before { content: 'Tasks'; }
}

/* =====================================================================================
   Website (mykesho.com): .lp scope. Same family as the kids app: lavender, violet, lime,
   ink outlines with a hard drop, Plus Jakarta Sans. Light only, solid shapes, no patterns.
   ===================================================================================== */
.lp {
  --ink: #13111c;
  --ink-2: #4a4658;
  --ink-3: #6b6779;
  --bg: #ffffff;
  --lav: #f3f0fa;
  --violet: #6a3df5;
  --violet-deep: #4f25d6;
  --violet-soft: #ece6ff;
  --lime: #d4f56a;
  --lime-soft: #f1fbd2;
  --green: #18a957;
  --green-text: #0f7a3b;
  --green-soft: #dcf7e6;
  --pink: #e04bc4;
  --pink-text: #b02a93;
  --pink-soft: #fbe4f6;
  --coin: #ffc928;
  --sky: #dff1ff;
  --line: #e6e2f0;
  --drop: 0 3px 0 var(--ink);
  --r-lg: 28px;
  --r-md: 20px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --col: 1180px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}
.lp h1,
.lp h2,
.lp h3,
.lp p {
  margin: 0;
}
.lp a:not(.lp-btn) {
  color: inherit;
}
.lp :focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
.lp-wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 720px) {
  .lp-wrap {
    padding-inline: 32px;
  }
}
.lp-num {
  font-variant-numeric: tabular-nums;
}
.lp-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.lp-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.lp-skip:focus {
  top: 12px;
}

/* colour helpers */
.lp-bg-lime { background: var(--lime); }
.lp-bg-lime-soft { background: var(--lime-soft); }
.lp-bg-green { background: var(--green); color: #fff; }
.lp-bg-green-soft { background: var(--green-soft); }
.lp-bg-violet { background: var(--violet); color: #fff; }
.lp-bg-violet-soft { background: var(--violet-soft); }
.lp-bg-pink { background: var(--pink); color: #fff; }
.lp-bg-pink-soft { background: var(--pink-soft); }
.lp-bg-coin { background: var(--coin); }
.lp-bg-sky { background: var(--sky); }

/* type */
.lp-display {
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.lp-mark {
  color: var(--violet);
  background: linear-gradient(transparent 70%, var(--lime) 70% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}
.lp-h2 {
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.lp h3 {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lp-eyebrow {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.lp-lede {
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 36em;
  line-height: 1.55;
}
.lp-head {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

/* buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-btn:active {
  transform: translateY(1px) scale(0.98);
}
.lp-btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.lp-btn-lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.0625rem;
}
.lp-btn-ink {
  background: var(--ink);
  color: #fff;
}
.lp-btn-ink:hover {
  background: #2a2638;
}
.lp-btn-line {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--drop);
}
.lp-btn-quiet {
  color: var(--ink);
  background: transparent;
}
.lp-btn-quiet:hover {
  background: var(--violet-soft);
}
.lp-btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--drop);
}
.lp-btn-onviolet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.lp-btn-onviolet:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lp-ctas-center {
  justify-content: center;
}
@media (max-width: 480px) {
  .lp-hero .lp-ctas .lp-btn {
    flex: 1 1 100%;
  }
}

/* pills */
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 0.875rem;
}
.lp-pill-sm {
  padding: 4px 12px;
  font-size: 0.8125rem;
  background: var(--lime);
}
.lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--ink);
  flex: none;
}

/* nav */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 240, 250, 0.95);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.lp-nav-in {
  max-width: var(--col);
  margin-inline: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (min-width: 720px) {
  .lp-nav-in {
    padding-inline: 32px;
  }
}
.lp-home {
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.lp-nav-links {
  display: none;
  gap: 2px;
  margin-right: 12px;
}
.lp-nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}
.lp-nav-links a:hover {
  background: var(--violet-soft);
  color: var(--ink);
}
@media (min-width: 940px) {
  .lp-nav-links {
    display: flex;
  }
}
@media (max-width: 520px) {
  .lp-nav-go {
    display: none;
  }
  .lp-nav .lp-btn-quiet {
    border-color: var(--ink);
  }
}

/* hero */
.lp-hero {
  background: var(--lav);
  padding-bottom: 28px;
}
.lp-hero-in {
  display: grid;
  gap: 40px;
  padding-block: 32px 24px;
  align-items: center;
}
@media (min-width: 960px) {
  .lp-hero-in {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    padding-block: 56px 32px;
  }
}
.lp-hero-copy {
  display: grid;
  gap: 24px;
  align-content: center;
}
.lp-hero-sub {
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 32em;
}
.lp-ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.lp-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-ticks .icon {
  color: var(--green-text);
}
.lp-kesho p {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.lp-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 16px 0;
}
.lp-blob {
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--violet);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.lp-blob-lime {
  background: var(--lime);
}
.lp-blob-pink {
  background: var(--pink-soft);
}

/* phones */
.lp-phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 9px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(19, 17, 28, 0.55);
}
.lp-phone-screen {
  border-radius: 38px;
  background: var(--lav);
  overflow: hidden;
  aspect-ratio: 9 / 18;
}
.lp-screen {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 12px;
  height: 100%;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.lp-screen b {
  font-weight: 800;
}
.lp-screen small {
  color: var(--ink-3);
  font-weight: 600;
}
.lp-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 4px;
}
.lp-kbrand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.lp-kbrand b {
  color: var(--violet);
}
.lp-kbrand i {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--lime);
  vertical-align: 2px;
}
.lp-k-hero {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 20px;
  background: var(--violet);
  color: #fff;
}
.lp-k-hero span {
  font-weight: 700;
}
.lp-k-hero small {
  color: rgba(255, 255, 255, 0.8);
}
.lp-k-hero b {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-k-hero-stars b .icon {
  color: var(--coin);
}
.lp-k-jars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--drop);
}
.lp-k-jar {
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
}
.lp-k-jar small {
  color: var(--ink);
  font-weight: 700;
}
.lp-k-jar b {
  font-size: 1rem;
}
.lp-k-card,
.lp-k-next {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--drop);
}
.lp-k-next {
  background: var(--lime);
  gap: 2px;
}
.lp-k-next small {
  color: var(--ink-2);
}
.lp-k-next b {
  font-size: 1.05rem;
}
.lp-k-next span {
  font-weight: 700;
  font-size: 0.75rem;
}
.lp-k-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.lp-k-act {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 2px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--drop);
  font-weight: 800;
  font-size: 0.75rem;
}
.lp-k-act-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.lp-k-lesson {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-k-lesson .icon {
  color: var(--green);
}
.lp-goal-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
}
.lp-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--green-soft);
  overflow: hidden;
}
.lp-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}
/* parent phone */
.lp-screen-parent {
  background: var(--lav);
}
.lp-p-keep {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
}
.lp-p-card {
  display: grid;
  gap: 2px;
  padding: 14px;
  min-height: 112px;
  align-content: end;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(140deg, var(--violet) 0%, var(--violet-deep) 100%);
}
.lp-p-card small {
  color: rgba(255, 255, 255, 0.82);
}
.lp-p-card b {
  font-size: 1.125rem;
}
.lp-p-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  margin-bottom: auto;
  padding-bottom: 18px;
}
.lp-p-ask {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
}
.lp-p-ask-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}
.lp-p-ask-top span {
  display: grid;
}
.lp-p-ask-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lp-p-no,
.lp-p-yes {
  text-align: center;
  padding: 8px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--lav);
}
.lp-p-yes {
  background: var(--ink);
  color: #fff;
}
.lp-p-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 16px;
}
.lp-p-row > span:nth-child(2) {
  display: grid;
}
.lp-p-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lav);
}

/* floating notes around the hero phone */
.lp-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--drop);
  font-size: 0.8125rem;
  line-height: 1.25;
  max-width: 210px;
  animation: lp-pop 420ms var(--pop) both;
}
.lp-float span:last-child {
  display: grid;
}
.lp-float b {
  font-weight: 800;
}
.lp-float small {
  color: var(--ink-3);
  font-weight: 600;
}
.lp-float-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.lp-float-a {
  top: 30%;
  left: 0;
  animation-delay: 250ms;
}
.lp-float-b {
  top: 50%;
  right: 0;
  animation-delay: 400ms;
}
.lp-float-c {
  bottom: 7%;
  left: 2%;
  animation-delay: 550ms;
}
@media (min-width: 960px) {
  .lp-float-a {
    left: -6%;
  }
  .lp-float-b {
    right: -5%;
    top: 40%;
  }
  .lp-float-c {
    left: -4%;
  }
}
@media (max-width: 600px) {
  .lp-float-c {
    display: none;
  }
}
@keyframes lp-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* facts */
.lp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-block: 40px 8px;
}
@media (min-width: 900px) {
  .lp-facts {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 56px;
  }
}
.lp-fact {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--lav);
}
.lp-fact-n {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lp-fact span {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* sections */
.lp-section {
  padding-block: 72px;
}
@media (min-width: 900px) {
  .lp-section {
    padding-block: 112px;
  }
}
.lp-tint {
  background: var(--lav);
}
.lp-split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .lp-split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  #faq .lp-split,
  .lp-split.lp-split-top {
    align-items: start;
  }
}

/* pillars */
.lp-pillars {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .lp-pillars {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .lp-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}
.lp-pillar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 2px solid var(--ink);
  box-shadow: var(--drop);
}
.lp-pillar p {
  color: var(--ink-2);
  font-size: 1rem;
}
.lp-pillar-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
}
.lp-mini {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.875rem;
}
.lp-task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-task b {
  font-weight: 700;
}
.lp-task-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
}
.lp-task.done .lp-task-box {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.lp-task.done b {
  text-decoration: line-through;
  color: var(--ink-3);
}
.lp-task .lp-num {
  font-weight: 800;
}
.lp-goal {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-goal small {
  color: var(--ink-3);
  font-weight: 600;
}
.lp-ask {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-ask > span:nth-child(2) {
  display: grid;
}
.lp-ask small {
  color: var(--ink-3);
  font-weight: 600;
}
.lp-chip-yes {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.lp-share {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-share-amt {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--pink-text);
}
.lp-share small {
  color: var(--ink-3);
  font-weight: 600;
}

/* two apps */
.lp-seg {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--drop);
}
.lp-seg button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.lp-seg button.on {
  background: var(--ink);
  color: #fff;
}
.lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 34em;
}
.lp-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: var(--ink-2);
}
.lp-list li .icon {
  color: var(--violet);
  margin-top: 1px;
}
.lp-list b {
  color: var(--ink);
  font-weight: 800;
}
.lp-two-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.lp-swap {
  position: relative;
  animation: lp-swap 260ms var(--ease-out) both;
}
@keyframes lp-swap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* steps */
.lp-steps {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.lp-step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--lav);
}
.lp-step p {
  color: var(--ink-2);
  font-size: 1rem;
}
.lp-step-n {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: var(--drop);
  margin-bottom: 6px;
}

/* the week */
.lp-week-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lp-week-title b {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.lp-week-title span {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 600;
}
.lp-week-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 2px 16px 8px;
  scroll-padding-inline: 16px;
}
.lp-week-scroll::-webkit-scrollbar {
  display: none;
}
@media (min-width: 720px) {
  .lp-week-scroll {
    margin-inline: -32px;
    padding-inline: 32px;
    scroll-padding-inline: 32px;
  }
}
.lp-week-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 12px;
}
.lp-day {
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 180px;
  padding: 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 2px solid var(--line);
}
.lp-day.pay {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: var(--drop);
}
.lp-day-d {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.lp-day.pay .lp-day-d {
  color: var(--ink);
}
.lp-day p {
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* lessons */
.lp-levels {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lp-levels li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 16px;
}
.lp-levels li > span:last-child {
  display: grid;
  line-height: 1.25;
}
.lp-levels b {
  font-weight: 800;
  font-size: 0.9375rem;
}
.lp-levels small {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.8125rem;
}
.lp-level-n {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--violet-soft);
  color: var(--violet);
}
.lp-quiz {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
@media (min-width: 720px) {
  .lp-quiz {
    padding: 32px;
  }
}
.lp-quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-quiz-meta {
  font-weight: 700;
  color: var(--ink-3);
  font-size: 0.875rem;
}
.lp-quiz-q {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.lp-quiz-choices {
  display: grid;
  gap: 10px;
}
.lp-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--drop);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.lp-choice:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.lp-choice:hover {
  background: var(--lav);
}
.lp-choice.good {
  background: var(--green-soft);
}
.lp-choice.good .icon {
  color: var(--green-text);
}
.lp-choice.bad {
  background: var(--pink-soft);
}
.lp-choice.bad .icon {
  color: var(--pink-text);
}
.lp-quiz-fb {
  font-weight: 600;
  color: var(--ink-2);
  min-height: 3em;
}
.lp-quiz-fb.good {
  color: var(--green-text);
}
.lp-quiz-fb.bad {
  color: var(--pink-text);
}
.lp-quiz-win {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--lime);
  font-weight: 700;
  font-size: 0.9375rem;
  animation: lp-pop 360ms var(--pop) both;
}
.lp-quiz-win .icon {
  flex: none;
  margin-top: 1px;
}

/* parents (ink) */
.lp-ink {
  background: var(--ink);
  color: #fff;
}
.lp-ink .lp-eyebrow {
  color: var(--lime);
}
.lp-ink .lp-lede {
  color: rgba(255, 255, 255, 0.78);
}
.lp-controls {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .lp-controls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .lp-controls {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.lp-control {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lp-control .icon {
  color: var(--lime);
}
.lp-control h3 {
  font-size: 1.1875rem;
}
.lp-control p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9875rem;
}

/* money */
.lp-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-weight: 700;
  font-size: 0.9375rem;
}
.lp-ledger {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--lav);
}
.lp-ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  color: #fff;
  background: linear-gradient(140deg, var(--violet) 0%, var(--violet-deep) 100%);
}
.lp-ledger-head span {
  font-weight: 700;
}
.lp-ledger-head b {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.lp-ledger-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--r-md);
}
.lp-ledger-row > span {
  display: grid;
  min-width: 0;
}
.lp-ledger-row b {
  font-weight: 800;
}
.lp-ledger-row small {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.8125rem;
}
.lp-ledger-note {
  font-size: 0.8125rem;
  color: var(--ink-3);
  padding: 2px 4px 0;
}

/* faq */
.lp-faq details {
  border-bottom: 2px solid var(--line);
}
.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 14px 0;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary .icon {
  flex: none;
  transition: transform 250ms var(--ease-out);
}
.lp-faq details[open] summary .icon {
  transform: scaleY(-1);
}
.lp-faq details p {
  padding-bottom: 20px;
  color: var(--ink-2);
  max-width: 40em;
}

/* closing call */
.lp-end {
  background: var(--violet);
  color: #fff;
  padding-block: 88px;
}
@media (min-width: 900px) {
  .lp-end {
    padding-block: 128px;
  }
}
.lp-end-in {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.lp-end-h {
  font-size: clamp(3rem, 10vw, 7rem);
}
.lp-end-sub {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  font-weight: 600;
  color: #fff;
}
.lp-end-small {
  font-size: 0.9375rem;
  color: #fff;
}

/* footer */
.lp-footer {
  padding-block: 48px 120px;
  background: #fff;
  color: var(--ink-2);
}
.lp-footer .brand,
.lp-footer .lp-home {
  color: var(--ink);
  font-size: 0.9375rem;
}
@media (min-width: 760px) {
  .lp-footer {
    padding-bottom: 56px;
  }
}
.lp-footer-in {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .lp-footer-in {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.lp-footer .lp-stack p {
  max-width: 40em;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-inline: -12px;
}
@media (min-width: 900px) {
  .lp-footer-links {
    justify-content: flex-end;
  }
}
.lp-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.lp-footer-links a:hover {
  background: var(--lav);
}

/* sticky phone CTA */
.lp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
}
.lp-sticky.on {
  transform: none;
}
.lp-sticky .lp-btn {
  width: 100%;
}
@media (min-width: 760px) {
  .lp-sticky {
    display: none;
  }
}

/* reveal */
.lp-reveal.wait {
  opacity: 0;
  transform: translateY(18px);
}
.lp-reveal.wait.in {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .lp-reveal.wait {
    opacity: 1;
    transform: none;
  }
  .lp-float,
  .lp-swap,
  .lp-quiz-win {
    animation: none;
  }
}
@media (max-width: 400px) {
  .lp-hero-art {
    min-height: 500px;
  }
  .lp-float {
    max-width: 180px;
    font-size: 0.75rem;
  }
}

.lp-k-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--green-soft);
  border: 2px solid var(--ink);
  box-shadow: var(--drop);
}
.lp-k-note > span:last-child {
  display: grid;
}
.lp-k-note .icon {
  color: var(--green-text);
}
.lp-k-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
}
.lp-k-row > span:nth-child(2) {
  display: grid;
}
.lp-k-row-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

@media (min-width: 1100px) {
  .lp-week-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: auto;
  }
  .lp-week-scroll {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .lp-week-title span {
    display: none;
  }
  .lp-day {
    padding: 16px 14px;
  }
}
.lp-footer-legal {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Cloudflare Turnstile: the quick person check on sign-up, forgot password and join. */
.human-check {
  min-height: 65px;
  width: 100%;
}

/* Analytics cookie choice: one small card, once per device. Never in the kids app. */
.ga-choice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  color: var(--ink, #14151a);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(20, 21, 26, 0.16), 0 0 0 1px rgba(20, 21, 26, 0.06);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.ga-choice.in-app {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}
.ga-choice p {
  margin: 0;
}
.ga-choice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.ga-choice-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.ga-choice-btns .btn {
  flex: 1 1 0;
  max-width: 180px;
}
.ga-choice .btn-secondary,
body:not(.toy) .ga-choice .btn-secondary {
  background: #f1eef8;
  color: var(--ink, #14151a);
}

/* Child profile (parent app) */
.child-photo {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  flex: none;
  background: #ece6ff;
}
.about-card {
  display: grid;
  gap: 14px;
}
.about-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-list {
  margin: 0;
  display: grid;
  gap: 10px;
}
.about-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
}
.about-list dt {
  color: var(--ink-2, #5b5e6b);
  font-size: 0.875rem;
}
.about-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.photo-pick {
  display: flex;
  align-items: center;
  gap: 16px;
}
.photo-pick label.btn {
  cursor: pointer;
  gap: 8px;
}
textarea.input {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

/* Invite a family (parent Account) */
.invite-card {
  display: grid;
  gap: 14px;
}
.invite-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.invite-ic {
  background: #fff3c4;
  color: #8a5a00;
}
.invite-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: #f4f1fb;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invite-actions .btn {
  flex: 1 1 160px;
  gap: 8px;
}

/* ---------- Landing v2: one strong hero, then short, calm sections ---------- */
.lp-hero2 {
  background: var(--violet);
  color: #fff;
  padding-block: 40px 0;
  overflow-x: clip;
  position: relative;
  z-index: 1;
}
.lp-hero2-in {
  display: grid;
  gap: 40px;
  align-items: end;
}
@media (min-width: 960px) {
  .lp-hero2 {
    padding-top: 72px;
  }
  .lp-hero2-in {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}
.lp-hero2-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-bottom: 8px;
}
@media (min-width: 960px) {
  .lp-hero2-copy {
    padding-bottom: 88px;
  }
}
.lp-pill-onviolet {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.lp-hero2-tag {
  color: #fff;
  font-size: clamp(3.25rem, 12vw, 7rem);
}
.lp-mark2 {
  color: var(--lime);
}
.lp-hero2-h1 {
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 24ch;
  color: #fff;
  margin: 0;
}
.lp-hero2-sub {
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}
.lp-hero2 .lp-ctas {
  align-items: center;
  gap: 12px 20px;
}
.lp a.lp-hero2-kids,
.lp-hero2-kids {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.lp-hero2-kids:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lp-hero2-art {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: -96px;
}
@media (min-width: 960px) {
  .lp-hero2-art {
    margin-bottom: -120px;
  }
}
.lp-hero2-art .lp-phone {
  box-shadow: 0 40px 80px -30px rgba(10, 6, 40, 0.65);
}
.lp-hero2-float {
  position: absolute;
  left: max(0px, calc(50% - 230px));
  top: 66%;
}
@media (max-width: 420px) {
  .lp-hero2-float {
    left: 0;
    top: 22%;
  }
}

.lp-proof {
  display: grid;
  gap: 12px;
  padding-top: 132px;
  padding-bottom: 8px;
}
@media (min-width: 960px) {
  .lp-proof {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 160px;
  }
}
.lp-proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--lav);
  color: var(--violet-deep);
}
.lp-proof-item span {
  display: grid;
  color: var(--ink);
}
.lp-proof-item b {
  font-size: 1.125rem;
  font-weight: 800;
}
.lp-proof-item small {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.lp-more {
  margin: 28px 0 0;
}
.lp a.lp-more-a,
.lp-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--violet-deep);
  text-decoration: none;
}
.lp-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp-points {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .lp-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.lp-point {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.lp-point h3 {
  font-size: 1.25rem;
  margin: 6px 0 0;
}
.lp-point p {
  margin: 0;
  color: var(--ink-2);
}
.lp-point-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet-deep);
}

/* ---------- Public pages (/how-it-works, /lessons, /faq ...) ---------- */
.pg-head {
  background: var(--lav);
  padding-block: 32px 40px;
}
@media (min-width: 900px) {
  .pg-head {
    padding-block: 48px 56px;
  }
}
.pg-narrow {
  max-width: 820px;
}
.pg-crumbs ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.pg-crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--ink-3);
}
.pg-crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}
.pg-crumbs a:hover {
  text-decoration: underline;
}
.pg-h1 {
  font-weight: 800;
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.pg-lede {
  margin: 16px 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.pg-body {
  padding-block: 40px 72px;
}
.pg-body > h2 {
  font-weight: 800;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 40px 0 10px;
}
.pg-body > h2:first-child {
  margin-top: 0;
}
.pg-body > p,
.pg-body li {
  max-width: 68ch;
  line-height: 1.65;
}
.pg-body > p {
  margin: 0 0 14px;
}
.pg-body a {
  color: var(--violet-deep);
  font-weight: 600;
}
.pg-list {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.pg-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 18px;
}
.pg-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pg-steps h3 {
  margin: 4px 0 6px;
  font-size: 1.25rem;
}
.pg-steps p {
  margin: 0;
  color: var(--ink-2);
}
.pg-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .pg-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.pg-levels,
.pg-lessons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.pg-levels a,
.pg-lessons a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
}
.pg-levels a:hover,
.pg-lessons a:hover {
  border-color: var(--violet);
}
.pg-levels a > span:nth-child(2),
.pg-lessons a > span:nth-child(2) {
  display: grid;
  gap: 4px;
  flex: 1;
}
.pg-levels b,
.pg-lessons b {
  font-size: 1.125rem;
  font-weight: 800;
}
.pg-levels small,
.pg-lessons small {
  color: var(--ink-3);
  font-size: 0.875rem;
}
.pg-blurb {
  color: var(--ink-2);
}
.pg-lesson-n {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-weight: 800;
}
.pg-meta {
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.pg-talk {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--lime-soft);
  font-weight: 600;
}
.pg-nav-levels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px !important;
}
.pg-faq details[open] summary svg {
  transform: rotate(180deg);
}
.lp-nav-links a[aria-current='page'] {
  color: var(--violet-deep);
}
.lp-hero2 .lp-phone,
.lp-hero2 .lp-float {
  color: var(--ink);
}
@media (max-width: 420px) {
  .lp-hero2-float {
    top: auto;
    bottom: 9%;
  }
}
.lp .pg-lede {
  margin-top: 18px;
}
.lp .pg-body > p {
  margin: 0 0 14px;
}
.lp .pg-body > ul {
  margin: 0 0 14px;
}
.pg-steps .lp-step-n {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.invite-link .num {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

/* ---------- gift links, family goals, Grow lab ---------- */
.gift-ic {
  background: var(--give-soft);
  color: #a3326a;
}
.gift-card {
  text-align: left;
}
.gift-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--give-soft);
  color: #a3326a;
}
.gift-how {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-field);
  background: var(--surface-2);
  color: var(--ink-2);
}
.gift-how p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.gift-how svg {
  flex: none;
  margin-top: 2px;
}
.gift-about {
  justify-self: center;
  color: var(--ink-2);
  font-weight: 600;
}
.fg-row .row-main {
  display: grid;
  gap: 6px;
}
.fg-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.fg-bar.big {
  height: 14px;
}
.fg-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--save);
  transition: width var(--t-slow) var(--ease-out);
}
.fg-bar.kid {
  background: rgba(19, 17, 28, 0.1);
}
.fg-bar.kid i {
  background: var(--pot);
}
.grow-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.grow-axis {
  stroke: rgba(19, 17, 28, 0.15);
  stroke-width: 1;
}
.grow-l {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grow-l0 {
  stroke: #9a9ba3;
  stroke-dasharray: 2 8;
}
.grow-l1 {
  stroke: var(--pot);
}
.grow-l2 {
  stroke: var(--save);
}
.grow-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: none;
  align-self: center;
}
.grow-d0 {
  background: #9a9ba3;
}
.grow-d1 {
  background: var(--pot);
}
.grow-d2 {
  background: var(--save);
}
@media (prefers-reduced-motion: reduce) {
  .fg-bar i {
    transition: none;
  }
}

/* ---------- calmer colours: violet actions, soft outlines, coloured chores ---------- */
body.toy .toy-icon {
  color: var(--k-violet);
}
.toy-task .toy-icon.tile-lime,
.toy-task .toy-icon.tile-teal,
.toy-task .toy-icon.tile-pink,
.toy-task .toy-icon.tile-peri {
  background: var(--tile-bg);
  color: var(--tile-fg);
}
.toy-task .tile-lime {
  --tile-bg: #e6f7a8;
  --tile-fg: #3f5600;
}
.toy-task .tile-teal {
  --tile-bg: #bfeed3;
  --tile-fg: #0f7a3b;
}
.toy-task .tile-pink {
  --tile-bg: #f8c9ec;
  --tile-fg: #a01f84;
}
.toy-task .tile-peri {
  --tile-bg: #d9cdff;
  --tile-fg: #4b25c9;
}
.toy-task {
  border-left-width: 6px;
}
.toy-task.c-lime {
  border-left-color: #b9de2e;
}
.toy-task.c-teal {
  border-left-color: #18a957;
}
.toy-task.c-pink {
  border-left-color: #e04bc4;
}
.toy-task.c-peri {
  border-left-color: #6a3df5;
}
.toy-task.is-done {
  background: var(--k-violet-soft);
}
.toy-tick.todo,
.toy-tick.notyet {
  border-color: var(--k-violet);
  color: var(--k-violet);
}
.toy-tick.todo svg,
.toy-tick.notyet svg {
  opacity: 0.35;
}
.hint.hint-good {
  color: var(--success);
}
.hint.hint-bad {
  color: var(--error);
}

/* ---------- guides ---------- */
.pg-takeaways {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 16px 16px 36px;
  margin: 0 0 8px;
}
.pg-toc {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.9375rem;
}
.pg-toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.pg-table-wrap {
  overflow-x: auto;
  margin: 4px 0 8px;
}
.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}
.pg-table th,
.pg-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pg-table thead th {
  background: var(--surface-3);
  font-weight: 700;
}
.pg-table tbody th {
  font-weight: 600;
}
.pg-qa h3 {
  font-size: 1.0625rem;
  margin: 18px 0 4px;
}
.pg-qa p {
  margin: 0;
}
.pg-note {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.pg-sources a {
  overflow-wrap: anywhere;
}
.pg-guides {
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .pg-guides {
    grid-template-columns: 1fr 1fr;
  }
}
.pg-guide {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
}
.pg-guide:hover {
  border-color: var(--accent);
}
.pg-guide b {
  font-size: 1.0625rem;
  line-height: 1.3;
}
.pg-guide span {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.admin-tr.admin-team {
  grid-template-columns: minmax(160px, 2fr) 70px minmax(140px, 1.5fr) auto;
  align-items: center;
}
@media (max-width: 640px) {
  .admin-tr.admin-team {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- back office (admin) ---------- */
.bo {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--canvas);
}
.bo-side {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 12px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.bo-brand {
  display: grid;
  gap: 4px;
  padding: 0 8px;
}
.bo-nav {
  display: grid;
  gap: 2px;
  flex: 1;
  align-content: start;
}
.bo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out);
}
.bo-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.bo-link.on {
  background: var(--accent-soft, #efeaff);
  color: var(--action);
}
.bo-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--action);
  color: var(--on-action);
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}
.bo-me {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}
.bo-main {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 16px 24px 48px;
  max-width: 1120px;
  width: 100%;
}
.bo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.bo-top h1 {
  flex: 1;
  margin: 0;
}
.bo-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  place-items: center;
  cursor: pointer;
}
.bo-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bo-title h2,
.bo-title h3 {
  margin: 0;
}
.bo-chips,
.bo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.bo-tabs {
  overflow-x: auto;
}
.bo-list {
  display: grid;
}
.bo-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  border-radius: 0;
  transition: background-color var(--t-quick) var(--ease-out);
}
.bo-row:hover {
  background: var(--surface-2);
}
.bo-row > .icon {
  color: var(--ink-3);
}
.bo-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bo-row-bad b {
  color: var(--error);
}
.bo-row-when {
  text-align: right;
}
.bo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.bo-cell {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.bo-jars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.bo-jar {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.bo-jar b {
  font-size: 1.125rem;
}
.bo-jar-card { background: var(--spend-soft); }
.bo-jar-save { background: var(--save-soft); }
.bo-jar-give { background: var(--give-soft); }
.bo-jar-termpot { background: var(--pot-soft); }
.bo-mini {
  display: grid;
  gap: 2px;
}
.bo-table {
  display: grid;
  overflow-x: auto;
}
.bo-tr {
  display: grid;
  grid-template-columns: 120px minmax(160px, 2fr) minmax(160px, 1.6fr) 110px 90px;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  min-width: 700px;
  font-size: 0.875rem;
}
.bo-tr4 {
  grid-template-columns: minmax(80px, 1fr) minmax(160px, 2fr) minmax(90px, 1fr) minmax(110px, 1fr);
  min-width: 520px;
}
.bo-tr6 {
  grid-template-columns: 44px 150px minmax(160px, 2fr) minmax(160px, 1.6fr) 100px 96px;
  min-width: 800px;
}
.bo-th {
  font-weight: 600;
  color: var(--ink-2);
  border-top: 0;
}
.bo-tr .num {
  text-align: right;
}
.bo-diff {
  background: var(--error-soft);
}
.bo-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}
.bo-select {
  width: auto;
  min-width: 160px;
}
.bo-ok,
.bo-bad {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.bo-ok {
  background: var(--success-soft);
  color: var(--success);
}
.bo-bad {
  background: var(--error-soft);
  color: var(--error);
}
.bo-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warning);
  background: var(--warning-soft);
  text-decoration: none;
  font-weight: 600;
}
.bo-crumb {
  display: flex;
}
@media (max-width: 860px) {
  .bo {
    grid-template-columns: minmax(0, 1fr);
  }
  .bo-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 85vw);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform var(--t-fast) var(--ease-out);
    box-shadow: var(--shadow-float);
  }
  .bo-side.open {
    transform: none;
  }
  .bo-menu {
    display: grid;
  }
  .bo-main {
    padding: 12px 16px 40px;
  }
  .bo-row {
    grid-template-columns: minmax(0, 1fr) 18px;
  }
  .bo-row > .row-sub,
  .bo-row-kids,
  .bo-row-when {
    grid-column: 1;
    text-align: left;
  }
  .bo-row > .icon {
    grid-row: 1;
    grid-column: 2;
  }
  .bo-jars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .bo-side {
    transition: none;
  }
}
.bo-tb {
  grid-template-columns: 60px minmax(180px, 2fr) 90px minmax(100px, 1fr) minmax(100px, 1fr);
  min-width: 560px;
}
.bo-total {
  font-weight: 700;
  border-top: 2px solid var(--line-strong);
}
.bo-tabs > * {
  min-width: max-content;
}
.bo-tabs .seg button,
.bo-tabs .seg > * {
  white-space: nowrap;
}
.learn-level-head {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.learn-level-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.learn-level-top h3 {
  flex: 1;
  margin: 0;
}
.learn-chev {
  transition: transform var(--t-fast) var(--ease-out);
}
.learn-level-head[aria-expanded='true'] .learn-chev {
  transform: scaleY(-1);
}
.learn-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--k-line, #e4ddf6);
  overflow: hidden;
}
.learn-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--k-violet, #6a3df5);
  transition: width var(--t-slow) var(--ease-out);
}

/* ---------- birthday party ---------- */
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -20px;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: 3;
  animation-fill-mode: both;
}
@keyframes confetti-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(30px, 105vh, 0) rotate(540deg); opacity: 0.9; }
}
.balloons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.balloon {
  position: absolute;
  bottom: -80px;
  animation: balloon-up 6s var(--ease-out) both;
}
.balloon.b0 { left: 6%; animation-delay: 0.1s; }
.balloon.b1 { left: 24%; animation-delay: 0.6s; }
.balloon.b2 { left: 48%; animation-delay: 0.3s; }
.balloon.b3 { left: 70%; animation-delay: 0.9s; }
.balloon.b4 { left: 86%; animation-delay: 0.45s; }
@keyframes balloon-up {
  0% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-55vh) rotate(4deg); }
  100% { transform: translateY(-120vh) rotate(-3deg); }
}
.celebrate.party .celebrate-big {
  font-size: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  .balloon { animation: none; display: none; }
}

/* ---------- age groups ---------- */
.bday-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 8px;
}
.age-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-2);
}
.age-group b {
  display: block;
}
.age-group p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.age-group .icon {
  flex: none;
  margin-top: 2px;
}
.ag-sprout { background: #e7f6e9; color: #14532d; }
.ag-explorer { background: #ece6ff; color: #3b1fa8; }
.ag-builder { background: #fff3d6; color: #7a4b00; }
.ag-leader { background: #fde6f2; color: #8a1550; }
.ag-sprout p, .ag-explorer p, .ag-builder p, .ag-leader p { color: inherit; opacity: 0.85; }
.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.p-round-spacer {
  width: 44px;
  height: 44px;
  flex: none;
}

/* ---------- kids app by age group ---------- */
/* Explorers (6 to 10) keep the default playful look. Builders get warmer accents, Leaders a calmer, flatter one. */
body.toy[data-group='builder'] {
  --k-bg: #f1f4fb;
  --canvas: #f1f4fb;
  --k-lime: #ffd35c;
  --k-lime-soft: #fff4d1;
  --k-line: #cfd8ee;
  --k-drop: 0 2px 0 #cfd8ee;
  background: #f1f4fb;
}
body.toy[data-group='leader'] {
  --k-bg: #f4f4f7;
  --canvas: #f4f4f7;
  --k-violet: #4b3bc4;
  --k-deep: #2b2366;
  --action: #2b2366;
  --k-lime: #c8f04c;
  --k-line: #dcdbe6;
  --k-drop: none;
  --display-weight: 750;
  --tap: 52px;
  background: #f4f4f7;
}
body.toy[data-group='leader'] .toy-hero {
  border-radius: 22px;
}
.bday-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: #fff4d1;
  border: 2px solid #ffd35c;
}
.bday-banner.today {
  background: linear-gradient(120deg, #fde6f2, #fff4d1 50%, #e7f6e9);
  border-color: #e04bc4;
}
.bday-banner b {
  display: block;
  font-size: 1.0625rem;
}
.bday-banner p {
  margin: 2px 0 0;
}
.age-group .ag-sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ---------- Android app: who's using it ---------- */
.app-start {
  display: grid;
  gap: 14px;
}
.app-start-pick {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 18px 20px;
  min-height: 76px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.app-start-pick b {
  font-size: 1.125rem;
}
.app-start-pick span {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.app-start-pick.kid {
  background: #ece6ff;
  border-color: #d3c9f1;
}
.switch-role {
  justify-self: center;
  margin-top: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- help centre and app page ---------- */
.lp-hero2-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.help-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.help-sec h3 {
  margin: 24px 0 10px;
}
.help-steps p {
  margin: 0;
}
.help-steps li {
  align-items: start;
}
.app-dl {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 8px 0 24px;
}
.app-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.app-dl .pg-meta {
  margin: 0;
}

/* Shared phone: pick who's using the kids app */
.kid-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}
.kid-pick-one {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 148px;
  padding: 18px 10px 16px;
  border-radius: 24px;
  border: 2px solid var(--k-line);
  background: #fff;
  color: var(--k-ink);
  font-size: 1.0625rem;
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 150ms ease;
}
.kid-pick-one b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kid-pick-one:active {
  transform: scale(0.96);
  border-color: var(--k-violet);
}
.kid-pick-plus {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--k-violet-soft);
  color: var(--k-violet);
}
.toy-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.switch-kid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .kid-pick-one {
    transition: none;
  }
}
