/* Hydrega marketing site — shared styles.
   Critical above-the-fold CSS is inlined per-page; this file holds the rest.
   System font stack only (no web fonts -> no render-blocking, no layout shift). */

:root {
  --water-900: #0b3a4a;
  --water-800: #0a5468;
  --water-700: #0e6e8c;
  --water-600: #1389ab;
  --water-500: #22a7c9;
  --water-100: #e3f4f8;
  --leaf-700: #2f7d4f;
  --leaf-600: #3a9c63;
  --leaf-500: #4cb87a;
  --ink: #11242b;
  --ink-soft: #3d5760;
  --paper: #ffffff;
  --mist: #f4f9fb;
  --line: #d9e6ea;
  --shadow: 0 6px 24px rgba(11, 58, 74, 0.10);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--water-700); }

h1, h2, h3 { line-height: 1.15; color: var(--water-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--water-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--water-900); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--water-700); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  padding: 12px 22px; border-radius: 999px; font-size: 1rem; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-primary { background: var(--water-800); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--water-900); transform: translateY(-1px); }
/* In the nav, `.nav-links a` (specificity 0,1,1) would otherwise override `.btn-primary` and tint
   the "Open app" label dark on its dark-teal background — force white. */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--water-900); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--water-500); color: var(--water-700); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--leaf-500); outline-offset: 3px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 520px at 80% -10%, var(--water-100), transparent 60%),
  linear-gradient(180deg, #ffffff 0%, var(--mist) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero .eyebrow { display: inline-block; font-weight: 600; color: var(--leaf-700); background: #e7f6ee; border: 1px solid #cdeede; padding: 6px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.hero-art { position: relative; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-art { order: -1; } }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; list-style: none; margin: 0; padding: 18px 0; color: var(--ink-soft); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; flex: none; }

/* ---- Generic section ---- */
section { padding-block: clamp(52px, 8vw, 88px); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--water-600); margin: 0 0 10px; }

/* ---- Feature grid ---- */
.features { background: var(--mist); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--water-100); margin-bottom: 14px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--water-600); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---- Split explainer ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split ul.checks { list-style: none; margin: 0; padding: 0; }
.split ul.checks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-soft); }
.split ul.checks li strong { color: var(--ink); }
.split ul.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--leaf-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Specs table ---- */
.specs-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs-table caption { text-align: left; color: var(--ink-soft); padding: 0 0 12px; }
.specs-table th, .specs-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table th { width: 38%; color: var(--water-900); font-weight: 600; background: var(--mist); }

/* ---- FAQ ---- */
.faq { background: var(--mist); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--water-900); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--water-600); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---- CTA banner ---- */
.cta-banner { background: linear-gradient(135deg, var(--water-700), var(--leaf-700)); color: #fff; text-align: center; border-radius: 0; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 52ch; margin-inline: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--water-900); }
.cta-banner .btn-primary:hover { background: var(--water-100); }

/* ---- Footer ---- */
.site-footer { background: var(--water-900); color: #cfe6ee; padding-block: 48px 32px; }
.site-footer a { color: #cfe6ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9fc6d4; max-width: 34ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #9fc6d4; font-size: .9rem; }

/* ---- Legal / content pages ---- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal ul { color: var(--ink-soft); }

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