/* ============================================================================
   LoversNmore — Waitlist Landing
   Refined from Nina's original design.
   - Palette cleaned to 3 grays + brand tokens
   - Phone mockup resized so form has visual weight
   - Full mobile responsiveness (320 / 480 / 768 / 1024 / 1280)
   ========================================================================= */

/* --- Design tokens ------------------------------------------------------- */
:root {
  --brand-ink:        #0f153f;
  --brand-purple:     #4c1be0;
  --brand-purple-2:   #5b2fe6;
  --brand-pink:       #f81f72;
  --brand-lavender:   #f1eaff;
  --brand-blush:      #ffe6f1;

  --gray-900: #22284f;   /* body text on light */
  --gray-500: #6b7280;   /* secondary text */
  --gray-200: #e6e2ee;   /* borders / dividers */

  --bg:        #ffffff;
  --card-bg:   #ffffff;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm: 0 3px 10px rgba(48, 28, 104, 0.05);
  --shadow-md: 0 18px 50px rgba(84, 54, 145, 0.10);
  --shadow-lg: 0 22px 38px rgba(64, 31, 130, 0.18);
}

/* --- Reset / base -------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--brand-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.purple { color: var(--brand-purple); }
.pink   { color: var(--brand-pink); }

/* --- Layout shell -------------------------------------------------------- */
.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 42px 18px;
  background:
    radial-gradient(circle at 4% 49%, rgba(248, 31, 114, 0.12), transparent 18%),
    radial-gradient(circle at 96% 53%, rgba(76, 27, 224, 0.08), transparent 18%),
    #ffffff;
}

/* --- Top bar ------------------------------------------------------------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: start;
  gap: 20px;
}

.dot-grid {
  width: 42px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 7px;
  padding: 10px 0;
}
.dot-grid span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-purple);
}

.brand-lockup { text-align: center; }
.brand-lockup .brand-icon    { display: none; } /* icon hidden — wordmark carries the brand */
.brand-lockup .brand-wordmark{ width: 240px; height: 52px; object-fit: contain; margin: 4px auto 6px; }
.brand-lockup p              { margin: 0; color: #313867; font-size: 15px; font-weight: 500; letter-spacing: 0.1px; }

.login-button {
  justify-self: end;
  background: #fff;
  border: 1.5px solid var(--brand-purple-2);
  color: #3c1897;
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.login-button:hover { background: #faf7ff; box-shadow: 0 6px 14px rgba(76, 27, 224, 0.14); }

/* --- Hero ---------------------------------------------------------------- */
.hero-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 1.05fr;
  gap: 38px;
  align-items: center;
  margin-top: 26px;
}

/* Phone */
.phone-column { display: flex; justify-content: center; }
.phone-shell {
  width: 280px;
  min-height: 540px;
  background: #fff;
  border: 8px solid #222;
  border-radius: 42px;
  padding: 12px 10px 10px;
  transform: rotate(-2.5deg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-weight: 700;
  font-size: 11px;
}
.phone-status > span:last-child { text-align: right; font-size: 10px; }
.island {
  width: 72px; height: 20px;
  background: #090909;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
}

.phone-brand { text-align: center; padding-top: 10px; }
.phone-brand-icon { display: none; } /* icon hidden — wordmark carries the brand */
.phone-brand-text { width: 110px; height: 22px; object-fit: contain; margin: 0 auto 3px; }
.phone-brand small { font-size: 6.5px; color: #41466d; display: block; }

.phone-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 12px;
  align-items: start;
}
.phone-feature { min-width: 0; text-align: center; position: relative; }
.feature-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  margin: 0 auto -6px;
  position: relative;
  z-index: 3;
  border: 2px solid #fff;
}
.purple-bg { background: var(--brand-purple); }
.pink-bg   { background: var(--brand-pink); }

.feature-image-box {
  width: 100%;
  aspect-ratio: 1.12;
  border-radius: 7px;
  overflow: hidden;
  background: #f3f0f9;
  isolation: isolate;
}
.feature-image-box img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.phone-feature h3 { font-size: 8px; line-height: 1.15; margin: 4px 0 2px; font-weight: 800; }
.phone-feature p  { font-size: 6px; line-height: 1.25; margin: 0; color: var(--gray-900); }

.for-you-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.for-you-title h2 { font-size: 15px; margin: 0 0 6px; }
.for-you-title a  { font-size: 8px; text-decoration: none; color: var(--brand-purple); font-weight: 800; }

.for-you { display: flex; flex-direction: column; gap: 6px; }
.feed-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid #f1edf6;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.feed-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.purple-lite { background: var(--brand-lavender); color: #4d1ed9; }
.pink-lite   { background: var(--brand-blush);   color: #ef1e71; }
.feed-row strong { font-size: 8px; }
.feed-row p     { font-size: 6.5px; margin: 2px 0; color: #303760; }
.feed-row small { font-size: 6px; color: #5a6280; }

.explore-now {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-purple);
  color: #fff;
  padding: 10px;
  font-weight: 700;
  font-size: 11px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 1fr 1fr;
  align-items: center;
  text-align: center;
  padding-top: 8px;
  color: #77819f;
}
.bottom-nav span { display: grid; place-items: center; font-size: 14px; }
.bottom-nav small { font-size: 6px; margin-top: 2px; }
.bottom-nav .active { color: var(--brand-purple); }
.bottom-nav .plus {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-pink);
  color: #fff;
  font-size: 22px;
  margin: 0 auto;
}

/* Hero copy */
.hero-copy h1 {
  font-size: 62px;
  line-height: 1.03;
  margin: 0;
  font-weight: 800;
  letter-spacing: -1.3px;
}
.ink { color: var(--brand-ink); }
.heart-outline { color: var(--brand-pink); font-weight: 400; }
.hero-subhead {
  font-size: 20px;
  line-height: 1.55;
  color: #333965;
  max-width: 560px;
  margin: 24px 0 0;
}

.hero-houston-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-lavender);
  color: #3c1897;
  font-weight: 700;
  font-size: 14px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-pink);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(248, 31, 114, 0.18);
}

