@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-800.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --cyan: #00aaff;
  --white: #ffffff;
  --muted: #9a9a9a;
  --micro: #6b6b6b;
  --line: #2a2a2a;
  --field: #111111;
  --error: #ff6b6b;
  --pad: 1.5rem;
  --radius: 0.85rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.app {
  width: min(100%, 26.75rem);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.wordmark {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.wordmark--overlay {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  left: 1.15rem;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.wordmark--center {
  text-align: center;
  padding: max(1.15rem, env(safe-area-inset-top)) var(--pad) 0;
}

.hero {
  position: relative;
  height: min(42vh, 22.5rem);
  min-height: 16.5rem;
  overflow: hidden;
  background: #050505;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 18%;
}

.hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem var(--pad) 2rem;
}

.panel--complete {
  padding-top: 1.15rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.field input {
  width: 100%;
  appearance: none;
  background: var(--field);
  color: var(--white);
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  font-size: 1rem;
  outline: none;
}

.field input::placeholder {
  color: #8a8a8a;
}

.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.18);
}

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

.cta {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--cyan);
  color: var(--white);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  padding: 1.05rem 1rem;
  cursor: pointer;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.06);
}

.cta:active {
  transform: translateY(1px);
}

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

.micro {
  margin: 1.05rem 0 0;
  text-align: center;
  color: var(--micro);
  font-size: 0.8rem;
  line-height: 1.4;
}

.micro--foot {
  margin-top: auto;
  padding-bottom: 0;
}

.app.is-switching .cta {
  pointer-events: none;
}

.error {
  margin: 0.45rem 0 0;
  color: var(--error);
  font-size: 0.82rem;
}

.incoming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.4rem var(--pad) 0;
}

.incoming h1,
.incoming .lede {
  max-width: 20rem;
}

.avatar-wrap {
  position: relative;
  width: 10.5rem;
  height: 10.5rem;
  display: grid;
  place-items: center;
  margin: 1.4rem 0 1.5rem;
}

.avatar {
  width: 8.35rem;
  height: 8.35rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(0, 170, 255, 0.12), 0 0 28px rgba(0, 170, 255, 0.45);
  position: relative;
  z-index: 1;
}

.ripple {
  position: absolute;
  inset: 0.35rem;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 170, 255, 0.28);
  animation: pulse 2.4s ease-out infinite;
}

.ripple--b {
  animation-delay: 1.2s;
}

.status {
  margin: 0 0 0.55rem;
  color: var(--micro);
  font-size: 0.78rem;
  font-weight: 500;
}

.status--live {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.number-pill {
  margin: 1.35rem 0 0;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  background: #141414;
  border: 1px solid #2c2c2c;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-link {
  margin-top: 1.05rem;
  background: none;
  border: 0;
  padding: 0;
  color: #8d8d8d;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  font-size: 0.95rem;
}

.text-link--accent {
  display: block;
  text-align: center;
  color: #4db8ff;
  margin-top: 1.15rem;
  margin-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--white);
}

.skip {
  align-self: center;
  margin: 0.85rem auto max(1.1rem, env(safe-area-inset-bottom));
  background: transparent;
  color: #8a8a8a;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.skip:hover,
.skip:focus-visible {
  color: var(--white);
}

.portrait {
  margin: 0.85rem 0 0;
}

.portrait img {
  width: 100%;
  height: min(38vh, 20rem);
  min-height: 13.5rem;
  object-fit: cover;
  object-position: 58% 12%;
}

.ack {
  margin-top: 1.65rem;
  padding: 1.15rem 1rem;
  border: 1px solid #1f4f66;
  background: #0c1820;
  border-radius: var(--radius);
  text-align: center;
}

.ack__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
}

.ack__body {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.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;
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@media (min-width: 480px) {
  body {
    display: flex;
    justify-content: center;
  }

  .app {
    border-left: 1px solid #161616;
    border-right: 1px solid #161616;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple {
    animation: none;
    opacity: 0.35;
  }

  .cta:active {
    transform: none;
  }
}

.wordmark--header {
  padding: max(0.85rem, env(safe-area-inset-top)) var(--pad) 0.55rem;
}

.hero--invite {
  height: min(28vh, 13.75rem);
  min-height: 10.5rem;
  max-height: 14.5rem;
}

.panel--invite {
  padding: 1.05rem var(--pad) 1.35rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.body {
  margin: 0.7rem 0 0;
  color: #c8c8c8;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.sell {
  margin: 0.95rem 0 0;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.stack--invite {
  margin-top: 1.15rem;
  gap: 0.65rem;
}

.cta--invite {
  color: #0a0a0a;
}

.screen--invite h1 {
  font-size: clamp(1.55rem, 6.6vw, 1.9rem);
}

@media (max-height: 740px) {
  .hero--invite {
    height: min(24vh, 11.5rem);
    min-height: 8.75rem;
  }
  .panel--invite {
    padding-top: 0.85rem;
  }
}
