/* Water System Logbook website. Brand tokens match the app and the App Store campaign:
   deep reservoir teal, luminous aqua, hi-vis amber used only where it means something. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/Archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/Archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --surface-2: #EAF1EE;
  --border: #D5DEDA;
  --text: #172421;
  --text-2: #4F605B;
  --primary: #0B4F5C;
  --primary-ink: #FFFFFF;
  --accent: #2C817A;
  --amber: #B8650F;
  --reservoir-1: #021A20;
  --reservoir-2: #07404A;
  --aqua: #8FF5E4;
  --radius: 18px;
  --max: 72rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1412;
    --surface: #131E1B;
    --surface-2: #182622;
    --border: #2A3A35;
    --text: #EEF4F1;
    --text-2: #B3C2BD;
    --primary: #72BEB3;
    --primary-ink: #04201C;
    --accent: #72BEB3;
    --amber: #F0A33C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.005em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 0.5rem; }

h1, h2, h3 { font-family: Archivo, Inter, sans-serif; font-stretch: 92%; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-weight: 850; font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-weight: 750; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.04em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 34rem) { .nav .hide-sm { display: none; } .brand span { font-size: 0.95rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #EEF7F4;
  background: radial-gradient(60rem 30rem at 85% 110%, rgba(31,163,152,0.45), transparent 60%),
              radial-gradient(40rem 22rem at 10% 0%, rgba(14,106,115,0.4), transparent 60%),
              linear-gradient(180deg, var(--reservoir-1), var(--reservoir-2)); }
.hero .wrap { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: 2rem; }
.hero .kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; color: #CFEFE8; margin-bottom: 1.25rem; }
.hero .kicker img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.hero h1 { max-width: 14ch; }
.hero h1 .glow { color: var(--aqua); text-shadow: 0 0 28px rgba(143,245,228,0.35); }
.hero .lead { color: #BFD9D3; max-width: 38rem; margin-top: 1.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 0; }
.btn-primary { background: var(--aqua); color: #03262D; }
.btn-ghost { color: #E6F6F2; box-shadow: inset 0 0 0 2px rgba(143,245,228,0.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--aqua); }
.soon { font-size: 0.9rem; color: #A9C8C1; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: 0.12em; background: #F0A33C; border-radius: 0.1em; transform: rotate(-3deg); }

/* The campaign strip: the ten App Store screenshots side by side. */
.strip { margin-top: 3rem; padding: 0 0 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.strip ol { list-style: none; display: flex; gap: 0.9rem; margin: 0; padding: 0 1rem; width: max-content; }
.strip li { scroll-snap-align: center; }
.strip img { width: clamp(11rem, 22vw, 15rem); aspect-ratio: 1290 / 2796; height: auto; border-radius: 1.2rem; box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
@media (min-width: 80rem) { .strip ol { margin: 0 auto; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { margin-top: 0.9rem; }
.eyebrow { display: block; color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.45rem; }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .ico { width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 0.9rem; }
.card .ico svg { width: 1.35rem; height: 1.35rem; }
.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.split figure { margin: 0; display: flex; gap: 1rem; justify-content: center; }
.split figure img { width: min(46%, 15rem); border-radius: 1.2rem; box-shadow: 0 16px 36px rgba(4,34,40,0.25); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--text-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/80% no-repeat; }
.checks strong { color: var(--text); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-family: Archivo, Inter, sans-serif; font-weight: 850; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1.1; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan p { color: var(--text-2); }
.fineprint { color: var(--text-2); font-size: 0.9rem; margin-top: 1.25rem; max-width: 50rem; }

/* ---------- Document pages (support, privacy, terms) ---------- */
.doc-hero { background: linear-gradient(180deg, var(--reservoir-1), var(--reservoir-2)); color: #EEF7F4; }
.doc-hero .wrap { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.doc-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.doc-hero p { color: #BFD9D3; margin-top: 0.8rem; max-width: 40rem; }
.doc { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.4rem 0 0.8rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.6rem 0 0.4rem; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0.7rem 0 0; }
.doc li + li { margin-top: 0.4rem; }
.doc strong { color: var(--text); }
.meta { color: #A9C8C1; font-size: 0.95rem; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.35rem; margin-top: 1rem; }
.box p { color: var(--text-2); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.contact .btn-primary { background: var(--primary); color: var(--primary-ink); }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 0.6rem; }
details summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 650; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 500; }
details[open] summary::after { content: '\2212'; }
details > div { padding: 0 1.2rem 1.1rem; }
details > div p + p, details > div ol, details > div ul { margin-top: 0.6rem; }
.path { font-weight: 650; color: var(--text); white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.toc a { font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(143,245,228,0.12); color: #D9F5EF; }
.toc a:hover { background: rgba(143,245,228,0.22); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.25rem 0 3rem; color: var(--text-2); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
