/* Câtă apă pe zi? Calculator orientativ */
:root {
  --ui: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-2: #e9efea;
  --fg: #17251e;
  --mut: #46554d;
  --line: #d3e0d6;
  --acc: #166a5d;
  --acc-fg: #ffffff;
  --acc2: #b4530a;
  --acc2-fg: #ffffff;
  --acc-soft: color-mix(in srgb, var(--acc) 11%, var(--surface));
  --acc2-soft: color-mix(in srgb, var(--acc2) 13%, var(--surface));
  --shadow: 0 18px 48px rgba(23, 37, 30, .15);

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1713;
    --surface: #151f1a;
    --surface-2: #1d2921;
    --fg: #e8efea;
    --mut: #a3b3a8;
    --line: #28352c;
    --acc: #7fd0bf;
    --acc-fg: #06231a;
    --acc2: #e08d38;
    --acc2-fg: #2a1603;
    --acc-soft: color-mix(in srgb, var(--acc) 16%, var(--surface));
    --acc2-soft: color-mix(in srgb, var(--acc2) 17%, var(--surface));
    --shadow: 0 22px 56px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1713;
  --surface: #151f1a;
  --surface-2: #1d2921;
  --fg: #e8efea;
  --mut: #a3b3a8;
  --line: #28352c;
  --acc: #7fd0bf;
  --acc-fg: #06231a;
  --acc2: #e08d38;
  --acc2-fg: #2a1603;
  --acc-soft: color-mix(in srgb, var(--acc) 16%, var(--surface));
  --acc2-soft: color-mix(in srgb, var(--acc2) 17%, var(--surface));
  --shadow: 0 22px 56px rgba(0, 0, 0, .5);
}

@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/cata-apa-pe-zi/assets/fonts/IBMPlexSans-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: "Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/cata-apa-pe-zi/assets/fonts/IBMPlexSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/cata-apa-pe-zi/assets/fonts/fraunces-normal-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: "Fraunces";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/cata-apa-pe-zi/assets/fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 1.02rem;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--acc); color: var(--acc-fg); }
a { color: var(--acc); }
:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: .75rem; top: -3.5rem; z-index: 100;
  padding: .55rem 1rem; border-radius: .5rem;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: .5rem; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.1rem;
  height: calc(3rem + var(--browser-safe-top, env(safe-area-inset-top)));
  padding: var(--browser-safe-top, env(safe-area-inset-top)) 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .92rem/1 var(--ui);
}
.home { font-weight: 600; color: var(--fg); text-decoration: none; white-space: nowrap; }
.home:hover { color: var(--acc); }
.topnav { display: flex; gap: .15rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: var(--mut); text-decoration: none; padding: .45rem .6rem; border-radius: .5rem; }
.topnav a:hover { color: var(--fg); background: var(--surface-2); }
.topnav a[aria-current="true"] { color: var(--acc); font-weight: 600; }
@media (max-width: 640px) { .topnav a { padding: .45rem .4rem; font-size: .85rem; } .home { font-size: .85rem; } }
.icon-btn {
  flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { border-color: var(--acc); color: var(--acc); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }

.rail { display: none; }
@media (min-width: 1100px) {
  .rail { --col: 47.5rem; --gut: 1.5rem; display: flex; flex-direction: column; position: fixed; top: 50%; left: calc(50% + var(--col)/2 + var(--gut)); transform: translateY(-50%); z-index: 40; margin: 0; padding: .4rem 0; max-height: calc(100vh - 7rem); list-style: none; }
  .rail::before { content: ""; position: absolute; left: calc(.875rem - .5px); top: 1.1rem; bottom: 1.1rem; width: 1px; background: var(--line); }
  .rail-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
  .rail-dot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); box-shadow: 0 0 0 3px var(--bg); transition: transform .2s, background .2s; flex: none; }
  .rail-dot:hover .dot, .rail-dot:focus-visible .dot { background: var(--acc); transform: scale(1.25); }
  .rail-dot[aria-current="true"] .dot { background: var(--acc); transform: scale(1.45); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px color-mix(in srgb, var(--acc) 38%, transparent); }
  .rail-dot:focus-visible { outline: 2px solid var(--acc); outline-offset: -1px; }
  .rail-label { position: absolute; right: calc(100% + .3rem); top: 50%; transform: translate(6px, -50%); padding: .22rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); color: var(--fg); font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
  .rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }
}
@media (min-width: 1400px) {
  .rail-label { right: auto; left: calc(100% + .15rem); max-width: calc(50vw - var(--col)/2 - var(--gut) - 3.25rem); overflow: hidden; text-overflow: ellipsis; padding: .1rem .2rem; border-color: transparent; background: transparent; box-shadow: none; color: var(--mut); transform: translate(-4px, -50%); }
  .rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { color: var(--acc); }
}
@media (prefers-reduced-motion: reduce) { .rail .dot, .rail-label { transition: none; } }
@media (forced-colors: active) { .rail::before { background: CanvasText; } .rail-dot .dot { background: CanvasText; box-shadow: none; } .rail-label { border-color: CanvasText; } }

