html, body { margin: 0; padding: 0; background: #070707; color: #F3F3F1; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #BDBDBD; text-decoration: none; }
a:hover { color: #F3F3F1; }
input::placeholder { color: #4A4A4A; }
input:focus { outline: none; }
[hidden] { display: none !important; }

.page {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background: #070707;
  transition: background 700ms cubic-bezier(.2, .7, .2, 1);
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}
.page.is-done { background: #1B1B1B; }

.grain { position: absolute; inset: 0; pointer-events: none; z-index: 50; opacity: .07; background-repeat: repeat; }
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 40;
  background: radial-gradient(ellipse 85% 70% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .6) 100%);
}

/* Logo */
.header { padding: 18px 20px 0; display: flex; }
.logo { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: .82; letter-spacing: -0.07em; }
.logo-modo { color: #F3F3F1; }
.logo-gris { color: #5A5A5A; }

.main {
  flex: 1; min-height: 0; width: 100%; max-width: 440px; margin: 0 auto;
  padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 18px;
}

/* Animation frame (9:16) */
.stage { flex: 1; min-height: 0; display: flex; justify-content: center; }
.frame {
  position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 22px; border: 1px solid #1B1B1B; background: #070707; overflow: hidden;
  container-type: size;
}
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.feed { position: absolute; inset: 0; }
.track { position: absolute; left: 7%; right: 7%; top: 7cqh; will-change: transform; }
.card { position: relative; height: 62cqh; margin-bottom: 3cqh; border-radius: 14px; overflow: hidden; }
.card-shape { position: absolute; left: 12%; right: 12%; border-radius: 10px; }
.card-actions { position: absolute; right: 8%; bottom: 14%; display: flex; flex-direction: column; gap: 10px; }
.card-actions i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #4A4A4A; }
.card-meta { position: absolute; left: 8%; bottom: 8%; width: 60%; display: flex; flex-direction: column; gap: 7px; }
.card-user { display: flex; align-items: center; gap: 7px; }
.card-avatar { width: 18px; height: 18px; border-radius: 50%; background: #4A4A4A; }
.card-name { width: 40%; height: 6px; border-radius: 3px; background: #4A4A4A; }
.card-line { height: 5px; border-radius: 3px; background: #2A2A2A; }
.wash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #BDBDBD 0%, #4A4A4A 60%, #2A2A2A 100%);
}
.cover { position: absolute; inset: 0; opacity: 1; pointer-events: none; background: #070707; }

/* Headline */
.headline { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.serif {
  margin: 0; font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 34px; line-height: 1.02; letter-spacing: -0.01em; color: #F3F3F1; text-wrap: balance;
}
.sub { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: -0.03em; color: #BDBDBD; }

/* Form / success */
.cta { display: flex; flex-direction: column; gap: 12px; transition: opacity 400ms ease; }
.cta.is-leaving { opacity: 0; }
.form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.row { display: flex; gap: 6px; }
.email {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #2A2A2A; background: #1B1B1B; color: #F3F3F1;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.email[aria-invalid="true"] { border-color: #F3F3F1; }
.submit {
  flex: none; height: 48px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #F3F3F1; color: #070707; font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: -0.03em; cursor: pointer;
}
.submit:hover { background: #FFFFFF; }
.submit:active { transform: scale(.98); }
.submit:disabled { cursor: default; }
.error { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; color: #F3F3F1; padding-left: 2px; }

.platforms { display: flex; justify-content: center; gap: 4px; }
.pill {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid #2A2A2A;
  background: transparent; color: #8A8A8A; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em; cursor: pointer;
}
.pill[aria-checked="true"] { border-color: #BDBDBD; color: #F3F3F1; }

.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.success-title { margin: 0; font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -0.05em; color: #F3F3F1; }
.success-sub { margin: 0; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; color: #8A8A8A; }
.share {
  margin-top: 4px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid #8A8A8A;
  background: transparent; color: #F3F3F1; font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: -0.03em; cursor: pointer;
}
.share:hover { border-color: #F3F3F1; }

.spots {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; color: #8A8A8A;
  text-align: center; text-transform: uppercase; line-height: 1.5;
}

.footer {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px;
  font-size: 10.5px; font-weight: 600; color: #8A8A8A; letter-spacing: -0.01em;
}

:focus-visible { outline: 1px solid #BDBDBD; outline-offset: 2px; }
