@font-face {
  font-family: "Segoe UI";
  src: url("assets/fonts/Segoe%20UI.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI Bold";
  src: url("assets/fonts/Segoe%20UI%20Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --cash-green: #86efac;
  --error: #f87171;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  padding: 24px 24px 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  margin: 0;
  font-family: "Segoe UI Bold", sans-serif;
  font-size: 32px;
  line-height: 0.9;
  font-weight: 900;
}

.brand .cash {
  color: var(--cash-green);
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: -2px;
  border: none;
  border-radius: 999px;
  background: var(--cash-green);
  padding: 0;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 0;
  min-height: calc(100vh - 80px);
}

.left-panel {
  max-width: 760px;
  padding-right: 16px;
}

.headline {
  margin: 20px 0 16px;
  font-family: "Segoe UI Bold", sans-serif;
  font-size: clamp(46px, 7vw, 72px);
  line-height: 0.92;
  font-weight: 900;
}

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

.description {
  margin: 0 0 16px;
  max-width: 100%;
  width: 100%;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.email-input-wrap {
  position: relative;
  width: 320px;
  max-width: min(320px, calc(100vw - 96px));
}

.email-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.email-input {
  width: 100%;
  max-width: 100%;
  height: 52px;
  border: 2px solid var(--cash-green);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI Bold", sans-serif;
  font-size: 24px;
  font-weight: 400;
  padding: 0 44px;
  text-align: left;
  outline: none;
}

.email-input::placeholder {
  color: var(--text);
  opacity: 1;
  font-size: 20px;
  text-align: left;
}

.email-input:disabled {
  opacity: 0.8;
}

.join-button {
  min-width: 84px;
  height: 52px;
  border: 2px solid var(--cash-green);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Bold", sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 12px;
}

.join-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.join-spinner-host {
  width: 84px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
}

.join-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(134, 239, 172, 0.25);
  border-top-color: var(--cash-green);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-row {
  display: none;
  margin-top: 4px;
  max-width: min(640px, calc(100vw - 96px));
  font-family: "Segoe UI Bold", sans-serif;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  word-break: break-word;
}

.status-text {
  min-height: 24px;
  margin-top: 8px;
  color: var(--cash-green);
  font-size: 14px;
  line-height: 1.3;
}

.status-text.error {
  color: var(--error);
}

.right-panel {
  justify-self: end;
  width: min(760px, 100%);
  height: min(760px, calc(100vh - 170px));
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 700ms ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767px) {
  .app-shell {
    padding: 18px 16px;
  }

  .layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }

  .left-panel {
    padding-right: 0;
  }

  .description {
    font-size: 20px;
  }

  .email-input {
    width: 100%;
    font-size: 22px;
  }

  .email-input-wrap {
    width: min(320px, calc(100vw - 32px));
    max-width: min(320px, calc(100vw - 32px));
  }

  .join-button {
    font-size: 22px;
  }

  .right-panel {
    justify-self: stretch;
    width: 100%;
    height: min(420px, 52vh);
  }

  .success-row {
    max-width: calc(100vw - 32px);
  }
}
