/* peepoop marketing site — palette mirrors lib/core/theme/app_colors.dart. */

:root {
  color-scheme: light dark;

  --cream: #fff8f2;
  --surface: #ffffff;
  --surface-2: #fffdfa;
  --ink: #4a4458;
  --ink-soft: #8a8398;
  --cloud: #f1ecf6;

  --pink: #ff8fb1;
  --pink-deep: #f2649a;
  /* The brand pink is far too light to carry white text — #ff8fb1 gives about
     2:1. These deeper stops clear WCAG AA (4.5:1) and are used anywhere white
     sits on pink; the light pink stays for accents and the wordmark. */
  --pink-cta: #d33a7c;
  --pink-cta-2: #b8285f;
  --mint: #7be0c6;
  --sky: #8fd3ff;
  --lemon: #ffe08a;

  --pee: #ffc84a;
  --poop: #c18a5d;
  --milk: #8fb8ff;
  --sleep: #a99bff;
  --meds: #6fe0b0;

  --radius: 26px;
  --shadow: 0 18px 40px rgba(74, 68, 88, 0.1);
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #16131c;
    --surface: #201c29;
    --surface-2: #262133;
    --ink: #ece8f2;
    --ink-soft: #a49db4;
    --cloud: #2e2839;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--pink-deep); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

/* ── Wordmark ─────────────────────────────────────────────────────────────── */

.wordmark {
  font-family: Pacifico, "Brush Script MT", cursive;
  font-weight: 400;
  background: linear-gradient(100deg, var(--pink), var(--pink-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.nav .wordmark { font-size: 28px; text-decoration: none; }
.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
/* :not(.btn) matters — `.nav nav a` outranks `.btn-primary`, so without it the
   CTA in the nav inherits the grey link colour instead of staying white. */
.nav nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav nav a.hide-sm { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(100deg, var(--pink-cta), var(--pink-cta-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 40, 95, 0.32);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--cloud);
}
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 64px; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .hero .eyebrow { margin-inline: auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cloud);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  margin: 20px 0 0;
  max-width: 34ch;
}
@media (max-width: 900px) { .hero p.lede { max-width: none; } }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── Phone mockup ─────────────────────────────────────────────────────────── */

.phone {
  width: min(320px, 82vw);
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2535, #171320);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.screen {
  background: #fff8f2;
  border-radius: 34px;
  padding: 18px 16px 22px;
  color: #4a4458;
  overflow: hidden;
}
.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.screen-top .wordmark { font-size: 21px; }
.pill {
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  color: #8a8398;
}
.screen-sub { font-size: 12px; color: #8a8398; margin: 0 0 14px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  border-radius: 20px;
  padding: 14px 12px;
  color: #fff;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.tile .emoji { font-size: 22px; line-height: 1; }
.tile .name { font-weight: 800; font-size: 15px; }
.tile .ago { font-size: 11px; opacity: 0.85; }
.tile.wide { grid-column: 1 / -1; }
.tile.pee { background: linear-gradient(150deg, #ffd06b, #f5a623); }
.tile.poop { background: linear-gradient(150deg, #cf9c72, #9a6a41); }
.tile.milk { background: linear-gradient(150deg, #a3c6ff, #5e8ce6); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.trio .tile { min-height: 66px; padding: 10px 8px; text-align: center; align-items: center; }
.trio .name { font-size: 12px; }
.tile.sleep { background: linear-gradient(150deg, #bdb2ff, #7d6cf0); }
.tile.pump { background: linear-gradient(150deg, #ffb6e2, #ec6bbe); }
.tile.meds { background: linear-gradient(150deg, #8ce9c6, #36be8a); }

.card-mini {
  background: #fff;
  border-radius: 20px;
  padding: 13px 14px;
  margin-top: 12px;
}
.card-mini h4 { margin: 0 0 9px; font-size: 13px; font-weight: 800; }
.todo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  padding: 3px 0;
}
.todo .t-time { margin-left: auto; color: #8a8398; font-size: 11px; }
.check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #6fe0b0;
  flex: none;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

section { padding: 76px 0; }
section.tint { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { section.tint { background: #1b1725; } }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 18px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 18px rgba(74, 68, 88, 0.06);
}
@media (prefers-color-scheme: dark) {
  .card { box-shadow: none; border: 1px solid var(--cloud); }
}
.card .ico {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 25px;
  margin-bottom: 16px;
}
.card p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

ul.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
ul.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  color: var(--ink-soft);
}
ul.ticks li strong { color: var(--ink); font-weight: 700; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--surface);
}

/* Reminder card demo */
.rem-demo { display: flex; flex-direction: column; gap: 12px; }
.rem {
  background: var(--surface);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(74, 68, 88, 0.07);
}
@media (prefers-color-scheme: dark) {
  .rem { box-shadow: none; border: 1px solid var(--cloud); }
}
.rem .r-emoji {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--meds) 22%, transparent);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}
.rem .r-body { flex: 1; min-width: 0; }
.rem .r-title { font-weight: 700; }
.rem .r-sub { font-size: 13.5px; color: var(--ink-soft); }
.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--pink);
  position: relative;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}
.switch.off { background: var(--cloud); }
.switch.off::after { right: auto; left: 3px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

details.faq {
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 22px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) { details.faq { border-color: var(--cloud); } }
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--ink-soft);
  font-weight: 400;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--ink-soft); padding-bottom: 20px; }

/* ── Final CTA + footer ───────────────────────────────────────────────────── */

.final {
  background: linear-gradient(120deg, var(--pink-cta), var(--pink-cta-2));
  border-radius: 34px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
  margin: 0 0 76px;
}
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.9); margin: 14px auto 0; max-width: 46ch; }
.final .btn-ghost { background: #fff; color: var(--pink-cta-2); border-color: #fff; }
.final .cta-row { justify-content: center; }
.final .cta-note { color: rgba(255, 255, 255, 0.85); }

footer.site {
  border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  padding: 36px 0 56px;
  color: var(--ink-soft);
  font-size: 15px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot-inner nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer {
  margin-top: 22px;
  font-size: 13.5px;
  max-width: 70ch;
  color: var(--ink-soft);
}
