:root {
  color-scheme: light;
  --bg: #f8fcf7;
  --bg-soft: #ffffff;
  --bg-muted: #eaf5ee;
  --card: #ffffff;
  --text: #102331;
  --text-muted: #526775;
  --primary: #01508e;
  --primary-soft: #e6f1fa;
  --green: #00cc66;
  --green-dark: #058b4a;
  --border: rgba(1, 80, 142, 0.15);
  --shadow: 0 24px 70px rgba(1, 80, 142, 0.13);
  --shadow-soft: 0 16px 42px rgba(16, 35, 49, 0.1);
  --radius: 22px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061826;
  --bg-soft: #071e2e;
  --bg-muted: #102f45;
  --card: #0b2435;
  --text: #f8fcf7;
  --text-muted: #bfd2dd;
  --primary: #4ba3e3;
  --primary-soft: rgba(75, 163, 227, 0.16);
  --green: #00cc66;
  --green-dark: #62e79f;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 16px 46px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 204, 102, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(1, 80, 142, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.brand-logo {
  width: 146px;
  height: auto;
}

:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .footer-logo {
  filter: drop-shadow(0 10px 20px rgba(0, 204, 102, 0.18));
}

.brand-fallback {
  display: none;
  color: var(--green);
  font-weight: 800;
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 12px 0;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  color: var(--green-dark);
}

.theme-icon {
  display: none;
  width: 22px;
  height: 22px;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle {
  color: var(--green);
  background: var(--bg-muted);
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #0077bd 56%, var(--green));
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 16px 34px rgba(1, 80, 142, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(1, 80, 142, 0.28);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-small {
  min-height: 44px;
  padding: 11px 16px;
  font-size: 0.9rem;
}

.button-secondary {
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.2vw, 3.85rem);
  line-height: 1.06;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 700;
}

.hero-subhead,
.section-heading p,
.content-column p,
.review-copy .lead {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.hero-actions .button {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.image-card,
.phone-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card), var(--bg-muted));
  box-shadow: var(--shadow);
}

.image-card img,
.image-card video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-image-card {
  width: min(100%, 460px);
  min-height: 500px;
  justify-self: end;
}

.hero-image-card img,
.hero-image-card video {
  min-height: 500px;
}

.hero-stat {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(6, 24, 38, 0.78);
  color: #fff;
  backdrop-filter: blur(16px);
}

.hero-stat strong {
  color: var(--green);
  font-size: 1.12rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.mini-card,
.feature-card,
.lead-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.mini-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: span 2;
}

.mini-card:nth-child(5),
.mini-card:nth-child(6),
.mini-card:nth-child(7) {
  grid-column: span 2;
}

.mini-card:nth-child(7) {
  grid-column: 3 / span 2;
}

.mini-card span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-card h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.mini-card p {
  margin: auto 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.split-section {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-muted) 44%, transparent));
}

.split-section.alt {
  background: transparent;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(350px, 1.08fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 42px;
}

.split-grid.reverse {
  grid-template-columns: minmax(350px, 1.08fr) minmax(0, 0.92fr);
}

.split-grid.reverse .content-column {
  order: 2;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--green), var(--primary));
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--card) 88%, transparent);
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 18px;
  align-items: end;
}

.phone-card {
  align-self: stretch;
  padding: 10px;
}

.phone-card img {
  height: 100%;
  min-height: 330px;
  object-fit: contain;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
}

.feature-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--primary));
}

.feature-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.why-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 70%, transparent), transparent),
    var(--bg-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.review-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--green) 10%, transparent)),
    var(--bg);
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.review-copy {
  position: sticky;
  top: 110px;
}

.review-copy h3 {
  margin-top: 32px;
}

.lead-form {
  padding: 30px;
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.form-heading p {
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.full-span {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-soft) 88%, var(--card));
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}

.was-validated input:invalid,
.was-validated select:invalid,
.was-validated .checkbox-field input:invalid {
  border-color: #d44545;
}

.checkbox-field {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--green);
  padding: 0;
}

.form-error,
.form-success {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.form-error {
  background: rgba(212, 69, 69, 0.12);
  color: #b92d2d;
}

[data-theme="dark"] .form-error {
  color: #ff9e9e;
}

.form-success {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green-dark);
}

.form-button {
  width: auto;
  min-height: 44px;
  padding: 11px 16px;
  margin-top: 22px;
  font-size: 0.9rem;
  justify-self: center;
}

.site-footer {
  padding: 44px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  width: 132px;
}

.footer-name {
  display: none;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer-context {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.copyright {
  text-align: right;
}

.image-missing {
  min-height: 260px;
}

.image-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 24%, transparent), transparent),
    linear-gradient(45deg, var(--bg-muted), var(--card));
}

.reveal {
  animation: rise 560ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .why-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse .content-column {
    order: 0;
  }

  .hero-image-card,
  .hero-image-card img,
  .hero-image-card video {
    min-height: 440px;
  }

  .hero-image-card {
    width: min(100%, 560px);
    justify-self: center;
  }

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

  .mini-card,
  .mini-card:nth-child(5),
  .mini-card:nth-child(6),
  .mini-card:nth-child(7) {
    grid-column: auto;
  }

  .review-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .brand-logo {
    width: 126px;
  }

  .header-actions {
    gap: 8px;
  }

  .button-small {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .header-actions .button-small {
    min-width: 0;
    padding: 10px 14px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 600;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.6vw, 2.95rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .form-button {
    width: min(100%, 340px);
    max-width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.66rem;
    justify-self: center;
    white-space: nowrap;
  }

  .button-secondary {
    width: 100%;
  }

  .hero-image-card,
  .hero-image-card img,
  .hero-image-card video,
  .image-card img {
    min-height: 310px;
  }

  .hero-image-card {
    width: 100%;
  }

  .hero-stat {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .pain-grid,
  .benefit-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid,
  .feature-grid {
    display: flex;
    gap: 16px;
    margin-inline: -14px;
    padding: 0 14px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pain-grid::-webkit-scrollbar,
  .feature-grid::-webkit-scrollbar {
    display: none;
  }

  .mini-card,
  .feature-card {
    flex: 0 0 min(86vw, 420px);
    min-height: 220px;
    gap: 10px;
    scroll-snap-align: start;
  }

  .mini-card p {
    margin-top: 10px;
  }

  .feature-card {
    padding: 26px;
  }

  .media-stack {
    grid-template-columns: 1fr;
  }

  .phone-card {
    max-width: 210px;
    justify-self: center;
  }

  .review-grid {
    gap: 32px;
  }

  .lead-form {
    padding: 22px;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .header-actions {
    justify-content: space-between;
  }

  .header-actions .button-small {
    font-size: 0.68rem;
    padding-inline: 12px;
  }

}