/* Waitlist card */
.waitlist-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 24px;
}
.mail-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--brand-blush);
  color: var(--brand-pink);
  font-size: 25px;
}
.waitlist-card h2   { text-align: center; font-size: 27px; margin: 16px 0 4px; }
.waitlist-sub       { text-align: center; font-weight: 700; margin: 0 0 20px; color: var(--gray-500); }
.waitlist-card form { text-align: left; } /* prevent inheriting text-align: center from tablet/mobile hero-layout */
.waitlist-card label{ display: block; text-align: left; font-size: 12px; font-weight: 700; margin: 12px 0 6px; color: var(--gray-900); }
.waitlist-card input,
.waitlist-card select { text-align: left; }
.waitlist-card input,
.waitlist-card select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--brand-ink);
  background: #fff;
  font-family: inherit;
  font-size: 16px;  /* 16px prevents iOS zoom on focus */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-card input:focus,
.waitlist-card select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(76, 27, 224, 0.12);
}
.waitlist-card input::placeholder { color: #9aa0b4; }
.waitlist-card select { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23645290' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.waitlist-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-purple);
  color: #fff;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.06s ease, opacity 0.15s ease;
}
.waitlist-button:hover:not(:disabled) { background: var(--brand-purple-2); }
.waitlist-button:active:not(:disabled) { transform: translateY(1px); }
.waitlist-button:disabled { opacity: 0.7; cursor: wait; }
.waitlist-button .btn-loading { display: none; }
.waitlist-button.is-loading .btn-label   { display: none; }
.waitlist-button.is-loading .btn-loading { display: inline; }

.privacy {
  display: block;
  text-align: center;
  margin-top: 13px;
  color: #8a879f;
  font-size: 12px;
}

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }

/* --- Benefits section ---------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 58px 85px 18px;
}
.benefits article {
  display: flex;
  gap: 18px;
  padding-right: 22px;
  border-right: 1px solid var(--gray-200);
}
.benefits article:last-child { border-right: 0; }
.benefit-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 32px;
}
.benefits h3 { margin: 0 0 7px; font-size: 18px; color: var(--brand-ink); }
.benefits p  { margin: 0; color: var(--gray-900); line-height: 1.5; }

/* --- Footer -------------------------------------------------------------- */
footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  border-top: 1px solid var(--gray-200);
  padding: 22px 70px 0;
  margin-top: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img:first-child { width: 42px; height: 38px; }
