:root {
  color-scheme: dark;
  --ink: #161616;
  --paper: #f8f1dd;
  --yellow: #f9da43;
  --muted: #e0d6be;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.shell { width: min(100% - 48px, 1170px); margin-inline: auto; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.masthead { min-height: 88px; border-bottom: 1px solid #575349; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.text-link { text-underline-offset: 5px; font-weight: 700; }
.text-link:hover { color: var(--yellow); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(42px, 7vw, 96px); }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 900; max-width: 8ch; }
h1 em { color: var(--yellow); font-style: normal; }
.pitch p, article p { line-height: 1.55; max-width: 38ch; }
.pitch p { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 25px 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 19px; min-height: 52px; background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; border-radius: 5px; }
.button:hover { background: #ffe881; }
.button:focus-visible { outline-color: var(--paper); }
small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.5; }
figure { margin: 0; }
.mascot { background: radial-gradient(ellipse at 52% 48%, #ffe886 0%, #e7b63b 62%, #a46e27 100%); border-radius: 48% 47% 45% 46%; }
figure img { display: block; width: 100%; height: auto; }
.tools { background: var(--paper); color: var(--ink); padding-block: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
article { border-top: 1px solid #a99d84; padding-top: 18px; }
h3 { font-size: 1.45rem; }
article p { margin: 10px 0 0; }
.footer { min-height: 82px; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 70px; }
  .brand { letter-spacing: .025em; font-size: .88rem; }
  .brand img { width: 36px; height: 36px; }
  .hero, .features { grid-template-columns: 1fr; }
  .mascot { width: min(92%, 390px); margin: 12px auto 0; }
}

.features article img { width: 92px; height: 82px; object-fit: contain; margin-bottom: 12px; }

.demo-section { padding-block: clamp(42px, 6vw, 78px); }
.demo-intro, .dino-preview p { color: var(--muted); line-height: 1.5; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.demo-card { min-width: 0; padding: clamp(16px, 2.2vw, 24px); background: #202222; border: 1px solid #454846; border-radius: 16px; color: var(--paper); }
.demo-card h3 { color: var(--accent, #f8d282); font-size: 1.15rem; letter-spacing: 0; }
.meds { --accent: #cbb3ff; }
.water { --accent: #69e9ed; }
.weight { --accent: #b9ed75; }
.demo-value { margin: 12px 0 15px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; }
.demo-value span { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.dose-list { padding: 0; margin: 0; list-style: none; }
.dose-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding-block: 8px; border-top: 1px solid #444; font-size: .83rem; }
.dose-list small { margin-top: 1px; }
.dose-list strong { color: var(--accent); font-size: .73rem; }
.pill { width: 14px; height: 8px; border-radius: 9px; transform: rotate(-25deg); background: linear-gradient(90deg, #a78bee 50%, #eadcff 50%); }
.water-meter, .colour-journey { height: 12px; border-radius: 20px; background: #333b3a; }
.water-meter span { display: block; width: 80%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5585e7, #65e8de); }
.demo-label { font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; }
.water-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 77px; text-align: center; font-size: .75rem; }
.water-week span { display: grid; grid-template-rows: 1fr auto; gap: 4px; align-items: end; }
.water-week span::before { content: ""; display: block; height: var(--fill); border-radius: 5px 5px 0 0; background: linear-gradient(#70eae7, #4267b0); }
.colour-journey { position: relative; background: linear-gradient(90deg, #bf70f3, #ffe458, #96ee58, #42ddd6); }
.colour-journey::after { content: ""; position: absolute; left: 53%; top: -3px; height: 18px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 3px #282126; }
.demo-scale { display: flex; justify-content: space-between; gap: 8px; font-size: .73rem; margin-top: 5px; }
.weight-trend { height: 51px; border-bottom: 1px solid #515650; background: repeating-linear-gradient(0deg, transparent 0 16px, #383e37 16px 17px); position: relative; }
.weight-trend::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg,#bd78ed,#ede363,#60e395); clip-path: polygon(0 16%, 20% 29%, 39% 24%, 57% 45%, 77% 53%, 100% 72%, 100% 79%, 77% 60%, 57% 52%, 39% 31%, 20% 36%, 0 23%); }
.dino { background: #272231; border-block: 1px solid #585163; }
.dino-preview { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; padding-block: clamp(30px, 5vw, 64px); }
.dino h2 { color: #f8d282; }
.discovery { display: flex; align-items: center; gap: 16px; background: #221d2b; }
.discovery img { width: min(35%, 115px); height: auto; }
.discovery p { margin: 6px 0; }
@media (max-width: 760px) {
  .demo-grid, .dino-preview { grid-template-columns: 1fr; }
  .features article { display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; }
  .features article img { grid-row: span 2; width: 76px; height: 72px; margin: 0; }
}
