/* Lupex public pages. White, Lupex green, small yellow dots. System fonts only:
   the pages load nothing from anyone else. */
:root {
  --green: #5F8F45;
  --green-ink: #4A7236; /* links and small text on white (AA contrast) */
  --yellow: #FFCF4A;
  --ink: #1F2A19;
  --muted: #5B6655;
  --line: #E6ECE2;
  --tint: #F3F7F0;
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ── Header / footer ───────────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--green);
  text-decoration: none;
}
.brand::after,
.dot {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--yellow);
  vertical-align: 1px;
}

nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--green-ink); }

footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: var(--muted); }

/* ── Landing ───────────────────────────────────────────────────────────── */
.hero { padding: 48px 0 28px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--green); }
.lead { margin: 0 0 28px; font-size: clamp(18px, 4.4vw, 21px); color: var(--muted); max-width: 32em; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}
.badge:hover { color: #fff; background: #222; }
.badge svg { width: 22px; height: 22px; fill: #fff; flex: none; }
.badge small { display: block; font-size: 11px; opacity: 0.85; }
.badge strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.2px; }

/* The day stripe, drawn: goals in green, the feeds' minutes in yellow. */
.stripe {
  display: flex;
  height: 14px;
  margin: 44px 0 8px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--tint);
}
.stripe span { display: block; height: 100%; }
.stripe .g { background: var(--green); }
.stripe .y { background: var(--yellow); }
.stripe .e { background: var(--tint); }
.stripe-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.features { display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.features li {
  padding: 24px 24px 22px;
  border-radius: var(--radius);
  background: var(--tint);
}
.features h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; letter-spacing: -0.3px; }
.features h2 .dot { margin: 0 10px 0 0; vertical-align: 3px; }
.features p { margin: 0; color: var(--muted); }

.promise {
  margin: 40px 0 0;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.promise h2 { margin: 0 0 6px; font-size: 19px; }
.promise p { margin: 0; color: var(--muted); }

/* ── Documents (privacy, terms, support) ───────────────────────────────── */
.doc { padding-top: 28px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 7vw, 42px); line-height: 1.1; letter-spacing: -0.8px; }
.doc .date { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -0.3px; }
.doc h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--yellow);
  vertical-align: 4px;
}
.doc h3 { margin: 24px 0 6px; font-size: 18px; }
.doc p, .doc li { color: #2E3A27; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--tint);
}
.summary p { margin: 0 0 8px; }
.summary ul { margin: 0; }

table.plain { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.plain th { color: var(--muted); font-weight: 600; }

/* Support FAQ */
details {
  margin: 12px 0;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--tint);
}
summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--green); font-weight: 700; }
details[open] summary::after { content: "–"; }
details > :last-child { padding-bottom: 16px; margin-bottom: 0; }
.contact {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
}
.contact p { margin: 0 0 6px; }

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
}

@media (max-width: 420px) {
  nav { gap: 12px; font-size: 14px; }
  .features li, .promise, .contact { padding: 20px; }
}