.footer-brand img:last-child  { width: 150px; height: 38px; }
footer nav { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
footer nav a {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
footer nav a:hover { color: var(--brand-purple); }
.socials {
  text-align: right;
  font-size: 22px;
}
.socials a {
  display: inline-block;
  margin-left: 16px;
  color: var(--brand-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.socials a:hover { color: var(--brand-purple); }

/* ============================================================================
   LARGE SCREENS — scale the whole design up proportionally so it fills the
   viewport instead of sitting in a 1500px box with empty side margins.
   Uses `zoom` so every element scales uniformly (like browser zoom) —
   the layout stays identical, nothing gets stretched or repositioned.
   ========================================================================= */

@media (min-width: 1500px) {
  .page-shell {
    max-width: none;
    zoom: 1.15;
  }
}

@media (min-width: 1800px) {
  .page-shell {
    zoom: 1.22;
  }
}

@media (min-width: 2100px) {
  .page-shell {
    zoom: 1.3;
  }
}

/* ============================================================================
   RESPONSIVE — mobile first breakpoints
   ========================================================================= */

/* Large desktop and below */
@media (max-width: 1280px) {
  .page-shell { padding: 26px 32px 18px; }
  .hero-layout { gap: 30px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-subhead { font-size: 18px; }
  .benefits { margin: 48px 40px 18px; }
  footer { padding: 22px 40px 0; }
}

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .page-shell {
    padding: 24px 24px 18px;
    background:
      radial-gradient(circle at 0% 30%, rgba(248, 31, 114, 0.10), transparent 25%),
      radial-gradient(circle at 100% 30%, rgba(76, 27, 224, 0.06), transparent 25%),
      #ffffff;
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .brand-lockup p { display: none; }
  .brand-lockup .brand-wordmark{ width: 190px; height: 42px; margin: 0 auto; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy { order: 1; }
  .waitlist-card { order: 2; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone-column { order: 3; }

  .hero-copy h1 { font-size: 48px; }
  .hero-subhead { margin-left: auto; margin-right: auto; }
  .hero-houston-badge { margin-left: auto; margin-right: auto; }

  .benefits {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0 18px;
  }
  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
    padding-right: 0;
    padding-bottom: 22px;
  }
  .benefits article:last-child { border-bottom: 0; }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 22px 0 0;
  }
  .footer-brand { justify-content: center; }
  .socials     { text-align: center; }
  .socials a   { margin: 0 8px; }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
  .page-shell { padding: 20px 20px 16px; }
  .topbar { gap: 12px; }
  .dot-grid { padding: 6px 0; }
  .brand-lockup .brand-wordmark{ width: 160px; height: 36px; margin: 0 auto; }
  .login-button { padding: 10px 14px; font-size: 14px; }

  .hero-copy h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-subhead { font-size: 17px; margin-top: 18px; }
  .hero-houston-badge { font-size: 13px; padding: 6px 12px; }

  .waitlist-card { padding: 22px; border-radius: 22px; }
  .waitlist-card h2 { font-size: 24px; }
  .waitlist-card label { margin-top: 10px; }

  /* iPad / tablet portrait: tighten the phone so it doesn't look elongated.
     Removes the forced min-height, widens slightly, and trims internal spacing
     so the overall aspect ratio reads like a phone (~2:1) instead of a tall bar. */
  .phone-shell {
    width: 260px;
    min-height: 0;
    padding: 10px 8px 8px;
    border-radius: 36px;
    transform: rotate(-2deg);
  }
  .phone-brand { padding-top: 6px; }
  .phone-feature-cards { gap: 6px; margin: 10px 0 10px; }
  .feature-image-box { aspect-ratio: 1.3; } /* shorter cards → shorter phone */
  .for-you { gap: 5px; }
  .feed-row { padding: 5px 6px; }
  .explore-now { padding: 8px; margin-top: 6px; }
  .bottom-nav { padding-top: 6px; }
  .bottom-nav .plus { width: 30px; height: 30px; font-size: 18px; }
}

/* Phones */
@media (max-width: 480px) {
  .page-shell { padding: 16px 16px 12px; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand-lockup .brand-wordmark { width: 140px; height: 32px; margin: 0 auto; }
  .login-button { padding: 8px 12px; font-size: 13px; }

  .hero-copy h1 { font-size: 34px; }
  .hero-subhead { font-size: 16px; }

  .waitlist-card { padding: 20px; border-radius: 20px; }
  .waitlist-card h2 { font-size: 22px; }
  .waitlist-card input,
  .waitlist-card select { padding: 12px; }
  .waitlist-button { min-height: 48px; padding: 12px; }

  /* Mobile: strip the phone-frame decoration and show ONLY the 3 feature cards
     as a standalone visual row. Gives cold visitors product context between the
     headline and the form, without the phone-in-phone weirdness. */
  .phone-column { display: block; order: 2; margin: 4px 0 8px; }
  .phone-shell {
    width: 100%;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    transform: none;
    box-shadow: none;
    overflow: visible;
  }
  .phone-status,
  .phone-brand,
  .for-you,
  .for-you-title,
  .explore-now,
  .bottom-nav { display: none; }

  .phone-feature-cards { gap: 12px; margin: 0; }
  .feature-icon {
    width: 32px; height: 32px;
    font-size: 14px;
    margin-bottom: -10px;
    border-width: 3px;
  }
  .feature-image-box { border-radius: 14px; }
  .phone-feature h3 { font-size: 14px; margin: 8px 0 2px; }
  .phone-feature p  { font-size: 12px; line-height: 1.35; }

  .benefits { gap: 20px; margin-top: 32px; }
  .benefit-icon { width: 60px; height: 60px; font-size: 28px; }
  .benefits article { gap: 14px; padding-bottom: 20px; }
  .benefits h3 { font-size: 17px; }
  .benefits p { font-size: 15px; }

  footer nav { gap: 24px; }
}

/* Tiny phones */
@media (max-width: 360px) {
  .page-shell { padding: 12px 12px 10px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-subhead { font-size: 15px; }
  .waitlist-card { padding: 18px; }
  .brand-lockup .brand-wordmark { width: 120px; height: 28px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
