/* ponytail: daylight only. The clubhouse does not grow a dark theme. */

:root {
  color-scheme: light;
  --paper: #fff7e3;
  --page: var(--paper);
  --surface: #fffcf5;
  --ink: #1a3b54;
  --muted: #4d6373;
  --blue: #0866ad;
  --button: #086eba;
  --line: #bfd6e0;
  --yellow: #ffe382;
  --mint: #adedd1;
  --coral: #ffc9bf;
  --lavender: #d9c9fa;
  --focus: 3px solid var(--blue);
}

html[data-wash="marco"] { --page: var(--yellow); }
html[data-wash="ali"] { --page: var(--mint); }
html[data-wash="jo"] { --page: var(--coral); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body {
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

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

a { color: var(--blue); }
a:visited { color: var(--blue); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--button);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  z-index: 2;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

main > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

main > .wrap.page-copy { gap: 1rem; }

.top { padding: 1rem 0 0.5rem; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 32px;
  row-gap: 0.5rem;
  container-type: inline-size;
}

.brand, .parents {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand { flex: none; }

.brand img {
  width: 4rem;
  height: 4rem;
}

.parents {
  min-height: 3rem;
  padding: 0.25rem 1rem 0.25rem 0.35rem;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--paper);
}

.parents img {
  width: 2.5rem;
  height: 2.5rem;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
  min-height: 2.75rem;
  padding-inline-start: 16px;
  position: relative;
}

.nav::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1px;
  height: 1.15rem;
  transform: translateY(-50%);
  background: var(--muted);
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  flex: none;
}

.header-badge { margin-inline-start: auto; }
.header-badge img { width: 120px; height: 40px; }

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

.hero-shot { justify-self: center; }

/* ponytail: real app captures in a plain navy bezel. No device mock-up images. */
.shot {
  display: block;
  width: 13rem;
  max-width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow: 0 0 0 6px var(--ink);
  background: var(--surface);
}

.shot.ipad { width: 19rem; border-radius: 1.25rem; }

.shot-fig {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.shot-fig figcaption {
  font-size: 1rem;
  font-weight: 800;
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.kicker, .eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.intro { margin: 0.75rem 0 0; font-size: 1.35rem; }
.quiet { margin: 0.75rem 0 0; color: var(--muted); }

.promise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise li {
  margin: 0;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.part h2,
#guide > h2 { margin-top: 0.35rem; }

.part h2 { margin-bottom: 4rem; }

.part > .room,
.part > .panel,
#guide > .panel {
  margin-top: 4rem;
}


main {
  display: grid;
  gap: 2.5rem;
  padding: 0.5rem 0 3rem;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 4vw + 1.4rem, 3.5rem); }
h2 { font-size: clamp(2rem, 2vw + 1.2rem, 2.5rem); }
h3 { font-size: 1.75rem; }

.lede { margin: 0.75rem 0 0; }

.note {
  margin: 1.75rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.faces {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.face {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 7rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 1.75rem;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 0 0 6px var(--paper);
}

.face[data-child="marco"] { background: var(--yellow); }
.face[data-child="ali"] { background: var(--mint); }
.face[data-child="jo"] { background: var(--coral); }

.face img {
  width: 5.5rem;
  height: 5.5rem;
  flex: none;
}

.face-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.name { font-size: 1.75rem; font-weight: 800; }
.go { color: var(--blue); font-weight: 700; }

.face[aria-pressed="true"] {
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 10px var(--blue);
}

.rooms { display: grid; gap: 1rem; }

.room, .panel, .grown {
  border-radius: 1.75rem;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.75rem, 6vw, 4rem);
  box-shadow: 0 0 0 6px var(--paper);
}

.room {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  justify-items: start;
}

.room-jobs { background: var(--yellow); }
.room-routine { background: var(--lavender); }
.room-rewards { background: var(--mint); }
.room-friends { background: var(--coral); }
.room-here, .panel, .grown {
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--line), 0 0 0 9px var(--paper);
}

.room-copy > p:first-child { margin-top: 0; }
.room > .shot-fig, .room > .shots { justify-self: center; }

.mini-faces img, .with-icon img {
  width: 4.75rem;
  height: 4.75rem;
  display: block;
}

.friends {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}

.friends img {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.4rem;
}

.sections { margin: 1.5rem 0; }
.sections dt { font-weight: 800; }
.sections dd { margin: 0.15rem 0 0.9rem; }

.features {
  display: grid;
  gap: 1.75rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.features img {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
}

.features h3 { font-size: 1.4rem; }
.features p { margin: 0.35rem 0 0; }

.mini-faces {
  display: grid;
  gap: 0.25rem;
}

.mini-faces img { width: 3.25rem; height: 3.25rem; }

.room p, .panel p { margin: 0.5rem 0 0; }
.grown li, .page-copy p { margin: 0; }

.egg-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: center;
}

#egg {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(16rem, 70vw);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

#egg .shell, #egg .friend { width: 100%; height: auto; }
#egg .friend, #egg .crack, .open-label { display: none; }

#egg[data-step="crack"] .crack,
#egg[data-step="wide"] .crack { display: block; }
#egg[data-step="crack"] .crack-b { display: none; }
#egg[data-step="open"] .shell,
#egg[data-step="open"] .crack { display: none; }
#egg[data-step="open"] .friend { display: block; }

.crack {
  position: absolute;
  inset: 14% 24%;
  width: auto;
  height: auto;
  pointer-events: none;
}

.crack path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-label {
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  background: var(--button);
  color: #fff;
  border-radius: 1rem;
  font-size: 1.375rem;
  font-weight: 800;
}

#egg-status {
  min-height: 1.75rem;
  margin: 0;
  font-weight: 700;
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.with-icon img { width: 3rem; height: 3rem; }

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

.idea-form {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.idea-form > * { margin: 0; }
.idea-form .field-label { margin-top: 0.75rem; font-weight: 800; }

.idea-form textarea {
  width: 100%;
  min-height: 8rem;
  padding: 1rem 1.25rem;
  border: 3px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.idea-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.idea-row[hidden] { display: none; }
.idea-row audio { max-width: 100%; }

.button {
  min-height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.soft {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--line);
}

.button.recording { background: #b3261e; }
.button:disabled { opacity: 0.6; cursor: wait; }

.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-weight: 700;
  cursor: pointer;
}

.check input { width: 1.75rem; height: 1.75rem; margin: 0; accent-color: var(--button); }

#idea-status { min-height: 1.75rem; font-weight: 800; }

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer p { margin: 0.35rem 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.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;
}

.motion-reduce { display: none; }

@media (prefers-reduced-motion: reduce) {
  .motion-full { display: none; }
  .motion-reduce { display: inline; }
  #egg[data-step="shut"] .open-label { display: flex; }
}

html.reduce .motion-full { display: none; }
html.reduce .motion-reduce { display: inline; }
html.reduce #egg[data-step="shut"] .open-label { display: flex; }

@media (max-width: 50rem) {
  .header-badge { order: 1; }
  .nav {
    order: 2;
    flex-basis: 100%;
    padding-inline-start: 0;
    gap: 0 1rem;
    font-size: 1.1rem;
  }
  .nav::before { display: none; }
}

@media (max-width: 24rem) {
  .brand { font-size: 1.05rem; gap: 0.4rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }
  .parents { font-size: 1rem; padding-right: 0.7rem; }
  .parents img { width: 2rem; height: 2rem; }
  .face img { width: 4.5rem; height: 4.5rem; }
}

@media (min-width: 45rem) {
  .hero { grid-template-columns: 1fr auto; gap: 0.75rem 3rem; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-shot { grid-column: 2; grid-row: 1; }
  .friends { grid-template-columns: repeat(5, 1fr); }
  .sections {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.25rem;
  }
  .sections dd { margin: 0; }
  .faces { grid-template-columns: repeat(3, 1fr); }
  .face {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0.75rem 1rem;
  }
  .face img { width: 7.5rem; height: 7.5rem; }
}

@media (min-width: 60rem) {
  .room.has-shot {
    grid-template-columns: 1fr auto;
    column-gap: 3rem;
    align-items: center;
  }
  .features { grid-template-columns: 1fr 1fr; }
  .shot { width: 15rem; }
  .shot.ipad { width: 21rem; }
}

@media (prefers-reduced-motion: no-preference) {
  #egg[data-step="crack"] .shell { transform: rotate(-6deg); }
  #egg[data-step="wide"] .shell { transform: rotate(6deg); }
}

@media (forced-colors: active) {
  .face, .room, .panel, .grown, .parents {
    border: 2px solid ButtonText;
  }
}
