:root {
  --bg: #fbf9f3;
  --surface: #ffffff;
  --surface-2: #eef6fb;
  --text: #24364a;
  --muted: #62758a;
  --line: #dbe8f1;
  --water: #bfe0f3;
  --water-deep: #8cc4e4;
  --duck: #ffd54a;
  --duck-deep: #f2b92a;
  --accent: #3a8fd6;
  --accent-ink: #ffffff;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5a00;
  --shadow: 0 6px 20px rgba(58, 110, 150, 0.12);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10202e;
    --surface: #17303f;
    --surface-2: #1c3a4c;
    --text: #e8f1f8;
    --muted: #9db4c6;
    --line: #28485c;
    --water: #1f4a63;
    --water-deep: #2b6585;
    --accent: #6cb6f0;
    --accent-ink: #0c1b27;
    --warn-bg: #3b3216;
    --warn-ink: #ffe28a;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", "Quicksand", system-ui, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
section { padding: 56px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* header */
header.top { padding: 16px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; font-size: .85rem; }

/* hero */
.hero { position: relative; text-align: center; padding: 48px 0 0; overflow: hidden; }
.hero .big-duck { width: 120px; height: 120px; margin: 0 auto 8px; animation: bob 3.2s ease-in-out infinite; }
.cta { margin: 28px 0 8px; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 800;
}
.btn-google[disabled] { opacity: .55; cursor: not-allowed; }
.cta-note { color: var(--muted); font-size: .95rem; max-width: 30em; margin: 8px auto 0; }
.waves { display: block; width: 100%; height: 70px; margin-top: 32px; color: var(--water); }
.waves path { fill: currentColor; }

/* steps */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--duck); color: #3a2f00; font-weight: 800; margin-bottom: 8px; }

/* pond */
.pond { background: var(--surface-2); border-radius: 32px; padding: 20px; border: 1px solid var(--line); }
.pond-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-tag { font-size: .8rem; color: var(--muted); }
.duck-card { transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.duck-card:hover { transform: translateY(-4px); }
.duck-card .face { font-size: 2rem; display: inline-block; animation: bob 3.6s ease-in-out infinite; }
.duck-card:nth-child(2n) .face { animation-delay: -1.2s; }
.duck-card:nth-child(3n) .face { animation-delay: -2.1s; }
.duck-card[data-state="sleeping"] { opacity: .75; }
.duck-card[data-state="sleeping"] .face { animation: none; filter: grayscale(.5); }
.duck-card .addr { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; color: var(--muted); word-break: break-all; }
.state { display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 6px; }
.stats { display: flex; gap: 16px; margin: 10px 0; font-size: .9rem; color: var(--muted); }
.stats b { color: var(--text); }
.senders { font-size: .85rem; color: var(--muted); }
.leak-chip { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); }
.btn-small {
  margin-top: 12px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--water-deep);
  background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.btn-small:hover { background: var(--water); }
.btn-small:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* leak */
.leak-box { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); padding: 20px; max-width: 640px; margin: 24px auto 0; }
.leak-box strong { display: block; margin-bottom: 4px; }
.leak-box small { display: block; margin-top: 8px; opacity: .85; }

.health ol { margin: 0; padding-left: 1.2em; }
.health li { margin: 4px 0; }

footer { padding: 32px 0 48px; text-align: center; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
footer a { margin: 0 8px; }

.legal { max-width: 720px; margin: 0 auto; padding: 32px 16px 56px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
