/*
 * Famoo landing page styles.
 * Colours come from the Famoo brand candidate (app/src/theme/famooTheme.ts):
 * navy #2A3F6B, charcoal #1E2B45, mint #9EDFC6, apricot #F4A261, sky #8CC8EA,
 * cream #FBF5E9, plus the darker text-safe shades used there (#9C4A14, #1F6A94,
 * #4F5A6E). Each age theme only changes custom properties on html[data-age].
 * System fonts only: nothing is loaded from another site.
 */

:root {
  --bg: #FBF5E9;
  --surface: #FFFFFF;
  --tint: #DFF2E8;
  --text: #1E2B45;
  --muted: #4F5A6E;
  --primary: #2A3F6B;
  --on-primary: #FBF5E9;
  --accent: #9C4A14;
  --border: #4F5A6E;
  --focus: #2A3F6B;
  --badge-bg: #F4A261;
  --badge-text: #1E2B45;
  --hero-bg: #FBF5E9;
  --hero-text: #1E2B45;
  --hero-muted: #4F5A6E;
  --btn2-bg: #FFFFFF;
  --btn2-text: #2A3F6B;
  --dark-bg: #1E2B45;
  --dark-text: #FBF5E9;
  --dark-muted: #D9DEE8;
  --dark-focus: #9EDFC6;
  --dark-link: #9EDFC6;
  --radius: 20px;
  --radius-btn: 999px;
  --shadow: 0 2px 0 rgba(30, 43, 69, 0.08), 0 8px 24px rgba(30, 43, 69, 0.08);
  --fs-base: 1.0625rem;
  --fs-h1: clamp(2rem, 4.6vw + 0.6rem, 3.3rem);
  --fs-h2: clamp(1.6rem, 2.4vw + 0.8rem, 2.3rem);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head-weight: 800;
  --art-scale: 1;
}

/* Little ones: warmer, rounder, bigger words, more characters. */
html[data-age="little"] {
  --bg: #FFF4E3;
  --tint: #FCE3CC;
  --primary: #2A3F6B;
  --on-primary: #FFFFFF;
  --accent: #2A3F6B;
  --focus: #2A3F6B;
  --hero-bg: #FFF4E3;
  --btn2-text: #2A3F6B;
  --radius: 32px;
  --fs-base: 1.1875rem;
  --fs-h1: clamp(2.3rem, 5.4vw + 0.7rem, 3.9rem);
  --fs-h2: clamp(1.8rem, 2.8vw + 0.9rem, 2.6rem);
  --art-scale: 1.15;
}

/* Middle: bright and friendly, sky and mint. */
html[data-age="middle"] {
  --bg: #F2F8FB;
  --tint: #DDEFF8;
  --primary: #1F6A94;
  --on-primary: #FFFFFF;
  --accent: #9C4A14;
  --focus: #1F6A94;
  --hero-bg: #F2F8FB;
  --btn2-text: #1F6A94;
  --radius: 24px;
  --fs-base: 1.125rem;
}

