:root {
  --color-bg: #003D7F;
  --color-accent: #00D97F;
  --color-white: #FFFFFF;
  --color-body-text: #CFDDF2;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-pill: 999px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-white);
}

ul, ol {
  list-style: none;
}

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

.rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---------- Hero layout ---------- */

.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--color-bg);
}

.hero-left {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 50%;
  max-width: 50%;
  height: 100vh;
  overflow: hidden;
}

.hero-right {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 40px 36px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--color-bg);
  transition: background-color 0.4s ease;
}

.hero-right.show-join {
  background: var(--color-white);
}

/* ---------- Left column image ---------- */

.hero-left-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Left column overlays ---------- */

.hero-left-tagline {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 1;
}

.hero-left-tagline p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero-left-tagline .rule {
  margin-top: 10px;
}

.hero-left-badge {
  position: absolute;
  left: 40px;
  bottom: 48px;
  width: 210px;
  height: 210px;
  z-index: 1;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 30px;
}

.hero-left-badge p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-white);
}

.hero-left-badge .rule {
  margin-top: 8px;
  width: 40px;
}

/* ---------- Right column: logo ---------- */

.logo-lockup {
  display: block;
  align-self: flex-end;
  text-align: right;
  margin-bottom: 36px;
  cursor: pointer;
}

.logo-lockup p {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-white);
  transition: color 0.4s ease;
}

.logo-line2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.logo-rule {
  width: 40px;
  height: 6px;
  flex-shrink: 0;
}

.hero-right.show-join .logo-lockup p {
  color: var(--color-bg);
}

/* ---------- Panel crossfade ---------- */

.panel-stack {
  position: relative;
}

.panel {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.panel-join {
  display: none;
  opacity: 0;
}

/* While transitioning, both panels overlap in one grid cell so they can
   cross-fade without a layout jump; is-transitioning is added/removed by JS. */
.panel-stack.is-transitioning {
  display: grid;
}

.panel-stack.is-transitioning > .panel {
  grid-area: 1 / 1;
  min-width: 0;
}

.hero-right.show-join .panel-hero {
  opacity: 0;
}

.hero-right.show-join .panel-join {
  opacity: 1;
}

/* ---------- Headline ---------- */

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  margin-top: 8px;
}

.headline .line {
  display: block;
  font-size: clamp(34px, 5.3vw, 82px);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.line-outline {
  color: var(--color-bg);
  -webkit-text-stroke: 2px var(--color-white);
}

.line-green {
  color: var(--color-accent);
}

.line-white {
  color: var(--color-white);
}

.headline-rule {
  margin-top: 22px;
  margin-bottom: 22px;
}

/* ---------- Paragraphs ---------- */

.lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-white);
  max-width: 660px;
  margin-bottom: 16px;
}

.body-copy {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body-text);
  max-width: 660px;
  margin-bottom: 30px;
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-white);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-white {
  border: 1.5px solid var(--color-white);
}

.btn-white:hover {
  background: var(--color-white);
  color: #000000;
}

.btn-green {
  border: 1.5px solid var(--color-accent);
}

.btn-green:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-green .arrow-circle {
  color: var(--color-accent);
}

.btn-green:hover .arrow-circle {
  color: var(--color-bg);
}

/* ---------- Join panel ---------- */

.eyebrow {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-bg);
  margin-bottom: 8px;
}

.join-headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
}

.join-headline .line {
  display: block;
  font-size: clamp(34px, 5.3vw, 82px);
  white-space: normal;
  letter-spacing: -0.01em;
}

.line-navy {
  color: var(--color-bg);
}

.join-rule {
  width: 70px;
  height: 6px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.join-copy {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-bg);
  max-width: 540px;
  margin-bottom: 32px;
}

.mailchimp-slot {
  max-width: 540px;
  margin-bottom: 12px;
}

.fine-print {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(0, 61, 127, 0.65);
  max-width: 540px;
}

