/* Kazuli website — colours from Shared/Theme.swift and the app icon. */
/* Fredoka (SIL Open Font License, see fredoka-OFL.txt), self-hosted: no font requests to third parties. */
@font-face { font-family: "Fredoka"; src: url("/fredoka-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fredoka-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --linen: #EEF1EA;
  --paper: #F8FAF6;
  --ink: #233029;
  --muted: #56665D;
  --sage: #3E7C6B;
  --line: #D9E0D5;
  --night: #142420;
  --night-2: #1B302A;
  --night-line: #2A3F38;
  --mint: #8CC9B4;
  --terra: #D9785B;
  --terra-ink: #B85A3F;
  --on-night: #E6EEEA;
  --on-night-muted: #A9BDB4;
  --radius: 22px;
  --brand: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --linen: #111C18;
    --paper: #18241F;
    --ink: #E6EEEA;
    --muted: #A3B5AC;
    --sage: #7DBBA6;
    --line: #26352F;
    --terra-ink: #E48B6F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--brand); letter-spacing: -0.005em; font-weight: 600; }

/* ---------- Header ---------- */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
header.site .brand { flex: none; }
header.site .brand img { height: 30px; width: auto; display: block; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; font-weight: 500; }
header.site nav a:hover { color: var(--ink); }
.dark header.site nav a { color: var(--on-night-muted); }
.dark header.site nav a:hover { color: #fff; }
header.site .brand img.wordmark-dark { display: none; }
.dark header.site .brand img.wordmark-light { display: none; }
.dark header.site .brand img.wordmark-dark { display: block; }
@media (prefers-color-scheme: dark) {
  header.site .brand img.wordmark-light { display: none; }
  header.site .brand img.wordmark-dark { display: block; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.dark { background: linear-gradient(180deg, #22392F 0%, var(--night) 70%); color: var(--on-night); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; }
.dark .eyebrow { color: var(--mint); }
.section-title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.section-lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 36em; }
.dark .section-lead { color: var(--on-night-muted); }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: #fff; color: var(--night); text-decoration: none; font-weight: 600; font-size: 15px;
}
.pill svg { width: 18px; height: 18px; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 50px; width: auto; }
.pill-note { display: block; margin-top: 12px; font-size: 14px; color: var(--on-night-muted); }

/* ---------- Hero ---------- */
.hero { padding: 0 0 0; overflow: hidden; }
.hero-copy { text-align: center; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 22px; font-weight: 600; }
.hero h1 .accent { color: var(--mint); }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--on-night-muted); max-width: 34em; margin: 0 auto 32px; }

.stage { position: relative; height: 560px; max-width: 980px; margin: 0 auto; }
.phone {
  position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%);
  width: 300px; height: 600px; border-radius: 52px; padding: 12px;
  background: #0B1411; box-shadow: 0 0 0 2px #2E443C, 0 40px 80px rgba(0,0,0,.45);
}
.screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: var(--night); padding: 54px 20px 20px; font-family: var(--rounded); }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.s-name { font-size: 14px; color: var(--on-night-muted); margin: 0; }
.s-state { font-size: 26px; font-weight: 700; color: #fff; margin: 2px 0 18px; }
.s-timer-card { background: #1C332C; border-radius: 22px; padding: 18px; text-align: center; }
.s-moon { width: 28px; height: 28px; margin: 0 auto 6px; color: var(--mint); }
.s-timer { font-size: 44px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.s-sub { font-size: 12px; color: var(--on-night-muted); margin-top: 4px; }
.s-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.s-btn { display: flex; align-items: center; justify-content: center; line-height: 1.2; border-radius: 14px; padding: 9px 6px; font-size: 12.5px; font-weight: 600; text-align: center; background: #26423A; color: var(--on-night); }
.s-btn.primary { background: var(--mint); color: var(--night); }
.s-row { display: flex; justify-content: space-between; align-items: center; background: #192C26; border-radius: 16px; padding: 12px 14px; margin-top: 8px; font-size: 13px; }
.s-row span { color: var(--on-night-muted); }
.s-row b { color: #fff; font-weight: 600; }
.s-strip { display: flex; gap: 3px; margin-top: 14px; height: 8px; }
.s-strip i { flex: 1; border-radius: 3px; background: #22382F; }
.s-strip i.sl { background: #3E6E9C; }
.s-strip i.fd { background: #C49A3E; }

.note {
  position: absolute; width: 270px; padding: 13px 14px; border-radius: 18px;
  background: rgba(248,250,246,.97); color: #233029; box-shadow: 0 18px 40px rgba(0,0,0,.28);
  display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.35;
}
.note img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.note b { display: block; font-size: 13.5px; }
.note small { display: block; color: #6A7A71; font-size: 12px; margin-top: 2px; }
.n1 { left: 0; top: 70px; transform: rotate(-2deg); }
.n2 { right: 0; top: 40px; transform: rotate(2deg); }
.n3 { left: 40px; top: 290px; transform: rotate(1.5deg); }
.n4 { right: 30px; top: 270px; transform: rotate(-1.5deg); }

/* ---------- Manifesto ---------- */
.manifesto p { font-family: var(--rounded); font-size: clamp(24px, 3.4vw, 36px); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 44px; text-align: center; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto em { font-style: normal; color: var(--terra-ink); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.tile h3 { font-size: 21px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.viz { margin-top: auto; padding-top: 22px; font-family: var(--rounded); }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }
.ico.blue { background: rgba(62,110,156,.14); color: #3E6E9C; }
.ico.ochre { background: rgba(196,154,62,.16); color: #A07A26; }
.ico.green { background: rgba(62,124,107,.14); color: var(--sage); }
.ico.terra { background: rgba(217,120,91,.16); color: var(--terra-ink); }
@media (prefers-color-scheme: dark) {
  .ico.blue { color: #7FA9D3; } .ico.ochre { color: #D9B661; }
}

/* sleep viz */
.sleepbar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 3px; }
.sleepbar i { background: #3E6E9C; border-radius: 6px; }
.sleepbar i.w { background: var(--terra); opacity: .85; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; white-space: nowrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend b { color: var(--ink); }
/* feed viz */
.sides { display: flex; gap: 10px; }
.side { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 0; font-size: 13px; color: var(--muted); }
.side b { display: block; font-size: 22px; color: var(--ink); }
.side.next { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.side.next small { color: var(--sage); font-weight: 600; }
/* diaper viz */
.tally { display: flex; gap: 10px; }
.tally div { flex: 1; background: var(--linen); border-radius: 14px; padding: 12px; font-size: 13px; color: var(--muted); }
.tally b { display: block; font-size: 24px; color: var(--ink); }
/* medicine viz */
.warn { border-radius: 16px; padding: 14px 16px; background: rgba(217,120,91,.12); border: 1px solid rgba(217,120,91,.35); font-size: 14px; line-height: 1.45; }
.warn b { display: block; color: var(--terra-ink); margin-bottom: 2px; }
/* chart viz */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars span { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; }
.bars i { display: block; border-radius: 4px; }
.bars i.n { background: #3E6E9C; } .bars i.d { background: #C49A3E; }
.bars span.today { opacity: .4; }

/* ---------- Sharing ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding-left: 34px; margin: 14px 0; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.people { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; }
.person + .person { border-top: 1px solid var(--line); border-radius: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--rounded); color: #fff; flex: none; }
.person b { display: block; font-size: 16px; }
.person small { color: var(--muted); font-size: 14px; }
.person .tag { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--linen); color: var(--muted); }
.person .tag.live { background: rgba(62,124,107,.14); color: var(--sage); }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.ptile { background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 26px; }
.ptile h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.ptile p { margin: 0; color: var(--on-night-muted); font-size: 15.5px; }
.ptile .ico { background: rgba(140,201,180,.12); color: var(--mint); }

/* ---------- Stance ---------- */
.stance { display: flex; gap: 22px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.stance h3 { margin: 0 0 6px; font-size: 21px; }
.stance p { margin: 0; color: var(--muted); }
.stance .ico { flex: none; margin: 0; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.cta h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 30px 0 28px; }

/* ---------- Article pages (privacy, support) ---------- */
article { padding: 24px 0 72px; }
article h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.15; margin: 24px 0 6px; }
article .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
article h2 { font-size: 22px; margin: 40px 0 8px; }
article ul { padding-left: 22px; }
article li { margin: 4px 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .copy { margin-left: auto; }
.dark footer.site { border-color: var(--night-line); color: var(--on-night-muted); }
.dark footer.site a { color: var(--on-night-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide-m { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stage { height: 640px; max-width: 560px; }
  .note { width: 260px; font-size: 12.5px; z-index: 2; }
  .n1 { top: 0; left: 0; } .n2 { top: 96px; right: 0; left: auto; }
  .n3, .n4 { display: none; }
  .phone { bottom: -150px; }
}
@media (max-width: 720px) {
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .wide-m { grid-column: span 1; }
  .stance { flex-direction: column; }
  footer.site .copy { margin-left: 0; }
}

.last { padding-bottom: 0; }

/* ---------- Language switcher ---------- */
.langs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a, .langs span { padding: 4px 12px; border-radius: 999px; font-size: 13px; line-height: 1.4; }
.langs span[aria-current] { background: var(--paper); color: var(--ink); font-weight: 600; }
footer.site .langs a { color: var(--muted); }
footer.site .langs a:hover { color: var(--ink); }

/* ---------- Menu: same items everywhere; a menu button on phones ---------- */
header.site nav a[aria-current] { color: var(--ink); font-weight: 600; }
.dark header.site nav a[aria-current] { color: #fff; }
.menu-m { display: none; position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.menu-m summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; margin-right: -8px;
  display: grid; place-items: center; border-radius: 12px; color: var(--ink);
}
.menu-m summary::-webkit-details-marker { display: none; }
.menu-m[open] summary { background: rgba(127,127,127,.12); }
.dark .menu-m summary { color: var(--on-night); }
.menu-m nav {
  position: absolute; right: -8px; top: 50px; z-index: 20; min-width: 220px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
header.site .menu-m nav a, .dark header.site .menu-m nav a {
  margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 16px; color: var(--ink);
}
header.site .menu-m nav a:hover { background: var(--linen); }
@media (max-width: 560px) {
  header.site nav.menu { display: none; }
  .menu-m { display: block; }
}

/* ---------- Adapts to each family ---------- */
.points { list-style: none; padding: 0; margin: 26px 0 0; }
.points li { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.points li b { display: block; color: var(--ink); font-family: var(--rounded); font-size: 18px; margin-bottom: 2px; }
.prefs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 14px; font-family: var(--rounded); }
.prefs-h { margin: 18px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pref { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.pref:last-child { border-bottom: 0; }
.sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sw.on { background: var(--sage); }
.sw.on::after { left: 21px; }
@media (min-width: 901px) {
  .split.reverse > .prefs { order: -1; }
}

/* ---------- Made by a parent ---------- */
.maker { display: flex; gap: 24px; align-items: flex-start; padding: 8px 4px; }
.maker-photo { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); }
.maker .eyebrow { margin-bottom: 8px; }
.maker-text { margin: 0; font-family: var(--rounded); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; }
.maker-sign { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .maker { flex-direction: column; gap: 16px; } }

/* ---------- Former inline styles (the CSP blocks style="" attributes) ---------- */
section.pt0 { padding-top: 0; }
section.pb0 { padding-bottom: 0; }
.cta.dark { border-radius: 32px; padding: 80px 24px; }
.cta h2:last-child { margin-bottom: 0; }
.cta + footer.site { margin-top: 56px; }
.sleepbar .f5 { flex: 5; } .sleepbar .f3 { flex: 3; } .sleepbar .f2 { flex: 2.2; } .sleepbar .w { flex: .4; }
.avatar.a1 { background: #3E7C6B; } .avatar.a2 { background: #D9785B; } .avatar.a3 { background: #3E6E9C; } .avatar.a4 { background: #A07A26; }
.h10 { height: 10%; }
.h18 { height: 18%; }
.h19 { height: 19%; }
.h20 { height: 20%; }
.h22 { height: 22%; }
.h24 { height: 24%; }
.h26 { height: 26%; }
.h40 { height: 40%; }
.h49 { height: 49%; }
.h52 { height: 52%; }
.h58 { height: 58%; }
.h60 { height: 60%; }
.h62 { height: 62%; }
.h66 { height: 66%; }
@media (max-width: 560px) { .cta h2 br { display: none; } }
