/* Purie pages under dl2innovation.com/purie/. Colours follow the app
   (app/lib/theme/felix_theme.dart). The font, Baloo 2 (SIL Open Font
   Licence), is served from /purie/fonts/, so the site loads nothing from
   third parties. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("/purie/fonts/baloo-2-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("/purie/fonts/baloo-2-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("/purie/fonts/baloo-2-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("/purie/fonts/baloo-2-latin-800.woff2") format("woff2"); }

:root {
  --cream: #f8efe6;
  --paper: #fffcf7;
  --navy: #15233b;
  --navy-2: #22324c;
  --navy-card: #24344d;
  --ink: #15233b;
  --muted: #3f4b5c;
  --faint: #5d6878;
  --line: #e7ddd0;
  --teal: #1f716a;
  --teal-deep: #17635c;
  --teal-card: #2f7b74;
  --teal-tint: #d8ede8;
  --sun: #f4c152;
  --sun-tint: #fbe7b5;
  --coral: #b9401f;
  --coral-dot: #ee8a6f;
  --coral-tint: #f9dcd2;
  --green: #8bc59a;
  --green-tint: #d6ecdb;
  --radius: 24px;
  --max: 75rem;
  --font: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

h1, h2, h3, .display {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1rem;
}

/* Header */
.f-header { padding: 1.25rem 0; }
.f-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.f-header.ruled { background: var(--paper); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1; }
.logo .mark { width: 2.4rem; height: 2.4rem; }
.f-nav { display: flex; align-items: center; gap: 1.5rem; }
.f-nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.f-nav a:hover { color: var(--teal); }
.f-nav a.btn, .f-nav a.btn:hover { color: #fff; }
.f-nav .hide-sm { display: none; }
@media (min-width: 860px) { .f-nav .hide-sm { display: inline; } }
.back { font-weight: 700; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem 0.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--navy); color: #fff;
}
.btn.teal { background: var(--teal); }
.btn:hover { filter: brightness(1.15); }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 0.75rem;
  padding: 0.4rem 1.05rem 0.3rem; line-height: 1.1; text-decoration: none;
}
.store small { font-size: 0.75rem; font-weight: 500; }
.store strong { font-size: 1.3rem; font-weight: 700; }
.store:hover { filter: brightness(1.2); }
.store.soon { background: transparent; color: var(--navy); border: 2px dashed var(--navy); }
.store.soon:hover { filter: none; }
.pill { display: inline-block; background: var(--coral-tint); color: var(--coral); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5rem 1rem 0.4rem; border-radius: 999px; margin-bottom: 1.75rem; }

/* Hero */
.hero { padding: 3rem 0 5rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.3fr 0.7fr; } }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 2rem 0 1.5rem; }
.fine { font-size: 1rem; color: var(--muted); }
.fine a { font-weight: 700; }

