:root {
  --bg: #fbf4e8;
  --surface: rgba(255, 252, 247, 0.9);
  --ink: #213132;
  --muted: #627171;
  --line: rgba(45, 61, 60, 0.12);
  --accent: #5d9667;
  --accent-2: #edc85d;
  --accent-3: #f08f67;
  --accent-4: #6f8ee8;
  --shadow: 0 28px 70px rgba(39, 45, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(237, 200, 93, 0.28), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(111, 142, 232, 0.2), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(240, 143, 103, 0.15), transparent 18%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 58%, #f2efe2 100%);
}

.app-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.sky-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.82fr;
  gap: 24px;
  align-items: end;
  padding: 30px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.8), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(255, 242, 190, 0.66), transparent 26%),
    linear-gradient(180deg, rgba(191, 234, 255, 0.68) 0%, rgba(250, 244, 226, 0.78) 60%, rgba(233, 243, 214, 0.95) 100%);
  border: 1px solid rgba(69, 92, 94, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sky-hero::before,
.sky-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
}

.sky-hero::before {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -70px;
  background: rgba(255, 255, 255, 0.52);
}

.sky-hero::after {
  width: 300px;
  height: 100px;
  left: -30px;
  bottom: -20px;
  background: rgba(141, 189, 113, 0.18);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-right: 12px;
}

.theme-orb,
.today-trail,
.activity-spotlight,
.garden-friends,
.parent-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.theme-orb {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 248, 237, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 247, 226, 0.84));
}

.caregiver-chip {
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 2;
  border: 1px solid rgba(45, 61, 60, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 0.92;
  margin-bottom: 14px;
  max-width: 10ch;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 32rem;
  color: #384646;
}

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

.hero-notes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.note-pill,
.badge,
.kind-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: #425051;
  font-size: 0.88rem;
}

.badge,
.kind-pill {
  background: rgba(93, 150, 103, 0.14);
  color: #356042;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), #8abe73);
  color: white;
}

.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.mini-stats div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.mini-stats span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.playground {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-areas:
    "spotlight trail"
    "spotlight friends";
  gap: 22px;
  margin-top: 24px;
}

.today-trail,
.activity-spotlight,
.garden-friends {
  padding: 24px;
  border-radius: 30px;
}

.meadow-panel {
  position: relative;
  overflow: hidden;
}

.meadow-panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 120px;
  border-radius: 999px;
  background: rgba(141, 189, 113, 0.12);
  z-index: 0;
}

.today-trail {
  grid-area: trail;
}

.activity-spotlight {
  grid-area: spotlight;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.96), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(255, 247, 207, 0.72), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 241, 0.96), rgba(240, 247, 225, 0.96));
}

.garden-friends {
  grid-area: friends;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.trail-copy {
  margin-bottom: 14px;
  color: #425051;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.path-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
  scroll-snap-type: x proximity;
}

.path-card {
  padding: 20px 18px 22px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(34, 48, 49, 0.08);
  display: grid;
  gap: 12px;
  text-align: left;
  min-height: 180px;
  align-content: start;
  scroll-snap-align: start;
}

.path-index {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(93, 150, 103, 0.16);
  font-weight: 700;
}

.path-card p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.95rem;
}

.path-card.active {
  border-color: rgba(93, 150, 103, 0.48);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(93, 150, 103, 0.14);
}

.activity-prompt {
  font-size: 1.05rem;
  color: #425051;
}

.activity-stage {
  min-height: 400px;
  margin-top: 20px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.92), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(237, 200, 93, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(191, 234, 255, 0.62) 0%, rgba(246, 251, 234, 0.8) 60%, rgba(230, 239, 211, 0.94) 100%);
  border: 1px solid rgba(93, 150, 103, 0.18);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.activity-stage::before,
.activity-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.activity-stage::before {
  width: 240px;
  height: 90px;
  left: -20px;
  bottom: -10px;
  background: rgba(141, 189, 113, 0.18);
}

.activity-stage::after {
  width: 190px;
  height: 70px;
  right: -16px;
  bottom: 36px;
  background: rgba(93, 150, 103, 0.14);
}

.stage-bubbles {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stage-bubble {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.45rem;
  box-shadow: 0 16px 28px rgba(33, 49, 50, 0.14);
}

.stage-note {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 14px 16px;
  color: #435152;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 32rem;
  justify-self: center;
}

.friend-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.pack-card {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 237, 0.88));
  border: 1px solid rgba(34, 48, 49, 0.08);
  text-align: left;
  display: grid;
  gap: 10px;
  min-height: 180px;
  align-content: start;
}

.friend-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
}

.friend-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.parent-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.parent-dialog::backdrop {
  background: rgba(25, 32, 32, 0.28);
}

.parent-sheet {
  width: min(960px, calc(100vw - 20px));
  padding: 24px;
  border-radius: 28px;
}

.parent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.parent-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.parent-card h3 {
  margin-bottom: 10px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 248, 236, 0.82);
}

.roadmap-card p,
.roadmap-card ul,
.trust-card ul {
  color: #425051;
  line-height: 1.7;
  margin-top: 8px;
}

.trust-card ul,
.roadmap-card ul {
  padding-left: 18px;
}

@media (max-width: 900px) {
  .sky-hero,
  .playground,
  .parent-grid {
    grid-template-columns: 1fr;
  }

  .playground {
    grid-template-areas:
      "spotlight"
      "trail"
      "friends";
  }

  .app-shell {
    padding: 18px 14px 32px;
  }
}
