/* ==========================================================================
   Villagepump — main stylesheet
   Mobile-first · CSS custom properties · no framework
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand (from logo blue) */
  --c-primary-900: #062f4d;
  --c-primary-800: #0a3f66;
  --c-primary-700: #0b5e96;
  --c-primary-600: #0f74b8;
  --c-primary-500: #1a8fd6;
  --c-primary-100: #e3f1fb;
  --c-primary-50:  #f2f8fd;
  --c-accent:      #12a17f;   /* "safe / clean" green-teal */
  --c-accent-100:  #dcf5ee;
  --c-warn:        #c0392b;

  --c-text:        #10212e;
  --c-text-soft:   #4a5d6b;
  --c-border:      #d8e3ec;
  --c-bg:          #ffffff;
  --c-bg-tint:     #f4f8fb;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --fs-300: clamp(.84rem, .82rem + .1vw, .9rem);
  --fs-400: clamp(1rem, .97rem + .15vw, 1.075rem);
  --fs-500: clamp(1.13rem, 1.06rem + .35vw, 1.3rem);
  --fs-600: clamp(1.3rem, 1.18rem + .6vw, 1.6rem);
  --fs-700: clamp(1.65rem, 1.4rem + 1.2vw, 2.4rem);
  --fs-800: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem;  --space-7: 3rem;   --space-8: 4.5rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(6 47 77 / .06), 0 1px 3px rgb(6 47 77 / .08);
  --shadow:    0 6px 24px -6px rgb(6 47 77 / .16);
  --shadow-lg: 0 24px 48px -16px rgb(6 47 77 / .28);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-400); line-height: 1.6;
  color: var(--c-text); background: var(--c-bg); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -.015em; color: var(--c-primary-900); }
h1 { font-size: var(--fs-800); font-weight: 750; }
h2 { font-size: var(--fs-700); font-weight: 700; }
h3 { font-size: var(--fs-500); font-weight: 650; }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--c-primary-700); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-600); }
ul, ol { padding: 0; margin: 0; list-style: none; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--c-primary-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-primary-100); }