/* Teens: navy palette. Character presence is an independent preference. */
html[data-age="teen"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #EEF0F5;
  --text: #141A2A;
  --muted: #3F4A5E;
  --primary: #1E2B45;
  --on-primary: #FFFFFF;
  --accent: #2A3F6B;
  --border: #3F4A5E;
  --focus: #1E2B45;
  --badge-bg: #9EDFC6;
  --badge-text: #141A2A;
  --hero-bg: #141A2A;
  --hero-text: #FBF5E9;
  --hero-muted: #D9DEE8;
  --btn2-bg: transparent;
  --btn2-text: #FBF5E9;
  --radius: 10px;
  --radius-btn: 10px;
  --shadow: 0 1px 0 rgba(20, 26, 42, 0.12);
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head-weight: 700;
  --fs-h1: clamp(2rem, 4vw + 0.6rem, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-wrap: break-word;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: 1.25em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
  justify-content: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid rgba(30, 43, 69, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.wordmark {
  width: 104px;
  height: auto;
  display: block;
}

.wordmark-rainbow {
  display: none;
}

html[data-age="little"] .wordmark-navy {
  display: none;
}

html[data-age="little"] .wordmark-rainbow {
  display: block;
}

.site-header nav {
  margin-left: auto;
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.1rem;
}

.nav-list a:hover {
  text-decoration: underline;
}

@media (min-width: 880px) {
  .nav-list {
    display: flex;
  }
}

.header-cta {
  margin-left: auto;
}

@media (min-width: 880px) {
  .header-cta {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-small {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--btn2-bg);
  color: var(--btn2-text);
}

.btn-secondary:hover {
  text-decoration: underline;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.small-print {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 2.5rem 0 3rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero .small-print,
.hero .age-hint {
  color: var(--hero-muted);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.lead {
  font-size: 1.15em;
  max-width: 36em;
}

html[data-age="teen"] .hero .btn-primary {
  background: #9EDFC6;
  border-color: #9EDFC6;
  color: #141A2A;
}

html[data-age="teen"] .hero .btn-secondary {
  border-color: #FBF5E9;
}

html[data-age="teen"] .hero :focus-visible {
  outline-color: #9EDFC6;
}

/* Age picker. Hidden without JavaScript, where it would do nothing. */
.no-js .age-picker {
  min-width: 0;
  display: none;
}

.age-picker {
  min-width: 0;
  margin: 0;
  padding: 1rem 1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  max-width: 36rem;
}

.age-picker legend {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.2rem;
  padding: 0 0.4rem;
  background: var(--surface);
  border-radius: 6px;
}

.age-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: 0.5rem;
}

@media (min-width: 560px) {
  .age-options {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  }
}

.age-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.95rem;
}

.age-option small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.age-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.age-option:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.age-option:has(input:checked) small {
  color: var(--on-primary);
}

.age-option:has(input:checked) input {
  accent-color: var(--on-primary);
}

.age-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.age-option input:focus-visible {
  outline-color: var(--on-primary);
}

.age-hint {
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
}

.hero .age-picker .age-hint {
  color: var(--muted);
}

/* One coherent scene; age selects the moment, preference selects its prominence. */
.hero-art { margin: 0; min-width: 0; overflow: hidden; border-radius: 2rem; background: #FBF5E9; box-shadow: 0 18px 50px #18243a18; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-art figcaption { padding: 1rem 1.25rem; color: #2A3F6B; font-weight: 650; font-size: .95rem; }
.hero-options { min-width: 0; }
.look-picker { min-width: 0; border: 0; padding: 0; margin: 1.25rem 0 0; }
.look-picker legend { font-weight: 700; margin-bottom: .65rem; }
.look-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .6rem; }
.no-js .look-picker { display: none; }
html[data-look="subtle"] .hero-art { max-width: 20rem; justify-self: center; box-shadow: none; border: 1px solid #D5DDD2; }
html[data-look="subtle"] .hero-art figcaption { font-size: .85rem; }
html[data-look="subtle"] .characters .friends img { height: 100px; }
html[data-look="subtle"] .feature-img { width: 64px; height: 64px; }
@media (min-width: 900px) {
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-options { grid-column: 1; grid-row: 2; }
  .hero-art { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 2.5rem; }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

@media (min-width: 900px) {
  .section {
    padding: 3.25rem 0;
  }
}

.section-tinted {
  background: var(--tint);
}

.section-lead {
  font-size: 1.1em;
  max-width: 40em;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 43, 69, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

html[data-age="teen"] .step-number {
  border-radius: 8px;
}

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 43, 69, 0.1);
}

/* Keep the picture and title together, then let the copy use the full card. */
.feature-header {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem 0;
}

.feature-header h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.feature-header .feature-img {
  display: block;
  width: 84px;
  height: 84px;
  max-height: none;
  object-fit: contain;
  padding: 0;
  border-radius: 1rem;
  background: #FBF5E9;
}

.feature-header .feature-icon {
  color: var(--primary);
  padding: 0.8rem;
}

html[data-look="subtle"] .feature-header .feature-img {
  width: 84px;
  height: 84px;
  filter: saturate(0.6);
}

.feature-body {
  padding: 0.9rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature-body p {
  font-size: 0.97em;
}

.status {
  margin: auto 0 0;
  align-self: flex-start;
  font-size: 0.82rem !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  border: 1.5px solid currentColor;
}

.status-beta {
  color: #2A3F6B;
}

.status-new {
  color: #9C4A14;
}

.status-soon {
  color: #4F5A6E;
  border-style: dashed;
}

/* Promise ladder */
.grow-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .grow-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.rung {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid rgba(30, 43, 69, 0.15);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rung-age {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.rung-words {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.2em;
  line-height: 1.3;
}

.rung-how {
  color: var(--muted);
  font-size: 0.95em;
}

.rung[data-rung="little"] .rung-words {
  font-size: 1.45em;
}

html[data-age="little"] .rung[data-rung="little"],
html[data-age="middle"] .rung[data-rung="middle"],
html[data-age="teen"] .rung[data-rung="teen"] {
  border-color: var(--primary);
  border-width: 3px;
  box-shadow: var(--shadow);
}

html[data-age="little"] .rung:not([data-rung="little"]),
html[data-age="middle"] .rung:not([data-rung="middle"]),
html[data-age="teen"] .rung:not([data-rung="teen"]) {
  background: transparent;
}

/* Characters */
.friends {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 1rem;
}

@media (min-width: 760px) {
  .friends {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
}

.friends li {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.friends img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #FBF5E9;
  border-radius: calc(var(--radius) * 0.7);
  margin-bottom: 0.6rem;
}

.friend-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.1rem;
}

.friend-note {
  font-size: 0.92rem;
  color: var(--muted);
}

html[data-age="little"] .friends img {
  height: 220px;
}

/* Benefits */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  border-top: 5px solid var(--primary);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

/* Trust: dark band */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section-dark .section-lead {
  color: var(--dark-muted);
}

.section-dark :focus-visible {
  outline-color: var(--dark-focus);
}

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust li {
  border: 1px solid #8994AD;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.trust h3 {
  color: #9EDFC6;
  font-size: 1.15rem;
}

.trust p {
  margin: 0;
  color: var(--dark-muted);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid rgba(30, 43, 69, 0.2);
  padding: 0.25rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  min-height: 44px;
  list-style-position: outside;
  margin-left: 1.1rem;
}

.faq details p {
  margin: 0 0 1rem 1.1rem;
  color: var(--muted);
}

/* Final call to action */
.section-cta {
  background: var(--tint);
}

/* Mailing list sign-up (GEM-MKT-P01). Uses the look's tokens, so Playful and Subtle both match. */
.join-form {
  margin: 2.5rem auto 0;
  max-width: 34rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}

@media (min-width: 640px) {
  .join-form {
    padding: 2rem;
  }
}

.join-form h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.join-form > label,
.join-form legend {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 700;
}

.join-form input[type="email"],
.join-form input[type="text"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: min(var(--radius-btn), 12px);
}

.join-form fieldset {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.join-form fieldset label,
.join-form .join-adult {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.6rem 0 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.join-form .join-adult {
  margin-top: 1.25rem;
  font-weight: 700;
}

.join-form input[type="checkbox"] {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--primary);
}

.join-form button {
  margin-top: 1.5rem;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.join-form .join-small {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 2.5rem 0;
}

.site-footer a {
  color: var(--dark-link);
}

.site-footer :focus-visible {
  outline-color: var(--dark-focus);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-logo {
  width: 110px;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.6rem 0;
}

/* Draft legal pages */
.draft-page {
  padding: 3rem 0 4rem;
}

/* The AI connector's address: long, so it may wrap anywhere on a small screen. */
.connector-address {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.draft-note {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  background: var(--surface);
}

.draft-note + h1 {
  margin-top: 1.5rem;
}

/* Legal pages: points still to confirm before sign-off. Remove with the draft banners. */
.legal-check {
  background: #fff3c4;
  color: #5a4300;
  font-weight: 700;
  padding: 0 0.2rem;
}

/* Little ones: a gentle wiggle on hover. Off for reduced motion. */
@media (hover: hover) {
  html[data-age="little"] .art:hover {
    transform: rotate(-2deg) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn-primary:hover,
  html[data-age="little"] .art:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .age-option:has(input:checked) {
    outline: 3px solid CanvasText;
  }
}

/* Text growth must reflow choices and friend cards, not clip their content. */
.age-option span, .friend-name, .friend-note { min-width: 0; overflow-wrap: anywhere; }
.friends li { min-width: 0; }

/* Subtle is an independent, character-free presentation choice. */
.subtle-companion { display: none; }
html[data-look="subtle"] {
  --bg: #f8f9f5; --surface: #ffffff; --primary: #34594f; --text: #273e3b;
  --muted: #52635f; --border: #85978f; --radius: 14px;
}
html[data-look="subtle"] .characters { display: none; }
html[data-look="subtle"] .subtle-companion { display: block; }
html[data-look="subtle"] .hero-art { max-width: none; width: 100%; background: #f1f3ed; }
html[data-look="subtle"] .feature-header .feature-img { background: #f1f3ed; filter: none; }
html[data-look="subtle"] .section-tinted { background: #edf1ea; }
html[data-look="subtle"] h1, html[data-look="subtle"] h2, html[data-look="subtle"] h3,
html[data-look="subtle"] .age-picker legend { font-family: var(--font-body, system-ui), sans-serif; font-weight: 700; }

html[data-look="subtle"] { --font-head: system-ui, sans-serif; --hero-bg: #f8f9f5; --hero-text: #273e3b; --hero-muted: #52635f; --badge-bg: #dce7df; --badge-text: #273e3b; --btn2-text: #34594f; --focus: #34594f; }
html[data-look="subtle"] .wordmark-navy { display: block; }
html[data-look="subtle"] .wordmark-rainbow { display: none; }

/* ---------------------------------------------------------------
 * "See the real app" showcase and the founder note (Claude Code, feat/website-showcase).
 * Namespaced .showcase-* and .founder-*; nothing above is restyled.
 * .showcase-frame is a plain CSS phone frame, kept simple so the
 * phone-frame artwork can replace it: swap the border and radius
 * for the art, keep the 390:844 screen inside.
 * --------------------------------------------------------------- */
.showcase-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  margin: 1.5rem -8px 0;
  padding: 8px 8px 1.25rem;
  scroll-padding-inline: 8px;
  border-radius: var(--radius);
}
.showcase-scroller:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.showcase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.showcase-item {
  flex: 0 0 auto;
  width: 13.5rem;
  max-width: 70vw;
  scroll-snap-align: start;
}
.showcase-item:first-child { width: 16rem; max-width: 78vw; }
.showcase-figure { margin: 0; }
.showcase-frame {
  aspect-ratio: 390 / 844;
  border: 0.55rem solid var(--text);
  border-radius: 2.25rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.showcase-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-figure figcaption { margin-top: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.showcase-name { display: block; color: var(--text); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .showcase-scroller { scroll-behavior: smooth; }
}

.founder-note { margin: 1.5rem 0 0; }
.founder-note blockquote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 0.35rem solid var(--accent);
}
.founder-note blockquote p { font-size: 1.125em; }
.founder-note figcaption { margin-top: 1rem; font-weight: 700; }

/* Show both visual choices before the visitor commits to the first impression. */
.hero-copy > .look-picker { margin: 0 0 1.5rem; max-width: 29rem; }
.hero-copy > .look-picker .age-hint { font-size: .85rem; margin: .5rem 0 0; }
.hero-copy > .look-picker legend { font-size: .9rem; }
.hero-grid { gap: 1.5rem 2.5rem; }
.subtle-objects { display: none; }
.hero-picture { position: relative; }
html[data-look="subtle"] .hero-picture { min-height: 22rem; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; padding: 1rem; gap: .5rem; }
html[data-look="subtle"] #hero-scene { aspect-ratio: 1; padding: .25rem; }
html[data-look="subtle"] .subtle-objects { display: grid; justify-items: center; gap: .25rem; font-size: .8rem; color: var(--text); }
.subtle-objects img { width: 7rem; height: 7rem; object-fit: contain; }
.subtle-objects span { margin-bottom: .75rem; }
html[data-look="subtle"] [data-feature="stories"],
html[data-look="subtle"] [data-screen="story-time"] { display: none; }
[hidden] { display: none !important; }
@media (min-width: 900px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero-art { align-self: center; margin-top: 0; }
}
@media (max-width: 639px) {
  html[data-look="subtle"] .hero-picture { min-height: 17rem; padding: .75rem; }
  .subtle-objects img { width: 5rem; height: 5rem; }
}

.roadmap .step { min-width: 0; }
.roadmap h3 { overflow-wrap: anywhere; }

/* Chores by age (/chores-by-age/): search pages built from the job library. */
.chores { padding: 2rem 0 4rem; }
.crumbs { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; overflow-wrap: anywhere; }
.chores-intro { display: flex; align-items: center; gap: 1rem; }
.chores-intro h1 { margin: 0.25rem 0 0; }
.chores-art { width: 5.5rem; height: 5.5rem; object-fit: contain; flex: none; }
.chores .answer { font-size: 1.15em; }
.band-switch { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 1.25rem 0 0.5rem; }
.band-switch a[aria-current="page"] { font-weight: 800; text-decoration: none; }
.chores section { margin-top: 2.5rem; }
.chores .toc { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-left: 1.1rem; }
.table-scroll { overflow-x: auto; margin: 0.75rem 0; border-radius: 12px; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.job-table, .chart-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }
.job-table th, .job-table td, .chart-table th, .chart-table td { border: 1px solid rgba(30, 43, 69, 0.2); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
.job-table thead th, .chart-table thead th { background: var(--tint); }
.job-table tbody th { font-weight: 700; min-width: 9rem; }
.job-new { display: inline-block; margin-left: 0.25rem; padding: 0 0.4rem; border-radius: 6px; background: var(--badge-bg); color: var(--badge-text); font-size: 0.8rem; font-weight: 700; }
.group-note, .routine-when, .step-time, .chart-foot { color: var(--muted); font-size: 0.95rem; }
.routines { display: grid; gap: 1rem; }
@media (min-width: 760px) { .routines { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.routine { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; }
.routine h3 { margin-top: 0; }
.chart-table caption { text-align: left; padding: 0.5rem 0; font-weight: 700; }
.chart-table td { width: 2.6rem; height: 2.2rem; }
.chart-table td.off { background: #e4e6ea; }
.chart-table .chart-group th { background: var(--tint); font-weight: 800; }
.chores-outcome { background: var(--tint); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.chores-outcome h2 { margin-top: 0; }
.ai-label { margin-top: 2rem; padding: 1rem 1.25rem; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--surface); font-size: 0.95rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.chores .faq summary h3 { display: inline; font-size: 1em; margin: 0; }
.start-steps li { margin-bottom: 0.75rem; }

/* Print: only the chart, on one A4 page, in black and white. */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .chores-page .skip-link, .chores-page .site-header, .chores-page .site-footer,
  .chores .wrap > :not(.print-chart), .print-chart .no-print-inline { display: none !important; }
  .chores-page, .chores-page body { background: #fff; color: #000; }
  .chores { padding: 0; }
  .chores .wrap { max-width: none; padding: 0; }
  .print-chart { margin: 0; }
  .print-chart h2 { font-size: 16pt; margin: 0 0 4mm; }
  .print-chart .table-scroll { overflow: visible; }
  .chart-table { font-size: 10.5pt; background: #fff; page-break-inside: avoid; }
  .chart-table th, .chart-table td { border: 1px solid #000; padding: 1.6mm 2mm; }
  .chart-table td { width: 14mm; height: 8mm; }
  .chart-table td.off { background: #ccc; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .chart-table thead th, .chart-table .chart-group th { background: #fff; }
  .chart-foot { color: #000; font-size: 9pt; }
}
.byline { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

/* "Ideas" in the header: the way into every guide (30 October 2026). */
.header-ideas {
  margin-left: auto;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-btn);
}

.header-ideas:hover,
.header-ideas:focus-visible {
  text-decoration: underline;
}

.header-ideas + .header-cta {
  margin-left: 0.25rem;
}

@media (min-width: 880px) {
  .site-header nav + .header-ideas {
    margin-left: 1.25rem;
  }
}

/* Ideas cards: two to a row on a phone, a small picture, so a parent can scan many. */
.activity-cards.ideas-cards {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

.activity-cards.ideas-cards img,
.ideas-cards .activity-card img {
  aspect-ratio: 4 / 3;
}

.ideas-cards .card-title {
  font-size: 1rem;
  padding: 0.7rem 0.8rem 0.15rem;
}

.ideas-cards .card-meta {
  font-size: 0.88rem;
  padding: 0 0.8rem 0.8rem;
}

/* Guide hero picture: under the lead, full width of the article (build-guide-heroes.py). */
.guide-hero {
  margin: 1.5rem 0 2rem;
}

.guide-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #FBF5E9;
}

@media print {
  .guide-hero { display: none; }
}
