:root {
  color-scheme: light;
  --ink: #003b5c;
  --muted: #536872;
  --cream: #f7f3ea;
  --paper: #ffffff;
  --denim: #003b5c;
  --nile: #007681;
  --vine: #4a7729;
  --cherubim: #f0b323;
  --spark: #d86018;
  --line: rgba(0, 59, 92, 0.14);
  --shadow: 0 28px 80px rgba(0, 59, 92, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(0, 59, 92, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 59, 92, 0.08) 1px, transparent 1px),
    var(--cream);
  background-size: 44px 44px;
}

.signup-section {
  width: min(1180px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(30px, 4.6vw, 58px);
}

.signup-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: var(--cherubim);
}

.content {
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(42px, 6vh, 72px);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--nile);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0 0 22px;
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 550px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.signup-form {
  max-width: 580px;
}

.hidden-field {
  display: none;
}

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

.field label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: #fdfbf6;
}

.field input:focus {
  border-color: rgba(0, 118, 129, 0.48);
  outline: 3px solid rgba(240, 179, 35, 0.34);
  background: var(--paper);
}

.text-opt-in {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.text-opt-in input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--nile);
}

.phone-field {
  margin-bottom: 12px;
}

.submit-button {
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--nile);
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--denim);
}

.form-note {
  min-height: 22px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-success {
  color: var(--nile);
  font-weight: 800;
}

.form-note.is-error {
  color: #9b352a;
  font-weight: 800;
}

.summary-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  color: #ffffff;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0, 118, 129, 0.18), transparent 44%),
    var(--denim);
  padding: 34px;
}

.summary-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 34px;
  width: 126px;
  height: 126px;
  border-top: 3px solid rgba(255, 255, 255, 0.46);
  border-right: 3px solid rgba(255, 255, 255, 0.46);
}

.panel-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-panel ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-panel li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 13px;
  align-items: center;
  color: #ffffff;
  font-size: 1.05rem;
}

.summary-panel li span {
  width: 14px;
  height: 14px;
  border: 3px solid var(--cherubim);
  border-radius: 999px;
}

.thank-you-section {
  width: min(760px, 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(34px, 6vw, 72px);
}

.thank-you-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--cherubim);
}

.thank-you-section .brand {
  margin-bottom: clamp(54px, 9vh, 88px);
}

.thank-you-section h1 {
  max-width: 660px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 7px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--nile);
  text-decoration: none;
  font-weight: 800;
}

.return-link:hover {
  background: var(--denim);
}

@media (min-width: 901px) and (max-height: 760px) {
  .page-shell {
    padding: 24px;
  }

  .signup-section {
    min-height: auto;
  }

  .brand {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
  }

  .lede {
    margin-bottom: 24px;
  }

  .summary-panel {
    min-height: 390px;
  }
}

@media (max-width: 900px) {
  .signup-section {
    grid-template-columns: 1fr;
    min-height: auto;
    background: var(--paper);
  }

  .summary-panel {
    align-self: auto;
    min-height: auto;
    margin: 8px -10px -10px;
    border-radius: 8px;
    padding: 28px;
    background: var(--denim);
  }

  .summary-panel::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 12px;
    background-size: 34px 34px;
  }

  .signup-section {
    padding: 30px 22px;
  }

  .brand {
    align-items: flex-start;
    margin-bottom: 58px;
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .lede {
    font-size: 1rem;
  }

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