:root {
  --color-text-primary: #0c110f;
  --color-text-secondary: #7d7d7d;
  --color-text-placeholder: #afafaf;
  --color-btn-primary: #40b588;
  --color-white: #ffffff;
  --color-success: #40b588;
  --color-error: #e53935;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
}

body {
  background-color: #ffffff;
  background-image:
    radial-gradient(
      circle at 100% 10%,
      rgba(64, 181, 136, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 0% 90%,
      rgba(97, 195, 158, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 40%,
      rgba(188, 255, 229, 0.2) 0%,
      transparent 35%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
label,
small,
strong,
em,
li,
blockquote,
cite,
footer {
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.text-display {
  font-weight: 800;
  font-style: normal;
  font-size: 5rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
}

.heading-bold {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.375rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.text-regular {
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1rem, 1.5vh + 0.5rem, 1.5rem);
  line-height: 1.4;
  letter-spacing: 0;
}

.text-medium {
  font-weight: 400;
  font-style: normal;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0;
}

.text-small {
  font-weight: 400;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0;
}

.color-primary {
  color: var(--color-text-primary);
}

.color-secondary {
  color: var(--color-text-secondary);
}

.color-placeholder {
  color: var(--color-text-placeholder);
}

.color-btn-primary {
  color: var(--color-btn-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.btn {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 1.125rem 3.5625rem;
  height: 3rem;
  border-radius: 2.5rem;
  border: none;
  cursor: pointer;
  margin: 0 1.375rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-0.0625rem);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-btn-primary);
  color: var(--color-white);
}

.input {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: -0.02em;
  width: 25.5rem;
  height: 2.8rem;
  padding: 0 2rem;
  border: 0.0625rem solid var(--color-text-primary);
  border-radius: 1.78125rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--color-btn-primary);
}

.input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.input::placeholder {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text-placeholder);
}

.input::-webkit-input-placeholder {
  color: var(--color-text-placeholder);
}

.input:-ms-input-placeholder {
  color: var(--color-text-placeholder);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

.container > footer {
  margin-top: auto;
  padding: 1.5rem 6.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  width: 50%;
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 2rem;
  width: 50%;
  justify-content: flex-end;
}

.footer-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-btn-primary);
}

.content-container {
  margin-top: 2rem;
  max-width: 51.875rem;
}

.subscription-content-container {
  margin-top: 5rem;
}

.hero-visuals {
  position: relative;
  width: 100%;
}

.mobile-img {
  max-width: 100%;
  min-height: 47vh;
  object-fit: contain;
}

.review-img {
  max-width: 100vw;
  height: auto;
  min-height: 14vh;
  object-fit: contain;
  position: absolute;
  right: 190;
  top: 58%;
  transform: translateY(-50%);
  padding-left: 10px;
}

@media (min-width: 1400px) {
  .hero-visuals {
    max-width: 80rem;
    margin: 2rem auto;
  }
}

@media (max-width: 1024px) {
  .hero-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .mobile-img {
    max-width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .review-img {
    position: relative;
    max-width: 18rem;
    margin-top: 6.5rem;
    margin-bottom: -6.5rem;
    margin-right: -5%;
  }
}

.logo-img {
  margin-top: 2.25rem;
  margin-bottom: 1.75rem;
  max-width: 100%;
  max-height: 15vh;
  object-fit: contain;
}

.content-container .logo-img-main {
  margin-bottom: 8.25rem;
  max-width: 100%;
  height: auto;
}

.content-container .content-img-container {
  margin-bottom: 3vh;
}

.form-container {
  margin-bottom: 2.5rem;
}

.content-heading {
  margin-bottom: 1.25rem;
}

.form-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-container form .input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.form-container form .input-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: fit-content;
}

.form-container form .input-group .input {
  flex-shrink: 0;
  width: 25.5rem;
}

.form-message {
  display: none;
  margin-top: 0.5rem;
  margin-left: 2rem;
  text-align: left;
  width: 25.5rem;
}

.form-message.show {
  display: block;
}

.form-message-success {
  color: var(--color-success);
}

.form-message-error {
  color: var(--color-error);
}

.required-asterisk {
  margin-left: 2rem;
}

.subtext {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  font-weight: 600;
  line-height: 1.2 !important;
  color: #0e1412;
  margin-bottom: 1rem;
}

.supporting-line {
  font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
  font-weight: 500;
}

.bottom-line {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  font-weight: 600;
  color: #0e1412;
  margin-bottom: 1.5rem;
}

.content-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content-img-container img {
  max-width: 100%;
  height: clamp(2rem, 5vh, 3.5rem);
}

.text-body {
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: 0;
  text-align: center;
}

.input--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .content-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .text-display {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .heading-bold {
    font-size: 2.25rem;
    line-height: 1.4;
  }

  .text-medium {
    font-size: 1.25rem;
  }

  .text-body {
    font-size: 1rem;
    line-height: 1.5;
  }

  .form-container form {
    width: 100%;
  }

  .form-container form .input-wrapper {
    max-width: 100%;
    align-items: stretch;
  }

  .form-container form .input-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .form-message {
    width: 100%;
    margin-left: 0;
  }

  .input {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .btn {
    width: 100%;
    margin: 0;
  }

  .content-container .logo-img-main {
    margin-bottom: 3rem;
    max-width: 100%;
    height: auto;
  }

  .logo-img {
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: auto;
  }

  .mobile-img {
    margin-bottom: 0rem;
    max-width: 100%;
    height: auto;
  }

  .content-img-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .content-img-container img {
    max-width: 12rem;
    height: auto;
  }

  .content-img-container img:first-child {
    margin-right: 0;
  }

  .content-heading {
    margin-bottom: 0.75rem;
  }

  .content-container .content-img-container {
    margin-bottom: 2rem;
  }

  .container > footer {
    padding: 2rem 1rem;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-left {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .content-container {
    padding: 0 0.5rem;
  }

  .text-display {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .heading-bold {
    font-size: 1.5rem;
  }

  .text-medium {
    font-size: 1.125rem;
  }

  .text-regular {
    font-size: 1rem;
  }

  .text-body {
    font-size: 0.9375rem;
  }

  .input {
    font-size: 1rem;
    padding: 0 1.25rem;
    height: 3rem;
  }

  .btn {
    font-size: 0.9375rem;
    padding: 1rem 2rem;
    height: 3rem;
  }

  .content-container .logo-img-main {
    margin-bottom: 2rem;
  }

  .logo-img {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .mobile-img {
    margin-top: 0rem;
  }

  .content-img-container img {
    max-width: 10rem;
  }

  .form-container {
    margin-bottom: 1.5rem;
  }

  .content-container {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content-container {
    max-width: 45rem;
    padding: 0 2rem;
  }

  .text-display {
    font-size: 3.5rem;
  }

  .input {
    width: 22rem;
  }
}

/* Legal Pages Styling */
.legal-page {
  background: #fffcf8;
  min-height: 100vh;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: left;
}

.legal-content span,
.legal-content p,
.legal-content li,
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-family: "Nunito Sans", sans-serif !important;
  color: var(--color-text-primary) !important;
}

.legal-content p {
  margin-bottom: 1.5rem !important;
  line-height: 1.6 !important;
  font-size: 1.125rem !important;
  text-align: justify !important;
}

.legal-content h1,
.legal-content h4:first-of-type {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 2rem !important;
  text-align: left !important;
  color: var(--color-text-primary) !important;
}

.legal-content h4 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
}

/* Aggressively strip indents and white-space hacks from original content */
.legal-content * {
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem !important;
  padding-left: 1.5rem !important; /* This is the only place we want horizontal indent */
  list-style-position: outside !important;
}

.legal-content ul[style],
.legal-content ol[style] {
  padding-inline-start: 1.5rem !important;
}

.legal-content li {
  margin-bottom: 0.75rem !important;
  line-height: 1.6 !important;
  font-size: 1.125rem !important;
  display: list-item !important;
  list-style-type: disc !important;
  padding-left: 0.75rem !important; /* Gap between bullet and text */
  white-space: normal !important;
  text-align: justify !important;
}

.legal-content p {
  display: block !important;
  white-space: normal !important;
  margin-bottom: 1.5rem !important;
}

.legal-content li p,
.legal-content li span,
.legal-content li div {
  display: inline !important;
  white-space: normal !important;
}

.legal-content span {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Ensure headings stay as blocks */
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  display: block !important;
  margin-bottom: 1.5rem !important;
}

.legal-content a {
  color: var(--color-btn-primary) !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .legal-container {
    max-width: none;
    margin: 0;
    padding: 2rem 1.5rem;
  }

  .legal-content h1,
  .legal-content > h4:first-of-type,
  .legal-content > p:first-of-type,
  .legal-content > p:first-of-type span {
    font-size: 2rem !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }

  .legal-content p,
  .legal-content li,
  .legal-content span {
    font-size: 1rem !important;
  }
}
@media (max-height: 800px) {
  .logo-img {
    margin-top: 2vh;
    margin-bottom: 2vh;
  }
  .mobile-img {
    margin-top: 1vh;
    max-height: 30vh;
  }
  .content-container .content-img-container {
    margin-bottom: 2vh;
  }
  .container > footer {
    padding: 1rem 1.5rem;
  }
  .text-medium {
    font-size: 1.25rem;
  }
  .text-display {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  .content-container .logo-img-main {
    margin-bottom: 4vh;
  }
}
