/* PoolComply public site v2 - shared page styles (2026-11-23).
   Navbar, menu, footer and cookie notice live in site-v2-chrome.css (scoped to .v2c).
   Loaded by includes/v2_header.php on every redesigned page; page-specific files add to it
   (home-v2.css, features-v2.css ...).
   Tokens: deep water / pool teal / brand cyan / DPD pink (reading markers only) / tile / ink.
   Type: Bricolage Grotesque (headings, numbers), Atkinson Hyperlegible (body). */

:root {
  --deep: #04293a;
  --deep-2: #073a50;
  --teal: #0e7490;
  --teal-dark: #155e75;
  --cyan: #32c8e6;
  --dpd: #d6336c;
  --tile: #f3f8f9;
  --ink: #0c2733;
  --heading: #0e7490;   /* section headings on light: pool teal, 5:1 on tile */
  --slate: #44606d;
  --line: #d5e3e7;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --nav-h: 84px;
}

/* ---------- base (zero-specificity resets: component rules always win) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hv2 {
  margin: 0; background: var(--tile); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
:where(.hv2) img { max-width: 100%; height: auto; display: block; }
:where(.hv2) a { color: inherit; }
:where(.hv2) :where(h1, h2, h3, h4) { font-family: var(--head); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
:where(.hv2) :where(p, ul, ol, dl, figure) { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 16px; }
.hv2 :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.more { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.more:hover { color: var(--teal-dark); }

/* ---------- dark page hero (every v2 page starts with one) ---------- */
.v2-hero { position: relative; color: #fff; background: var(--deep); padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; font-stretch: 92%; line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; }
.lede { margin-top: 22px; max-width: 36em; font-size: 1.15rem; color: rgba(255,255,255,.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: .95rem; color: rgba(255,255,255,.7); }

/* ---------- section headings on light backgrounds ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-white { background: #fff; border-block: 1px solid var(--line); }
.sec-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; font-stretch: 90%; line-height: 1.08; color: var(--heading); }
.sec-sub { margin-top: 10px; color: var(--slate); font-size: 1.08rem; max-width: 40em; }

/* ---------- pillar rows: text beside a framed screenshot (home, features) ---------- */
.pillars { display: grid; gap: clamp(56px, 8vw, 112px); }
.pillar { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pillar:nth-child(even) .pillar-text { order: 2; }
.pillar h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; font-stretch: 90%; line-height: 1.05; color: var(--heading); }
.pillar p { margin: 16px 0 18px; color: var(--slate); font-size: 1.08rem; max-width: 30em; }
.pillar .shot, .pillar > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(4,41,58,.45);
}
.pillar img.fit { object-fit: contain; padding: 12px; }

/* ---------- steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--deep); color: #fff; font: 700 1.15rem/1 var(--head);
}
.steps h3 { font-size: 1.25rem; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--slate); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .steps-4 { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq > * { max-width: 820px; }
.faq .sec-title { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 700 1.15rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div, .faq details > p { padding: 0 0 22px; color: var(--slate); max-width: 40em; }
.faq details > div p + p { margin-top: 10px; }
.faq details a { color: var(--teal); font-weight: 700; }

/* ---------- closing band ---------- */
.closing { background: var(--deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 750; font-stretch: 88%; line-height: 1.02; max-width: 15ch; color: var(--cyan); }
.closing .hero-cta { margin-top: 0; }

/* ---------- forms (login, register) ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label { font-weight: 700; font-size: .98rem; }
.field .hint { font-size: .9rem; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid #b9cdd3; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,116,144,.2); }
.form-msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-weight: 700; }
.form-msg.error { background: #fde8e8; color: var(--bad); }
.form-msg.success { background: #e7f6ec; color: var(--ok); }
.form-msg.info { background: #e3f3f8; color: var(--teal-dark); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar-text { order: 0; }
}
@media (max-width: 640px) {
  body.hv2 { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
