/* Waterway — waterway.health */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #12303F;
  --text: #24333B;
  --text-2: #3C4E58;
  --muted: #5A6C76;
  --teal: #1F6F75;
  --green: #4E7A52;
  --gold: #E0A93E;
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --panel: #EFEBE2;
  --border: #E4DFD5;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 16px; }
.measure { max-width: 760px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand img { display: block; height: 64px; width: auto; }
.nav { display: flex; gap: 40px; align-items: center; }
.nav a { font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #BCD8DC; }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px; font-family: var(--sans); font-size: 17px; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #1B4457; color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.7); color: var(--ink); }
.btn-secondary:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.label.green { color: var(--green); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 120px 0 170px; }
.hero-art { position: absolute; top: 0; right: 0; width: 860px; height: 100%; }
.hero-copy { position: relative; max-width: 620px; }
.hero h1 { font-size: 62px; line-height: 1.06; }
.hero .lead { font-size: 22px; line-height: 1.55; color: var(--text-2); margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.wave-bottom { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; display: block; }

/* Page intro (inner pages) */
.intro { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 80px 0 48px; }
.intro-art { position: absolute; right: 0; top: 24px; width: 520px; height: 260px; }
.intro .wrap { position: relative; }
.intro h1 { font-size: 54px; line-height: 1.08; max-width: 860px; }
.intro .lead { font-size: 20px; line-height: 1.6; color: var(--text-2); max-width: 780px; margin-top: 22px; }

/* Sections */
.section { padding-bottom: 88px; }
.section-title { font-size: 30px; margin-bottom: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 27px; }
.card p { font-size: 16px; color: var(--text-2); }
.card .text-link { margin-top: 4px; font-size: 16px; }
.card-lift { box-shadow: 0 8px 28px rgba(18,48,63,0.06); }
.card-icon { width: 64px; height: 36px; }

.audience-card { position: relative; overflow: hidden; border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.audience-card h3 { font-size: 25px; position: relative; }
.audience-card p, .audience-card a { position: relative; }
.audience-card p { color: var(--text-2); }
.audience-card .tags { font-size: 15px; color: var(--muted); }
.audience-card .text-link { margin-top: 6px; }
.audience-card.teal { background: linear-gradient(135deg, #E7F1F2 0%, #fff 70%); border: 1px solid #DCE7E7; }
.audience-card.green { background: linear-gradient(135deg, #EAF2E8 0%, #fff 70%); border: 1px solid #DDE7DA; }
.audience-art { position: absolute; right: -10px; bottom: -10px; width: 240px; height: 160px; opacity: 0.55; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.panel h2 { font-size: 27px; }
.panel p { color: var(--text-2); }

/* Story band (home) */
.band { position: relative; margin-bottom: 88px; padding: 130px 0; background: linear-gradient(180deg, #E9F2F2 0%, #EEF4F0 100%); }
.band-wave { position: absolute; left: 0; width: 100%; height: 90px; display: block; }
.band-wave.top { top: 0; }
.band-wave.bottom { bottom: 0; }
.band .wrap { position: relative; }
.band h2 { font-size: 34px; }
.band p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.watershed { display: block; width: 100%; height: auto; margin-top: 26px; }

.closing { border-top: 1px solid var(--border); padding-top: 48px; }
.closing h2 { font-size: 30px; }
.closing p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.link-row { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 6px; }

/* Products */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-row .filter-name { font-size: 14px; color: var(--muted); min-width: 76px; }
.chip { min-height: 44px; padding: 0 20px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: transparent; border: 1px solid #C9C3B6; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.view-intro { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 20px; color: var(--text-2); }
.view-intro strong { color: var(--ink); }
.product-list { display: flex; flex-direction: column; gap: 20px; }
.product { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; display: flex; gap: 40px; align-items: flex-start; scroll-margin-top: 24px; }
.product[hidden] { display: none; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.product-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.product h2 { font-size: 30px; }
.product p { color: var(--text-2); max-width: 720px; }
.product .meta { font-size: 15px; color: var(--muted); }
.badge { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.badge.available { color: #33612F; background: #E6EFE4; }
.badge.pilot { color: #6B5220; background: #F2E8D5; }
.badge.dev { color: #3C4E58; background: #E7E4DC; }
.notice { margin-top: 20px; font-size: 15px; color: var(--muted); }
.empty { background: #fff; border: 1px dashed #C9C3B6; border-radius: 16px; padding: 32px; color: var(--text-2); }

/* About */
.story { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 72px 24px; }
.story-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.story h2 { font-size: 42px; line-height: 1.1; }
.story p { font-family: var(--serif); font-size: 20px; line-height: 1.75; color: var(--text); }
.story .pull { font-size: 36px; line-height: 1.25; font-weight: 600; color: var(--teal); border-left: 3px solid var(--gold); padding-left: 26px; margin: 8px 0; }
.story .names { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.story .names p { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text-2); }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; padding-top: 64px; }
.about-grid .body { display: flex; flex-direction: column; gap: 40px; }
.about-grid .body p { font-size: 18px; line-height: 1.7; }
.about-grid h2 { font-size: 30px; margin-bottom: 14px; }
.about-grid .body .stack > * + * { margin-top: 14px; }
.aside { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.aside .card p { font-size: 17px; color: var(--text); }
.bio { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #4A5A63; }
.bio strong { font-size: 16px; color: var(--ink); }

/* Trust */
.trust-block h2 { font-size: 32px; margin-bottom: 18px; }
.trust-block p, .trust-block li { font-size: 18px; line-height: 1.7; }
.trust-block ul { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.trust-card h2 { font-size: 24px; }
.trust-card p { font-size: 17px; line-height: 1.65; color: var(--text); }
.trust-card .meta { font-size: 15px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.two-col h2 { font-size: 28px; margin-bottom: 14px; }
.two-col p { font-size: 18px; line-height: 1.7; }
.report { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 36px 40px; }
.report h2 { font-size: 26px; margin-bottom: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; font-family: var(--sans); font-size: 16px; color: var(--ink); background: #FCFBF8; border: 1px solid #C9C3B6; border-radius: 6px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,111,117,0.18); }
.field .error { font-size: 14px; color: #9B2C1F; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #9B2C1F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; line-height: 1.6; color: #4A5A63; }
.form-status { border-radius: 10px; padding: 14px 18px; font-size: 16px; }
.form-status.ok { background: #E6EFE4; color: #24502A; }
.form-status.err { background: #F6E3DF; color: #7A2419; }
.form-status[hidden] { display: none; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-side h2 { font-size: 21px; margin-bottom: 10px; }
.contact-side p { font-size: 16px; color: var(--text-2); }
.direct { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.direct a { font-size: 16px; color: var(--text); text-decoration: none; margin-top: 10px; }
.direct a:hover { color: var(--teal); text-decoration: underline; }
.direct span.what { font-size: 14px; color: var(--muted); }

/* 404 */
.notfound { padding: 120px 0 140px; }
.notfound h1 { font-size: 54px; }
.notfound p { font-size: 20px; color: var(--text-2); margin: 20px 0 32px; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, #17394B 0%, #0F2A38 100%); color: #E3EAEC; padding-top: 130px; }
.footer-wave { position: absolute; top: 0; left: 0; width: 100%; height: 100px; display: block; }
.footer-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 260px; display: block; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { width: 56px; height: 56px; display: block; }
.footer-logo span { font-family: var(--sans); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: #B7CBD0; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h2 { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #9FC0C6; margin-bottom: 2px; }
.footer-col a { font-size: 15px; color: #E3EAEC; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { position: relative; margin-top: 110px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #B7CBD0; }
.footer-bottom nav { display: flex; gap: 26px; }
.footer-bottom a { color: #B7CBD0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #F0C872; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero-art { width: 70%; opacity: 0.8; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(18,48,63,0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--border); }
  .brand img { height: 44px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }

  .hero { padding: 210px 0 120px; }
  .hero-art { width: 100%; height: 440px; opacity: 0.6; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 18px; margin-top: 20px; }
  .hero .btn-row { flex-direction: column; margin-top: 28px; }
  .hero .btn { width: 100%; white-space: normal; text-align: center; }
  .wave-bottom { height: 60px; }

  .intro { padding: 56px 0 36px; }
  .intro-art { width: 320px; height: 160px; opacity: 0.6; }
  .intro h1 { font-size: 38px; }
  .intro .lead { font-size: 18px; }

  .section-title { font-size: 26px; }
  .audience-card { padding: 26px; }
  .card { padding: 24px; }
  .grid-2, .grid-3, .two-col, .about-grid, .contact-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .section { padding-bottom: 56px; }
  .panel { flex-direction: column; align-items: flex-start; padding: 28px; }
  .band { padding: 96px 0; margin-bottom: 56px; }
  .band-wave { height: 50px; }
  .watershed { display: none; }
  .product { flex-direction: column; gap: 20px; padding: 28px; }
  .story { padding: 44px 22px; }
  .story h2 { font-size: 32px; }
  .story p { font-size: 18px; }
  .story .pull { font-size: 28px; }
  .about-grid { gap: 40px; padding-top: 48px; }
  .form-card { padding: 26px; }
  .report { padding: 28px; }

  .site-footer { padding-top: 90px; }
  .footer-wave { height: 60px; }
  .footer-hills { height: 160px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
