:root {
  --bg: #0e0d0b;
  --bg-raised: #17150f;
  --ochre: #d99a2b;
  --ochre-press: #c4881f;
  --text: #ece8df;
  --muted: #b8b2a7;
  --line: #3a362e;
  --line-strong: #55503f;
  --font-heading: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 96px;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.column {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(44px, 10vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 20px;
}

.wordmark .tm {
  font-size: 0.24em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 0.2em;
  color: var(--muted);
}

.subline {
  font-size: clamp(18px, 4.6vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 30em;
  margin: 0 0 32px;
}

/* --- form --- */

.seat-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 2px;
  background: transparent;
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--ochre);
  box-shadow: 0 1px 0 var(--ochre);
}

/* segmented control: real radios, styled as three underlined tabs */

.segmented {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  border: none;
}

.segment {
  position: relative;
}

.segment input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: color 150ms ease, box-shadow 150ms ease;
  pointer-events: none;
}

.segment input:hover + span {
  color: var(--text);
}

.segment input:checked + span {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--ochre);
}

.segment input:focus-visible + span {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.submit {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ochre);
  color: #16130c;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.submit:hover,
.submit:focus-visible {
  background: #e2a63c;
  box-shadow: 0 4px 20px rgba(217, 154, 43, 0.25);
}

.submit:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* four scattered dots that gather into the small group on hover/focus */

.submit-dots {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.submit-dots i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #16130c;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.submit-dots i:nth-child(1) { transform: translate(-8px, -2px); }
.submit-dots i:nth-child(2) { transform: translate(2px, -8px); }
.submit-dots i:nth-child(3) { transform: translate(7px, 3px); }
.submit-dots i:nth-child(4) { transform: translate(-3px, 7px); }

.submit:hover .submit-dots i:nth-child(1),
.submit:focus-visible .submit-dots i:nth-child(1) { transform: translate(-5px, -5px); }
.submit:hover .submit-dots i:nth-child(2),
.submit:focus-visible .submit-dots i:nth-child(2) { transform: translate(5px, -5px); }
.submit:hover .submit-dots i:nth-child(3),
.submit:focus-visible .submit-dots i:nth-child(3) { transform: translate(5px, 5px); }
.submit:hover .submit-dots i:nth-child(4),
.submit:focus-visible .submit-dots i:nth-child(4) { transform: translate(-5px, 5px); }

@media (prefers-reduced-motion: reduce) {
  .submit-dots i {
    transition: none;
  }
}

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

.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-error {
  margin: 4px 0 0;
  font-size: 14px;
  color: #e8b4a0;
}

.gotcha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- confirmation --- */

.confirmation {
  max-width: 400px;
  opacity: 0;
  transition: opacity 500ms ease;
}

.confirmation.visible {
  opacity: 1;
}

.confirmation-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.confirmation-line {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.seat-form.fading {
  opacity: 0;
  transform: none;
  animation: none;
  transition: opacity 300ms ease;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

/* --- corner labels --- */

.corners {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.corner {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: lowercase;
}

@media (max-width: 560px) {
  .corners {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
    padding: 0;
  }

  body {
    padding-bottom: 32px;
  }
}

/* --- entrance --- */

@media (prefers-reduced-motion: no-preference) {
  .wordmark,
  .subline,
  .seat-form {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 600ms ease-out forwards;
  }

  .subline {
    animation-delay: 120ms;
  }

  .seat-form {
    animation-delay: 240ms;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- accessibility helpers --- */

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