:root {
  --dark-green: #123524;
  --medium-green: #165D2D;
  --light-green: #A6D63F;
  --purple: #A78BFA;
  --red: #F26F63;
  --blue: #6C7BFF;
  --black: #000000;
  --white: #F8FAFC;
  --dark-grey: #333333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  background: linear-gradient(90deg, var(--blue) 0%, var(--medium-green) 90%);
}

.hero-logomark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -22%;
  height: 120%;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.03;
  pointer-events: none;
}

.hero-logo-corner {
  position: absolute;
  z-index: 2;
  top: 1.75rem;
  left: 1.75rem;
  height: 3.75rem;
  width: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* `safe` keeps the content centered normally, but switches to top-aligned
     if it ever outgrows the box — plain `center` would spill out of both ends,
     sliding under the corner logo. Backstop for extreme zoom / text-size
     settings; the sign-up form itself lives in a dialog, so the hero content
     is short enough to fit under normal conditions. */
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  padding: 6rem 1.5rem 2rem;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .hero-content {
    padding: 7rem 4rem 2rem;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.75);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 3rem;
}

.hero-title strong {
  font-weight: 700;
}

.hero-dot {
  color: var(--light-green);
}

.hero-body {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.92);
}

.hero-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}

.hero-footer p {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.75);
}

.hero-footer a {
  color: inherit;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.hero-footer a:hover {
  color: var(--light-green);
}

/* Compact spacing on short viewports so the page fits without scrolling.
   Stepped in three tiers rather than one hard jump — a typical laptop window
   is only ~750-800px tall, so that range needs to still look generous, not
   squeezed. Only genuinely short viewports get the tighter treatment. */
@media (max-height: 900px) {
  .hero-logo-corner {
    top: 1.5rem;
    left: 1.5rem;
    height: 3.25rem;
  }

  .hero-content {
    padding: 5rem 1.5rem 1.5rem;
  }

  .eyebrow {
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.75rem, 9vw, 4.5rem);
    margin-bottom: 2rem;
  }

  .signup-cta {
    margin-top: 1.5rem;
  }

  .hero-footer {
    padding: 1rem 1.5rem 1.25rem;
  }
}

@media (min-width: 48rem) and (max-height: 900px) {
  .hero-content {
    padding: 5rem 4rem 1.5rem;
  }
}

@media (max-height: 700px) {
  .hero-logo-corner {
    top: 1.25rem;
    left: 1.25rem;
    height: 2.75rem;
  }

  .hero-content {
    padding: 4.25rem 1.5rem 1rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.25rem);
    margin-bottom: 1.25rem;
  }

  .hero-body {
    font-size: 1rem;
  }

  .signup-cta {
    margin-top: 1rem;
  }

  .hero-footer {
    padding: 0.75rem 1.5rem 1rem;
  }
}

@media (min-width: 48rem) and (max-height: 700px) {
  .hero-content {
    padding: 4.25rem 4rem 1rem;
  }
}

@media (max-height: 500px) {
  .hero-logo-corner {
    top: 1rem;
    left: 1rem;
    height: 2.25rem;
  }

  .hero-content {
    padding: 3.5rem 1.5rem 1rem;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .hero-body {
    font-size: 0.9375rem;
  }

  .signup-cta {
    margin-top: 0.75rem;
  }

  .hero-footer {
    padding: 0.5rem 1.5rem 0.5rem;
  }
}

/* Sign-up call to action (opens the dialog below) */

.signup-cta {
  width: 100%;
  max-width: 24rem;
  margin-top: 2rem;
  box-sizing: border-box;
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark-green);
  background-color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.signup-cta:hover {
  background-color: var(--light-green);
  transform: translateY(-1px);
}

/* Sign-up dialog */

.signup-dialog {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  /* The `* { margin: 0 }` reset clobbers the UA stylesheet's `margin: auto`,
     which is what centers a modal dialog — restore it explicitly. */
  inset: 0;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 0.875rem;
  background-color: var(--dark-green);
  color: var(--white);
  overflow: auto;
}

.signup-dialog::backdrop {
  background-color: rgba(9, 20, 14, 0.6);
  backdrop-filter: blur(3px);
}

.signup-dialog-inner {
  position: relative;
  padding: 2.25rem 2rem 2rem;
}

.signup-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(248, 250, 252, 0.6);
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.signup-dialog-close:hover {
  color: var(--white);
}

.signup-dialog-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.signup-dialog-intro {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .signup-dialog[open] {
    animation: signup-dialog-in 0.2s ease-out;
  }

  .signup-dialog[open]::backdrop {
    animation: signup-backdrop-in 0.2s ease-out;
  }
}

@keyframes signup-dialog-in {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes signup-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Newsletter signup (MailerLite embed) */

.signup-form {
  width: 100%;
}

.signup-form .ml-form-embedWrapper,
.signup-form .ml-form-align-center {
  width: 100%;
}

.signup-form .ml-form-embedBody {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form .ml-block-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form .ml-form-formContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form .ml-form-fieldRow {
  width: 100%;
}

.signup-form input.form-control {
  width: 100%;
  box-sizing: border-box;
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--white);
  background-color: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.35);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.signup-form input.form-control::placeholder {
  color: rgba(248, 250, 252, 0.6);
}

.signup-form .ml-field-group {
  position: relative;
}

.signup-form .field-required {
  display: none;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  pointer-events: none;
}

.signup-form .ml-field-group.has-error input.form-control {
  border-color: var(--red);
  padding-right: 5rem;
}

.signup-form .ml-field-group.has-error .field-required {
  display: block;
}

.signup-form input.form-control:focus {
  outline: none;
  border-color: var(--light-green);
  background-color: rgba(248, 250, 252, 0.12);
}

.signup-form .ml-form-embedSubmit {
  width: 100%;
}

.signup-form .ml-form-embedSubmit button.primary {
  width: 100%;
  box-sizing: border-box;
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark-green);
  background-color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.signup-form .ml-form-embedSubmit button.primary:hover {
  background-color: var(--light-green);
  transform: translateY(-1px);
}

.signup-form .ml-form-embedSubmit button.loading {
  display: none;
}

.signup-form .ml-form-embedSubmitLoad {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.signup-form .ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid var(--dark-green);
  border-color: var(--dark-green) var(--dark-green) var(--dark-green) transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}

@keyframes ml-form-embedSubmitLoad {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.signup-form .ml-form-embedPermissions p {
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 200;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.65);
  margin: 0;
}

.signup-form .ml-form-embedPermissions a {
  color: rgba(248, 250, 252, 0.8);
}

.signup-form .row-success .ml-form-successContent h4 {
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.signup-form .row-success .ml-form-successContent p {
  font-family: "Mozilla Text", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.85);
}

.signup-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.signup-form .g-recaptcha {
  transform: scale(1);
  transform-origin: 0 0;
}

/* Privacy policy page */

.policy-body {
  background-color: var(--dark-green);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.policy {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.policy-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.policy-back:hover {
  color: var(--light-green);
}

.policy-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.policy-updated {
  font-size: 0.8125rem;
  font-weight: 200;
  color: rgba(248, 250, 252, 0.6);
  margin-bottom: 2.5rem;
}

.policy p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.92);
  margin-bottom: 1.25rem;
}

.policy h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--light-green);
  margin: 2rem 0 0.75rem;
}

.policy a {
  color: var(--white);
  text-decoration: underline;
}

.policy a:hover {
  color: var(--light-green);
}

.policy-footer {
  position: static;
}