/* Dovea — dovea.tonyc.link. No build step: Cloudflare Pages serves site/ as is.
   Fonts are self-hosted (SIL OFL), so a visit sends nothing to Google. */

@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #fff6f3;
  --bg-deep: #fbe9e6;
  --ink: #2c2326;
  --ink-soft: #6e5f63;
  --rose: #d4566f;
  --rose-soft: #e8748a;
  --card: #ffffff;
  --line: #ecd9d6;
  --shadow: 0 18px 50px -24px rgba(110, 41, 56, 0.35);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1517;
    --bg-deep: #241b1e;
    --ink: #f5f0f1;
    --ink-soft: #b0a5a8;
    --rose: #f59aab;
    --rose-soft: #e8748a;
    --card: #262022;
    --line: #3a3033;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 105% 8%, color-mix(in srgb, var(--rose-soft) 22%, transparent), transparent 70%),
    radial-gradient(50rem 36rem at -10% 45%, color-mix(in srgb, #e8a87c 18%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: clip; /* the hero chips overhang the phone */
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 0.2em; }
a:hover { color: var(--rose-soft); }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }

/* ── Masthead ─────────────────────────────────────────────── */
.mast {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.6rem/1 "Lora", Georgia, serif;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.mast nav { margin-left: auto; display: flex; gap: 1.1rem; font-weight: 700; font-size: 0.95rem; }
.mast nav a { color: var(--ink-soft); text-decoration: none; }
.mast nav a:hover { color: var(--rose); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-block: 2.5rem 1rem;
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1rem;
}
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.15; margin: 0 0 0.6em; }
/* No lone last word: headings even out their lines, body text avoids
   orphans. Browsers without support simply wrap as before. */
h1, h2, h3, summary, .lead { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.band > .lead { max-width: 46rem; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 0.6rem 1.15rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.2;
}
.store small { font-size: 0.72rem; opacity: 0.75; }
.store b { font-size: 1.05rem; }
.store[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.8rem; }

.hero-phone {
  position: relative;
  justify-self: center;
  width: min(360px, 80vw);
  filter: drop-shadow(0 30px 40px rgba(110, 41, 56, 0.25));
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.chip:nth-child(1) { top: 12%; left: -18%; animation-delay: 0.25s; }
.chip:nth-child(2) { top: 26%; right: -16%; animation-delay: 0.35s; }
.chip:nth-child(3) { top: 44%; left: -20%; animation-delay: 0.45s; }
.chip:nth-child(4) { top: 58%; right: -18%; animation-delay: 0.55s; }
.chip:nth-child(5) { top: 74%; left: -14%; animation-delay: 0.65s; }
@keyframes rise { from { transform: translateY(18px); } } /* motion only: a crawler or early paint never sees it invisible */
@media (prefers-reduced-motion: reduce) {
  .hero-phone, .chip { animation: none; }
}

/* ── Features ─────────────────────────────────────────────── */
.band { padding-block: 3.5rem; }
.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding-block: 2rem;
}
.feature:nth-child(even) { grid-template-columns: 1.2fr 0.8fr; }
.feature:nth-child(even) figure { order: 2; }
.feature figure { margin: 0; justify-self: center; width: min(300px, 70vw); }
.feature p { color: var(--ink-soft); max-width: 32rem; }
.feature ul { padding-left: 1.1rem; color: var(--ink-soft); }
.feature li { margin-bottom: 0.3rem; }
.feature li::marker { color: var(--rose); }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.3rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.faq summary {
  cursor: pointer;
  font: 700 1.15rem/1.4 "Lora", Georgia, serif;
  list-style: none;
}
.faq summary::after { content: "+"; float: right; color: var(--rose); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0.6rem 0 0; }

/* ── Documents (privacy, support, delete) ─────────────────── */
.doc { max-width: 46rem; padding-block: 2rem 3rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc b, .doc strong { color: var(--ink); }
.stamp { font-size: 0.9rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
code { font-size: 0.9em; background: var(--bg-deep); padding: 0.1em 0.35em; border-radius: 6px; }

/* ── Footer ───────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem 3rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}
.foot a { color: var(--ink-soft); }
.foot .right { margin-left: auto; }


/* ── Everything inside ────────────────────────────────────── */
.all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1.5rem;
}
/* Groups are assigned to columns by hand, ~8 entries each: CSS columns
   balanced them badly (one group alone beside two stacks). */
.all-col { display: grid; gap: 1rem; }
.all-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.all-group h3 { font-size: 1.1rem; color: var(--rose); margin-bottom: 0.8rem; }
.all-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.all-group li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  column-gap: 0.5rem;
  line-height: 1.35;
}
.all-icon { grid-row: span 2; font-size: 1.2rem; }
.all-group b { font-size: 0.98rem; }
.all-group li span:last-child { color: var(--ink-soft); font-size: 0.9rem; }

/* ── Small screens ────────────────────────────────────────── */
@media (max-width: 760px) {
  .mast nav { gap: 0.8rem; font-size: 0.85rem; }
  .hero, .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) figure { order: 0; }
  .hero { text-align: left; padding-top: 1rem; }
  .hero-phone { width: min(280px, 70vw); margin-top: 1rem; }
  .chip { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
  .chip:nth-child(odd) { left: -12%; }
  .chip:nth-child(even) { right: -12%; }
  .grid3, .all { grid-template-columns: 1fr; }
  .foot .right { margin-left: 0; }
}
