* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #003c3d;
  --bg-main: #005556;
  --bg-deep: #012b2c;

  --accent: #0fd39c;
  --accent-strong: #08b987;

  --text: #f6fffc;
  --muted: #c5ece0;

  --white-panel: #ffffff;
  --white-panel-soft: #f6fffc;

  --panel-text: #0c6560;
  --panel-text-strong: #003c3d;
  --panel-border: rgba(0, 60, 61, 0.08);

  --glass-border: rgba(255, 255, 255, 0.18);

  --success: #0c9e79;
  --error: #c84d4d;

  --shadow-xl: 0 26px 80px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.18);
  --shadow-device: 0 32px 70px rgba(0, 0, 0, 0.34);

  --header-height: 4.45rem;
  --header-top-gap: 0.75rem;
  --hero-nav-gap: 0.25rem;
  --hero-bottom-gap: max(0.55rem, calc(env(safe-area-inset-bottom) + 0.35rem));
  --scroll-cue-height: 4.4rem;
  --hero-stack-gap: 0.85rem;
  --hero-width: min(
    90vw,
    430px,
    calc(
      (
        100svh
        - env(safe-area-inset-top)
        - var(--header-top-gap)
        - var(--header-height)
        - var(--hero-nav-gap)
        - var(--scroll-cue-height)
        - var(--hero-stack-gap)
        - var(--hero-bottom-gap)
      ) * 0.4614
    )
  );
  --hero-progress: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(15, 211, 156, 0.2), transparent 26%),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 50% 85%, rgba(15, 211, 156, 0.12), transparent 22%),
    linear-gradient(135deg, var(--bg-deep), var(--bg-light), var(--bg-main), var(--bg-light));
  background-size: 140% 140%;
}

img {
  max-width: 100%;
}

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

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

a:visited {
  color: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem 0 2rem;
}

.legal-page-shell {
  padding-top: 0.35rem;
}

body.home-page .page-shell {
  width: 100%;
  max-width: none;
  padding: 0 0 calc(2rem + env(safe-area-inset-bottom));
}

.site-header {
  position: sticky;
  top: 0.55rem;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

body.home-page .site-header {
  position: fixed;
  top: max(0.75rem, calc(env(safe-area-inset-top) + 0.35rem));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 1rem), 760px);
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(15, 211, 155, 0.762);
  border: 1px solid rgba(15, 211, 156, 0.22);
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 211, 155, 0.762);
  border: 1px solid rgba(15, 211, 156, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-nav a:hover {
  background: rgba(15, 211, 156, 0.16);
}

.landing-flow {
  position: relative;
}

body.home-page .landing-flow {
  padding-top: 0;
}

.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  padding:
    calc(
      env(safe-area-inset-top)
      + var(--header-top-gap)
      + var(--header-height)
      + var(--hero-nav-gap)
    )
    1rem
    var(--hero-bottom-gap);
}

.hero-bundle {
  width: 100%;
  min-height: calc(
    100svh
    - env(safe-area-inset-top)
    - var(--header-top-gap)
    - var(--header-height)
    - var(--hero-nav-gap)
    - var(--hero-bottom-gap)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hero-stack-gap);
}

.hero-visual {
  width: var(--hero-width);
  max-width: 100%;
  will-change: transform, opacity;
  transform:
    translate3d(0, calc(var(--hero-progress) * -3.5svh), 0)
    scale(calc(1 - (var(--hero-progress) * 0.04)));
  opacity: calc(1 - (var(--hero-progress) * 0.16));
}

.hero-device {
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(var(--shadow-device));
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.js-enhanced .hero-shot {
  opacity: 0;
  transition: opacity 1.3s ease;
}

.js-enhanced.loaded .hero-shot {
  opacity: 1;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: var(--hero-width);
  max-width: calc(100vw - 2rem);
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-weight: 700;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transform:
    translate3d(0, calc(var(--hero-progress) * -2.4svh), 0)
    scale(calc(1 - (var(--hero-progress) * 0.02)));
  opacity: calc(1 - (var(--hero-progress) * 0.42));
}

.scroll-arrow {
  font-size: 1.2rem;
  line-height: 1;
  animation: cueBounce 1.4s ease-in-out infinite;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.overlay-shell {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 1rem), 760px);
  margin: calc(100svh - 5rem) auto 0;
  padding-bottom: 0.25rem;
}

.swoop-stack {
  position: relative;
  display: grid;
  gap: 1rem;
  perspective: 1600px;
  transform: translate3d(0, calc((1 - var(--hero-progress)) * 14svh), 0);
  will-change: transform;
}

.swoop-section {
  position: relative;
  overflow: hidden;
  background: var(--white-panel);
  color: var(--panel-text);
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

.swoop-section:first-child {
  transform-origin: top center;
  transform: rotateX(calc((1 - var(--hero-progress)) * -13deg));
}

.swoop-section:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  opacity: calc(0.55 + (var(--hero-progress) * 0.2));
  pointer-events: none;
}

.section-inner {
  padding: 1.45rem;
}

.compact-section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow.on-light {
  background: rgba(15, 211, 156, 0.12);
  border: 1px solid rgba(15, 211, 156, 0.18);
  color: var(--accent-strong);
}

.hero-title {
  margin: 0 0 0.3rem;
  color: var(--panel-text-strong);
  font-size: clamp(2.45rem, 8vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--panel-text);
  font-size: 1.08rem;
  line-height: 1.5;
}

