:root {
  color-scheme: light;
  --primary-text: #333333;
  --secondary-text: #b5b5b5;
  --stroke: #ececec;
  --primary-green: #8ca58f;
  --accent-green: #98bd9c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: #f3f3f3;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 0;
  overflow-x: hidden;
}
@media (max-width: 1440px) {
  body {
    justify-content: flex-start;
    padding-left: 0;
  }
}
.page {
  position: relative;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.lang-switch {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}

.lang-label {
  font-size: 12px;
  color: #666666;
}

.lang-select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-text);
  outline: none;
  cursor: pointer;
}

.bg-wave {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(-1) rotate(180deg);
  transform-origin: center;
  width: 1000px;
  height: 900px;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  right: -297px;
  top: 50%;
  transform: translateY(-50%);
  width: 959px;
  height: 799px;
  opacity: 0.15;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 640px);
  gap: 40px;
  padding: 0 80px;
  height: 900px;
  align-items: stretch;
}

.hero-left {
  max-width: 520px;
  padding-top: 207px;
}

.wordmark {
  margin-bottom: 16px;
  width: 153px;
  height: 28px;
}

h1 {
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -1.92px;
  font-weight: 800;
}

h1 .light {
  color: #ffffff;
  font-weight: 700;
}

h1 .bold {
  color: #000000;
  font-weight: 800;
}

.subtitle {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: #000000;
  max-width: 520px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 640px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-text);
}

.card .lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-text);
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
}

.waitlist input {
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--primary-text);
  background: #ffffff;
}

.waitlist input.invalid {
  border-color: #d94a4a;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.dialog-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.dialog {
  width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.dialog-body {
  width: 100%;
}

.dialog-backdrop.terms-open .dialog {
  width: min(900px, calc(100vw - 48px));
  max-height: min(80vh, 720px);
  text-align: left;
}

.dialog-backdrop.terms-open .dialog h3 {
  text-align: left;
}

.terms {
  max-height: calc(min(80vh, 720px) - 150px);
  overflow: auto;
  padding-right: 6px;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666666;
}

.dialog h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-text);
}

.dialog p {
  font-size: 16px;
  color: #666666;
}

.dialog-close {
  margin-top: 8px;
  height: 44px;
  border-radius: 30px;
  border: none;
  background: var(--primary-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.waitlist input.date-input {
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0 40px 0 14px;
  font-size: 14px;
  color: var(--primary-text);
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
}

.waitlist input.date-input::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  opacity: 1;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.cta {
  height: 52px;
  border-radius: 44px;
  border: none;
  background: var(--primary-green);
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta .loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.cta.loading {
  opacity: 0.8;
  cursor: wait;
}

.cta.loading .cta-text {
  display: none;
}

.cta.loading .loader {
  display: inline-block;
}

.consents {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.consent-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Override `.waitlist label` (column layout) for consent rows */
.waitlist label.consent-item {
  flex-direction: row;
  gap: 10px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--primary-text);
}

.waitlist label.consent-item > span {
  flex: 1;
  min-width: 0;
}

.consent-item input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: var(--primary-green);
}

input[type="checkbox"].invalid {
  outline: 2px solid #d94a4a;
  outline-offset: 2px;
  border-radius: 4px;
}

.text-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--primary-green);
  text-decoration: underline;
  cursor: pointer;
}

.text-link:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  border-radius: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.legal {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  padding: 0 0 18px;
}

.footer {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 80px 24px;
  width: 100%;
  left: 0;
  bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 40px;
  height: 33px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-text);
}

.brand-word {
  width: 104px;
  height: 19px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 16px;
  color: var(--primary-text);
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.socials img {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  body {
    padding: 0;
    background: #f0f0f0;
  }

  .page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: #ffffff;
  }

  .page::after {
    content: none;
  }

  .page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #98bd9c;
  }

  .bg-wave,
  .bg-blob {
    display: none;
  }

  .lang-switch {
    top: 16px;
    left: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 96px 20px 40px;
    height: auto;
  }

  .hero-left {
    padding-top: 0;
    max-width: 100%;
    text-align: left;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -1px;
  }

  .subtitle {
    font-size: 16px;
    margin-top: 20px;
    max-width: 100%;
  }

  .hero-right {
    align-items: flex-start;
  }

  .card {
    max-width: 100%;
    padding: 18px;
    gap: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  }

  .card h2 {
    font-size: 26px;
  }

  .card .lead {
    font-size: 16px;
  }

  .waitlist {
    gap: 16px;
  }

  .waitlist label {
    font-size: 14px;
  }

  .cta {
    font-size: 18px;
    height: 52px;
  }

  .legal {
    font-size: 14px;
    padding: 6px 0 8px;
  }

  .footer {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px 32px;
  }

  .footer-right {
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
  }

  .dialog {
    width: calc(100% - 40px);
  }
}

