/* Recess waitlist — hand-written port of the Tailwind styles used by
   WaitlistLanding.tsx + WaitlistSignup.tsx (apps/web). Brand tokens from
   apps/web/tailwind.config.js. Breakpoints: sm = 640px, lg = 1024px. */

:root {
  --bg: #03050c; /* brand.background — Obsidian Navy */
  --surface: #0b101e; /* brand.surface — Midnight Blue */
  --highlight: #151e32; /* brand.highlight — Twilight */
  --primary: #fb7185; /* brand.primary — Coral Neon */
  --secondary: #8b5cf6; /* brand.secondary — Electric Violet */
  --accent: #38bdf8; /* brand.accent — Sky Cyan */
  --text: #f9fafb; /* brand.text — White Mist */
  --muted: #9ca3af; /* brand.muted — Stardust Gray */
  --border: #1f2937; /* brand.border — Abyss Edge */
  --hero-base: #07090f;
  --red-400: #f87171;
  --pink-400: #f472b6;
  --yellow-400: #facc15;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

svg {
  flex-shrink: 0;
}

/* ── Icon sizes (lucide w-4/w-5/w-6/w-7/w-10) ─────────────────────── */
.icon-16 {
  width: 1rem;
  height: 1rem;
}
.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-24 {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-28 {
  width: 1.75rem;
  height: 1.75rem;
}
.icon-40 {
  width: 2.5rem;
  height: 2.5rem;
}

/* ── Shared color helpers ─────────────────────────────────────────── */
.c-primary {
  color: var(--primary);
}
.c-secondary {
  color: var(--secondary);
}
.c-accent {
  color: var(--accent);
}
.c-pink {
  color: var(--pink-400);
}
.c-yellow {
  color: var(--yellow-400);
}
.text-secondary {
  color: var(--secondary);
}
.strong-white {
  color: #fff;
  font-weight: 600;
}

.tint-primary {
  background: rgba(251, 113, 133, 0.1);
}
.tint-secondary {
  background: rgba(139, 92, 246, 0.1);
}
.tint-accent {
  background: rgba(56, 189, 248, 0.1);
}
.tint-pink {
  background: rgba(244, 114, 182, 0.1);
}
.tint-yellow {
  background: rgba(250, 204, 21, 0.1);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: rgba(251, 113, 133, 0.9);
  transform: scale(1.05);
}
.btn-nav {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.5rem 1.25rem;
}
.btn-cta {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.75rem 1.5rem;
}

/* ── Waitlist form (pill variant, landing page) ───────────────────── */
.wl,
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wl-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.15s ease;
}
.wl-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.wl-input:focus {
  outline: none;
  border-color: var(--primary);
}
.wl-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  transition: all 0.15s ease;
}
.wl-submit:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.9);
  transform: scale(1.02);
}
.wl-submit:disabled {
  opacity: 0.6;
}
.wl-error {
  color: var(--red-400);
  font-size: 0.75rem;
  line-height: 1rem;
  padding-left: 1rem;
}
.wl-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-base {
  position: absolute;
  inset: 0;
  background: var(--hero-base);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('/hero-city.jpg');
  background-size: cover;
  background-position: center center;
  filter: brightness(1.4) contrast(0.9) saturate(1.1);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.6) 48%,
    black 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.6) 48%,
    black 100%
  );
}
.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #07090f 0%, rgba(7, 9, 15, 0.65) 50%, transparent 100%);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%, transparent 100%);
}

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}
.nav-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  max-width: 42rem;
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.75rem;
  line-height: 0.95;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}

/* ── Polaroid strip ───────────────────────────────────────────────── */
.polaroids {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 2rem 3rem;
}
.polaroid {
  position: relative;
  background: #fff;
  padding: 0.5rem 0.5rem 1.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.polaroid img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  object-position: top;
  border-radius: 0.125rem;
}
.polaroid-1 {
  width: 8rem;
  transform: rotate(-5deg);
}
.polaroid-2 {
  width: 9rem;
  transform: rotate(-2deg) translateY(-8px);
}
.polaroid-3 {
  width: 9rem;
  transform: rotate(3deg);
}
.polaroid-3 img {
  object-position: center;
}
.polaroid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  color: #6b7280;
  font-style: italic;
  padding-bottom: 0.375rem;
}
.polaroid-badge {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.squiggle {
  width: 4rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-bottom: 1rem;
}

/* ── Social proof + CTA ───────────────────────────────────────────── */
.social {
  position: relative;
  z-index: 10;
  padding: 0 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatars {
  display: flex;
}
.avatars img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--hero-base);
}
.avatars img + img {
  margin-left: -0.5rem;
}
.social-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