.section-kicker {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.swoop-section h2 {
  margin: 0 0 0.7rem;
  color: var(--panel-text-strong);
  font-size: clamp(1.75rem, 6vw, 2.3rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--panel-text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
}

.light-features .feature-item {
  background: var(--white-panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1rem;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  font-size: 1.02rem;
}

.feature-item p {
  margin: 0;
  color: var(--panel-text);
  line-height: 1.6;
}

.form-intro.on-light {
  margin: 0 0 1rem;
  color: var(--panel-text);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

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

.field {
  margin-bottom: 0.15rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--panel-text-strong);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border-radius: 18px;
  padding: 1rem 1rem;
  border: 1px solid rgba(0, 60, 61, 0.12);
  background: #f8fffc;
  color: var(--panel-text-strong);
  outline: none;
}

select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 56px;
  padding-right: 3.25rem;
  line-height: 1.25;
  background-color: #f8fffc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23003c3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 9px;
}


select::-ms-expand {
  display: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 60, 61, 0.45);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 211, 156, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 211, 156, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 1rem 0;
}

.checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0.2rem 0 0;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(0, 60, 61, 0.38);
  background: #ffffff;
  box-shadow: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 20px;
}

.checkbox input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease;
  background: var(--accent-strong);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 80% 0, 38% 62%);
}

.checkbox input[type="checkbox"]:checked {
  border-color: rgba(15, 211, 156, 0.9);
  background: rgba(15, 211, 156, 0.08);
}

.checkbox input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.checkbox input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(15, 211, 156, 0.12);
}


.checkbox span {
  color: var(--panel-text);
  line-height: 1.55;
}

.checkbox a {
  color: var(--accent-strong);
  font-weight: 700;
}

.primary-button {
  width: 100%;
  padding: 1rem 1rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #003c3d;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 211, 156, 0.22);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.card.legal-card,
.legal-card {
  background: var(--white-panel);
  color: var(--panel-text);
  border-radius: 28px;
  padding: 1.2rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-xl);
}

.legal-eyebrow {
  margin-bottom: 0.8rem;
}

.legal-card > :first-child {
  margin-top: 0;
}

.legal-card h1 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  color: var(--panel-text-strong);
}

.legal-card p,
.legal-card li,
.legal-card .muted {
  color: var(--panel-text);
}

.legal-card a {
  color: var(--accent-strong);
  font-weight: 700;
}

.legal-card hr {
  border: none;
  border-top: 1px solid rgba(0, 60, 61, 0.1);
  margin: 2rem 0;
}

.narrow-shell {
  width: min(920px, calc(100% - 1rem));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 0 0.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

body.home-page .site-footer {
  width: min(calc(100% - 1rem), 760px);
  margin: 1.5rem auto 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
  .page-shell {
    width: min(1200px, calc(100% - 2rem));
    padding-top: 1rem;
  }

  .legal-page-shell {
    padding-top: 1rem;
  }

  body.home-page .site-header {
    width: min(calc(100% - 2rem), 920px);
    top: max(1rem, calc(env(safe-area-inset-top) + 0.35rem));
  }

  .hero-pin {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-visual {
    width: min(var(--hero-width), 440px);
  }

  .overlay-shell {
    width: min(calc(100% - 2rem), 820px);
    margin-top: calc(100svh - 7rem);
  }

  .swoop-stack {
    gap: 1.2rem;
  }

  .section-inner {
    padding: 2rem;
  }

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

  .single-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page .site-footer {
    width: min(calc(100% - 2rem), 820px);
  }
}

@media (min-width: 1100px) {
  .hero-visual {
    width: min(var(--hero-width), 440px);
  }

  .overlay-shell {
    width: min(calc(100% - 2rem), 860px);
    margin-top: calc(100svh - 8rem);
  }

  body.home-page .site-footer {
    width: min(calc(100% - 2rem), 860px);
  }
}

@media (max-width: 768px) {
  .site-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .scroll-cue {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-visual {
    will-change: auto;
    transform:
      translate3d(0, calc(var(--hero-progress) * -2.2svh), 0)
      scale(calc(1 - (var(--hero-progress) * 0.025)));
    opacity: calc(1 - (var(--hero-progress) * 0.14));
  }

  .hero-device {
    background: transparent;
    border: 0;
    filter: none;
    box-shadow: none;
  }

  .scroll-cue {
    transform:
      translate3d(0, calc(var(--hero-progress) * -1.4svh), 0)
      scale(calc(1 - (var(--hero-progress) * 0.01)));
    opacity: calc(1 - (var(--hero-progress) * 0.34));
  }

  .scroll-arrow {
    animation: none;
  }

  .swoop-stack {
    perspective: none;
    will-change: auto;
    transform: translate3d(0, calc((1 - var(--hero-progress)) * 9svh), 0);
  }

  .swoop-section:first-child {
    transform: rotateX(calc((1 - var(--hero-progress)) * -5deg));
  }
}

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

  body,
  .scroll-arrow,
  .hero-shot {
    animation: none !important;
    transition: none !important;
  }

  .hero-visual,
  .scroll-cue,
  .swoop-stack,
  .swoop-section:first-child {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 640px) {
  select {
    min-height: 54px;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    padding-left: 1rem;
    padding-right: 3rem;
    font-size: 16px;
    background-position: right 0.95rem center;
    background-size: 13px 8px;
  }
}


.legal-page-shell .site-header {
  margin-bottom: 0.65rem;
}

.contact-note {
  margin: 0 0 1rem;
}