/* ---------- Mailchimp embed override ---------- */

#mc_embed_signup {
  background: transparent;
  width: 100%;
  font: inherit;
  font-family: var(--font-body);
}

#mc_embed_signup form {
  padding: 0;
}

#mc_embed_signup .indicates-required {
  display: none;
}

#mc_embed_signup .mc-field-group {
  width: 100%;
  margin-bottom: 16px;
  vertical-align: top;
}

#mc_embed_signup .mc-field-group:has(#mce-FNAME),
#mc_embed_signup .mc-field-group:has(#mce-LNAME) {
  display: inline-block;
  width: calc(50% - 20px);
  vertical-align: top;
}

#mc_embed_signup .mc-field-group:has(#mce-FNAME) {
  margin-right: 20px;
}

#mc_embed_signup .mc-field-group > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#mc_embed_signup input.text,
#mc_embed_signup input.email,
#mc_embed_signup input.zip,
#mc_embed_signup select {
  width: 100%;
  height: auto !important;
  padding: 16px 20px !important;
  border: 1.5px solid #D8DEE8 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-bg);
  background: #fff;
}

#mc_embed_signup input.text::placeholder,
#mc_embed_signup input.email::placeholder,
#mc_embed_signup input.zip::placeholder {
  color: #98A2B3;
  font-weight: 500;
}

#mc_embed_signup select {
  appearance: none;
  -webkit-appearance: none;
  color: #98A2B3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'><path d='M1 1L7 7L13 1' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-left: 24px !important;
  padding-right: 44px !important;
}

#mc_embed_signup select:valid {
  color: var(--color-bg);
}

#mc_embed_signup .mc-field-group.input-group {
  margin-top: 4px;
  margin-bottom: 28px;
}

#mc_embed_signup .mc-field-group.input-group strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 12px;
}

#mc_embed_signup .mc-field-group.input-group ul {
  list-style: none;
}

#mc_embed_signup .mc-field-group.input-group ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-bg);
}

#mc_embed_signup .mc-field-group.input-group ul li input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

#mc_embed_signup .clear {
  margin-top: 4px;
}

#mc_embed_signup .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: auto !important;
  line-height: normal !important;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 18px 28px !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#mc_embed_signup .button:hover {
  background: #00c271;
}

#mce-responses .response {
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

#mce-error-response {
  color: #d64545;
}

#mce-success-response {
  color: var(--color-bg);
}

/* ---------- Scroll indicator ---------- */

.scroll-indicator {
  position: fixed;
  right: 40px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.scroll-indicator.is-visible {
  opacity: 1;
}

.scroll-indicator-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  animation: scrollIndicatorBounce 1.6s ease-in-out infinite;
}

.scroll-indicator-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.hero-right.show-join .scroll-indicator-label {
  color: var(--color-bg);
  text-shadow: none;
}

@keyframes scrollIndicatorBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-left,
  .hero-right {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .hero-left {
    position: relative;
    align-self: stretch;
    height: auto;
    margin-top: 86px;
  }

  .hero-left-image {
    height: auto;
  }

  .hero-left-tagline,
  .hero-left-badge {
    display: none;
  }

  .hero-right {
    padding: 32px 24px 48px;
  }

  .headline .line,
  .join-headline .line {
    font-size: 44px;
    white-space: normal;
  }

  .logo-lockup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    align-self: auto;
    text-align: left;
    background: var(--color-white);
    padding: 14px 24px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 50;
  }

  .logo-lockup p {
    color: var(--color-bg);
  }

  .logo-line2 {
    justify-content: flex-start;
  }

  .hero:has(.hero-right.show-join) {
    min-height: 0;
  }

  .hero:has(.hero-right.show-join) .hero-left {
    display: none;
  }

  .hero-right.show-join {
    padding-top: 104px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #mc_embed_signup .mc-field-group:has(#mce-FNAME),
  #mc_embed_signup .mc-field-group:has(#mce-LNAME) {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