[hidden] { display: none !important; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--c-primary-900); color: #fff; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-3); color: #fff; }
main:focus { outline: none; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: calc(var(--section-y) / 2); }
.section-tint { background: var(--c-bg-tint); }
.section-dark { background: linear-gradient(160deg, var(--c-primary-900), var(--c-primary-800) 60%, #0c4f7d); color: #d6e6f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.lead { font-size: var(--fs-500); color: var(--c-text-soft); line-height: 1.55; }
.section-dark .lead { color: #c4d9ea; }
.muted { color: var(--c-text-soft); }
.rounded { border-radius: var(--radius-lg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary-600); margin-bottom: var(--space-3);
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow-light { color: #8fd0ff; }

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split-reverse .split-media { order: 2; }
}
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-reverse .split-media img { aspect-ratio: 4 / 3.4; }

.cards-2, .cards-3 { display: grid; gap: var(--space-5); }
@media (min-width: 720px)  { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-primary-700); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: .65rem 1.25rem; border-radius: var(--radius-pill);
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn small { font-weight: 500; opacity: .8; }
.btn-primary { --btn-bg: var(--c-primary-700); --btn-fg: #fff; --btn-bd: var(--c-primary-700); box-shadow: 0 6px 16px -6px rgb(11 94 150 / .55); }
.btn-primary:hover { --btn-bg: var(--c-primary-800); --btn-bd: var(--c-primary-800); }
.btn-outline { --btn-fg: var(--c-primary-700); --btn-bd: var(--c-primary-700); }
.btn-outline:hover { --btn-bg: var(--c-primary-50); }
.btn-ghost-light { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .7); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { --btn-bg: rgb(255 255 255 / .14); --btn-bd: #fff; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.04rem; }
.btn-sm { min-height: 36px; padding: .4rem .95rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { flex: none; }
.brand-logo { height: 46px; width: auto; }
.header-tools { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

.lang-switch { display: flex; background: var(--c-bg-tint); border: 1px solid var(--c-border); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch a {
  min-width: 38px; min-height: 32px; display: grid; place-items: center; padding-inline: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--c-text-soft); border-radius: var(--radius-pill);
}
.lang-switch a[aria-current="true"] { background: var(--c-primary-700); color: #fff; }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--c-border); background: #fff; color: var(--c-primary-900); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav (off-canvas) */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: var(--space-5) clamp(1rem, 4vw, 2rem);
  display: flex; flex-direction: column; gap: var(--space-5); overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.main-nav.is-open { transform: none; visibility: visible; }
.nav-list a {
  display: block; padding: var(--space-4) 0; font-size: 1.15rem; font-weight: 600; text-decoration: none;
  color: var(--c-primary-900); border-bottom: 1px solid var(--c-border);
}
.nav-list a[aria-current="page"] { color: var(--c-primary-600); }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; transform: none; visibility: visible; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: var(--space-5); margin-left: auto;
  }
  .header-tools { margin-left: 0; order: 3; }
  .nav-list { display: flex; gap: var(--space-1); }
  .nav-list a { border: 0; padding: .5rem .75rem; font-size: .95rem; border-radius: var(--radius-pill); color: var(--c-text); }
  .nav-list a:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
  .nav-list a[aria-current="page"] { background: var(--c-primary-50); }
  .nav-cta { min-height: 40px; padding: .5rem 1.1rem; font-size: .92rem; }
}

/* ---------- 6. Home: hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 50%; }
@media (min-width: 900px) { .hero-media img { object-position: 30% 50%; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgb(4 28 46 / .92) 0%, rgb(4 28 46 / .55) 45%, rgb(4 28 46 / .15) 75%),
    linear-gradient(90deg, rgb(4 28 46 / .55), transparent 70%);
}
.hero-content { padding-block: var(--space-8) clamp(3rem, 8vw, 6rem); max-width: var(--container); }
.hero h1 { color: #fff; max-width: 17ch; text-wrap: balance; }
.hero-lead { font-size: var(--fs-500); max-width: 58ch; color: #e1edf6; }

/* Trust bar */
.trust { background: var(--c-primary-900); color: #cfe3f2; border-top: 1px solid rgb(255 255 255 / .08); }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3) var(--space-5); padding-block: var(--space-5); }
.trust-list li { display: flex; align-items: center; gap: var(--space-3); font-size: .93rem; font-weight: 550; }
.trust-list .icon { color: #6fd3b3; width: 1.5em; height: 1.5em; }

/* Stats */
.stats { padding-block: calc(var(--section-y) * .7); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--space-5); border-left: 3px solid var(--c-primary-500); }
.stat-value { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; color: var(--c-primary-700); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--c-text-soft); font-size: .95rem; margin-top: var(--space-2); }

/* Problem list */
.x-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.x-list li { position: relative; padding-left: 2rem; font-weight: 550; }
.x-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #fde8e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Product teaser */
.product-teaser { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .product-teaser { grid-template-columns: 5fr 7fr; } }
.product-teaser-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #dcdcdc; max-width: 480px; margin-inline: auto; }
.product-teaser-media img { width: 100%; height: auto; }

.feature-grid { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: var(--space-4); }
.feature h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.feature p { color: var(--c-text-soft); font-size: .95rem; margin: 0; }
.feature-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--c-primary-100); color: var(--c-primary-700);
}
.feature-icon .icon { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: var(--space-6) var(--space-5) var(--space-5); background: var(--c-bg-tint); border-radius: var(--radius-lg); }
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -22px; width: 20px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-primary-500) 0 4px, transparent 4px 8px);
  }
}
.step p { color: var(--c-text-soft); margin: 0; font-size: .96rem; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: var(--space-4);
  background: var(--c-primary-700); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--c-primary-100);
}
/* Animated process diagram (above the steps) */
.flow { margin: 0 0 var(--space-6); }
.flow-stage { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: linear-gradient(180deg, #f5faff 0%, #fff 70%); overflow: hidden; box-shadow: var(--shadow-sm); }
.flow-svg { width: 100%; height: auto; }
.flow-label { font: 600 15px var(--font-sans); fill: #3d5263; }
.flow-label-sm { font-size: 13px; fill: #5b6f7f; }
.flow-label-safe { fill: #0f8a6c; font-weight: 700; }
.flow-label-warn { fill: #c0392b; font-weight: 700; letter-spacing: .04em; }
.flow-unit { font: 800 13px var(--font-sans); letter-spacing: .22em; fill: #a69c83; }
@media (max-width: 640px) { .flow-label, .flow-unit { display: none; } }

.flow-dash { stroke-dasharray: 2 14; animation: fl-dash .9s linear infinite; }
.flow-fiber-flow { animation: fl-dash 1.1s linear infinite; }
.flow-stream { animation: fl-dash .5s linear infinite; }
.flow-dash-rev path, .flow-dash-drain { stroke-dasharray: 6 10; animation: fl-dash .7s linear infinite; }
@keyframes fl-dash { to { stroke-dashoffset: -16; } }
.flow-ripple { animation: fl-ripple 4s ease-in-out infinite alternate; }
@keyframes fl-ripple { to { transform: translateX(14px); } }
.flow-glass-water { transform-box: fill-box; transform-origin: 50% 100%; animation: fl-fill 6s ease-in-out infinite; }
@keyframes fl-fill { 0% { transform: scaleY(.12); } 80%, 92% { transform: scaleY(1); } 100% { transform: scaleY(.12); } }

/* Zones, badges and phases */
.flow-hl { fill: rgb(26 143 214 / .05); stroke: var(--c-primary-500); stroke-width: 2.5; stroke-dasharray: 9 7; opacity: 0; transition: opacity .5s; animation: fl-march 1.4s linear infinite; }
@keyframes fl-march { to { stroke-dashoffset: -32; } }
.flow-badge circle { fill: #fff; stroke: #c9d6e0; stroke-width: 2; transition: fill .3s, stroke .3s; }
.flow-badge text { font: 800 17px var(--font-sans); fill: #7b8b98; transition: fill .3s; }
.flow-backwash { opacity: 0; transition: opacity .5s; }
.flow-forward, .flow-dash, .flow-fiber-flow { transition: opacity .5s; }

.flow[data-phase="1"] .flow-hl-1, .flow[data-phase="2"] .flow-hl-2,
.flow[data-phase="3"] .flow-hl-3, .flow[data-phase="4"] .flow-hl-4 { opacity: 1; }
.flow[data-phase="1"] .flow-badge-1 circle, .flow[data-phase="2"] .flow-badge-2 circle,
.flow[data-phase="3"] .flow-badge-3 circle, .flow[data-phase="4"] .flow-badge-4 circle { fill: var(--c-primary-700); stroke: var(--c-primary-100); animation: fl-pulse 1.6s ease-in-out infinite; }
.flow[data-phase="1"] .flow-badge-1 text, .flow[data-phase="2"] .flow-badge-2 text,
.flow[data-phase="3"] .flow-badge-3 text, .flow[data-phase="4"] .flow-badge-4 text { fill: #fff; }
@keyframes fl-pulse { 0%, 100% { stroke-width: 4; } 50% { stroke-width: 12; } }

/* Step 4 — backwash: forward flow stops, reverse flow flushes the trapped dirt to the drain */
.flow[data-phase="4"] .flow-forward, .flow[data-phase="4"] .flow-dash, .flow[data-phase="4"] .flow-fiber-flow { opacity: .1; }
.flow[data-phase="4"] .flow-backwash { opacity: 1; }
.flow[data-phase="4"] .flow-trap { animation: fl-flush 3.2s .5s ease-in forwards; }
@keyframes fl-flush { 60% { opacity: 1; } 100% { transform: translateY(110px); opacity: 0; } }

/* Controls */
.flow-bar { display: grid; gap: var(--space-4); padding-top: var(--space-4); }
@media (min-width: 900px) { .flow-bar { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); } }
.flow-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: .85rem; color: var(--c-text-soft); }
@media (min-width: 900px) { .flow-legend { display: grid; grid-template-columns: auto auto; } }
.flow-legend li { display: flex; align-items: center; gap: var(--space-2); }
.flow-legend svg { width: 18px; height: 18px; }
.flow-caption { margin: 0; min-height: 3.2em; padding: var(--space-3) var(--space-4); background: var(--c-primary-50); border-left: 4px solid var(--c-primary-600); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.flow-caption strong { color: var(--c-primary-800); }
.flow-controls { display: flex; gap: var(--space-2); align-items: center; }
.flow-controls button {
  min-width: 44px; min-height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-border); background: #fff;
  font: 700 .95rem var(--font-sans); color: var(--c-primary-800); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.flow-controls button:hover { border-color: var(--c-primary-500); }
.flow-step-btn[aria-current="step"] { background: var(--c-primary-700); border-color: var(--c-primary-700); color: #fff; }
.flow-play { display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: 1rem; }
.flow-play-icon { width: 12px; height: 12px; background: linear-gradient(90deg, currentColor 35%, transparent 35% 65%, currentColor 65%); }
.flow.is-paused .flow-play-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.flow.is-paused *, .flow.is-paused *::before { animation-play-state: paused !important; }

/* Step cards sync with the diagram */
.step { transition: box-shadow .35s, transform .35s var(--ease), background-color .35s; }
.step.is-active { background: #fff; box-shadow: 0 0 0 2px var(--c-primary-500), var(--shadow); transform: translateY(-4px); }

.note { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-6); padding: var(--space-4) var(--space-5); background: var(--c-accent-100); color: #0b5a47; border-radius: var(--radius); font-weight: 550; }
.note .icon { margin-top: .15em; }

/* Power cards */
.power-card {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-5); text-decoration: none; color: #c9dcea;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.power-card:hover { transform: translateY(-4px); background: rgb(255 255 255 / .1); border-color: rgb(143 208 255 / .5); color: #c9dcea; }
.power-card p { margin: 0; flex: 1; }
.power-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgb(143 208 255 / .15); color: #8fd0ff; margin-bottom: var(--space-3); }
.power-icon .icon { width: 28px; height: 28px; }
.power-spec { margin-top: var(--space-3); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.power-link { display: inline-flex; align-items: center; gap: var(--space-2); color: #8fd0ff; font-weight: 650; margin-top: var(--space-2); }

/* Applications */
.apps-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { padding: var(--space-6) var(--space-5); border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .25s, transform .25s var(--ease); }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card .feature-icon { margin-bottom: var(--space-4); }
.app-card p { color: var(--c-text-soft); margin: 0; font-size: .96rem; }

/* Projects */
.projects-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }
.project-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-body { padding: var(--space-5); }
.project-body h3 { font-size: 1.08rem; margin-block: var(--space-3) var(--space-2); }
.project-body p { font-size: .93rem; color: var(--c-text-soft); margin: 0; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary-700); background: var(--c-primary-100); padding: .25rem .65rem; border-radius: var(--radius-pill); }
.tag .icon { width: 1em; height: 1em; }
.tag-accent { color: #0b5a47; background: var(--c-accent-100); }
.countries { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; color: var(--c-text-soft); font-size: .93rem; }
.countries ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.countries li { background: #fff; border: 1px solid var(--c-border); padding: .2rem .7rem; border-radius: var(--radius-pill); }

/* Testimonial */
.testimonial { margin: 0 0 var(--space-7); padding: var(--space-6); background: var(--c-primary-50); border-radius: var(--radius-lg); position: relative; }
.quote-icon { width: 40px; height: 40px; color: var(--c-primary-500); margin-bottom: var(--space-3); }
.testimonial blockquote { margin: 0; font-size: var(--fs-500); color: var(--c-primary-900); font-weight: 500; line-height: 1.5; }
.testimonial figcaption { display: grid; margin-top: var(--space-4); font-size: .93rem; color: var(--c-text-soft); }
.testimonial figcaption strong { color: var(--c-text); }

/* ---------- 7. Quote form ---------- */
.quote { background: linear-gradient(180deg, var(--c-bg-tint), #fff); }
.quote-grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 5fr 7fr; align-items: start; } .quote-intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.quote-contact { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.quote-contact li { display: flex; gap: var(--space-3); align-items: center; font-weight: 600; }
.quote-contact .icon { color: var(--c-primary-600); }
.quote-form { padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.quote-form h3 { font-size: var(--fs-600); margin-bottom: var(--space-1); }
.form-grid { display: grid; gap: var(--space-4); margin-block: var(--space-5); }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: var(--space-1); }
.req { color: var(--c-warn); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem; font: inherit; font-size: 1rem; color: var(--c-text);
  background: #fff; border: 1.5px solid var(--c-border); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary-500); box-shadow: 0 0 0 4px rgb(26 143 214 / .18); }
.field [aria-invalid="true"] { border-color: var(--c-warn) !important; }
.field-error { color: var(--c-warn); font-size: .85rem; margin: var(--space-1) 0 0; font-weight: 550; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--c-primary-700); }
.field-check label { font-weight: 400; font-size: .92rem; margin: 0; }
.field-check .field-error { grid-column: 2; }
.form-status { padding: var(--space-4); border-radius: var(--radius); background: var(--c-accent-100); color: #0b5a47; font-weight: 600; margin-top: var(--space-4); }
.form-status.is-error, .form-alert { background: #fdecea; color: #8e2a1f; padding: var(--space-4); border-radius: var(--radius); font-weight: 600; margin-top: var(--space-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 8. Product page ---------- */
.product-hero { padding-block: var(--space-5) var(--section-y); background: linear-gradient(180deg, var(--c-bg-tint), #fff 70%); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: .88rem; color: var(--c-text-soft); margin-bottom: var(--space-6); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--c-border); }
.breadcrumb a { color: var(--c-text-soft); }
.product-hero-grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .product-hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; } }

.gallery-main { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, #f1f1f1, #d6d6d6); border-radius: var(--radius-lg); overflow: hidden; display: grid; }
.gallery-slide { margin: 0; grid-area: 1 / 1; display: grid; place-items: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-5); }
.gallery-slide img[srcset] { object-fit: cover; padding: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.gallery-thumb { aspect-ratio: 1; padding: 0; border: 2px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: pointer; transition: border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb img.thumb-contain { object-fit: contain; background: #e9e9e9; padding: 4px; }
.gallery-thumb[aria-current="true"] { border-color: var(--c-primary-600); box-shadow: 0 0 0 3px var(--c-primary-100); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-5); }
.chips li { padding: .4rem .9rem; border-radius: var(--radius-pill); background: #fff; border: 1.5px solid var(--c-primary-100); color: var(--c-primary-800); font-weight: 650; font-size: .9rem; }
.trust-mini { display: grid; gap: var(--space-2); font-size: .92rem; color: var(--c-text-soft); }
.trust-mini li { display: flex; gap: var(--space-2); align-items: center; }
.trust-mini .icon { color: var(--c-accent); }

/* Sub navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgb(255 255 255 / .95); backdrop-filter: blur(8px); border-block: 1px solid var(--c-border); }
.subnav ul { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; padding-block: var(--space-2); align-items: center; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a:not(.btn) { display: block; white-space: nowrap; padding: .45rem .85rem; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--c-text-soft); }
.subnav a:not(.btn):hover { color: var(--c-primary-700); background: var(--c-primary-50); }
.subnav a.is-active { color: var(--c-primary-700); background: var(--c-primary-100); }
.subnav-cta { margin-left: auto; padding-left: var(--space-4); }

/* Performance */
.perf-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .perf-grid { grid-template-columns: 7fr 5fr; gap: var(--space-8); } }
.bars { display: grid; gap: var(--space-5); margin-block: var(--space-6); }
.bar-head { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-2); font-weight: 600; color: #fff; }
.bar-head small { color: #8fd0ff; font-weight: 600; margin-left: .35rem; }
.bar-track { height: 12px; background: rgb(255 255 255 / .1); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: linear-gradient(90deg, #1a8fd6, #3fd3a8); transition: width 1.4s var(--ease); }
.js .bar:not(.is-visible) .bar-fill { width: 0; }
.footnote { font-size: .83rem; color: var(--c-text-soft); margin-top: var(--space-4); }
.section-dark .footnote { color: #9db8cc; }
.card-glass { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); padding: var(--space-6); box-shadow: none; }
.results dl { display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
.results dl div { display: flex; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgb(255 255 255 / .12); }
.results dt { color: #c4d9ea; }
.results dd { margin: 0; color: #fff; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results-note { display: flex; gap: var(--space-2); align-items: center; margin: 0; color: #6fd3b3; font-weight: 650; }

/* Tabs */
.tab-list { display: flex; gap: var(--space-2); padding: 5px; background: var(--c-bg-tint); border-radius: var(--radius-pill); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: var(--space-6); }
.tab-list [role="tab"] {
  flex: none; min-height: 44px; padding: .55rem 1.2rem; border: 0; border-radius: var(--radius-pill); background: transparent;
  font: inherit; font-weight: 650; color: var(--c-text-soft); cursor: pointer; transition: background-color .2s, color .2s;
}
.tab-list [role="tab"][aria-selected="true"] { background: #fff; color: var(--c-primary-700); box-shadow: var(--shadow-sm); }
.tab-panel:focus-visible { outline-offset: 8px; }
.config-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .config-grid { grid-template-columns: 5fr 7fr; gap: var(--space-7); } }
.config-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.spec-list { display: grid; margin: var(--space-5) 0 0; border-top: 1px solid var(--c-border); }
.spec-list div { display: grid; grid-template-columns: minmax(130px, 2fr) 3fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--c-border); }
.spec-list dt { color: var(--c-text-soft); font-size: .93rem; }
.spec-list dd { margin: 0; font-weight: 600; }
@media (min-width: 900px) { .spec-list-2col { grid-template-columns: 1fr 1fr; column-gap: var(--space-7); } }

/* Spec table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--c-border); background: #fff; box-shadow: var(--shadow-sm); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .95rem; }
.spec-table th, .spec-table td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.spec-table thead th { background: var(--c-primary-900); color: #fff; font-weight: 650; position: sticky; top: 0; }
.spec-table tbody th { font-weight: 600; color: var(--c-text-soft); width: 26%; }
.spec-table tbody tr:nth-child(even) { background: var(--c-bg-tint); }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--c-primary-50); }
.sub-title { margin-top: var(--space-7); font-size: var(--fs-600); }

/* Installation */
.install-card { margin: 0; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.install-card img { width: 100%; height: 260px; object-fit: contain; background: #fff; }
.install-card p { margin: 0; color: var(--c-text-soft); }
.timeline { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { display: flex; gap: var(--space-3); align-items: center; font-weight: 600; padding: var(--space-4); background: var(--c-bg-tint); border-radius: var(--radius); }
.timeline .step-num { flex: none; margin: 0; width: 34px; height: 34px; font-size: .9rem; box-shadow: none; }

/* Downloads */
.downloads { display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .downloads { grid-template-columns: 1fr 1fr; } }
.download { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-text); transition: border-color .2s, box-shadow .2s; }
.download:hover { border-color: var(--c-primary-500); box-shadow: var(--shadow); color: var(--c-text); }
.download-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdecea; color: #c0392b; flex: none; }
.download-text { display: grid; flex: 1; }
.download-text small { color: var(--c-text-soft); }
.download-arrow { color: var(--c-primary-600); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--c-primary-100); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); font-weight: 650; cursor: pointer; list-style: none; color: var(--c-primary-900); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform .25s var(--ease); color: var(--c-primary-600); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 var(--space-5) var(--space-4); color: var(--c-text-soft); }

/* Related */
.related { display: grid; gap: var(--space-5); overflow: hidden; align-items: center; }
.related > div { padding: var(--space-5); }
.related h2 { font-size: var(--fs-600); margin-top: var(--space-3); }
.related-img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
@media (min-width: 760px) { .related { grid-template-columns: 2fr 3fr; } .related-img { max-height: none; min-height: 260px; } }

/* 404 */
.error-page { text-align: center; }
.error-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--c-primary-100); line-height: 1; margin: 0; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--c-primary-900); color: #b9cfe0; padding-top: var(--space-8); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1.3fr 1fr 1fr; gap: var(--space-7); } }
.footer-logo { height: 52px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: var(--space-4); }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--space-4); }
.site-footer a { color: #dbe9f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { font-style: normal; display: grid; gap: var(--space-3); }
.footer-contact p { display: flex; gap: var(--space-3); margin: 0; }
.footer-contact .icon { color: #8fd0ff; margin-top: .2em; }
.footer-links { display: grid; gap: var(--space-2); }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / .08); transition: background-color .2s; }
.social a:hover { background: var(--c-primary-600); }
.footer-bottom { margin-top: var(--space-7); padding-block: var(--space-5); border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: #8aa6bb; }
.footer-bottom p { margin: 0; }

/* ---------- 10. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow-glass-water { animation: none !important; }
}

/* ---------- 11. Print (spec sheets get printed) ---------- */
@media print {
  .site-header, .subnav, .quote, .site-footer .social, .gallery-thumbs, .btn, .hero-media { display: none !important; }
  .hero { min-height: 0; color: #000; } .hero h1 { color: #000; }
  .section-dark { background: none; color: #000; } .section-dark h2, .section-dark h3 { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  .tab-panel[hidden] { display: block !important; }
  a { color: #000; }
}
