/* EcoWater Solutions — layout: catalogue pages (light sheets, short aqua rule over each heading)
   interleaved with teal-to-navy "chapter cover" bands; data shown as lab-report readouts. */
:root {
  --bg: #F4F6F6;
  --surface: #FFFFFF;
  --ink: #1B1D36;
  --muted: #586078;
  --line: #D9E1E4;
  --aqua: #2AD2C9;
  --teal: #1D8296;
  --accent-text: #17717F;
  --tint: #E8F6F5;
  --alert: #C9463A;
  --ok: #8FA3AD;
  --band-a: #3A8799;
  --band-b: #1B1D36;
  --on-band: #FFFFFF;
  --on-band-muted: #C9D6DE;
  --band-panel: rgba(255, 255, 255, 0.07);
  --band-line: rgba(255, 255, 255, 0.2);
  --plate: #FFFFFF;
  --plate-ink: #1B1D36;
  --shadow: 0 1px 2px rgba(27, 29, 54, 0.06), 0 8px 24px rgba(27, 29, 54, 0.06);
  --font-display: 'Metropolis', 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Cabinet Grotesk', 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111328; --surface: #1B1D36; --ink: #EDEDED; --muted: #A6AEC2; --line: #2D3152;
    --accent-text: #2AD2C9; --tint: #173842; --alert: #FF7D70; --ok: #5E6C84;
    --band-a: #2A6B7C; --band-b: #14162C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111328; --surface: #1B1D36; --ink: #EDEDED; --muted: #A6AEC2; --line: #2D3152;
  --accent-text: #2AD2C9; --tint: #173842; --alert: #FF7D70; --ok: #5E6C84;
  --band-a: #2A6B7C; --band-b: #14162C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 14px; }
.small { font-size: 0.86rem; color: var(--muted); }

/* header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; padding-block: 10px; }
.brand-mark { height: 38px; width: auto; fill: currentColor; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-word { height: 15px; width: auto; fill: currentColor; }
.brand-sub { font-family: var(--font-display); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.42em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--aqua); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .site-head .btn { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--aqua);
  background: var(--aqua); color: #10122A; text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.band .btn.ghost { color: var(--on-band); border-color: var(--band-line); }
.btn.sm { padding: 8px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.rule::before { content: ""; display: block; width: 64px; height: 3px; background: var(--aqua); margin-bottom: 14px; }
.kicker { font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.band { background: linear-gradient(118deg, var(--band-a) 0%, var(--band-b) 62%); color: var(--on-band); }
.band .lead, .band .small { color: var(--on-band-muted); }
.band .kicker, .band a:not(.btn) { color: var(--aqua); }
.band .section { padding-block: clamp(44px, 6vw, 76px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 88px); }
.hero > * { min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.page-hero { padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* lab readout */
.readout { background: var(--band-panel); border: 1px solid var(--band-line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.readout-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; font-family: var(--font-display); }
.readout-head strong { font-size: 1rem; }
.readout-head span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-band-muted); }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.bar-row .label { font-weight: 500; }
.bar-row .val { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); position: relative; }
.bar-fill { height: 100%; border-radius: 3px; background: #FF8A7A; }
.bar-fill.limit { background: var(--aqua); min-width: 4px; }
.bar-track::after { content: ""; position: absolute; left: 3.333%; top: -5px; bottom: -5px; border-left: 2px dashed var(--aqua); }
.axis { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--on-band-muted); font-variant-numeric: tabular-nums; }
.readout .small { color: var(--on-band-muted); }
.sheet .readout { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.sheet .readout-head span, .sheet .readout .small, .sheet .axis { color: var(--muted); }
.sheet .bar-track { background: var(--tint); }
.sheet .bar-fill { background: var(--alert); }
.sheet .bar-fill.limit { background: var(--teal); }
.sheet .bar-track::after { border-color: var(--teal); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.5em; font-weight: 700; color: var(--muted); }
.stat span { font-size: 0.95rem; }
.stat cite { font-style: normal; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat + .stat { padding-left: 0; border-left: 0; } }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.section.alt .card { background: var(--bg); }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.problem .unit { font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-text); text-transform: uppercase; }
.cat-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card .plate { height: 190px; }
.cat-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.plate { background: var(--plate); display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 10px; }
.cat-card .plate { border-radius: 0; }
.plate img { max-height: 100%; width: auto; object-fit: contain; }

