:root {
  --bg: #FFF4E8;
  --card: #FFFFFF;
  --ink: #2B2135;
  --soft: #6B5F75;
  --line: #E7D9C8;
  --sage: #2A9D8F;
  /* Text on cream. #2A9D8F is about 3.06:1. #18665C is about 6.3:1. */
  --sage-ink: #18665C;
  --sage-soft: #D7F3EF;
  --blush: #F6C9B4;
  --feed: #F6C9B4;
  --sleep: #C9C3EE;
  --diaper: #BFE3D3;
  --pump: #F4E3A8;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  overflow: visible;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Bengali", "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Source Sans Pro", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: #1F7A70; text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 22px 0 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Source Sans 3", "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Bengali", "Noto Sans SC", "Noto Sans TC", "Noto Sans KR", "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.mark svg { display: block; flex: none; }

header nav, footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

header nav a, footer nav a {
  color: var(--soft);
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}

.join-link { display: none; }

footer p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

header nav a:hover, footer nav a:hover { color: var(--sage-ink); }

.lang-switch { display: inline-flex; align-items: center; }
.lang-switch select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 10px;
  max-width: 11rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[dir="rtl"] body { text-align: right; }

main { padding: 12px 0 48px; }

.hero-grid { display: flex; flex-direction: column; }

.hero {
  display: block;
  width: min(100%, 280px);
  margin: 4px auto 18px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}

h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  margin: 28px 0 8px;
}

h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.lede, p { margin: 0 0 14px; }

.lede { font-size: 20px; color: var(--ink); }

.date { color: var(--soft); font-size: 15px; margin-top: -8px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; }

.points { list-style: none; padding: 0; margin: 28px 0; }

.points li {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  margin: 0 0 12px;
}

.points li:not(:has(picture)) { display: block; }

.spot {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.spot svg {
  width: 40px;
  height: 40px;
  display: block;
}

.tile-feed { background: var(--feed); }
.tile-sleep { background: var(--sleep); }
.tile-diaper { background: var(--diaper); }
.tile-pump { background: var(--pump); }

.spot img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
}

.points strong { display: block; font-size: 17px; margin-bottom: 4px; }

.band { margin: 36px 0; }
.band h2 { margin-top: 0; }
.band p:last-child { margin-bottom: 0; }

.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 22px;
}

.steps li { margin: 0; }
.steps strong { display: block; margin: 10px 0 4px; font-size: 17px; }

.step img,
.feature img,
.shield img,
.daylight img,
.join-art img,
.page-hero img,
.miss img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.step img,
.feature img,
.daylight img {
  object-fit: contain;
  background: var(--bg);
}

.step img { max-width: 360px; }
.feature img { max-width: 480px; }
.shield img { max-width: 320px; }

.join-art img,
.page-hero img {
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.miss { margin: 0 0 8px; }
.miss img { width: min(320px, 100%); }

.join-art { margin: 8px 0 0; }

.shield { margin: 0 0 16px; }

@media (min-width: 800px) {
  body.home .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
  .shield-row { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}

.invited { margin: 12px 0 16px; }

.invited a {
  font-size: 16px;
  text-underline-offset: 3px;
}

.plan {
  background-color: var(--card);
  background-image:
    linear-gradient(105deg, rgba(251, 247, 242, 0.94) 0%, rgba(251, 247, 242, 0.86) 48%, rgba(251, 247, 242, 0.62) 100%),
    url('/assets/pricing-bg.png');
  background-image:
    linear-gradient(105deg, rgba(251, 247, 242, 0.94) 0%, rgba(251, 247, 242, 0.86) 48%, rgba(251, 247, 242, 0.62) 100%),
    image-set(
      url('/assets/pricing-bg.webp') type('image/webp'),
      url('/assets/pricing-bg.png') type('image/png')
    );
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 22px;
}

.plan h2 { margin: 0 0 6px; font-size: 26px; }

.plan .price { margin: 0 0 10px; font-size: 17px; font-weight: 500; }

.checks { list-style: none; padding: 0; margin: 0; }

.checks li {
  position: relative;
  padding-left: 28px;
  min-height: 28px;
  margin: 0 0 6px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-ink);
  font-weight: 600;
}

.waitlist, .done {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px 16px;
  margin: 8px 0 0;
}

.waitlist h2, .done h3 { margin-top: 0; }

.waitlist label {
  display: block;
  font-size: 15px;
  color: var(--soft);
  margin: 0 0 6px;
}

.waitlist input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 12px;
}

.waitlist .check {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 14px;
  min-height: 44px;
}

.waitlist .check input {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: none;
  accent-color: var(--sage);
}

.waitlist button, .text-btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.waitlist button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: #2B2135;
  padding: 12px 18px;
}

.waitlist button:disabled { opacity: 0.6; }

.text-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#waitlist-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #2B2135;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

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

@media (max-width: 720px) {
  header nav { gap: 4px 16px; }
  h1 { font-size: 40px; }
}

@media (max-width: 479px) {
  header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-extra { display: none; }
  .join-link { display: inline-flex; }
}

@media (min-width: 1024px) {
  body.home .wrap { width: min(1080px, calc(100% - 48px)); }

  body.home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    column-gap: 40px;
    align-items: start;
  }

  body.home .intro-copy { grid-column: 1; grid-row: 1; }
  body.home .intro-rest { grid-column: 1; grid-row: 2; min-width: 0; }

  body.home .hero {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    margin: 0;
  }
}

.try {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 4px 0 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #FF6B4A;
  color: #2B2135;
  font-weight: 600;
  text-decoration: none;
}

.distinction { color: #6B5F75; }
.early { color: var(--soft); margin: 0 0 12px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2B2135;
    --card: #3A2F46;
    --ink: #FFF4E8;
    --soft: #C4B6CE;
    --line: #4A3D58;
    --sage: #FF6B4A;
    --sage-ink: #D7F3EF;
    --sage-soft: #243F3C;
    --blush: #3A2E2A;
    --feed: #74493A;
    --sleep: #4E4878;
    --diaper: #335A4B;
    --pump: #62552A;
    color-scheme: dark;
  }

  .waitlist button[type="submit"] { color: #2B2135; }

  .plan {
    background-image:
      linear-gradient(105deg, rgba(20, 17, 15, 0.9) 0%, rgba(20, 17, 15, 0.82) 55%, rgba(20, 17, 15, 0.7) 100%),
      url('/assets/pricing-bg.png');
    background-image:
      linear-gradient(105deg, rgba(20, 17, 15, 0.9) 0%, rgba(20, 17, 15, 0.82) 55%, rgba(20, 17, 15, 0.7) 100%),
      image-set(
        url('/assets/pricing-bg.webp') type('image/webp'),
        url('/assets/pricing-bg.png') type('image/png')
      );
  }

  .waitlist input[type="email"] {
    background: #14110f;
    color: var(--ink);
    border-color: var(--line);
  }
}

body.home { padding-bottom: 220px; }

.waitlist { margin-bottom: 48px; scroll-margin-bottom: 220px; }

.measure-choice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(43, 33, 53, 0.08);
}

.measure-choice[hidden] { display: none; }

.measure-choice p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 15px;
  line-height: 1.4;
}

.measure-choice div { display: flex; gap: 8px; }

.measure-choice button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  font: 600 15px/1 "Source Sans 3", "Noto Sans", sans-serif;
  cursor: pointer;
}

#site-analytics-allow {
  background: #2A9D8F;
  border-color: #2A9D8F;
  color: #2B2135;
}