main { display: block; }
.wrap { width: 100%; max-width: 47.5rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.5rem 0 1rem; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.kicker { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; color: var(--mut); text-transform: uppercase; }
h2 {
  font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.lede { color: var(--mut); font-size: 1.04rem; max-width: 40rem; margin: 0 0 1.5rem; }
section { scroll-margin-top: calc(3.5rem + var(--browser-safe-top, env(safe-area-inset-top))); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 2.5rem 0 2.75rem; }
@media (min-width: 900px) { .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.25rem; align-items: center; } }
.eyebrow { font: 600 .8rem/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin: 0 0 1rem; }
.eyebrow b { color: var(--acc2); }
h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.95rem, 3.2vw + 1rem, 2.6rem);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 1.1rem; text-wrap: balance;
}
.stand { font-size: 1.12rem; color: var(--mut); max-width: 34rem; margin: 0 0 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.trust { margin-top: 1.1rem; font-size: .88rem; color: var(--mut); }
.trust a { color: var(--mut); }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1rem/1 var(--ui); text-decoration: none; cursor: pointer;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-primary { background: var(--acc); color: var(--acc-fg); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--acc) 88%, #000); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

.hero-art { display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-figure { margin: 0; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure figcaption { font-size: .8rem; color: var(--mut); margin-top: .5rem; text-align: center; }
@media (max-width: 899px) {
  .hero { padding-top: 1.75rem; }
  .hero-art-inline { display: block; margin: 0 0 1.25rem; }
}
@media (min-width: 900px) { .hero-art-inline { display: none; } }

/* ── 3 carduri ghid ──────────────────────────────────────── */
.panes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .panes { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.fact-card h3 { font-size: 1.02rem; margin: 0; font-weight: 600; }
.fact-card p { margin: 0; color: var(--mut); font-size: .93rem; }
.fact-card svg { display: block; width: 100%; height: auto; margin-bottom: .4rem; }
.myth { background: var(--acc2-soft); border: 1px dashed color-mix(in srgb, var(--acc2) 55%, var(--line)); border-radius: .75rem; padding: .75rem .95rem; font-size: .93rem; margin-top: 1rem; }
.myth b { color: var(--acc2); }

/* ── Calculatorul ─────────────────────────────────────────── */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem;
  box-shadow: var(--shadow); padding: 1.4rem; margin-top: .5rem;
  position: relative; overflow: hidden;
}
@media (min-width: 800px) { .calc { padding: 1.75rem 2rem 2rem; } }
.calc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: .45rem; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 45%, #ffffff), var(--acc)); }
.calc-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; } }
.calc-control { display: flex; flex-direction: column; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--fg); }
.field output { font: 700 1.35rem/1 var(--display); color: var(--acc); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: .4rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc) var(--fill, 40%), var(--surface-2) var(--fill, 40%)); outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--acc); cursor: pointer;
}
input[type="range"]::-moz-range-thumb { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--acc); cursor: pointer; }
fieldset { border: none; padding: 0; margin: 0; }
.seg { display: flex; gap: .45rem; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto; font: 500 .9rem/1.35 var(--ui); color: var(--fg);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: .65rem;
  padding: .55rem .7rem; cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
@media (prefers-reduced-motion: reduce) { .seg button { transition: none; } }
.seg button small { display: block; color: var(--mut); font-size: .78rem; font-weight: 400; margin-top: .1rem; }
.seg button[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.seg button[aria-pressed="true"] small { color: var(--acc); }

.calc-out {
  background: var(--surface-2); border-radius: 1rem; padding: 1.25rem 1.35rem; text-align: center;
}
.calc-out .kicker { display: block; margin-bottom: .35rem; }
.out-range {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.05; color: var(--acc); margin: .1rem 0 .35rem;
}
.out-glasses { font-size: 1.02rem; color: var(--fg); margin: 0 0 .3rem; }
.out-glasses b { font-family: var(--mono); }
.out-note { font-size: .83rem; color: var(--mut); margin: 0; }
.copy-mini { display: flex; justify-content: center; margin-top: .75rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--line); background: var(--surface); border-radius: .85rem; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--acc); }
.faq-item .faq-body { padding: 0 1.1rem .95rem; color: var(--mut); font-size: .97rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.faq-item .faq-body p { margin: 0 0 .5rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ── Metoda și sursele ───────────────────────────────────── */
.method p, .method li { color: var(--mut); }
.method a { color: var(--acc); }
.sources { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; margin: 1rem 0 0; }
.sources li { background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: .6rem .8rem; font-size: .95rem; }
.sources b { color: var(--fg); }
.sources span { color: var(--mut); display: block; font-size: .87rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 0 2rem; color: var(--mut); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; justify-content: space-between; }
.footer a { color: var(--mut); }
.footer a:hover { color: var(--acc); }

.share-row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; margin-top: .9rem; }
.share-btn {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
  text-decoration: none; transition: border-color .15s, color .15s, transform .15s;
}
@media (prefers-reduced-motion: reduce) { .share-btn { transition: none; } }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); }
.share-btn[hidden] { display: none !important; }
.share-btn svg { display: block; }
.copy-note { font-size: .85rem; color: var(--acc); min-height: 1.2em; margin: .35rem 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
