@font-face {
  font-family: "ReferirAmigosLocal";
  src: url("./referiramigos.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #1f2237;
  --pink: #e83e8c;
  --coral: #ff6b7a;
  --pink-soft: #ffe9f1;
  --gray-soft: #f4f4f6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 233, 241, 0.72), transparent 28%),
    radial-gradient(circle at 86% 78%, rgba(255, 107, 122, 0.13), transparent 31%),
    var(--white);
  font-family: "ReferirAmigosLocal", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

body::before {
  width: 280px;
  height: 280px;
  top: -100px;
  right: -90px;
  background: rgba(232, 62, 140, 0.08);
}

body::after {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: -90px;
  background: rgba(255, 107, 122, 0.08);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  box-shadow: 0 14px 34px rgba(232, 62, 140, 0.18);
  font-size: 0;
}

.brand-mark::before {
  content: "ra";
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.08em;
  transform: translateY(-2px);
}

.header-label {
  margin: 0;
  color: #6f7180;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 24px 76px;
}

.content {
  width: min(960px, 100%);
  text-align: center;
}

.logo {
  display: block;
  width: min(620px, 84vw);
  height: auto;
  margin: 0 auto 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--pink);
  background: var(--pink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 20px auto 14px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h1 .accent {
  color: var(--pink);
}

.lead {
  max-width: 600px;
  margin: 0 auto;
  color: #5c5f70;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.waitlist {
  width: min(560px, 100%);
  margin: 32px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e7e7ed;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(31, 34, 55, 0.09);
}

input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 16px;
}

input[type="email"]::placeholder {
  color: #9699a6;
}

button {
  border: 0;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--coral));
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(232, 62, 140, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(232, 62, 140, 0.28);
  filter: saturate(1.05);
}

button:focus-visible,
input[type="email"]:focus-visible {
  outline: 3px solid rgba(232, 62, 140, 0.22);
  outline-offset: 2px;
}

.microcopy {
  margin: 12px 6px 0;
  color: #858895;
  font-size: 12px;
  line-height: 1.5;
}

.status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8a8c97;
  font-size: 12px;
}

.footer strong {
  color: var(--navy);
  font-weight: 700;
}

.heart {
  color: var(--pink);
}

@media (max-width: 640px) {
  .header {
    width: min(100% - 32px, 1180px);
    padding-top: 22px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand-mark::before {
    font-size: 21px;
  }

  .header-label {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .main {
    padding: 26px 16px 52px;
  }

  .logo {
    width: min(520px, 92vw);
    margin-bottom: 18px;
  }

  h1 {
    margin-top: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  button {
    width: 100%;
  }

  .footer {
    width: min(100% - 32px, 1180px);
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

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