/* ── Problem section ──────────────────────────────────────────────── */
.section-problem {
  padding: 7rem 1.5rem;
}
.problem-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.h2-tight {
  line-height: 1.25;
}

.lines {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.line {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.line-big {
  font-family: 'Outfit', sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-emoji {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #fff;
}
.panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.625;
}
.strong-lg {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* ── Solution (agent cards) ───────────────────────────────────────── */
.section-solution {
  padding: 6rem 1.5rem;
  background: rgba(11, 16, 30, 0.3);
}
.solution-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
  max-width: 42rem;
  margin: 0 auto;
}
.agents {
  display: grid;
  gap: 1.5rem;
}
.agent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.agent-eros {
  border-color: rgba(251, 113, 133, 0.2);
}
.agent-hally {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}
.agent-wingman {
  border-color: rgba(56, 189, 248, 0.2);
}
.agent-pierre {
  border-color: rgba(244, 114, 182, 0.2);
}
.agent-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.agent-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.agent-body {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ── Differentiators ──────────────────────────────────────────────── */
.section-diff {
  padding: 6rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.diff-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.diff {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(11, 16, 30, 0.5);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.diff-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff-title {
  color: #fff;
  font-weight: 600;
}
.diff-body {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
}

/* ── Footer CTA ───────────────────────────────────────────────────── */
.section-footer {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-sub {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.copyright {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

/* ── Join page (/join) ────────────────────────────────────────────── */
.join {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  background: none;
  border: 0;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: #fff;
}
.join-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.join-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.join-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.join-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.join-box {
  max-width: 28rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.join-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.badge-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-circle-lg {
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
}
.join-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: #fff;
}
.join-sub {
  color: var(--muted);
}
.join-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.label-opt {
  color: var(--muted);
  font-weight: 400;
}
.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  transition: border-color 0.15s ease;
}
.field-input::placeholder {
  color: var(--muted);
}
.field-input:focus {
  outline: none;
  border-color: var(--primary);
}
.join-error {
  color: var(--red-400);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.join-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.875rem 0;
  transition: all 0.15s ease;
}
.join-submit:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.9);
  transform: scale(1.02);
}
.join-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.join-note {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
}

/* Join success view */
.success-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.success-box {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.success-title {
  margin-bottom: 0.5rem;
}
.em-white {
  color: #fff;
  font-weight: 500;
}
.next-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.next-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.step-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(251, 113, 133, 0.2);
  border: 1px solid rgba(251, 113, 133, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}
.step p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.back-home {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: color 0.15s ease;
}
.back-home:hover {
  color: #fff;
}

/* ── Scroll fly-in animations ─────────────────────────────────────── */
.fly {
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s ease;
}
.fly-left {
  transform: translateX(-60px);
}
.fly-right {
  transform: translateX(60px);
}
.fly-up {
  transform: translateY(40px);
}
.fly-card {
  opacity: 0;
  transform: translateY(60px);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
}
.in .fly,
.in .fly-card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fly,
  .fly-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover,
  .wl-submit:hover:not(:disabled),
  .join-submit:hover:not(:disabled) {
    transform: none;
  }
}

/* ── sm: ≥640px ───────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-sub {
    font-size: 1.25rem;
    line-height: 1.625;
  }
  .polaroid img {
    height: 8rem;
  }
  .polaroid-1 {
    width: 10rem;
  }
  .polaroid-2,
  .polaroid-3 {
    width: 11rem;
  }
  .h2 {
    font-size: 3rem;
    line-height: 1;
  }
  .h2-tight {
    line-height: 1.25;
  }
  .line {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .line-big {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .join-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .success-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

/* ── lg: ≥1024px ──────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
  .hero-content,
  .polaroids,
  .social {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .polaroids {
    padding-bottom: 3rem;
  }
  .social {
    padding-bottom: 2rem;
  }
  .agents {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
