/* ============================================
   LeadToBill — Landing Page
   ============================================ */

@font-face {
  font-family: 'Outfix';
  src: url('assets/fonts/Outfix-Bold.woff2') format('woff2'),
       url('assets/fonts/Outfix-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f2f0ed;
  --text: #1a1a1a;
  --text-muted: #7a7a7a;
  --accent: #e7434d;
  --accent-pink: #e6429e;
  --accent-gradient: linear-gradient(135deg, #ea6056, #e6429e);
  --radius: 12px;
  --font-display: 'Outfix', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  position: relative;
}

/* ---- Logo ---- */
.logo-wrapper {
  position: relative;
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 6s ease-in-out infinite;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 30px rgba(231, 67, 77, 0.2));
  transition: filter 0.4s ease;
}

.logo-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 96, 86, 0.12) 0%, transparent 70%);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---- Hero Text ---- */
.hero-text {
  text-align: center;
  margin-top: 32px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.1;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tagline-block {
  text-align: center;
  margin-top: 24px;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}

.coming-soon {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Scroll CTA ---- */
.scroll-cta {
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  transition: opacity 0.3s;
}

.scroll-cta:hover {
  opacity: 0.7;
}

.scroll-cta-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================
   PREVIEW — Floating Screenshot
   ============================================ */
.preview {
  padding: 40px 24px 80px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.preview-card {
  max-width: 720px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.06);
  transform: rotateX(4deg) rotateY(-2deg);
  transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
  will-change: transform;
}

.preview-card:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08);
}

.preview-img {
  width: 100%;
  display: block;
}

/* ============================================
   SIGNUP
   ============================================ */
.signup {
  padding: 60px 24px 100px;
  display: flex;
  justify-content: center;
}

.signup-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.signup-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.signup-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.waitlist-shell {
  display: grid;
  justify-items: center;
  padding: 28px;
  border: 1px solid #e2dcd6;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(230, 66, 158, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 248, 0.88));
  box-shadow:
    0 22px 70px rgba(79, 54, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.waitlist-status {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px dashed #d8cfc8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  animation: fadeUp 0.5s ease-out;
}

.waitlist-status.is-hidden,
.waitlist-host.is-hidden,
.waitlist-reset.is-hidden {
  display: none !important;
}

.waitlist-status::before {
  content: '';
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 96, 86, 0.18) 0%, rgba(230, 66, 158, 0.08) 45%, transparent 72%);
}

.waitlist-status[data-state='success'] {
  border-color: rgba(231, 67, 77, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.waitlist-status[data-state='error'] {
  border-color: rgba(231, 67, 77, 0.4);
  background: rgba(255, 247, 247, 0.92);
}

.waitlist-status[data-state='warning'] {
  border-color: rgba(231, 67, 77, 0.22);
  background: rgba(255, 250, 247, 0.92);
}

.waitlist-status-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.waitlist-status-text {
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.waitlist-reset {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.waitlist-reset:hover {
  opacity: 0.75;
}

.waitlist-host {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.waitlist-host > * {
  width: min(100%, 30rem);
  margin-inline: auto;
}

.ltb-clerk-root,
.ltb-clerk-card-box,
.ltb-clerk-card {
  width: 100%;
  max-width: 100%;
}

.ltb-clerk-card-box {
  margin-inline: auto;
}

.ltb-clerk-footer {
  display: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid #ddd8d3;
  padding: 28px 24px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-sep {
  color: #ccc;
}

/* ============================================
   SCROLL REVEAL (added via JS)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .signup {
    padding: 56px 16px 88px;
  }

  .waitlist-shell {
    padding: 20px;
  }

  .waitlist-status {
    min-height: 200px;
    padding: 20px 18px;
  }

  .logo-wrapper {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
  }

  .hero {
    padding: 40px 20px 30px;
    min-height: 90vh;
  }

  .preview-card {
    transform: rotateX(2deg) rotateY(-1deg);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .signup {
    padding-inline: 10px;
  }

  .signup-text {
    margin-bottom: 24px;
  }

  .waitlist-shell {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .waitlist-status {
    min-height: 180px;
  }

  .waitlist-host > * {
    width: 100%;
    max-width: 100%;
  }
}
