:root {
  color-scheme: light;
  --ink: #10212a;
  --muted: #5d6b72;
  --water: #237f98;
  --water-deep: #1f3b6b;
  --aqua: #98d6dc;
  --leaf: #496d57;
  --sun: #d8a543;
  --shell: #f5f7f8;
  --mist: #97a6b4;
  --line: #d7dee2;
  --white: #fff;
  --shadow: 0 18px 45px rgba(12, 45, 56, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 12px 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.brand-logo {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  font-size: 12px;
  margin-top: 3px;
}

.top-nav {
  display: none;
}

.menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: grid;
  gap: 5px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.menu-button span {
  background: currentColor;
  border-radius: 99px;
  display: block;
  height: 2px;
  width: 20px;
}

.site-menu {
  background: rgba(10, 20, 28, 0.44);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 60;
}

.site-menu.open {
  display: block;
}

.site-menu-panel {
  background: var(--mist);
  color: var(--white);
  display: grid;
  gap: 18px;
  margin-left: auto;
  min-height: 100%;
  padding: 20px;
  position: relative;
  width: min(84vw, 380px);
}

.menu-close {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 34px;
  height: 42px;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 42px;
}

.menu-logo {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 20px auto 2px;
}

.menu-logo img {
  border: 4px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  height: 92px;
  object-fit: cover;
  width: 92px;
}

.drawer-nav {
  display: grid;
}

.drawer-nav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  display: grid;
  font-size: 15px;
  font-weight: 900;
  gap: 5px;
  padding: 16px 4px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.drawer-nav small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.hero {
  align-items: end;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 104px 18px 56px;
  position: relative;
}

.hero-video,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(2, 19, 26, 0.2), rgba(31, 59, 107, 0.18) 36%, rgba(9, 19, 27, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(151, 166, 180, 0.36), transparent 34%);
}

.hero-content {
  color: var(--white);
  max-width: 640px;
  position: relative;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.eyebrow {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--aqua);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 16vw, 84px);
  line-height: 0.9;
  margin-bottom: 18px;
  max-width: 10ch;
}

h2 {
  font-size: 30px;
  line-height: 1.02;
  margin-bottom: 12px;
}

.hero-copy {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 22px;
  max-width: 30rem;
}

.hero-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--sun);
  color: #172117;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--water-deep);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.quick-panel {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.page-jump {
  background: var(--mist);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-jump a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
}

.page-jump strong {
  font-size: 15px;
  text-transform: uppercase;
}

.page-jump span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.3;
}

.quick-panel div {
  display: grid;
  gap: 4px;
}

.quick-panel span,
.section-heading p,
.feature-copy p,
.algae-section p,
.faq-list p,
.terms {
  color: var(--muted);
  line-height: 1.55;
}

.quick-panel a,
.text-link {
  color: var(--water-deep);
  font-weight: 800;
  text-decoration: none;
}

.section {
  padding: 54px 18px;
}

.section-tight {
  padding-top: 46px;
}

.section-heading {
  margin: 0 auto 24px;
  max-width: 680px;
}

.plan-grid {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 1100px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(8, 46, 60, 0.08);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.plan-card img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.plan-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.plan-top {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.plan-top h3 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.price {
  color: var(--water-deep);
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.best-for {
  color: var(--muted);
  margin: 0;
}

.plan-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.plan-points li {
  list-style: none;
  padding-left: 22px;
  position: relative;
}

.plan-points li::before {
  color: var(--leaf);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.feature-band {
  background: #e9eef2;
  display: grid;
  gap: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 126, 164, 0.16);
  border-radius: 8px;
  font-weight: 750;
  padding: 14px;
}

.algae-section {
  background: var(--white);
  display: grid;
  gap: 22px;
}

.about-section {
  background: #22272d;
  color: var(--white);
  display: grid;
  gap: 24px;
}

.about-section .eyebrow {
  color: var(--aqua);
}

.about-section p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  gap: 10px;
}

.trust-grid div,
.compare-list div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.trust-grid strong,
.compare-list strong {
  font-size: 16px;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.algae-media img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.signup-section {
  background: #f1f7f9;
}

.compare-section {
  background: var(--mist);
  color: var(--white);
}

.compare-section .eyebrow {
  color: #e6f7fa;
}

.compare-list {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 760px;
}

.compare-list div {
  background: rgba(255, 255, 255, 0.13);
}

.compare-list span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.contact-section {
  background: var(--white);
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 560px;
}

.contact-actions a {
  background: var(--water-deep);
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  min-height: 50px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
}

.signup-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 760px;
  padding: 18px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: #fbfefe;
  border: 1px solid #c9dade;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 14px;
}

.terms {
  font-size: 13px;
  margin-bottom: 0;
}

.form-submit {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.form-status {
  color: var(--leaf);
  font-weight: 800;
  margin: 0;
  min-height: 1.4em;
}

.faq-section {
  background: var(--shell);
  padding-bottom: 104px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 760px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  background: var(--water-deep);
  color: var(--white);
  display: grid;
  gap: 4px;
  padding: 28px 18px 110px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.bottom-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 33, 42, 0.1);
  border-radius: 8px 8px 0 0;
  bottom: 0;
  box-shadow: 0 -10px 28px rgba(7, 80, 107, 0.16);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px;
  left: 0;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 25;
}

.bottom-bar a,
.phone-fab {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  text-decoration: none;
}

.bottom-bar a:first-child {
  background: var(--sun);
  color: #172117;
}

.bottom-bar a:nth-child(2) {
  background: var(--water);
  color: var(--white);
}

.phone-fab {
  background: var(--water-deep);
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.phone-fab svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 21px;
}

.phone-sheet {
  background: rgba(7, 32, 40, 0.35);
  bottom: 0;
  display: none;
  left: 0;
  padding: 18px 12px 86px;
  position: fixed;
  right: 0;
  z-index: 30;
}

.phone-sheet.open {
  display: block;
}

.phone-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  margin-left: auto;
  max-width: 360px;
  padding: 18px;
  position: relative;
}

.phone-card strong {
  font-size: 20px;
}

.phone-card span {
  color: var(--muted);
}

.sheet-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
  height: 34px;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
}

.sheet-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.sheet-actions a {
  background: var(--water);
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  min-height: 48px;
  padding: 13px;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 720px) {
  .site-header {
    padding: 18px 28px;
  }

  .top-nav {
    align-items: center;
    display: flex;
    gap: 20px;
  }

  .menu-button {
    display: none;
  }

  .top-nav a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  }

  .hero {
    min-height: 84svh;
    padding: 130px 38px 68px;
  }

  h1 {
    font-size: 86px;
  }

  h2 {
    font-size: 44px;
  }

  .section {
    padding: 76px 38px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .algae-section,
  .about-section {
    align-items: center;
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .field-row.three {
    grid-template-columns: 1fr 92px 130px;
  }

  .bottom-bar {
    left: 50%;
    max-width: 560px;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
  }
}

@media (min-width: 1060px) {
  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plan-card {
    align-content: start;
  }

  .plan-card img {
    aspect-ratio: 4 / 3;
  }
}

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

  .hero-video {
    display: none;
  }

  .hero {
    background: linear-gradient(180deg, rgba(7, 80, 107, 0.48), rgba(7, 80, 107, 0.82)),
      url("/assets/hero-pool-temp-poster.jpg") center / cover;
  }
}
