:root {
  --ink: #2c1810;
  --ink-soft: #7a5548;
  --paper: #fff8f0;
  --paper-2: #fdeee2;
  --card: #ffffff;
  --brand: #e85d4c;
  --brand-deep: #c43c32;
  --brand-soft: #ff8a6a;
  --sun: #ffb347;
  --sun-deep: #f08a24;
  --pink: #e85d4c;
  --coral: #e85d4c;
  --peach: #ff8a5b;
  --tangerine: #f4a261;
  --gold: #e9c46a;
  --sage: #2a9d8f;
  --sky: #4ea8de;
  --plum: #c43c32;
  --blush: #f7d6e0;
  --cream: #fff6ea;
  --family: #e85d4c;
  --family-deep: #c43c32;
  --premium: #e85d4c;
  --premium-deep: #c43c32;
  --line: rgba(44, 24, 16, 0.1);
  --shadow: 0 10px 28px rgba(196, 60, 50, 0.12);
  --shadow-lg: 0 18px 40px rgba(196, 60, 50, 0.16);
  --radius: 24px;
  --font: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", "Avenir Next", sans-serif;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-700.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(720px 420px at -8% -8%, rgba(232, 93, 76, 0.08) 0%, transparent 55%),
    radial-gradient(560px 320px at 108% 0%, rgba(244, 162, 97, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fff8f0 55%, #fdeee2 100%);
  line-height: 1.5;
  font-weight: 600;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 14px;
  padding: 12px 22px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 93, 76, 0.12);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, calc(100vw - 140px));
  object-fit: contain;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(232, 93, 76, 0.25);
}

.brand-mark img,
.brand-mark svg {
  display: block;
  width: 32px;
  height: 32px;
}

.header-icon img {
  display: block;
}

.brand-word {
  white-space: nowrap;
}

.brand-accent {
  color: var(--brand);
}

.header-icon {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--brand);
  text-decoration: none;
  border-radius: 50%;
}

.header-icon:hover {
  background: rgba(232, 93, 76, 0.08);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 6px;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--brand);
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

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

.nav-upgrade {
  color: #fff !important;
  background: var(--plum) !important;
  box-shadow: 0 3px 0 var(--family-deep);
}

.nav-upgrade.is-on {
  background: #fff !important;
  color: var(--plum) !important;
  box-shadow: 0 0 0 2px var(--plum);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(44, 24, 16, 0.08);
  cursor: pointer;
  font-family: inherit;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 93, 76, 0.28);
}

.btn-ghost {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(232, 93, 76, 0.16);
}

.btn-danger {
  background: #b42318;
  color: #fff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.22);
}

.account-card {
  max-width: 40rem;
  margin-bottom: 20px;
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 18px 0;
}

.account-meta dt {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.account-meta dd {
  margin: 0;
  font-weight: 800;
}

.danger-card {
  border: 2px solid rgba(180, 35, 24, 0.18);
}

.danger-card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
}

.page-card-body .hero-actions,
.page-card-saved .hero-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(240, 180, 0, 0.28);
}

.btn-on-warm,
.btn-on-purple {
  background: #fff;
  color: var(--brand);
}

.btn-small,
.btn-tiny {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.95rem;
}

.btn-tiny {
  min-height: 36px;
  background: var(--sun);
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 18px 0;
}

.account-meta dt {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.account-meta dd {
  margin: 0;
  font-weight: 800;
}

.logout-all-form {
  margin-top: 16px;
}

main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 72px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.hero,
.lane-head,
.upgrade,
.teaser,
.auth-card {
  padding: 40px 0 8px;
  position: relative;
}

body.page-landing main {
  width: 100%;
  max-width: 100%;
  margin: 0 0 72px;
  padding-left: 0;
  padding-right: 0;
}

.landing-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 52px 20px 56px;
  margin: 0;
  text-align: center;
  color: #fff;
  background-color: var(--brand);
  background-image:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 179, 71, 0.55) 0%, transparent 58%),
    radial-gradient(720px 380px at 108% 8%, rgba(196, 60, 50, 0.35) 0%, transparent 52%),
    linear-gradient(165deg, #e85d4c 0%, #f08a24 58%, #c43c32 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-actions {
  justify-content: center;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 5.4vw, 3.7rem);
  line-height: 1.05;
  margin: 10px 0 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--plum);
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(232, 93, 76, 0.1);
}