/* The phone in the hero, drawn in HTML: the app's Today screen */
.phone-stage { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.phone-stage .blob-sun { position: absolute; width: 16rem; height: 16rem; border-radius: 50%; background: var(--sun); left: -4rem; top: 3rem; }
.phone-stage .blob-green { position: absolute; width: 11rem; height: 11rem; border-radius: 50%; background: var(--green); right: -3rem; bottom: 1rem; }
.phone-stage .blob-sun, .phone-stage .blob-green { pointer-events: none; }
@media (max-width: 600px) { .phone-stage .blob-sun { left: -1rem; } .phone-stage .blob-green { right: -1rem; } }
.phone {
  position: relative; width: 19rem; max-width: 100%;
  border: 0.75rem solid var(--navy); border-radius: 3rem;
  background: var(--cream); overflow: hidden;
  box-shadow: 0 30px 60px rgba(21, 35, 59, 0.2);
  font-size: 1.1rem; line-height: 1.4; color: var(--ink);
}
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 0.7em 1.1em 0.2em; font-weight: 700; font-size: 0.7em; }
.ph-island { width: 6.4em; height: 1.6em; border-radius: 999px; background: var(--navy); }
.ph-dots { letter-spacing: 0.05em; font-size: 1.4em; line-height: 1; }
.ph-body { padding: 0.5em 0.85em 0.6em; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.68em; }
.ph-avatar { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ph-title { font-size: 1.45em; font-weight: 800; margin: 0.35em 0 0.6em; line-height: 1.1; }
.ph-card { border-radius: 0.9em; padding: 0.7em 0.8em; margin-bottom: 0.6em; }
.ph-card.focus { background: var(--teal-tint); }
.ph-card.ph-step { background: var(--paper); box-shadow: 0 1px 3px rgba(21, 35, 59, 0.08); }
.ph-label { font-size: 0.55em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.2em; color: var(--teal); }
.ph-card.ph-step .ph-label { color: var(--coral); }
.ph-h { font-size: 0.9em; font-weight: 700; line-height: 1.2; margin: 0 0 0.35em; }
.ph-p { color: var(--muted); margin: 0 0 0.5em; font-size: 0.65em; }
.ph-progress-row { display: flex; justify-content: space-between; font-size: 0.58em; font-weight: 700; color: var(--teal); }
.ph-bar { height: 0.3em; border-radius: 999px; background: #c3ddd7; margin-top: 0.25em; overflow: hidden; }
.ph-bar span { display: block; width: 50%; height: 100%; background: var(--teal); }
.ph-event { display: flex; gap: 0.55em; background: var(--cream); border-radius: 0.6em; padding: 0.45em; margin-bottom: 0.45em; }
.ph-date { background: var(--sun); border-radius: 0.4em; text-align: center; font-size: 0.5em; font-weight: 700; line-height: 1.15; padding: 0.25em 0.4em; text-transform: uppercase; }
.ph-date b { display: block; font-size: 1.7em; }
.ph-event p { margin: 0; font-size: 0.6em; color: var(--muted); }
.ph-event p b { display: block; font-size: 1.13em; color: var(--ink); }
.ph-perk { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: 0.6em; padding: 0.4em 0.55em; margin-bottom: 0.45em; }
.ph-perk small { display: block; font-size: 0.5em; opacity: 0.85; }
.ph-perk b { font-size: 0.68em; }
.ph-perk .ph-perk-btn { background: var(--sun); color: var(--navy); border-radius: 999px; font-size: 0.72em; font-weight: 700; padding: 0.4em 0.9em 0.3em; }
.ph-go { background: var(--teal); color: #fff; border-radius: 999px; text-align: center; font-weight: 700; font-size: 0.75em; padding: 0.4em; }
.ph-help { text-align: center; font-size: 0.55em; font-weight: 700; color: var(--teal); text-decoration: underline; margin: 0.4em 0 0; }
.ph-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 0.5em 0 0.7em; font-size: 0.58em; font-weight: 600; color: var(--faint); }
.ph-tabs .on { color: var(--teal); }

/* Sections */
.band { padding: 5rem 0; }
.band.teal { background: var(--teal); color: var(--paper); }
.band.teal .eyebrow { color: var(--sun); }
.band h2 { max-width: 46rem; }
.cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border-radius: var(--radius); padding: 2rem 2.25rem; box-shadow: 0 1px 2px rgba(21, 35, 59, 0.05); }
.card p { color: var(--muted); margin: 0; }
.band.teal .card { background: var(--teal-card); box-shadow: none; }
.band.teal .card p { color: #eef6f4; }
.band.teal .card .science-title { color: var(--sun); }
.science-title { font-size: clamp(2.2rem, 4.2vw, 2.9rem); color: var(--sun); margin: 0 0 0.75rem; }
.source { display: block; font-size: 0.88rem; margin-top: 1rem; opacity: 0.9; }

.num-chip { width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; display: grid; place-items: center; margin-bottom: 1.25rem; font-weight: 700; font-size: 1.3rem; }
.num-chip.coral { background: var(--coral-tint); color: var(--coral); }
.num-chip.sun { background: var(--sun-tint); color: #7c5300; }
.num-chip.green { background: var(--green-tint); color: #2f6b3d; }

/* Social health */
.health { background: var(--navy); color: var(--paper); border-radius: 28px; padding: 2.5rem 1.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 720px) { .health { padding: 4rem 4.5rem; } }
@media (min-width: 960px) { .health { grid-template-columns: 1.4fr 0.8fr; } }
.health .eyebrow { color: var(--sun); }
.health h2 { color: var(--paper); }
.health p { color: #dbe1ea; }
.health .fine { color: #c4ccd8; font-size: 0.95rem; margin: 0; }
.levels { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.levels li { background: var(--navy-card); color: var(--paper); border-radius: 999px; padding: 0.5rem 1.1rem 0.4rem; font-weight: 700; font-size: 1rem; }
.levels li.on { background: var(--sun); color: var(--navy); }
.areas { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.areas li { background: var(--navy-card); border-radius: 18px; padding: 1.1rem 1.4rem 1.1rem 3.3rem; position: relative; }
.areas li::before { content: ""; position: absolute; left: 1.4rem; top: 1.7rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--dot); }
.areas b { display: block; font-size: 1.2rem; color: #fff; }
.areas span { color: #c4ccd8; font-size: 0.97rem; line-height: 1.45; display: block; }

/* Trial */
.trial { background: var(--sun); border-radius: 28px; padding: 2.5rem 1.5rem; }
@media (min-width: 720px) { .trial { padding: 4.5rem 4.5rem 4rem; } }
.trial > p { max-width: 46rem; color: var(--navy-2); font-size: 1.2rem; }
.steps { display: grid; gap: 1.25rem; margin: 2.5rem 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.75rem 1.6rem; }
.step .num { color: var(--coral); font-weight: 800; font-size: 2rem; display: block; line-height: 1; margin-bottom: 1rem; }
.step p { margin: 0; color: var(--muted); }
.trial .cta-row { margin: 0; }

/* Two columns */
.two { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.two h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.two p { color: var(--muted); }

/* Footer */
.f-footer { background: var(--navy); color: #c9d0db; padding: 3.5rem 0; font-size: 0.95rem; }
.f-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.f-footer .logo { color: #fff; font-size: 1.9rem; }
.f-footer .logo .mark { width: 2.1rem; height: 2.1rem; }
.f-footer h4 { color: #fff; margin: 0 0 0.35rem; font-size: 0.95rem; }
.f-footer a { color: #fff; }
.f-footer .meta { margin: 2rem 0 0; }
.f-footer .links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0; }

/* Partners */
.partners-hero { padding: 4.5rem 0 1rem; }
.partners-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); max-width: 52rem; }
.partners-hero .eyebrow, body.paper .eyebrow { color: var(--teal); }
.partners-hero .lede { max-width: 52rem; font-size: 1.2rem; }
.stats { display: grid; gap: 1.5rem; margin: 3rem 0; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 3px solid var(--teal); padding-top: 1.25rem; }
.stat .big { font-size: 2.9rem; font-weight: 800; color: var(--teal-deep); letter-spacing: -0.02em; line-height: 1.05; display: block; margin-bottom: 0.6rem; }
.stat p { color: var(--muted); margin: 0 0 0.5rem; }
.stat small { color: var(--faint); font-size: 0.85rem; }
.boxes { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .boxes { grid-template-columns: 1fr 1fr; } }
.box { background: var(--cream); border-radius: var(--radius); padding: 2rem 2rem 1.75rem; }
.box h3 { font-size: 1.5rem; font-weight: 800; }
.box p { color: var(--muted); margin: 0 0 0.75rem; }
.box p:last-child { margin-bottom: 0; }
.p-section { padding: 2.5rem 0; }
.p-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin-bottom: 1.5rem; }
.research { display: grid; gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .research { grid-template-columns: 1fr 1fr; } }
.research a { font-weight: 700; font-size: 1.15rem; }
.research p { color: var(--faint); font-size: 0.97rem; margin: 0.2rem 0 0; }
.team { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 860px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; grid-template-columns: 5.25rem 1fr; gap: 1.5rem; align-items: start; }
.initials { width: 5.25rem; height: 5.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.initials.green { background: var(--green); }
.initials.sun { background: var(--sun); }
.initials.coral { background: var(--coral-dot); }
.person h3 { font-size: 1.5rem; margin: 0 0 0.2rem; }
.person .role { color: var(--teal-deep); font-weight: 700; font-size: 1.1rem; line-height: 1.4; margin: 0 0 0.5rem; }
.person p { color: var(--muted); margin: 0; }
.box .org { color: var(--faint); font-size: 0.97rem; }
.partners-cta { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin: 1rem 0 5rem; }
.partners-cta a.link { font-weight: 700; font-size: 1.15rem; }
body.paper { background: var(--paper); }
.f-footer.small p { font-size: 0.88rem; }

/* Long-form pages: privacy, terms, support */
.doc { padding: 3rem 0 4.5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.doc h3 { margin-top: 1.5rem; }
.doc li { margin-bottom: 0.35rem; }
.doc .muted { color: var(--faint); }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--faint); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--paper); border-radius: 18px; padding: 1.1rem 1.35rem; margin: 1.5rem 0; }
.callout p { margin: 0.3rem 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