.callout { background: var(--tint); border-left: 4px solid var(--aqua); padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 0.98rem; }
.callout strong { font-family: var(--font-display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--tint); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.feat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.feat li { padding-left: 18px; position: relative; font-size: 0.96rem; }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }

/* two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* stacked bar */
.stackbar { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stackbar span { display: block; }
.seg-ok { background: var(--ok); } .seg-a { background: #E3A63B; } .seg-b { background: var(--teal); } .seg-c { background: var(--alert); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; list-style: none; padding: 0; margin: 0; font-size: 0.94rem; }
.legend li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.legend i { width: 14px; height: 14px; border-radius: 3px; margin-top: 5px; }
.legend b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .legend { grid-template-columns: 1fr; } }

/* hardness scale */
.scale { display: grid; grid-template-columns: 8.4fr 5.6fr 11fr; gap: 2px; border-radius: 6px; overflow: hidden; }
.scale div { padding: 10px 12px; font-size: 0.88rem; font-weight: 500; color: #10122A; min-width: 0; }
.scale div b { display: block; font-family: var(--font-display); }
.scale .s1 { background: #BFEDE9; } .scale .s2 { background: #6FDAD3; } .scale .s3 { background: #2AD2C9; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--band-b); color: var(--on-band); font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
tbody th { font-family: var(--font-display); font-weight: 700; }
.spec { width: 100%; font-size: 0.9rem; }
.spec td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.spec td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 12px; }
.spec tr:last-child td { border-bottom: 0; }

/* flow */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.node { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 18px; font-size: 0.9rem; font-weight: 500; text-align: center; }
.node.key { border-color: var(--teal); color: var(--accent-text); font-weight: 700; }
.node.dark { background: var(--band-b); color: var(--on-band); border-color: var(--band-b); }
.node.end { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 700; }
.pipe { width: 2px; height: 20px; background: var(--line); }
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; border-top: 2px solid var(--line); }
.branch { display: flex; flex-direction: column; align-items: center; }
.branch .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--aqua); min-width: 0; }
.steps li::before { content: "Korak " counter(s); font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.steps p { color: var(--muted); font-size: 0.98rem; }
.band .steps p { color: var(--on-band-muted); } .band .steps li::before { color: var(--aqua); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* picker */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.picker fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.picker legend { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { font: inherit; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.opts button[aria-pressed="true"] { background: var(--band-b); border-color: var(--band-b); color: var(--on-band); }
.result { background: var(--tint); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.result h3 { font-size: 1.1rem; }

/* products */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.subnav a:hover { border-color: var(--teal); }
@media (max-width: 820px) { .subnav { top: env(safe-area-inset-top, 0px); position: static; } }
.product { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.5vw, 26px); }
.product > * { min-width: 0; }
.product .plate { height: 300px; }
.product .info { display: flex; flex-direction: column; gap: 14px; }
.product .info > p { color: var(--muted); }
.product .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.product .cols > * { min-width: 0; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product .plate { height: 240px; } .product .cols { grid-template-columns: 1fr; } }
.wide-plate { height: auto; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); }
.wide-plate img { max-height: 360px; }
.tap .plate { height: 200px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; border: 1px solid var(--line); }

/* contact + footer */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-item { border: 1px solid var(--band-line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--band-panel); }
.contact-item .k { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); }
.contact-item .v { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; user-select: all; color: var(--on-band); text-decoration: none; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.phone-row .copy { align-self: center; }
.copy { align-self: flex-start; font: inherit; font-size: 0.82rem; font-weight: 500; background: transparent; color: var(--on-band-muted); border: 1px solid var(--band-line); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.site-foot { background: var(--band-b); color: var(--on-band-muted); font-size: 0.92rem; }
.site-foot .wrap { padding-block: 40px 28px; display: flex; flex-direction: column; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-cols > * { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols h4 { color: var(--on-band); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-foot a { color: var(--on-band-muted); text-decoration: none; }
.site-foot a:hover { color: var(--aqua); }
.site-foot .brand { color: var(--on-band); margin: 0; padding: 0; }
.foot-bottom { border-top: 1px solid var(--band-line); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }
.sources { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.94rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .cat-card { transition: none; } }