.lede {
  font-size: 1.18rem;
  max-width: 38rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.browse-block {
  width: 100%;
  max-width: 100%;
  margin: 0 0 36px;
}

.browse-banner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 16px 20px 28px;
  position: relative;
}

.browse-banner h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 700;
}

.browse-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 16px;
  background:
    linear-gradient(135deg, var(--pink) 33%, transparent 34%),
    linear-gradient(-135deg, var(--pink) 33%, transparent 34%);
  background-size: 22px 16px;
  background-repeat: repeat-x;
}

.lane-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
  width: 100%;
  max-width: 720px;
  margin: 36px auto 8px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  text-align: center;
}

.lane-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.lane-chip-disc {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 24, 16, 0.12);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lane-chip-disc img,
.lane-chip-disc svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lane-chip:hover .lane-chip-disc {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(232, 93, 76, 0.18);
}

.lane-chip-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lane-chip-count {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.page-card {
  min-width: 0;
  max-width: 100%;
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0 0 0;
  box-shadow: var(--shadow);
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.page-card-kids,
.page-card-education,
.page-card-adult,
.page-card-saved {
  box-shadow: var(--shadow);
}

.page-card-body {
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-card-body h3,
.page-card-body .tags {
  padding: 0 14px;
}

.page-card h3 {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.page-card .btn-small,
.page-card .btn-colour {
  margin-top: auto;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  min-height: 46px;
}

.page-card .btn-small:not(.btn-locked),
.page-card .btn-colour:not(.btn-locked) {
  background: var(--brand);
  color: #fff;
}

.page-card .btn-small:not(.btn-locked):hover,
.page-card .btn-colour:not(.btn-locked):hover {
  background: var(--brand-deep);
}

.page-card.is-locked {
  z-index: 1;
}

.page-card.is-locked::before,
.page-card.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  z-index: -1;
}

.page-card.is-locked::before {
  transform: translate(7px, 7px);
}

.page-card.is-locked::after {
  transform: translate(13px, 12px);
  opacity: 0.8;
}

.page-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(44, 24, 16, 0.06);
  margin: 12px 12px 0;
  min-width: 0;
  max-width: 100%;
}

.thumb-svg svg,
.thumb-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: contain;
  background: #fffef8;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -18deg,
      #fff 0 18px,
      #fdeee2 18px 20px
    );
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 4px 10px rgba(44, 24, 16, 0.12);
}

.badge-free {
  background: var(--sun);
  color: var(--ink);
}

.badge-family {
  background: var(--plum);
  color: #fff;
}

.page-card.is-locked .page-thumb {
  box-shadow: inset 0 0 0 3px rgba(196, 60, 50, 0.25);
}

.tags {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.flash-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto 0;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.flash {
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(34, 179, 154, 0.28);
}

.site-foot {
  text-align: center;
  color: var(--ink-soft);
  padding: 8px 24px 36px;
  font-size: 0.95rem;
}

.foot-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 8px;
  background: #fff;
  border: 1px solid rgba(232, 93, 76, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 8px;
}

.foot-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--plum);
}

.foot-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.foot-legal h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}

.foot-legal-note {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.foot-legal-nav {
  margin-top: 0;
  gap: 6px 14px;
}

.foot-legal-nav a {
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-page {
  max-width: 46rem;
  margin: 0 auto 32px;
  background: #fff;
  border-radius: 32px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}

.legal-draft {
  background: #fff6d6;
  border: 2px solid rgba(240, 180, 0, 0.55);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 0 0 18px;
}

.legal-draft p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: -8px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.88rem;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--plum);
  text-decoration: underline;
}

.legal-body h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0 20px;
}

.legal-body th,
.legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.legal-body th {
  background: var(--paper);
}

