/* WaterPAP public website: the landing page and the legal pages. Light, clean and professional:
   the logo's navy and blue on white, line icons, soft curves. */
:root {
  --navy: #001e54;
  --ink: #0f1f3a;
  --text: #33445f;
  --muted: #64748b;
  --blue: #1677e8;
  --blue-dark: #0f5fc2;
  --sky: #3eb6ff;
  --tint: #eef5ff;
  --tint-2: #f6f9fd;
  --line: #e3eaf3;
  --whatsapp: #25d366;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 31, 58, 0.04), 0 8px 24px -12px rgba(15, 31, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header: white, the logo alone, quiet links. */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; }
.nav a:hover { color: var(--navy); background: var(--tint-2); text-decoration: none; }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--blue-dark); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 500; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; text-decoration: none !important; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-sky { background: var(--blue); color: #fff; }
.btn-sky:hover { background: var(--blue-dark); }
.btn-outline, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover, .btn-ghost:hover { border-color: #c8d4e3; background: var(--tint-2); }
.btn-whatsapp { background: #fff; color: #128c4a; border-color: #cdeedb; }
.btn-whatsapp:hover { background: #f1fbf5; }
.btn-whatsapp .icon-svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: light, with one large soft curve behind the phones. */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f8fe 0%, #fbfdff 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 88px 0 120px; }
.hero-curve { position: absolute; z-index: 0; right: -18%; top: -30%; width: 75%; height: 150%; background: linear-gradient(160deg, #dcebff 0%, #eaf3ff 55%, rgba(234, 243, 255, 0) 100%); border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.hero h1 { color: var(--navy); font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 20px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.15rem; color: var(--text); margin: 0 0 32px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon-svg { width: 18px; height: 18px; color: var(--blue); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding: 56px 0 96px; } .hero-curve { right: -40%; top: 35%; width: 120%; height: 80%; } }

/* Phone mockups showing the app. */
.phones { position: relative; height: 480px; }
.phone { position: absolute; width: 236px; height: 470px; border-radius: 40px; background: #0d1526; padding: 9px; box-shadow: 0 30px 60px -28px rgba(15, 31, 58, 0.45), 0 0 0 1px rgba(15, 31, 58, 0.06); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 16px; translate: -50% 0; border-radius: 10px; background: #0d1526; z-index: 2; }
.phone .screen { height: 100%; border-radius: 32px; overflow: hidden; background: #f6f9fd; color: var(--ink); font-size: 11px; line-height: 1.45; position: relative; }
.phone.p1 { right: 150px; top: 44px; }
.phone.p2 { right: 10px; top: 0; }
.screen .bar { background: #fff; border-bottom: 1px solid var(--line); color: var(--navy); padding: 36px 14px 11px; font-weight: 600; font-size: 13px; }
.screen .bar small { display: block; font-weight: 400; color: var(--muted); font-size: 10px; }
.screen .tile { margin: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.screen .tile b { color: var(--navy); display: block; font-size: 11.5px; font-weight: 600; }
.screen .pill { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; font-size: 9px; font-weight: 600; }
.pill.way { background: #e6f1ff; color: var(--blue-dark); }
.pill.done { background: #e8f7ef; color: #15803d; }
.pill.acc { background: #eef1f6; color: #475569; }
.screen .track { height: 4px; border-radius: 4px; background: #e6edf5; margin-top: 8px; overflow: hidden; }
.screen .track i { display: block; height: 100%; width: 68%; background: var(--blue); border-radius: 4px; }
.screen .cta { margin: 10px; padding: 10px; border-radius: 10px; text-align: center; font-weight: 600; color: #fff; background: var(--blue); }
.screen .chat { margin: 8px 10px; padding: 8px 10px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); max-width: 82%; }
.screen .chat.me { margin-left: auto; border-radius: 12px 12px 4px 12px; background: #e6f1ff; border-color: #d6e7ff; }
@media (max-width: 880px) { .phones { height: 420px; max-width: 380px; margin: 0 auto; width: 100%; } .phone { width: 200px; height: 400px; } .phone.p1 { right: 140px; } }
@media (max-width: 440px) { .phone.p1 { display: none; } .phone.p2 { right: 50%; translate: 50% 0; } }

/* Facts strip under the hero. */
.strip { position: relative; z-index: 2; margin-top: -40px; padding: 0 0 8px; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.strip .stat { padding: 22px 20px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.strip .stat:last-child { border-right: 0; }
.strip strong { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.strip span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.strip .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--blue); flex: none; }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip .stat:nth-child(2) { border-right: 0; } .strip .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .strip .wrap { grid-template-columns: 1fr; } .strip .stat { border-right: 0; border-bottom: 1px solid var(--line); } .strip .stat:last-child { border-bottom: 0; } }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 44rem; margin-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--blue); margin-bottom: 12px; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.025em; color: var(--navy); font-weight: 600; }
h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.alt { background: var(--tint-2); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s, border-color 0.2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d6e0ec; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--blue); margin-bottom: 18px; }
.card ul { padding-left: 0; margin: 14px 0 22px; list-style: none; }
.card ul li { position: relative; padding-left: 22px; margin-bottom: 6px; color: var(--text); font-size: 0.95rem; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 1.75px solid var(--blue); border-bottom: 1.75px solid var(--blue); rotate: -45deg; }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.service { display: flex; flex-direction: column; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--tint-2); border: 1px solid var(--line); color: var(--text); font-size: 0.82rem; font-weight: 500; }

/* Steps */
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #cfe0f7; background: #fff; color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }

/* Tools */
.tool label { display: block; font-weight: 500; color: var(--ink); margin: 16px 0 8px; font-size: 0.95rem; }
.tool input[type="range"] { width: 100%; accent-color: var(--blue); }
.tool output { font-weight: 600; color: var(--blue); }
.result { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.result strong { font-size: 1.3rem; font-weight: 600; display: block; margin-bottom: 4px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: 0.92rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid #d7e0eb; border-radius: 10px; padding: 11px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 232, 0.14); }
.form .hp { position: absolute; left: -9999px; }
.form .note, .note { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.message { border-radius: 10px; padding: 12px 14px; font-weight: 500; font-size: 0.95rem; }
.message.ok { background: #ecfdf3; color: #067647; }
.message.error { background: #fef3f2; color: #b42318; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--tint-2); border: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { border: 0; background: none; font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(15, 31, 58, 0.1); }

/* Partners: a deep navy band with soft curved edges. */
.curve { display: block; width: 100%; height: 64px; margin: -1px 0; position: relative; z-index: 1; }
.dark { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.dark h2, .dark h3 { color: #fff; }
.dark .muted { color: rgba(255, 255, 255, 0.7); }
.dark .eyebrow { color: var(--sky); }
.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.82); }
.dark .card:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.22); }
.dark .card .icon { background: rgba(62, 182, 255, 0.12); color: var(--sky); }
.dark .card.light { background: #fff; color: var(--text); border-color: #fff; }
.dark .card.light h3 { color: var(--navy); }
.dark .card.light .note { color: var(--muted); }
.dark .card.light .form label { color: var(--ink); }
.dark .checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.dark .checklist li { display: flex; gap: 12px; margin-bottom: 12px; }
.dark .checklist .n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; font-size: 0.8rem; color: #fff; }
.dark a.link { color: var(--sky); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.75px solid var(--muted); border-bottom: 1.75px solid var(--muted); translate: 0 -70%; rotate: 45deg; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq h3 { margin-bottom: 8px; }

/* WhatsApp chat button */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
.chat-fab .round { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 31, 58, 0.35); }
.chat-fab .round:hover { text-decoration: none; filter: brightness(0.96); }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 32px; font-size: 0.92rem; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--ink); margin: 0 0 12px; font-weight: 600; font-size: 0.95rem; }
footer a { color: var(--muted); display: block; padding: 4px 0; }
footer a:hover { color: var(--navy); }
footer .logo { height: 40px; width: auto; border-radius: 8px; margin-bottom: 14px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.85rem; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr 1fr; } }

/* Legal pages */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); margin: 40px auto 72px; max-width: 860px; }
.doc h1 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.025em; }
.doc h2 { font-size: 1.3rem; margin-top: 40px; }
.doc h3 { font-size: 1.02rem; margin-top: 20px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); margin-bottom: 24px; }
.doc .draft { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; border-radius: 10px; padding: 12px 14px; font-weight: 500; margin-bottom: 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.doc th { color: var(--ink); font-weight: 600; }
.doc .toc { background: var(--tint-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 1.2rem; }
.doc .switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.doc .switch .btn { padding: 7px 12px; font-size: 0.85rem; }
.legal-page { background: var(--tint-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
