:root {
  --bg: #F1F4EA;
  --card: #FFFFFF;
  --forest: #1F4D3A;
  --leaf: #3E8A52;
  --leaf-text: #2F7A45;
  --leaf-tint: #DCEFD9;
  --mint: #A8E0C4;
  --sun: #E9A93B;
  --sun-tint: #FBEBC5;
  --sun-text: #7A4F00;
  --bark: #B9895E;
  --bark-tint: #F1E2D2;
  --bark-text: #7E4A22;
  --ink: #1E2B23;
  --muted: #5F6B60;
  --line: #ECF0E4;
  --switch-off: #D6DCCF;
  --shadow: 0 10px 28px rgba(30, 60, 40, 0.08);
  --serif: "Work Sans", Arial, sans-serif;
  --sans: "Work Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: #DDE4D5; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: #DDE4D5;
  color: var(--ink);
  font-family: var(--sans);
}
h1, h2, p, span { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.app {
  width: min(430px, 100%);
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  height: 360px;
  flex-shrink: 0;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 12, 0.82) 0%, rgba(8, 20, 12, 0.6) 38%, rgba(8, 20, 12, 0) 62%);
}
.hero-inner {
  position: relative;
  height: 100%;
  padding: 18px 20px 54px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-back {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.logo img,
.welcome-logo img,
.wordmark img,
.login-brand img {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.parent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.parent-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.greet {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.greet-when { font-size: 17px; font-weight: 800; }
.greet h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.05;
}
.greet em { font-weight: 600; }

.sheet {
  position: relative;
  flex: 1;
  padding: 0 18px;
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.today {
  border-radius: 26px;
  padding: 18px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(30, 60, 40, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.today-row { display: flex; align-items: center; gap: 12px; }
.today-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.today-icon--sun { background: var(--sun-tint); }
.today-icon--clear { background: var(--leaf-tint); }
.today-kicker { font-size: 14px; font-weight: 700; color: var(--muted); }
.today-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
}
.today p { margin: 0; font-size: 15px; line-height: 1.5; color: #4E5A51; }
.btn-forest {
  min-height: 52px;
  border-radius: 18px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kids-head { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.kids-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--forest);
}
.kids-head span { font-size: 14px; color: var(--muted); }

.child {
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.child-main { padding: 16px; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar--sun {
  background: repeating-linear-gradient(135deg, #FBEBC5 0 6px, #F6E0AA 6px 12px);
  color: var(--sun-text);
}
.avatar--leaf {
  background: repeating-linear-gradient(135deg, #DCEFD9 0 6px, #CBE6C6 6px 12px);
  color: var(--forest);
}
.avatar--on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--leaf); }
.avatar--break { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sun); }
.child-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.child-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.status { font-size: 14px; font-weight: 700; }
.status--on { color: var(--leaf-text); }
.status--break { color: #8A5A00; }
.device { font-size: 13px; color: var(--muted); }

.switch {
  width: 64px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.switch-track {
  width: 56px;
  height: 34px;
  border-radius: 999px;
  background: var(--switch-off);
  position: relative;
}
.switch[aria-checked="true"] .switch-track { background: var(--leaf); }
.switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); }

.issue {
  margin: 0 16px 14px;
  min-height: 48px;
  border-radius: 16px;
  background: var(--sun-tint);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6B4500;
}
.issue span { flex: 1; font-size: 14px; font-weight: 700; }
.issue strong { font-size: 14px; font-weight: 800; color: var(--forest); }
.manage {
  min-height: 48px;
  border-top: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--forest);
}

.add {
  border-radius: 26px;
  padding: 16px;
  background: var(--leaf-tint);
  display: flex;
  align-items: center;
  gap: 14px;
}
.add-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.add-copy strong { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--forest); }
.add-copy span { font-size: 14px; color: #3F5245; }
.sway { transform-origin: bottom center; animation: sway 5s ease-in-out infinite; }

.note {
  margin: 2px 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.note svg { flex-shrink: 0; margin-top: 2px; }

.tabbar {
  position: relative;
  margin: 18px 16px 20px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 60, 40, 0.12);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  gap: 6px;
}
.tabbar a {
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar a[aria-current="page"] {
  background: var(--leaf-tint);
  font-weight: 800;
  color: var(--forest);
}
.bell { position: relative; display: flex; }
.bell-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid #fff;
}

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.welcome { min-height: 100dvh; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.welcome-photo { position: absolute; top: 0; left: 0; right: 0; height: 500px; overflow: hidden; }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 55%; display: block; animation: zoom 6s ease-out both; }
.welcome-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 40, 28, 0.45) 0%, rgba(18, 40, 28, 0) 28%, rgba(241, 244, 234, 0) 62%, #F1F4EA 100%); }
.welcome-logo { position: relative; margin: 20px 20px 0; display: flex; align-items: center; gap: 10px; align-self: flex-start; font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); text-decoration: none; }
.welcome-copy { margin: 0; font-size: 16px; line-height: 1.55; color: #4E5A51; }
.welcome-start { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; font-weight: 800; color: var(--forest); }
.welcome-body { position: relative; margin-top: auto; padding: 0 22px 28px; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 13px; font-weight: 800; color: var(--forest); box-shadow: 0 6px 18px rgba(30, 60, 40, 0.12); }
.welcome h1 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; color: var(--forest); }
.welcome h1 em { font-weight: 500; color: var(--leaf); }
.welcome-intro { display: flex; flex-direction: column; gap: 12px; }
.choice { display: flex; flex-direction: column; gap: 10px; }
.choice-parent, .choice-child { min-height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.choice-parent { background: var(--forest); color: #fff; box-shadow: 0 12px 26px rgba(31, 77, 58, 0.28); }
.choice-parent small, .choice-child small { display: block; font-size: 13px; font-weight: 600; }
.choice-parent small { opacity: 0.85; }
.choice-parent strong, .choice-child strong { font-size: 17px; font-weight: 800; }
.choice-go { width: 34px; height: 34px; border-radius: 50%; background: var(--leaf-tint); display: flex; align-items: center; justify-content: center; }
.choice-child { background: #fff; border: 1.5px solid #D9E2D0; color: var(--ink); }
.choice-child small { color: var(--muted); }

.page { position: relative; flex: 1; padding: 18px 18px 0; display: flex; flex-direction: column; gap: 16px; }
.blob { position: absolute; border-radius: 50%; background: var(--leaf-tint); }
.blob--controls { top: -110px; right: -90px; width: 280px; height: 280px; }
.blob--alerts { top: -90px; right: -70px; width: 240px; height: 240px; }
.blob--child-a { top: 150px; left: -70px; width: 200px; height: 200px; }
.blob--child-b { top: 90px; right: -80px; width: 220px; height: 220px; background: var(--sun-tint); }
.back-pill { min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(30, 60, 40, 0.1); display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; align-self: flex-start; }
.checked { font-size: 13px; font-weight: 700; color: var(--muted); }
.who { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.avatar-lg { width: 74px; height: 74px; font-size: 28px; }
.avatar-lg.avatar--on { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--leaf); }
.avatar-lg.avatar--break { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sun); }
.who h1 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; color: var(--forest); }
.who em { font-weight: 500; }
.who .device { font-size: 15px; font-weight: 600; }
.protect { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.protect--off { background: var(--sun-tint); color: #4A3200; }
.protect--on { background: var(--forest); color: #fff; }
.protect-row { display: flex; align-items: center; gap: 14px; }
.protect-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.eyebrow { font-size: 14px; font-weight: 800; opacity: 0.85; }
.protect-title { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.15; }
.protect p { margin: 0; font-size: 15px; line-height: 1.5; }
.switch-lg { width: 72px; height: 44px; }
.switch-lg .switch-track { width: 64px; height: 38px; }
.switch-lg .switch-knob { width: 30px; height: 30px; }
.switch-lg[aria-checked="true"] .switch-knob { transform: translateX(26px); }
.protect--off .switch-track { background: #E6D3A3; }
.fix { border-radius: 26px; padding: 18px; background: #fff; box-shadow: 0 0 0 2px #F4D58C, var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.fix-head, .confirm { display: flex; align-items: center; gap: 12px; }
.fix-icon, .confirm-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fix-icon { background: var(--sun-tint); }
.fix-kicker { font-size: 13px; font-weight: 800; color: var(--sun-text); }
.fix-title, .confirm strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.fix p { margin: 0; font-size: 15px; line-height: 1.5; color: #4E5A51; }
.confirm { border-radius: 26px; padding: 18px; background: var(--leaf-tint); color: var(--forest); }
.confirm p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--forest); }
.section-head span, .page-lead { font-size: 14px; color: var(--muted); }
.feature { border-radius: 26px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-row { padding: 16px; display: flex; align-items: center; gap: 14px; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--leaf-tint); display: flex; align-items: center; justify-content: center; }
.feature-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feature-copy strong { font-size: 16px; font-weight: 800; }
.feature-copy span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.feature-copy .warn { color: var(--sun-text); }
.feature-row.is-locked { opacity: 0.72; }
.switch:disabled { cursor: not-allowed; }
.switch:disabled .switch-track { background: #E6EAE0; }
.soon-head { margin: 8px 0 -4px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--muted); }
.soon { border-radius: 26px; background: #E8EDE0; display: flex; flex-direction: column; padding: 4px 16px; }
.soon-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 15px; font-weight: 700; }
.soon-row + .soon-row { border-top: 1px solid #DAE1D0; }
.soon-row span { flex: 1; }
.pill-soon { font-size: 12px; font-weight: 800; color: #4E5A51; background: #fff; padding: 5px 10px; border-radius: 999px; }
.settings-top { position: relative; display: flex; align-items: center; gap: 10px; }
.settings-out {
  min-height: 52px;
  margin: 4px 0 8px;
  border-radius: 18px;
  border: 1.5px solid #D9E2D0;
  background: #fff;
  color: var(--forest);
  font: 800 16px/1 var(--sans);
  cursor: pointer;
}
.child-top { position: relative; display: flex; align-items: center; gap: 10px; }
.back-arrow { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(30, 60, 40, 0.1); display: flex; align-items: center; justify-content: center; }
.wordmark { display: flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--forest); }
.page h1 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--forest); }
.privacy { border-radius: 22px; padding: 14px 16px; background: var(--leaf-tint); display: flex; align-items: flex-start; gap: 12px; }
.privacy p { margin: 0; font-size: 15px; line-height: 1.45; }
.privacy-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D9E2D0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.day { margin: 6px 0 -4px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 8px 22px rgba(30, 60, 40, 0.07); }
.alert-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.alert-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.alert-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.when { font-size: 13px; font-weight: 600; color: var(--muted); }
.alert-title { font-size: 16px; font-weight: 800; }
.alert-detail { font-size: 14px; line-height: 1.45; color: var(--muted); }
.tone-break { background: var(--sun-tint); color: var(--sun-text); }
.tone-on { background: var(--leaf-tint); color: var(--leaf-text); }
.tone-off { background: var(--bark-tint); color: var(--bark-text); }
.child-screen { min-height: 100dvh; padding: 20px 20px 24px; position: relative; overflow-x: hidden; overflow-y: auto; }
.disable-protection {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1.5px solid #D9E2D0;
  background: #fff;
  color: var(--forest);
  font: 800 16px/1 var(--sans);
  cursor: pointer;
}
.hey { position: relative; margin-top: 22px; align-self: center; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: 0 8px 22px rgba(30, 60, 40, 0.1); }
.hey-avatar { width: 42px; height: 42px; border-radius: 50%; background: repeating-linear-gradient(135deg, #FCE7C2 0 6px, #F8DDAE 6px 12px); font-weight: 800; font-size: 18px; color: #8A5A00; display: flex; align-items: center; justify-content: center; }
.hey-avatar.leaf { background: repeating-linear-gradient(135deg, #DCEFD9 0 6px, #CBE6C6 6px 12px); color: var(--forest); }
.hey span { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.hey em { font-weight: 500; }
.orb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.orb { position: relative; width: 250px; height: 250px; display: flex; align-items: center; justify-content: center; }
.wave, .wave-2, .orb-disk, .ring-dash, .ring-sweep, .start { position: absolute; border-radius: 50%; }
.wave, .wave-2 { inset: 0; }
.wave { background: #CFEBDC; animation: wave 3s ease-out infinite; }
.wave-2 { background: #DCEFD9; animation: wave 3s ease-out 1.5s infinite; }
.orb-disk { inset: 30px; background: #fff; box-shadow: 0 14px 34px rgba(30, 60, 40, 0.1); z-index: 1; }
.ring-dash { inset: 8px; border: 2px dashed rgba(62, 138, 82, 0.45); animation: spin 18s linear infinite; z-index: 2; }
.ring-sweep {
  inset: 16px;
  z-index: 3;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: spin 2.8s linear infinite;
}
.start { position: relative; z-index: 4; width: 156px; height: 156px; border: 0; background: var(--forest); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 14px 30px rgba(31, 77, 58, 0.3); animation: breath 2.8s ease-in-out infinite; }
.start span { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.code-dim { position: fixed; inset: 0; background: rgba(12, 28, 18, 0.55); z-index: 20; }
.code-dim[hidden], .code-sheet[hidden] { display: none !important; }
.code-sheet {
  position: fixed; left: 50%; top: 10vh; transform: translateX(-50%);
  width: min(390px, calc(100% - 28px)); z-index: 21;
  border-radius: 32px; background: #fff; padding: 8px 22px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.alert-code {
  border-radius: 24px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.alert-code span { font-size: 14px; font-weight: 800; color: var(--muted); }
.alert-code strong {
  font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: 0.1em; color: var(--forest); line-height: 1.1;
}
.code-sheet h2 { margin: 8px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--forest); }
.code-sheet p { margin: 0; font-size: 15px; line-height: 1.45; color: #4E5A51; }
.code-sheet strong {
  font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: 0.12em; color: var(--forest);
}
.code-sheet .btn-forest { width: 100%; border: 0; cursor: pointer; margin-top: 6px; }
.code-x {
  align-self: flex-end; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.start.is-on { cursor: default; animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.child-copy { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: center; margin-bottom: 18px; }
.child-copy h1 { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.05; color: var(--forest); }
.child-copy h1 em { font-weight: 500; }
.child-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.what { position: relative; border-radius: 24px; padding: 6px 16px; background: #fff; box-shadow: 0 8px 22px rgba(30, 60, 40, 0.07); }
.what h2 { margin: 12px 0 2px; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.what-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; line-height: 1.4; }
.what-row + .what-row { border-top: 1px solid var(--line); }
.what-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes wave { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pop { 0% { transform: scale(0.85); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .rise, .sway, .welcome-photo img, .wave, .wave-2, .ring-dash, .start, .status-badge, .protect-mark { animation: none; }
  .switch-knob { transition: none; }
}

.home-hero { height: 250px; border-radius: 0; }
.home-hero .hero-photo {
  object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.home-hero .hero-shade { background: linear-gradient(180deg, rgba(8, 20, 12, 0.7) 0%, rgba(8, 20, 12, 0.34) 46%, rgba(8, 20, 12, 0) 70%); }
.home-hero .greet h1 { font-size: 38px; }
.home-sheet { gap: 14px; margin-top: -28px; }
.family-status { border-radius: 26px; padding: 16px 18px; box-shadow: 0 14px 34px rgba(30, 60, 40, 0.16); display: flex; align-items: center; gap: 14px; }
.family-status.is-clear { background: var(--forest); color: #fff; }
.family-status.is-off { background: #FBEBC5; color: #7A4F00; }
.family-copy { display: flex; flex-direction: column; gap: 2px; }
.family-kicker { font-size: 13px; font-weight: 800; opacity: 0.85; }
.family-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.family-detail { font-size: 14px; line-height: 1.4; opacity: 0.9; }
.status-badge, .protect-mark { flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-badge { width: 48px; height: 48px; background: var(--leaf); }
.protect-mark { width: 46px; height: 46px; background: var(--leaf); }
.status-badge.is-on, .protect-mark.is-on { animation: ffpulse 2.2s ease-out infinite; }
.family-status.is-off .status-badge, .protect--off .protect-mark { background: #E9A93B; animation: none; }
@keyframes ffpulse { 0% { box-shadow: 0 0 0 0 rgba(124, 199, 154, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(124, 199, 154, 0); } }
.kids-head--row { flex-direction: row; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.kids-head--row span { font-size: 13px; }
.kids { border-radius: 26px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.kid-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: background 0.15s ease; }
.kid-row + .kid-row { border-top: 1px solid var(--line); }
.kid-row:hover { background: #F7F9F3; }
.kid-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.kid-name { display: flex; align-items: center; gap: 4px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.kid-name svg { color: #8DB896; }
.add-child { min-height: 56px; border-radius: 20px; border: 2px dashed #A8C9A2; padding: 0 16px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--forest); }
.profile-top { display: flex; align-items: center; justify-content: space-between; }
.next-pill { min-height: 44px; padding: 0 10px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; color: #4E5A51; }
.who--profile { flex-direction: column; text-align: center; gap: 10px; }
.who--profile .avatar { width: 96px; height: 96px; font-size: 38px; }
.who--profile .avatar.avatar--on { box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--leaf); }
.who--profile .avatar.avatar--break { box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--sun); }
.profile-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #4E5A51; }
.profile-dot { width: 4px; height: 4px; border-radius: 50%; background: #A7B3A3; }
.protect--on .switch[aria-checked="true"] .switch-track { background: #7CC79A; }
.section-head--split { display: flex; align-items: baseline; justify-content: space-between; }
.see-all { font-size: 14px; font-weight: 800; color: var(--forest); }
.changes { border-radius: 26px; background: #fff; box-shadow: var(--shadow); padding: 4px 16px; }
.change { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; }
.change + .change { border-top: 1px solid var(--line); }
.change i { width: 10px; height: 10px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: var(--leaf); }
.change i.is-soft { background: #8DB896; }
.change i.is-off { background: var(--sun); }
.change strong { display: block; font-size: 15px; font-weight: 700; }
.change span span { font-size: 13px; color: var(--muted); }

/* Desktop demo: one iPhone. A real phone stays full screen. */
@media (min-width: 520px) {
  body {
    align-items: center;
    padding: 20px 16px;
  }
  .app,
  .app.auth,
  .app.welcome,
  .app.child-screen {
    --screen-h: min(844px, calc(100dvh - 64px));
    position: relative;
    box-sizing: border-box;
    width: calc(var(--screen-h) * 390 / 844 + 24px);
    height: calc(var(--screen-h) + 24px);
    min-height: 0;
    max-height: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 12px solid transparent;
    border-radius: 48px;
    background:
      linear-gradient(var(--bg), var(--bg)) padding-box,
      linear-gradient(#1c1c1e, #1c1c1e) border-box;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 32, 22, 0.28);
    scrollbar-width: none;
  }
  .app::-webkit-scrollbar,
  .app .page::-webkit-scrollbar,
  .app .sheet::-webkit-scrollbar { width: 0; height: 0; }
  .app:has(> .tabbar) > .hero { flex-shrink: 0; }
  .app:has(> .tabbar) > .page,
  .app:has(> .tabbar) > .sheet {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .app:not(:has(> .tabbar)) { overflow: auto; }
  .welcome-logo { margin-top: 52px; }
  .welcome-body { padding-bottom: 36px; }
  .app .hero-inner { padding-top: 54px; }
  .app .home-hero .hero-inner { padding-top: 46px; }
  .app .profile-top { margin-top: 28px; }
  .app .login-hero .inner { padding-top: 54px; }
  .app .child-top, .app .settings-top, .app .step-row { margin-top: 28px; }
  .app.child-screen { padding: 8px 18px 16px; }
  .app.child-screen > .orb-stage { min-height: 220px; }
  .app .page > .wordmark { margin-top: 36px; }
  .app:has(> .tabbar) > .tabbar {
    flex: none;
    margin: 8px 16px 22px;
  }
  .app::before,
  .app::after {
    content: "";
    position: absolute;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .app::before {
    top: 10px;
    width: 112px;
    height: 32px;
    border-radius: 20px;
    background: #0a0a0a;
  }
  .app::after {
    bottom: 8px;
    width: 124px;
    height: 5px;
    border-radius: 999px;
    background: rgba(30, 43, 35, 0.35);
  }
}
