:root {
  --chalk: #F3F5F2;
  --ink: #0D2F35;
  --water: #1B8AA0;
  --water-soft: #D6ECEF;
  --field: #6FA34F;
  --ochre: #C99A3B;
  --muted: #4C666B;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", system-ui, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Archivo", sans-serif; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; max-width: 18ch; }
p { margin: 0; max-width: 62ch; }

/* nav */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--chalk) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid #0d2f3514; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 800 1.35rem "Archivo", sans-serif; font-stretch: 125%; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--water); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--water); }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); }
.btn.solid { background: var(--ink); color: var(--chalk); }
.btn.solid:hover { background: var(--water); border-color: var(--water); }
.btn.line:hover { background: var(--ink); color: var(--chalk); }
nav .btn { padding: 9px 18px; }

/* hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 900; font-stretch: 62%; letter-spacing: -0.01em; line-height: 0.92; text-transform: uppercase; }
.hero h1 .l2 { display: block; font-stretch: 125%; font-weight: 300; text-transform: none; font-size: 0.62em; letter-spacing: -0.03em; margin-top: 0.15em; color: var(--water); }
.hero p { margin: 28px 0 36px; font-size: 1.2rem; color: var(--muted); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* the meter */
.meter { background: var(--ink); color: var(--chalk); border-radius: 36px; padding: 32px; position: relative; overflow: hidden; }
.meter .face { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: #9fc3c8; }
.odo { display: flex; gap: 4px; margin: 18px 0 6px; font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 "Archivo", sans-serif; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.odo span { background: #ffffff10; border-radius: 8px; padding: 10px 8px; min-width: 1.05ch; text-align: center; }
.odo span.dec { color: var(--ochre); }
.odo b { align-self: flex-end; color: var(--ochre); padding: 0 2px; }
.unit { color: #9fc3c8; font-size: 0.9rem; }
.tank { margin-top: 28px; height: 150px; border-radius: 20px; background: #ffffff0d; position: relative; overflow: hidden; }
.tank .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; background: var(--water); transition: height 0.8s ease; }
.tank .fill::before { content: ""; position: absolute; top: -10px; left: 0; width: 200%; height: 20px;
  background: radial-gradient(ellipse 20px 10px at 20px 20px, var(--water) 98%, transparent 100%) repeat-x; background-size: 40px 20px; animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(-40px); } }
.tank .label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 22px; z-index: 1; }
.tank .label b { font: 800 2rem "Archivo", sans-serif; font-stretch: 110%; }
.tank .label small { color: #e3f2f4; }
.meter .row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.valve { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.valve i { width: 10px; height: 10px; border-radius: 50%; background: var(--field); box-shadow: 0 0 0 4px #6fa34f33; }
.valve.closed i { background: var(--ochre); box-shadow: 0 0 0 4px #c99a3b33; }
.meter button { font: 600 0.9rem "Public Sans", sans-serif; background: var(--chalk); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.meter button:hover { background: var(--water-soft); }

section { padding: 104px 0; }

/* loop */
.loop { background: var(--water-soft); }
.loop h2 { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { padding: 0 32px 0 0; border-left: 2px solid var(--ink); padding-left: 24px; margin-right: 24px; }
.steps h3 { font-size: 2rem; font-weight: 800; font-stretch: 112%; margin-bottom: 12px; }
.steps h3::before { counter-increment: s; content: counter(s); display: block; font-size: 0.95rem; font-weight: 600; color: var(--water); margin-bottom: 18px; font-family: "Public Sans", sans-serif; }
.steps p { color: var(--muted); }

/* prepaid */
.prepaid .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.prepaid .lead { margin-top: 24px; font-size: 1.15rem; color: var(--muted); }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid #0d2f3522; }
.flow li:first-child { padding-top: 0; }
.flow .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 1.3rem "Archivo", sans-serif; background: var(--ink); color: var(--chalk); }
.flow li:last-child .n { background: var(--ochre); }
.flow h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 105%; margin: 4px 0 6px; }
.flow p { color: var(--muted); }

/* who */
.who { background: var(--ink); color: var(--chalk); }
.who h2 { margin-bottom: 48px; }
.who .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.who article { border-radius: 28px; padding: 32px; background: #ffffff0b; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.who article:first-child { background: var(--water); }
.who article h3 { font-size: 1.7rem; font-weight: 800; font-stretch: 110%; margin-top: auto; }
.who article p { color: #d4e5e7; }
.who article:first-child p { color: #effafb; }

/* quote */
.quote { text-align: left; }
.quote blockquote { margin: 0; font: 300 clamp(1.8rem, 4vw, 3rem)/1.15 "Archivo", sans-serif; font-stretch: 90%; max-width: 24ch; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-weight: 600; color: var(--muted); }
.quote .mission { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 80px; padding-top: 40px; border-top: 2px solid var(--ink); }
.quote .mission h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 110%; margin-bottom: 10px; }
.quote .mission p { color: var(--muted); }

/* contact */
.contact { background: var(--water-soft); }
.contact .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.contact .lead { margin: 20px 0 32px; color: var(--muted); font-size: 1.15rem; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 18px 28px; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; color: var(--muted); }
.contact dd a { color: var(--ink); }

footer { padding: 36px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.95rem; color: var(--muted); }
footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 880px) {
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .hero .wrap, .prepaid .wrap, .contact .wrap, .quote .mission { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .who .grid { grid-template-columns: 1fr; }
  .who article { min-height: 0; }
  section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .meter { padding: 22px; border-radius: 26px; }
  .contact dl { grid-template-columns: 1fr; gap: 4px; }
  .contact dd { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tank .fill::before { animation: none; }
  .tank .fill { transition: none; }
}

/* AI prediction (home section + prediction page) */
.ai { background: var(--water-soft); }
.ai .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai .lead, .page-hero .lead { margin: 24px 0 32px; font-size: 1.15rem; color: var(--muted); }
.ai-chart { margin: 0; background: var(--chalk); border-radius: 28px; padding: 28px; }
.ai-chart svg { display: block; width: 100%; height: auto; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.k { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--ink); margin-left: 8px; }
.k:first-child { margin-left: 0; }
.k.pred { border-top: 3px dashed var(--water); }
.k.band { height: 12px; border: 0; border-radius: 3px; background: var(--water-soft); }
.ai-chart.dark { background: #ffffff0b; }

.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; max-width: 14ch; }
.page-hero .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 20px; }
.page-hero .live i { width: 10px; height: 10px; border-radius: 50%; background: var(--field); box-shadow: 0 0 0 4px #6fa34f33; }
.forecast { padding: 0 0 104px; }
.forecast .board { background: var(--ink); color: var(--chalk); border-radius: 36px; padding: 32px; }
.forecast .board-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.forecast .board-head b { font: 800 1.3rem "Archivo", sans-serif; font-stretch: 110%; }
.forecast .board-head span { color: #9fc3c8; font-size: 0.9rem; }
.forecast svg { display: block; width: 100%; height: auto; margin-top: 20px; }
.forecast svg text { fill: #9fc3c8; font: 12px "Public Sans", sans-serif; }
.forecast figcaption { color: #9fc3c8; }
.forecast .k { border-top-color: var(--chalk); }
.forecast .k.pred { border-top-color: #5fd0e0; }
.forecast .k.band { background: #1b8aa066; }
.forecast .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff22; }
.forecast .stats b { display: block; font: 800 2rem "Archivo", sans-serif; font-stretch: 90%; }
.forecast .stats span { color: #9fc3c8; font-size: 0.95rem; }

.uses .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.uses h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 110%; margin-bottom: 10px; }
.uses p { color: var(--muted); }

@media (max-width: 880px) {
  .ai .wrap { grid-template-columns: 1fr; gap: 40px; }
  .uses .grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding-top: 40px; }
  .forecast { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .ai-chart, .forecast .board { padding: 20px; border-radius: 24px; }
  .forecast .stats { grid-template-columns: 1fr; }
}

/* original logo: black on white PNG with wide padding; crop to the wordmark, drop the white */
.logo img { display: block; width: 183px; height: 26px; object-fit: cover; mix-blend-mode: multiply; }
