/* Pool landing — supplements landing/5rt/styles.css. Do not load this on 5RT pages. */

.pool-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-end: 16px;
}
.pool-nav a {
  color: var(--muted-dark);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pool-nav a:hover { color: var(--white); }

.hero-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hero-bullets li {
  position: relative;
  padding-inline-start: 1.15em;
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.55;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}

.pool-diag {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  background: var(--deep);
  border-radius: var(--r-md);
  color: var(--white);
  min-height: 280px;
}
.pool-diag-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}
.pool-diag-box {
  background: var(--deep-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
  min-width: 0;
}
.pool-diag-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.pool-diag-box span {
  display: block;
  margin-top: 4px;
  color: var(--signal-soft);
  font-size: 11.5px;
}
.pool-diag-arrow {
  align-self: center;
  color: var(--signal);
  font-weight: 800;
  flex: 0 0 auto;
}
html[dir="rtl"] .pool-diag-arrow { transform: scaleX(-1); }
.pool-diag-heat {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-dark);
}
.pool-diag-heat-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-soft);
  margin: 0;
}
.pool-diag-heat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pool-diag-heat-row .pool-diag-box { flex: 1 1 140px; }
.pool-diag-note {
  margin: 8px 0 0;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 1.5;
}

.pain-grid, .option-grid, .why-grid, .scope-grid, .process-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.pain-grid, .option-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
.scope-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }

.pool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px;
}
.band .pool-card { background: var(--paper); }
.pool-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.pool-card p, .pool-card li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.pool-card ul { margin: 0; padding-inline-start: 1.15em; }
.pool-card li + li { margin-top: 6px; }
.pool-card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--forest);
}
.option-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--signal-pale);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inputs-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.inputs-list li {
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
}

.scope-col.notfit { border-color: #e8cfc5; }
.scope-col.notfit h3 { color: #8a3b2a; }
.scope-footnote, .how-footnote, .section-note, .form-help {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-unavailable {
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
.form-unavailable p { margin: 0 0 12px; color: var(--ink); }
.outdoor-note {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f8efe6;
  border-radius: var(--r-sm);
  color: #6a4a28;
  font-size: 13.5px;
  line-height: 1.5;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.consent-check input { margin-top: 3px; flex: 0 0 auto; }
.field-other[hidden] { display: none !important; }

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Manrope", system-ui, sans-serif;
}

@media (max-width: 960px) {
  .pool-nav { display: none; }
  .pain-grid, .option-grid, .why-grid, .scope-grid, .process-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 641px) and (max-width: 960px) {
  .pain-grid, .option-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
}

#how, #custom, #scope, #why, #process, #faq, #quote { scroll-margin-top: 88px; }
@media (max-width: 720px) {
  .pool-diag-flow { display: flex; flex-direction: column; }
  .pool-diag-arrow { transform: rotate(90deg); }
  html[dir="rtl"] .pool-diag-arrow { transform: rotate(90deg); }
}

/* M2: Arabic / RTL must not inherit Latin letter-spacing or uppercase. */
html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .mono,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .pool-diag-box strong,
html[dir="rtl"] .pool-diag-heat-h,
html[dir="rtl"] .option-badge,
html[dir="rtl"] .hero-note,
html[dir="rtl"] .lang-label,
html[lang="ar"] .hero-kicker,
html[lang="ar"] .mono,
html[lang="ar"] .eyebrow,
html[lang="ar"] .pool-diag-box strong,
html[lang="ar"] .pool-diag-heat-h,
html[lang="ar"] .option-badge,
html[lang="ar"] .hero-note,
html[lang="ar"] .lang-label {
  letter-spacing: 0;
  text-transform: none;
  font-family: "Noto Sans Arabic", "Manrope", system-ui, sans-serif;
}


/* Arabic titles: 5RT .hero-title / .section-title line-height is ~1.03–1.04. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-title {
  letter-spacing: 0;
  line-height: 1.35;
}

/* Mobile sticky bar (fixed bottom, shown ≤640px) must not cover the quote form. */
@media (max-width: 640px) {
  html {
    scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  #quote {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    scroll-margin-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  #poolForm,
  .form {
    scroll-margin-top: 88px;
    scroll-margin-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
}
