/* EventBox Coming Soon — built from the Figma "Coming Soon" frame (1440×1024). */

:root {
  color-scheme: light;
  --green: #38cc03;
  --orange: #f65801;
  --ink: #121212;
  --body: #6b6b6b;
  --border: #d4d4d4;
  --paper: #ffffff;
  --error: #c62828;
  --focus: #121212;

  --font-display: "Ubuntu", "Arial Black", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Photo panel is 602 of 1440 design pixels. */
  --hero-width: 41.8vw;
}

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

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.page {
  display: grid;
  grid-template-columns: var(--hero-width) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #2b2f45;
}

.hero picture,
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.badge {
  position: absolute;
  top: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 8px 12px;
  background: var(--green);
  color: var(--paper);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.badge__mark {
  width: 20px;
  height: 24px;
  flex: none;
}

.hero__logo,
.hero__launching {
  display: none;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 96px clamp(24px, 15.6%, 130px);
  overflow: hidden;
}

.launching {
  position: absolute;
  top: 36px;
  right: clamp(24px, 15.6%, 130px);
  margin: 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

/* ---------- Type ---------- */

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.45vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.headline__line {
  display: block;
}

.headline__line--ink {
  color: var(--ink);
}

.headline__line--orange {
  color: var(--orange);
}

.headline__line--green {
  color: var(--green);
}

.lede {
  max-width: 470px;
  margin: 28px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

.hint {
  margin: 30px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Form ---------- */

.waitlist {
  margin-top: 56px;
}

.waitlist__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 1.5px;
  background: var(--paper);
}

.waitlist__row:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.waitlist__input::placeholder {
  color: var(--body);
  opacity: 1;
}

.waitlist__input:focus {
  outline: none;
}

.waitlist__input[aria-invalid="true"] {
  color: var(--error);
}

.waitlist__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 149px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--orange);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

.waitlist__button:hover {
  background: #de4f01;
}

.waitlist__button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.waitlist__button[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.waitlist__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist__turnstile:empty {
  display: none;
}

.waitlist__turnstile {
  margin-top: 16px;
}

.waitlist__status {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.waitlist__status:empty {
  display: none;
}

.waitlist__status[data-tone="error"] {
  color: var(--error);
}

.waitlist__status[data-tone="success"] {
  color: var(--ink);
  font-weight: 500;
}

.waitlist[data-state="done"] .waitlist__row {
  display: none;
}

/* ---------- Decorative squares ---------- */
/* Positions are the Figma coordinates relative to the 838px panel; each
   rotates around its top-left corner, as in the design. */

.decor {
  display: contents;
}

.shape {
  position: absolute;
  z-index: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.shape--orange {
  top: 17.7%;
  left: 75.4%;
  width: clamp(56px, 7.33vw, 106px);
  aspect-ratio: 1;
  background: var(--orange);
  transform: rotate(-20.1deg);
}

.shape--green {
  top: 78.7%;
  left: 11.4%;
  width: clamp(42px, 5.4vw, 78px);
  aspect-ratio: 1;
  background: var(--green);
  transform: rotate(30deg);
}

.shape--black {
  top: 76.6%;
  left: 77.3%;
  width: clamp(56px, 7.28vw, 105px);
  aspect-ratio: 1;
  background: var(--ink);
  transform: rotate(-15deg);
}

/* ---------- Tablet & mobile: stack ---------- */
/* Mirrors the Figma "coming-soon — Mobile 390" frame: logo and launch date
   over the photo, badge pinned to the photo's bottom edge. */

@media (max-width: 899px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .hero {
    height: 300px;
  }

  .hero__photo {
    object-position: 50% 32%;
  }

  .hero__logo {
    display: block;
    position: absolute;
    top: 28px;
    left: 20px;
    width: 128px;
    height: 24px;
  }

  .hero__launching {
    display: block;
    position: absolute;
    top: 28px;
    right: 20px;
    margin: 0;
    color: var(--paper);
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
  }

  .launching {
    display: none;
  }

  .badge {
    top: auto;
    bottom: 20px;
    left: 20px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
  }

  .panel {
    justify-content: flex-start;
    padding: 48px 20px 160px;
  }

  .content {
    max-width: 560px;
  }

  .headline {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .lede {
    margin-top: 24px;
  }

  .waitlist {
    margin-top: 40px;
  }

  .hint {
    margin-top: 16px;
    font-size: 15px;
  }

  .shape {
    transform-origin: 50% 50%;
  }

  .shape--orange {
    display: none;
  }

  .shape--green {
    top: auto;
    bottom: 56px;
    left: 20px;
    width: 42px;
  }

  .shape--black {
    top: auto;
    bottom: 56px;
    right: 20px;
    left: auto;
    width: 52px;
  }
}

@media (max-width: 479px) {
  .waitlist__row {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    border: 0;
  }

  .waitlist__row:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .waitlist__input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--paper);
  }

  .waitlist__input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 1px var(--focus);
  }

  .waitlist__button {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .waitlist__button {
    transition: background-color 150ms ease;
  }
}

.panel--standalone {
  min-height: 100vh;
}

/* ---------- Footer & legal dialogs ---------- */

.footer {
  position: absolute;
  right: 40px;
  bottom: 24px;
  left: 40px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.footer__copy {
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__link {
  color: var(--ink);
  text-decoration: underline;
}

.footer__link:hover {
  color: var(--orange);
}

.footer__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .panel {
    padding-bottom: 24px;
  }

  .decor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    margin-top: 40px;
  }

  .decor .shape {
    position: static;
  }

  .shape--green {
    margin-left: 8px;
  }

  .shape--black {
    margin-right: 6px;
  }

  .footer {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
  }
}