.legal-body blockquote {
  background: #fff6ea;
  border: 2px solid rgba(232, 93, 76, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 16px 0;
}

.legal-body blockquote p {
  margin: 0.35rem 0 0;
}

.legal-body blockquote p:first-child {
  margin-top: 0;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.legal-table th {
  background: var(--paper);
}

.legal-contact {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.kid-privacy {
  background: #fff6ea;
  border: 2px solid rgba(232, 93, 76, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 16px 0;
}

.kid-privacy h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.kid-privacy p {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 22px 16px 20px;
    border-radius: 24px;
  }

  .legal-table th,
  .legal-table td {
    padding: 6px;
    font-size: 0.85rem;
  }
}

.auth-card,
.upgrade,
.teaser {
  max-width: 36rem;
}

.auth-card,
.page-upgrade .upgrade,
.teaser,
.family-studio {
  background: #fff;
  border: 0;
  border-radius: 32px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}

.page-upgrade .upgrade-wide {
  max-width: 52rem;
}

.auth-form p {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form input,
.auth-form select {
  min-height: 46px;
  border-radius: 14px;
  border: 2px solid rgba(36, 28, 20, 0.18);
  padding: 8px 12px;
  font: inherit;
  background: #fff;
}

.staff-upload {
  max-width: 40rem;
}

.note-box {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 18px 0 8px;
}

.note-box p {
  margin: 0 0 6px;
  color: var(--ink-soft);
}

.note-box p:last-child {
  margin-bottom: 0;
}

.kid-privacy {
  background: #fff6ea;
  border: 2px solid rgba(232, 93, 76, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 16px 0;
}

.kid-privacy h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.05rem;
}

.kid-privacy p {
  margin: 0;
  color: var(--ink);
}

.check-row {
  gap: 4px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.check input {
  min-height: 0;
  width: 20px;
  height: 20px;
}

.helptext,
.auth-form .helptext {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.errorlist {
  color: var(--coral);
  padding-left: 18px;
}

.hint {
  color: var(--ink-soft);
}

.hint a {
  color: var(--plum);
  font-weight: 700;
}

.hint code,
.empty code {
  background: rgba(255, 255, 255, 0.75);
  padding: 1px 6px;
  border-radius: 6px;
}

.empty {
  grid-column: 1 / -1;
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 2px dashed var(--line);
}

.teaser-preview {
  margin: 22px 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0.92;
  pointer-events: none;
  max-width: 360px;
  border: 2px solid var(--line);
  aspect-ratio: 1;
}

.teaser-preview img,
.teaser-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.upgrade-form {
  margin: 22px 0 12px;
}

body.page-color {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff8f0;
}

.page-color main {
  width: min(940px, calc(100% - 16px));
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 24px;
}

.color-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.color-meta {
  padding-top: 18px;
}

.color-meta h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.staff-retrace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 0;
}

.staff-retrace button {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.staff-retrace span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.toolbar {
  position: sticky;
  top: 58px;
  z-index: 8;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f0 100%);
  border: 1px solid rgba(232, 93, 76, 0.14);
  border-radius: 24px;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  font-family: var(--font);
}

.toolbar-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.palette-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.swatches,
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  /* Fills come from data-color rules below. Inline style="--c" is blocked by
     CSP style-src 'self', which left these chips as empty white circles. */
  background-color: var(--c, #fff);
  box-shadow: 0 0 0 2px rgba(36, 28, 20, 0.28);
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
  forced-color-adjust: none;
}

.swatch[data-color="#e85d4c"] { background-color: #e85d4c; }
.swatch[data-color="#f4a261"] { background-color: #f4a261; }
.swatch[data-color="#e9c46a"] { background-color: #e9c46a; }
.swatch[data-color="#86c5a8"] { background-color: #86c5a8; }
.swatch[data-color="#7eb8d9"] { background-color: #7eb8d9; }
.swatch[data-color="#c44536"] { background-color: #c44536; }
.swatch[data-color="#b8a1d9"] { background-color: #b8a1d9; }
.swatch[data-color="#fff6ea"] { background-color: #fff6ea; }
.swatch[data-color="#2c1810"] { background-color: #2c1810; }
.swatch[data-color="#ff8a5b"] { background-color: #ff8a5b; }
.swatch[data-color="#ffb703"] { background-color: #ffb703; }
.swatch[data-color="#5b9a86"] { background-color: #5b9a86; }
.swatch[data-color="#d9480f"] { background-color: #d9480f; }
.swatch[data-color="#7f5539"] { background-color: #7f5539; }
.swatch[data-color="#1d3557"] { background-color: #1d3557; }
.swatch[data-color="#adb5bd"] { background-color: #adb5bd; }
.swatch[data-color="#f7d6e0"] { background-color: #f7d6e0; }
.swatch[data-color="#ffffff"] { background-color: #ffffff; }

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--ink);
  transform: scale(1.08);
}

.more-colours {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 10px 6px 6px;
  border-radius: 16px;
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, #ffe9c2, #ffd27a 55%, #ffb347);
  box-shadow: 0 6px 14px rgba(232, 93, 76, 0.12);
  cursor: pointer;
  touch-action: manipulation;
  color: var(--ink);
  position: relative;
}

.more-colours.is-custom {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.more-colours-preview {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #7eb8d9;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
  flex-shrink: 0;
}

.more-colours-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.more-colours-copy strong {
  font-size: 1.05rem;
}

.more-colours-copy span {
  font-size: 0.85rem;
  font-weight: 600;
}

.more-colours input[type="color"] {
  width: 56px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.tools {
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

.tool {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(232, 93, 76, 0.22);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.tool-save {
  background: var(--sage);
  color: #fff;
}

.save-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sage);
  font-weight: 700;
}

.color-stage svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.color-stage .fillable,
.color-stage [id^="r"] {
  transition: fill 0.08s linear;
}

.color-stage:has(.ink-overlay) .fillable,
.color-stage:has(.ink-overlay) [id^="r"] {
  stroke: none;
}

.color-stage .ink-overlay {
  pointer-events: none;
}

.studio-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stage-wrap {
  margin: 18px 0 88px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232, 93, 76, 0.1);
  overflow: hidden;
  position: relative;
}

.page-studio .stage-wrap {
  touch-action: none;
  overscroll-behavior: contain;
}

.stage-transform {
  position: relative;
  transform-origin: center center;
  will-change: transform;
}

.color-stage {
  touch-action: manipulation;
  user-select: none;
  position: relative;
  z-index: 1;
}

.studio-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

#paint-layer {
  z-index: 2;
}

#ink-layer {
  z-index: 3;
}

.color-app.is-panning .stage-wrap {
  cursor: grab;
}

.studio-primary,
.studio-modes,
.studio-tools,
.studio-tools-extra,
.studio-sizes,
.studio-view,
.studio-more-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.studio-primary {
  gap: 10px 14px;
  position: relative;
}

.studio-more-toggle.tool-icon {
  display: none;
}

.mode-btn,
.tool-icon,
.size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid rgba(232, 93, 76, 0.28);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

.tool-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.tool-name {
  line-height: 1;
}

.palette-toggle {
  display: none;
}

.palette-sheet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.palette-sheet-label {
  display: none;
}

.zoom-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

.zoom-chip {
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid rgba(232, 93, 76, 0.28);
  background: rgba(255, 253, 251, 0.94);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(196, 60, 50, 0.12);
}

.mode-btn.is-active,
.tool-icon.is-active,
.size-btn.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-deep);
}

.tool-icon.is-stub {
  opacity: 0.4;
  cursor: not-allowed;
}

.label-short {
  display: none;
}

.studio-modes {
  padding-bottom: 0;
}

body.page-color .site-foot {
  display: none;
}

.studio-shell:fullscreen,
.studio-shell:-webkit-full-screen {
  background: #fff8f0;
  padding: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.studio-shell:fullscreen .stage-wrap,
.studio-shell:-webkit-full-screen .stage-wrap {
  flex: 1;
  margin: 8px 0;
}

@media (max-width: 1024px) {
  body.page-color .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    gap: 8px 12px;
    z-index: 20;
    overflow: visible;
  }

  body.page-color .brand {
    font-size: 1.15rem;
    gap: 8px;
    margin-right: 0;
    justify-self: start;
    grid-column: 1;
  }

  body.page-color .brand-logo {
    height: 32px;
    max-width: min(180px, calc(100vw - 120px));
  }

  body.page-color .brand-mark {
    width: 24px;
    height: 24px;
  }

  body.page-color .brand-mark img,
  body.page-color .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  body.page-color .header-more {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  body.page-color .grownup-menu {
    grid-column: 3;
    justify-self: end;
    position: static;
  }

  body.page-color .nav {
    display: none;
  }

  body.page-color main {
    width: 100%;
    margin: 0;
    padding: 0 8px;
  }

  body.page-color .color-meta {
    padding-top: 8px;
  }

  body.page-color .color-meta h1 {
    font-size: 1.2rem;
    margin: 2px 0 4px;
  }

  body.page-color .color-meta .hint,
  body.page-color .color-meta .kicker {
    display: none;
  }

  body.page-color .staff-retrace {
    margin: 4px 0 6px;
  }

  .color-app {
    flex: 1;
    min-height: 0;
  }

  .toolbar {
    position: sticky;
    bottom: 0;
    top: auto;
    order: 3;
    margin: 0 -8px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    border-radius: 18px 18px 0 0;
    z-index: 9;
    overflow: visible;
  }

  .toolbar-label {
    display: none;
  }

  .studio-primary {
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow: visible;
  }

  .studio-primary .mode-btn,
  .studio-primary .tool-icon {
    padding: 8px 4px;
    font-size: 0.68rem;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .studio-modes {
    flex: 0 0 auto;
    padding: 0;
    gap: 0;
    border: 2px solid rgba(232, 93, 76, 0.28);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
  }

  .studio-modes .mode-btn {
    border: 0;
    border-radius: 0;
    min-width: 44px;
    padding: 8px 5px;
  }

  .studio-modes .mode-btn + .mode-btn {
    border-left: 2px solid rgba(232, 93, 76, 0.28);
  }

  .studio-primary > .studio-tools .tool-icon,
  .studio-more-toggle {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 8px 2px;
    justify-content: center;
    gap: 0;
  }

  .studio-primary .tool-name {
    display: none;
  }

  .studio-tools {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .studio-tools::-webkit-scrollbar {
    display: none;
  }

  .studio-more-toggle.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .studio-more-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
    width: min(320px, calc(100vw - 24px));
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(232, 93, 76, 0.16);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(44, 24, 16, 0.16);
    z-index: 12;
  }

  .studio-more-panel.is-open {
    display: flex;
  }

  .studio-tools-extra .is-stub {
    display: none;
  }

  .palette-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .swatches {
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 2px;
    scrollbar-width: thin;
  }

  .swatch {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .palette-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 2px solid var(--brand);
    background: linear-gradient(180deg, #fff 0%, #fff6ea 100%);
    font: inherit;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--ink);
    cursor: pointer;
  }

  .palette-toggle-dots {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, #e85d4c 38%, transparent 40%),
      radial-gradient(circle at 70% 35%, #e9c46a 34%, transparent 36%),
      radial-gradient(circle at 50% 78%, #86c5a8 36%, transparent 38%);
    box-shadow: inset 0 0 0 1px rgba(44, 24, 16, 0.12);
    flex-shrink: 0;
  }

  .palette-toggle.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand-deep);
  }

  .palette-sheet {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid rgba(232, 93, 76, 0.16);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(44, 24, 16, 0.16);
    z-index: 12;
  }

  .palette-sheet.is-open {
    display: flex;
  }

  .palette-sheet-label {
    display: block;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .swatches-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .more-colours {
    position: relative;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    padding: 0;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border-width: 2px;
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
  }

  .more-colours-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .more-colours-preview {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 0;
    box-shadow: none;
  }

  .more-colours input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    border: 0;
    cursor: pointer;
  }

  .tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 0;
    border-top: 0;
    gap: 6px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .tool {
    min-height: 44px;
    min-width: 0;
    width: 100%;
    padding: 8px 4px;
    justify-content: center;
    font-size: 0.82rem;
  }

  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .stage-wrap {
    order: 2;
    flex: 1 1 auto;
    margin: 8px 0 10px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .color-stage {
    width: 100%;
    max-height: 100%;
  }

  .color-stage svg {
    max-height: min(72dvh, 100%);
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .studio-shell {
    flex: 1;
    min-height: 0;
  }

  .mode-btn,
  .tool-icon,
  .size-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 10px;
    font-size: 0.82rem;
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand more grownup"
      "kids kids kids";
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 20;
    padding: 8px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    row-gap: 8px;
    overflow: visible;
  }

  .brand {
    grid-area: brand;
    margin-right: 0;
    justify-self: start;
    font-size: 1.2rem;
  }

  .brand-logo {
    height: 36px;
    max-width: min(168px, calc(100vw - 168px));
  }

  .header-more {
    grid-area: more;
    justify-self: end;
  }

  .grownup-menu {
    grid-area: grownup;
    justify-self: end;
    position: static;
  }

  .nav {
    grid-area: kids;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 0 6px;
    margin: 0;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .compare-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 18px 48px;
  }

  .lane-head {
    padding-top: 20px;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 12px;
  }

  .page-card.is-locked {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-card.is-locked::before {
    transform: translate(4px, 4px);
  }

  .page-card.is-locked::after {
    transform: translate(8px, 7px);
  }

  .page-card h3 {
    font-size: 0.98rem;
    min-height: 2.5em;
  }

  .page-card .tags {
    display: none;
  }

  .page-card .btn-small,
  .page-card .btn-colour {
    font-size: 0.82rem;
    padding: 8px 8px;
    min-height: 44px;
  }

  .lane-chip-disc {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 1024px) and (max-height: 500px) {
  body.page-color .color-meta {
    display: none;
  }

  .color-stage svg {
    max-height: min(78dvh, 100%);
  }

  .toolbar {
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
}

.promise-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
  margin: 8px 0 28px;
  width: 100%;
  min-width: 0;
}

.promise {
  background: #fff;
  border: 0;
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.promise-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 2px 0 rgba(42, 29, 20, 0.2);
}

.promise-1 .promise-dot { background: var(--coral); }
.promise-2 .promise-dot { background: var(--gold); }
.promise-3 .promise-dot { background: var(--sage); }
.promise-4 .promise-dot { background: var(--plum); }

.promise h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.promise p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.featured-family {
  margin-top: 40px;
}

.pack-stub {
  margin: 0 0 36px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pack-card {
  background: #fff;
  border: 2px dashed rgba(232, 93, 76, 0.28);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pack-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
}

.pack-card p {
  margin: 0;
  color: var(--ink-soft);
}

.pack-soon {
  margin-top: 10px !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
}

.badge-own {
  background: var(--sage);
  color: #fff;
}

.btn-locked {
  background: var(--plum);
  color: #fff;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.profile-chips form {
  margin: 0;
}

.chip {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(232, 93, 76, 0.24);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.chip.is-active {
  background: var(--sun);
  box-shadow: 0 4px 10px rgba(240, 180, 0, 0.2);
}

.chip-add {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 3px 0 #146f60;
}

.chip-locked {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}

.studio-banner,
.studio-nudge {
  background: linear-gradient(135deg, #f4e9ff, #fff4e6);
  border: 2px solid rgba(232, 93, 76, 0.28);
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.studio-banner a,
.studio-nudge a {
  color: var(--plum);
  font-weight: 700;
}

.upgrade-wide {
  max-width: 44rem;
}

.compare-wrap {
  margin: 28px 0 8px;
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232, 93, 76, 0.12);
}

.compare caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 4px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.compare thead th {
  background: #fff6ea;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare thead th:nth-child(3) {
  background: #ffe0c8;
  color: var(--family-deep);
}

.compare tbody td:nth-child(3) {
  background: rgba(232, 93, 76, 0.05);
}

.compare tbody th {
  font-weight: 800;
  width: 32%;
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.member-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 2px solid rgba(232, 93, 76, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(232, 93, 76, 0.08);
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-studio {
  max-width: 40rem;
}

.featured {
  margin: 12px 0 48px;
}

.featured-family {
  padding: 22px 20px 26px;
  background: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.lane-head-kids .kicker { background: rgba(255, 107, 74, 0.14); color: #c4472a; }
.lane-head-education .kicker { background: rgba(34, 179, 154, 0.14); color: #146f60; }
.lane-head-adult .kicker { background: rgba(232, 93, 76, 0.14); color: var(--family-deep); }

body.is-family .topbar {
  background: rgba(255, 255, 255, 0.96);
}

.color-meta h1 {
  font-family: var(--display);
}

.auth-form input:focus,
.auth-form select:focus {
  outline: 3px solid rgba(232, 93, 76, 0.28);
  border-color: var(--plum);
}

.tool-save {
  background: linear-gradient(180deg, #3dceb4, var(--sage));
}

@media (max-width: 1024px) {
  body.page-color .nav,
  .studio-more-panel {
    background: #fff;
  }
}

.kicker-on-hero {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.continue-strip {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.continue-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.continue-inner p {
  margin: 0;
  font-weight: 800;
}

.browse-more {
  text-align: center;
  margin: 8px 0 0;
  font-weight: 800;
}

.browse-more a {
  color: var(--brand-deep);
  text-decoration: none;
}

.category-chips {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  max-width: 980px;
}

.lane-chip-cat {
  font-size: 2.4rem;
  background: linear-gradient(180deg, #fff, var(--cream));
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  border: 1px solid rgba(232, 93, 76, 0.08);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 2rem;
  line-height: 1;
}

.category-card h3 {
  margin: 0;
  font-family: var(--display);
}

.category-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 12px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.plan-card-premium {
  background: linear-gradient(180deg, #fff8f0, #fff);
  border: 2px solid rgba(232, 93, 76, 0.28);
  box-shadow: var(--shadow-lg);
}

.plan-card-schools {
  background: linear-gradient(180deg, #eef8f3, #fff);
  border: 1px solid rgba(34, 140, 110, 0.18);
}

.plan-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

.plan-price {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--brand-deep);
}

.plan-card ul {
  margin: 0;
  padding-left: 1.1em;
}

.plan-card li {
  margin: 0 0 8px;
}

.premium-cta-band {
  margin: 48px 0 8px;
  padding: 28px 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff6ea, #ffe0c8);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.premium-cta-band h2 {
  margin: 0 0 6px;
}

.premium-cta-band p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.ticket-message,
.ticket-reply {
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

.ticket-reply.is-staff {
  border-left: 6px solid var(--brand);
}

.badge-family {
  background: var(--brand);
  color: #fff;
}

/* Launch polish: a11y, avatars, Premium story, staging, calmer grown-up pages */

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip:focus {
  outline: 3px solid #fff;
}

.nav a,
.nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn,
.btn-tiny,
.chip,
.lane-chip {
  min-height: 44px;
}

.hero {
  position: relative;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-art img {
  width: min(520px, 90vw);
  height: auto;
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
}

.premium-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.premium-story article {
  background: #fff6ea;
  border-radius: 22px;
  padding: 20px 18px;
  border: 1px solid rgba(232, 93, 76, 0.1);
}

.premium-story h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.premium-story p {
  margin: 0;
  color: var(--ink-soft);
}

.billing-copy {
  margin: 24px 0 12px;
  padding: 18px 16px;
  background: #fff6ea;
  border-radius: 18px;
}

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-card,
.category-card,
.promise,
.plan-card {
  box-shadow: 0 4px 16px rgba(196, 60, 50, 0.06);
}

.category-card:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(196, 60, 50, 0.1);
}

.category-icon img,
.lane-chip-cat img,
.category-heading-icon {
  display: block;
  width: 72px;
  height: 72px;
}

.category-heading-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-right: 8px;
}

.member-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar,
.chip img {
  border-radius: 50%;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar-picker {
  border: 0;
  padding: 0;
  margin: 16px 0 20px;
}

.avatar-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.avatar-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 44px;
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice img {
  border-radius: 50%;
  border: 3px solid transparent;
  background: #fff6ea;
}

.avatar-choice:has(input:checked) img,
.avatar-choice input:focus-visible + img {
  border-color: var(--brand);
}

.staging-banner {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  background: #e9c46a;
  color: #2c1810;
  font-weight: 800;
}

body.page-grownup {
  background: linear-gradient(180deg, #fffdf9 0%, #fff8f0 100%);
}

body.page-grownup .auth-card,
body.page-grownup .family-studio,
body.page-upgrade .upgrade {
  box-shadow: 0 4px 18px rgba(44, 24, 16, 0.06);
}

@media (max-width: 1024px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand more grownup"
      "kids kids kids";
    align-items: center;
    overflow: visible;
    z-index: 20;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    row-gap: 8px;
  }

  .topbar .brand {
    grid-area: brand;
    margin-right: 0;
    justify-self: start;
  }

  .topbar .brand-logo {
    height: 36px;
    max-width: min(180px, calc(100vw - 176px));
  }

  .topbar .header-more {
    grid-area: more;
    justify-self: end;
  }

  .topbar .grownup-menu {
    grid-area: grownup;
    justify-self: end;
    position: static;
  }

  .topbar .nav {
    grid-area: kids;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }

  .topbar .nav::-webkit-scrollbar {
    display: none;
  }

  body.page-color .topbar {
    grid-template-areas: "brand more grownup";
    row-gap: 0;
  }

  body.page-color .nav {
    display: none;
  }

  .hero-art img {
    opacity: 0.28;
    right: auto;
    left: 50%;
    transform: translate(-50%, -42%);
  }
}

/* Kid-first header: coral chrome, grown-up links behind one icon */

.header-more {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(232, 93, 76, 0.22);
}

.header-more:hover {
  background: var(--brand-deep);
  color: #fff;
}

.nav-kid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 93, 76, 0.16);
}

.nav-kid-short {
  display: none;
}

.nav-kid:hover {
  color: var(--brand-deep);
  background: rgba(232, 93, 76, 0.1);
}

.nav-kid.is-current,
.nav-kid[aria-current="page"] {
  color: var(--brand-deep);
  background: rgba(232, 93, 76, 0.14);
}

.grownup-menu {
  position: relative;
  flex: 0 0 auto;
}

.grownup-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px 0 10px;
  border: 2px solid rgba(232, 93, 76, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 93, 76, 0.16);
}

.grownup-toggle-label {
  display: inline;
  white-space: nowrap;
}

.grownup-toggle:hover,
.grownup-menu.is-open .grownup-toggle {
  background: rgba(232, 93, 76, 0.1);
  border-color: var(--brand);
  color: var(--brand-deep);
}

.grownup-toggle:focus-visible {
  outline: 3px solid rgba(232, 93, 76, 0.45);
  outline-offset: 2px;
}

.grownup-toggle-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.grownup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(44, 24, 16, 0.22);
}

html.grownup-open .topbar {
  z-index: 50;
}

.grownup-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  padding: 10px 8px 8px;
  background: #fff;
  border: 1px solid rgba(232, 93, 76, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(196, 60, 50, 0.14);
}

.grownup-panel-label {
  margin: 0 10px 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}

.grownup-panel a,
.grownup-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.grownup-panel a:hover,
.grownup-panel button:hover {
  color: var(--brand-deep);
  background: rgba(232, 93, 76, 0.08);
}

.grownup-panel .nav-logout {
  margin: 0;
}

@media (max-width: 1024px) {
  .nav-kid {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid rgba(232, 93, 76, 0.16);
    box-shadow: 0 2px 0 rgba(232, 93, 76, 0.08);
  }

  .nav-kid-full {
    display: none;
  }

  .nav-kid-short {
    display: inline;
  }

  .nav-kid.is-current,
  .nav-kid[aria-current="page"] {
    background: rgba(232, 93, 76, 0.14);
    border-color: rgba(232, 93, 76, 0.38);
  }

  .grownup-toggle {
    background: var(--brand);
    border-color: var(--brand-deep);
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 60, 50, 0.22);
  }

  .grownup-toggle-icon {
    filter: brightness(0) invert(1);
  }

  .grownup-toggle:hover,
  .grownup-menu.is-open .grownup-toggle {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
  }

  .grownup-panel {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: calc(100% + 8px);
    min-width: 0;
    width: auto;
    max-height: min(70vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 1025px) {
  .grownup-backdrop {
    display: none !important;
  }
}

@media (max-width: 360px) {
  body.page-color .grownup-toggle-label {
    display: none;
  }

  body.page-color .grownup-toggle {
    padding: 0;
    width: 44px;
  }
}

body.page-color .nav {
  display: none;
}

body.page-color .header-more {
  display: inline-flex;
}

.category-grid.kid-cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr));
  gap: 14px;
}

.category-card.category-card-compact {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  min-height: 148px;
  padding: 16px 12px 14px;
  align-items: center;
  text-align: center;
}

.category-card-compact .category-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.category-card-compact .category-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.category-card-compact .category-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.category-card-compact strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.category-card-compact small {
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-kid {
  padding: 28px 18px 12px;
}

.hero-kid .lede {
  max-width: 28rem;
}

.next-pictures {
  margin: 10px 0 0;
}

.next-pictures-top {
  margin: 16px 0 0;
}

.next-pictures .btn {
  min-height: 48px;
}

.save-status a.save-next {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

body.page-color .color-meta .next-pictures {
  display: block;
}

@media (min-width: 721px) {
  body:not(.page-color) .header-more {
    display: none;
  }

  body.page-color .header-more {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  body:not(.page-color) .header-more {
    display: none;
  }

  body.page-color .header-more {
    display: inline-flex;
    font-size: 0.92rem;
    padding: 8px 12px;
  }

  .nav-kid {
    font-size: 1.05rem;
    padding: 8px 14px;
  }

  .category-grid.kid-cat-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .category-card.category-card-compact {
    min-height: 156px;
    padding: 14px 10px 12px;
  }

  .hero-kid {
    padding: 20px 16px 8px;
  }

  .hero-kid h1 {
    font-size: 1.85rem;
  }

  .category-card,
  .page-card .btn-colour {
    min-height: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


