/* PoolComply homepage v2 - home-only styles (shared ones live in site-v2.css). 2026-11-23 */

/* ---------- hero: photo behind the dark wash ---------- */
.hero-home {
  background:
    linear-gradient(180deg, rgba(4,41,58,.86) 0%, rgba(4,41,58,.93) 60%, var(--deep) 100%),
    url("/images/hero-water.jpg") center 40% / cover no-repeat,
    var(--deep);
  padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-home h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 700; font-stretch: 92%; line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch;
}
.hero-home .lede { margin-top: 30px; max-width: 34em; }

/* ---------- test card: the one memorable element ---------- */
.testcard {
  margin: 0; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 22px 24px 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tc-pool { font: 700 1.25rem/1.2 var(--head); }
.tc-time { font: 400 .95rem/1.3 var(--head); color: var(--slate); margin-top: 3px; }
.tc-status { display: inline-flex; align-items: center; gap: 8px; background: #e7f6ec; color: var(--ok); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.tc-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tc-readings { list-style: none; padding: 6px 0 0; }
.tc-row { display: grid; grid-template-columns: 9.5em 5.2em 1fr; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf3f5; }
.tc-name { font-size: .98rem; color: var(--slate); }
.tc-val { font: 700 1.3rem/1 var(--head); font-variant-numeric: tabular-nums; }
.tc-val small { font: 400 .78rem var(--body); color: var(--slate); margin-left: 3px; }
.tc-bar { position: relative; height: 10px; border-radius: 6px; background: #e6eef1; }
.tc-band { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: #bfe6d0; }
.tc-mark {
  position: absolute; top: 50%; left: var(--x);
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--dpd); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.25);
  animation: tc-slide .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.35s + var(--i) * .12s);
}
@keyframes tc-slide { from { left: 0%; opacity: 0; } 20% { opacity: 1; } to { left: var(--x); opacity: 1; } }
.tc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; font: 600 .98rem/1.3 var(--head); }
.testcard figcaption { margin-top: 10px; font-size: .82rem; color: var(--slate); }

/* ---------- standards row ---------- */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.standards > div { padding: 0 24px; border-left: 1px solid var(--line); }
.standards > div:first-child { border-left: 0; padding-left: 0; }
.standards h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--heading); }
.standards p { margin-top: 6px; color: var(--slate); font-size: .98rem; }

/* ---------- founder ---------- */
.founder { padding: clamp(64px, 9vw, 120px) 0; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.founder h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; font-stretch: 90%; line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; color: var(--heading); }
.founder-body p { font-size: 1.15rem; max-width: 34em; }
.founder-body p + p { margin-top: 16px; }
.creds { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.creds li { padding-left: 22px; position: relative; font-weight: 700; }
.creds li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

.home-pillars { padding-bottom: clamp(64px, 9vw, 120px); }

/* ---------- feature index ---------- */
.feature-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 36px; }
.feature-index > div { padding: 16px 0; border-top: 1px solid var(--line); }
.feature-index dt a { font: 700 1.1rem/1.3 var(--head); text-decoration: none; color: var(--ink); }
.feature-index dt a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.feature-index dd { margin: 4px 0 0; color: var(--slate); }

.start-alt { margin-top: 32px; color: var(--slate); }
.start-alt a { color: var(--teal); font-weight: 700; text-underline-offset: 4px; }

/* ---------- pricing teaser ---------- */
.price-teaser { padding: clamp(48px, 7vw, 88px) 0; }
.pricing-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.price-teaser h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 750; font-stretch: 88%; line-height: 1.02; letter-spacing: -0.03em; color: var(--heading); }
.price-teaser p { margin-top: 12px; color: var(--slate); font-size: 1.1rem; max-width: 32em; }
.pricing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }

@media (max-width: 980px) {
  .hero-grid, .founder-grid, .pricing-grid { grid-template-columns: 1fr; }
  .standards { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .standards > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pricing-cta { justify-self: start; }
  .hero-home h1 { max-width: 13ch; }
}
@media (max-width: 640px) {
  .standards { grid-template-columns: 1fr; }
  .standards > div { border-left: 0; padding: 0; }
  .feature-index, .creds { grid-template-columns: 1fr; }
  .tc-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .tc-bar { grid-column: 1 / -1; }
  .testcard { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tc-mark { animation: none; } }
