@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #F4F4F2;
  --surface: #FFFFFF;
  --fill: #ECECE9;
  --line: #DEDEDA;
  --ink: #1B1B1B;
  --ink-muted: #5E5E5A;
  --moss: #2B6A4E;
  --moss-soft: #E3EFE8;
  --on-moss: #FFFFFF;
  --glyph: #6F6F6B;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121313;
    --surface: #1C1D1D;
    --fill: #2A2B2B;
    --line: #343636;
    --ink: #ECECEA;
    --ink-muted: #A8A8A4;
    --moss: #74C69D;
    --moss-soft: #1F3529;
    --on-moss: #121313;
    --glyph: #A8A8A4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--moss); text-underline-offset: 3px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

header.site {
  padding: 20px 0 8px;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 18px; height: auto; }
nav.top { display: flex; gap: 16px; font-size: 15px; }
nav.top a { color: var(--ink-muted); text-decoration: none; }
nav.top a:hover { color: var(--moss); }

main { padding: 16px 0 40px; }

h1 { font-size: 34px; line-height: 1.15; margin: 16px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.25; margin: 32px 0 8px; }
h3 { font-size: 18px; margin: 20px 0 4px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--moss); color: var(--on-moss);
  font-weight: 700; text-decoration: none;
  border: 0; font-family: inherit; font-size: 17px; cursor: pointer;
}
.button.quiet { background: var(--moss-soft); color: var(--moss); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

.hero-mark { width: 40px; height: auto; margin-top: 24px; }

.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.features li:last-child { border-bottom: 0; }
.features strong { display: block; }

/* Bristol chart */
.types { list-style: none; padding: 0; margin: 16px 0; }
.type {
  display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.type svg { width: 72px; height: 48px; color: var(--glyph); grid-row: span 2; }
.type .name { font-weight: 700; font-size: 18px; }
.type .name span { color: var(--ink-muted); font-weight: 400; }
.type p { margin: 0; color: var(--ink-muted); }
.group { font-size: 14px; font-weight: 700; color: var(--ink-muted); margin: 20px 0 8px; text-transform: none; }

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

/* Policy */
.policy h2 { font-size: 20px; }
.policy .updated { color: var(--ink-muted); }
.toc { font-size: 15px; }
.toc ol { padding-left: 22px; margin: 0; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--ink-muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
footer.site a { color: var(--ink-muted); }

@media (min-width: 720px) {
  h1 { font-size: 44px; }
  header.site { padding-top: 28px; }
}

@media print {
  :root { --canvas: #FFFFFF; --surface: #FFFFFF; --ink: #000; --ink-muted: #333; --glyph: #444; --line: #BBB; }
  body { font-size: 12pt; background: #fff; }
  header.site nav, footer.site, .no-print, .actions { display: none !important; }
  .type { border: 1px solid #CCC; padding: 8px 12px; margin-bottom: 6px; break-inside: avoid; border-radius: 12px; }
  .type svg { width: 60px; height: 40px; }
  h1 { font-size: 24pt; margin-top: 0; }
  main { padding: 0; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
.card h2.first { margin-top: 0; }

/* Blog */
.kicker { font-size: 14px; font-weight: 700; color: var(--moss); margin: 16px 0 0; }
.kicker a { text-decoration: none; }
.byline { font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.post h2 { margin-top: 36px; }
.post li { margin-bottom: 8px; }
.note {
  background: var(--surface); border-left: 4px solid var(--moss);
  border-radius: 12px; padding: 14px 16px; margin: 20px 0;
}
.card.app { margin-top: 36px; }
.related { padding-left: 22px; }
.post-list { display: grid; gap: 12px; margin: 24px 0; }
.post-card {
  display: grid; gap: 4px; background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink);
}
.post-card:hover strong { color: var(--moss); }
.post-card strong { font-size: 19px; line-height: 1.3; }
.post-card .kicker { margin: 0; }
.post-card .muted { font-size: 15px; }

/* Home */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 8px; }
.shots img { width: 100%; height: auto; border-radius: 18px; display: block; }
.audiences { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 620px) { .audiences { grid-template-columns: 1fr 1fr; } }
.audiences a {
  display: grid; gap: 4px; background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink);
}
.audiences a strong { font-size: 18px; }
.audiences a span { color: var(--ink-muted); font-size: 15px; }
.audiences a:hover strong { color: var(--moss); }
.story { background: var(--moss-soft); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.story p:last-child { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-muted); }

/* Printable diary */
.diary { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.diary th, .diary td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.diary th { font-size: 13px; background: var(--fill); }
.diary td { height: 34px; }
.diary .day { font-weight: 700; width: 64px; }
.diary-wrap { overflow-x: auto; margin: 16px 0; }
.key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); margin: 8px 0; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .diary { font-size: 10pt; }
  .diary th, .diary td { border-color: #888; }
  .diary td { height: 24px; }
  .diary-page h1 { font-size: 18pt; margin: 0 0 4px; }
  .diary-page .lead, .diary-page h2, .diary-page .after { display: none; }
}

/* Facts block */
.facts { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 28px 0; }
.facts h2 { margin-top: 0; }
.facts dl { margin: 0; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; font-size: 15px; }
.facts dd { margin: 2px 0 0; color: var(--ink-muted); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap table.plain th { font-size: 14px; color: var(--ink-muted); }
.faq h2 { margin-top: 28px; }
.table-wrap table.plain th, .table-wrap table.plain td { padding-right: 12px; }

/* ==== Motion, icons, header, readability (Nov 2026) ==== */
/* One-tap preview: a phone whose Stool widget logs a type 4, then shows Saved, and the Last stool
   widget turns to "Just now". Light motion, 7 s loop; still on the final frame with Reduce Motion. */

.hero { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 300px; gap: 56px; align-items: center; margin: 24px 0 8px;
          width: min(960px, calc(100vw - 32px)); margin-left: calc(50% - min(480px, 50vw - 16px)); }
  .hero h1 { margin-top: 0; }
}

.demo { display: flex; justify-content: center; padding: 8px 0 16px; }
.phone {
  --wall-a: #D7E9DF; --wall-b: #EEF4EF;
  position: relative; width: 280px; height: 400px; border-radius: 46px 46px 0 0; border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent);
  border: 10px solid #1B1B1B; background: linear-gradient(165deg, var(--wall-a), var(--wall-b));
  box-shadow: 0 24px 48px rgba(27, 60, 44, .16); overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .phone { --wall-a: #1E3328; --wall-b: #151917; border-color: #000; box-shadow: none; }
}
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; }
.phone .clock { position: absolute; top: 12px; left: 26px; font-size: 13px; font-weight: 700; color: var(--ink); }

.w { position: absolute; background: var(--surface); border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w.stool { top: 54px; left: 14px; right: 14px; height: 150px; padding: 14px 14px 12px; }
.w.small { top: 216px; width: 118px; height: 118px; padding: 12px; }
.w.last { left: 14px; }
.w.water { right: 14px; }
.wlabel { font-size: 10px; text-align: center; color: var(--ink-muted); position: absolute; left: 0; right: 0; }

.whead { display: flex; justify-content: space-between; align-items: baseline; }
.whead b { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.whead b img { width: 8px; }
.whead span { font-size: 10px; color: var(--ink-muted); }

div.types { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 16px; }
.t { position: relative; height: 54px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--glyph); font-size: 10px; }
.t svg { width: 22px; height: 15px; }
.zones { display: flex; justify-content: space-between; font-size: 9px; color: var(--ink-muted); margin-top: 6px; }

/* the tapped tile */
.t4 { animation: tile 7s ease-in-out infinite; }
.tap { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--ink); opacity: 0; animation: tap 7s ease-out infinite; pointer-events: none; }

/* the two faces of the Stool widget */
.face { position: absolute; inset: 14px 14px 12px; }
.face.pick { animation: pick 7s ease-in-out infinite; }
.face.saved { opacity: 0; display: flex; flex-direction: column; animation: saved 7s ease-in-out infinite; }
.saved .row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.saved .tick { width: 34px; height: 34px; border-radius: 50%; background: var(--moss); color: var(--on-moss); display: grid; place-items: center; }
.saved .tick svg { width: 18px; height: 18px; }
.saved strong { font-size: 16px; display: block; }
.saved small { color: var(--ink-muted); font-size: 11px; }
.saved .btns { display: flex; gap: 6px; margin-top: auto; }
.saved .btns span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 7px 0; border-radius: 999px; background: var(--fill); color: var(--ink); }

/* Last stool widget */
.last .k { font-size: 10px; color: var(--ink-muted); font-weight: 700; }
.last .v { position: absolute; left: 12px; right: 12px; top: 34px; }
.last .v b { font-size: 26px; display: block; line-height: 1.1; letter-spacing: -0.01em; }
.last .v small { font-size: 10px; color: var(--ink-muted); }
.last .before { animation: before 7s ease-in-out infinite; }
.last .after { opacity: 0; animation: after 7s ease-in-out infinite; }
.last .after svg { width: 26px; height: 17px; color: var(--glyph); display: block; margin-bottom: 4px; }

.water .k { font-size: 10px; color: var(--ink-muted); font-weight: 700; }
.water b { font-size: 26px; display: block; margin-top: 10px; line-height: 1; }
.water small { font-size: 10px; color: var(--ink-muted); }
.glasses { display: flex; gap: 3px; margin-top: 10px; }
.glasses i { width: 9px; height: 12px; border-radius: 0 0 3px 3px; background: var(--moss); }
.glasses i.e { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }

.dock { display: none; position: absolute; bottom: 14px; left: 14px; right: 14px; height: 64px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* timing: tap at ~1.3 s, Saved at ~1.9 s, Last stool turns at ~2.6 s, hold, reset at ~6.3 s */
@keyframes tap { 0%, 16% { opacity: 0; transform: scale(.5); } 18% { opacity: .22; transform: scale(1); } 24% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; } }
@keyframes tile { 0%, 17% { background: var(--fill); color: var(--glyph); } 19%, 30% { background: var(--moss); color: var(--on-moss); } 34%, 100% { background: var(--fill); color: var(--glyph); } }
@keyframes pick { 0%, 25% { opacity: 1; transform: none; } 30%, 88% { opacity: 0; transform: translateY(-6px); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes saved { 0%, 27% { opacity: 0; transform: translateY(8px); } 32%, 86% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes before { 0%, 36% { opacity: 1; transform: none; } 40%, 88% { opacity: 0; transform: translateY(-6px); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes after { 0%, 37% { opacity: 0; transform: translateY(8px); } 42%, 86% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .t4, .tap, .face.pick, .face.saved, .last .before, .last .after { animation: none; }
  .face.pick, .last .before { opacity: 0; }
  .face.saved, .last .after { opacity: 1; }
}

/* Footer, grouped */
footer.site .fgroups { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 64px; margin-bottom: 20px; }
footer.site .fgroups h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
footer.site .fgroups a { display: block; padding: 3px 0; text-decoration: none; }
footer.site .fgroups a:hover { color: var(--moss); }
@media (max-width: 560px) {
  footer.site .fgroups { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  footer.site .fgroups > div:last-child { grid-column: 1 / -1; }
  footer.site .fgroups > div:last-child a { display: inline-block; margin-right: 16px; }
}
@media (min-width: 900px) {
  body.home header.site .wrap { max-width: 960px; }
}

/* Feature rows: words on one side, a small looping example on the other. Light motion only;
   each loop stops on its most telling frame with Reduce Motion. */

.frows { margin: 32px 0 8px; }
.frow { display: grid; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.frow h3 { margin: 0 0 4px; font-size: 20px; }
.frow p { margin: 0; color: var(--ink-muted); }
.frow .more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
@media (min-width: 720px) {
  .frow { grid-template-columns: 1fr 290px; gap: 32px; align-items: center; }
  .frow:nth-child(even) .ex { order: -1; }
}

.ex { position: relative; height: 210px; border-radius: 22px; background: var(--moss-soft); overflow: hidden; }
.ex .cap { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: var(--moss); opacity: .8; }
.mini { position: absolute; background: var(--surface); border-radius: 14px; }

/* 1. Doctor report: the page, then Key numbers, then the day-by-day rows light up */
.paper { left: 34px; right: 34px; top: 32px; bottom: -20px; padding: 14px; border-radius: 10px; box-shadow: 0 6px 18px rgba(27,60,44,.10); }
.paper .ln { height: 6px; border-radius: 3px; background: var(--fill); margin-bottom: 5px; }
.paper .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0; padding: 4px; border-radius: 8px; animation: hlA 6s ease-in-out infinite; }
.paper .nums i { height: 30px; border-radius: 5px; background: var(--fill); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); }
.paper .lanes { padding: 4px; border-radius: 8px; animation: hlB 6s ease-in-out infinite; }
.paper .lane { position: relative; height: 16px; border-bottom: 1px solid var(--line); }
.paper .lane b { position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--glyph); }
.tagA, .tagB { position: absolute; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--moss); color: var(--on-moss); font-size: 11px; font-weight: 700; opacity: 0; }
.tagA { top: 4px; left: 50%; margin-left: -48px; width: 96px; text-align: center; animation: tagA 6s ease-in-out infinite; }
.tagB { top: 4px; left: 50%; margin-left: -80px; width: 160px; text-align: center; animation: tagB 6s ease-in-out infinite; }
@keyframes hlA { 0%, 12% { box-shadow: 0 0 0 0 transparent; } 18%, 44% { box-shadow: 0 0 0 2px var(--moss); } 50%, 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes hlB { 0%, 50% { box-shadow: 0 0 0 0 transparent; } 56%, 86% { box-shadow: 0 0 0 2px var(--moss); } 92%, 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes tagA { 0%, 14% { opacity: 0; transform: translateY(4px); } 20%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; } }
@keyframes tagB { 0%, 52% { opacity: 0; transform: translateY(4px); } 58%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* 2. Possible links: two bars grow, with it and other days */
.links { left: 20px; right: 20px; top: 26px; padding: 14px 16px; }
.links .k { font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.links .pair { margin-top: 10px; }
.links .pair strong { font-size: 14px; display: block; }
.links .pair small { font-size: 11px; color: var(--ink-muted); }
.bar { height: 10px; border-radius: 5px; background: var(--fill); margin-top: 7px; position: relative; overflow: hidden; }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: 5px; transform-origin: left; }
.bar.dark span { width: 60%; background: var(--moss); animation: growA 6s ease-out infinite; }
.bar.light span { width: 14%; background: color-mix(in srgb, var(--moss) 35%, var(--fill)); animation: growB 6s ease-out infinite; }
.links .rates { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-muted); margin-top: 6px; opacity: 0; animation: rates 6s ease-in-out infinite; }
@keyframes growA { 0%, 10% { transform: scaleX(0); } 34%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes growB { 0%, 22% { transform: scaleX(0); } 42%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes rates { 0%, 40% { opacity: 0; } 50%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* 3. Apple Watch: tap a type, then Save, then Saved */
.watch { position: absolute; left: 50%; top: 18px; width: 150px; height: 180px; margin-left: -75px; border-radius: 42px; background: #1B1B1B; padding: 12px; box-shadow: 0 10px 24px rgba(27,60,44,.18); }
.watch .scr { position: relative; height: 100%; border-radius: 32px; background: #000; overflow: hidden; color: #fff; }
.wv { position: absolute; inset: 0; padding: 14px 12px; }
.wv .wt { font-size: 10px; color: #9BD3B4; font-weight: 700; margin-bottom: 6px; }
.wrow { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 10px; background: #1F1F1F; margin-bottom: 4px; font-size: 11px; }
.wrow svg { width: 18px; height: 12px; color: #BDBDB8; }
.wrow.pick { animation: wpick 7s ease-in-out infinite; }
.wv.list { animation: wlist 7s ease-in-out infinite; }
.wv.confirm { opacity: 0; animation: wconfirm 7s ease-in-out infinite; text-align: center; }
.wv.confirm b { font-size: 16px; display: block; margin-top: 6px; }
.wv.confirm small { font-size: 10px; color: #BDBDB8; display: block; }
.wv.confirm .save { margin: 14px auto 0; width: 90px; height: 30px; border-radius: 999px; background: #74C69D; color: #0F1F17; font-weight: 700; font-size: 12px; display: grid; place-items: center; animation: wsave 7s ease-in-out infinite; }
.wv.done { opacity: 0; animation: wdone 7s ease-in-out infinite; text-align: center; padding-top: 34px; }
.wv.done .tick { width: 40px; height: 40px; border-radius: 50%; background: #74C69D; margin: 0 auto 8px; display: grid; place-items: center; color: #0F1F17; }
.wv.done .tick svg { width: 20px; height: 20px; }
.wv.done b { font-size: 14px; display: block; }
.wv.done small { font-size: 10px; color: #BDBDB8; }
@keyframes wpick { 0%, 14% { background: #1F1F1F; } 17%, 24% { background: #2B6A4E; } 28%, 100% { background: #1F1F1F; } }
@keyframes wlist { 0%, 22% { opacity: 1; transform: none; } 27%, 92% { opacity: 0; transform: translateX(-14px); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes wconfirm { 0%, 23% { opacity: 0; transform: translateX(14px); } 28%, 50% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; } }
@keyframes wsave { 0%, 42% { transform: none; filter: none; } 44%, 47% { transform: scale(.94); filter: brightness(1.15); } 50%, 100% { transform: none; filter: none; } }
@keyframes wdone { 0%, 52% { opacity: 0; transform: scale(.96); } 57%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* 4. Toilet timer: the Lock Screen's Live Activity counts, then Done fills in the minutes */
.lock { position: absolute; inset: 0; background: linear-gradient(170deg, #2B4A3B, #16241D); }
.lock .lt { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); }
.lock .lt b { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; display: block; line-height: 1; }
.lock .lt small { font-size: 11px; }
.live { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 82px; border-radius: 20px; background: rgba(28,29,29,.82); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.live .ic { width: 34px; height: 34px; border-radius: 50%; background: #74C69D; color: #0F1F17; display: grid; place-items: center; flex: none; }
.live .ic svg { width: 18px; height: 18px; }
.live .lbl { font-size: 11px; color: #BDBDB8; }
.live .time { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; }
.digit { display: inline-block; height: 1.25em; overflow: hidden; line-height: 1.25em; }
.digit span { display: block; animation: count 10s steps(10) infinite; }
.digit.tens span { animation: count 60s steps(6) infinite; }
.live .done { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #74C69D; color: #0F1F17; font-weight: 700; font-size: 12px; animation: donetap 8s ease-in-out infinite; }
.filled { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 82px; border-radius: 20px; background: var(--surface); color: var(--ink); padding: 12px 14px; opacity: 0; animation: filled 8s ease-in-out infinite; }
.filled .lbl { font-size: 11px; color: var(--ink-muted); }
.filled b { font-size: 18px; display: block; margin-top: 2px; }
.filled .chip { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--moss-soft); color: var(--moss); font-size: 11px; font-weight: 700; }
@keyframes count { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes donetap { 0%, 60% { transform: none; } 63%, 66% { transform: scale(.92); } 69%, 100% { transform: none; } }
@keyframes filled { 0%, 66% { opacity: 0; transform: translateY(10px); } 72%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ex *, .ex *::before { animation: none !important; }
  .paper .nums { box-shadow: 0 0 0 2px var(--moss); }
  .tagA { opacity: 1; }
  .wv.list, .wv.confirm { opacity: 0; }
  .wv.done { opacity: 1; }
  .filled { opacity: 1; }
}

/* Icons: the app's own "sl." outlines, coloured by the text around them */
.icon { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -4px; margin-right: 10px; color: var(--moss); flex: none; }
.frow h3 { display: flex; align-items: center; }
.frow h3 .icon { width: 36px; height: 36px; padding: 0; border-radius: 11px; background: var(--moss-soft); -webkit-mask: none; mask: none; position: relative; }
.frow h3 .icon::after { content: ""; position: absolute; inset: 8px; background: var(--moss); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.audiences a .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--moss-soft); -webkit-mask: none; mask: none; position: relative; margin: 0 0 6px; }
.audiences a .icon::after { content: ""; position: absolute; inset: 9px; background: var(--moss); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* Header: sticky, quiet; Get the app always in reach; a menu on phones (no script, a <details>) */
header.site { position: sticky; top: 0; z-index: 20; padding: 0; background: color-mix(in srgb, var(--canvas) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
header.site .wrap { height: 60px; gap: 20px; }
nav.top { margin-left: auto; gap: 22px; }
nav.top a { padding: 10px 0; }
.get { padding: 9px 16px; border-radius: 999px; background: var(--moss); color: var(--on-moss); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--ink); position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; } .menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; } .menu[open] summary span::before { top: 0; transform: rotate(45deg); } .menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 52px; width: 240px; background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.12); display: grid; }
.menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 17px; }
.menu nav a:hover { background: var(--fill); }
@media (max-width: 720px) {
  nav.top { display: none; }
  .get { margin-left: auto; }
  .menu { display: block; }
}

/* Readability */
body { font-size: 18px; line-height: 1.6; }
@media (max-width: 560px) { body { font-size: 17px; } }
main p, main li { max-width: 65ch; }
main p a, main li a, .faq a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead { color: var(--ink-muted); line-height: 1.5; }
h2 { margin-top: 48px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }
.faq summary { padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
html { scroll-padding-top: 76px; }

/* Icon names */
.i-stool { --i: url(/img/icons/stool.svg); }
.i-symptom { --i: url(/img/icons/symptom.svg); }
.i-food { --i: url(/img/icons/food.svg); }
.i-medicine { --i: url(/img/icons/medicine.svg); }
.i-drink { --i: url(/img/icons/drink.svg); }
.i-report { --i: url(/img/icons/report.svg); }
.i-insights { --i: url(/img/icons/insights.svg); }
.i-timer { --i: url(/img/icons/timer.svg); }
.i-people { --i: url(/img/icons/people.svg); }
.i-child { --i: url(/img/icons/child.svg); }
.i-shield { --i: url(/img/icons/shield.svg); }
.i-lock { --i: url(/img/icons/lock.svg); }
.i-calendar { --i: url(/img/icons/calendar.svg); }
.i-goal { --i: url(/img/icons/goal.svg); }
.i-sparkle { --i: url(/img/icons/sparkle.svg); }
.i-question { --i: url(/img/icons/question.svg); }
.i-mail { --i: url(/img/icons/mail.svg); }
.i-today { --i: url(/img/icons/today.svg); }
.i-cycle { --i: url(/img/icons/cycle.svg); }

/* Report example dots */
.lane .d6 { left: 6%; }
.lane .d13 { left: 13%; }
.lane .d20 { left: 20%; }
.lane .d27 { left: 27%; }
.lane .d34 { left: 34%; }
.lane .d48 { left: 48%; }
.lane .d55 { left: 55%; }
.lane .d62 { left: 62%; }
.lane .d76 { left: 76%; }
.lane .d83 { left: 83%; }
.lane .d90 { left: 90%; }
.live .icon.small { width: 18px; height: 18px; margin: 0; color: #0F1F17; }
.paper .w55 { width: 55%; } .paper .w35 { width: 35%; }

/* Analytics notice (js/analytics.js): shown only once a measurement ID is set, until the visitor answers. */
.consent { position: fixed; z-index: 10; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 16px 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1); font-size: 15px; }
.consent p { margin: 0 0 12px; }
.consent-buttons { display: flex; gap: 10px; }
.consent-buttons .button { flex: 1; min-height: 44px; font-size: 16px; }
.linkish { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish[hidden] { display: none; }
@media print { .consent, .linkish { display: none !important; } }
