/* ============================================================
   Big Feels — Microsite Styles
   ============================================================ */

/* --- Reset & base ----------------------------------------- */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #1a1a2e;
  color: #fef9ef;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Tokens ----------------------------------------------- */

:root {
  /* Primary */
  --bf-midnight:    #1a1a2e;
  --bf-cream:       #fef9ef;
  --bf-amber:       #f4a261;

  /* Secondary */
  --bf-lavender:    #9d8cd9;
  --bf-rose:        #d4a5a5;
  --bf-forest:      #4a7c59;

  /* Night gradient */
  --bf-night-dark:  #0f0f23;
  --bf-night-mid:   #16213e;

  /* Button / CTA gradient */
  --bf-amber-warm:  #e07b3c;
  --bf-peach:       #f5a966;
  --bf-burnt-orange: #c7522a;

  /* Semantic aliases */
  --bg:             var(--bf-midnight);
  --bg-alt:         var(--bf-night-mid);
  --text:           var(--bf-cream);
  --muted:          rgba(254, 249, 239, 0.55);
  --brand:          var(--bf-amber);
  --brand-hover:    var(--bf-amber-warm);
  --border:         rgba(254, 249, 239, 0.1);

  --max-wide:    960px;
  --max-narrow:  720px;

  --section-pad: 100px;
}

/* --- Layout helpers --------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--max-narrow);
}

/* --- Sections --------------------------------------------- */

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background-color: var(--bg);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 40px;
  color: var(--text);
}

/* --- Buttons ---------------------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bf-peach), var(--bf-amber-warm), var(--bf-burnt-orange));
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  opacity: 0.95;
}

.btn-large {
  font-size: 18px;
  padding: 20px 40px;
}

/* --- Screenshot placeholders ------------------------------ */

.screenshot-placeholder {
  background-color: rgba(254, 249, 239, 0.05);
  border: 1px solid rgba(254, 249, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(254, 249, 239, 0.35);
  border-radius: 16px;
  padding: 12px;
}

.screenshot-phone-lg {
  width: 260px;
  height: 520px;
  border-radius: 28px;
}

.screenshot-phone-sm {
  width: 200px;
  height: 400px;
  margin-top: 28px;
}

/* --- App screenshots (real images) ------------------------ */

.hero-phone {
  width: 260px;
  height: 520px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-phone-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone-img--top {
  animation: hero-crossfade 8s ease-in-out infinite;
}

@keyframes hero-crossfade {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}

.step-screenshot {
  display: block;
  width: 200px;
  height: 400px;
  margin-top: 28px;
  border-radius: 16px;
  object-fit: cover;
  align-self: center;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 28px;
  width: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  transition: opacity 0.15s ease;
}

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

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--bg);
}

.hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-headline {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   How It Works
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.step {
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bf-peach), var(--bf-burnt-orange));
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.step .screenshot-placeholder {
  align-self: center;
}

/* ============================================================
   Founder's Note
   ============================================================ */

.founders-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 40px;
}

.founders-attribution {
  display: flex;
  align-items: center;
  gap: 16px;
}

.founder-photo {
  width: 80px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.founders-name {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   Pull Quote
   ============================================================ */

.section-quote {
  background-color: var(--bg-alt);
}

.pull-quote {
  font-size: clamp(22px, 3vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--brand);
  text-align: center;
  position: relative;
  border: none;
}

.quote-mark {
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.1em;
}

/* ============================================================
   Founding Family
   ============================================================ */

.founding-intro {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
}

.founding-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.founding-list li {
  font-size: 18px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.founding-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.founding-ask {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}

.founding-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   Waitlist Form
   ============================================================ */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin-bottom: 16px;
  position: relative;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form input {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: rgba(254, 249, 239, 0.07);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form input:focus {
  border-color: var(--brand);
}

.waitlist-form button {
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 20px 40px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--bf-peach), var(--bf-amber-warm), var(--bf-burnt-orange));
  color: #ffffff;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.waitlist-form button:hover {
  filter: brightness(1.1);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 15px;
  color: var(--brand);
  min-height: 22px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background-color: var(--bf-night-dark);
  color: var(--text);
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.footer-email {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-email:hover {
  color: var(--text);
}

.footer-legal {
  font-size: 13px;
  color: rgba(254, 249, 239, 0.35);
  line-height: 1.65;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Responsive — mobile-first adjustments
   ============================================================ */

@media (max-width: 768px) {

  :root {
    --section-pad: 72px;
  }

  /* Hero stacks vertically */
  .hero-inner {
    flex-direction: column;
    gap: 48px;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-visual {
    width: 100%;
  }

  .screenshot-phone-lg {
    width: 220px;
    height: 440px;
    margin: 0 auto;
  }

  .hero-phone {
    width: 220px;
    height: 440px;
    margin: 0 auto;
  }

  /* Steps stack */
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .step .screenshot-placeholder {
    width: 180px;
    height: 360px;
  }

  .step-screenshot {
    width: 180px;
    height: 360px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 480px) {

  :root {
    --section-pad: 56px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .btn-large {
    font-size: 17px;
    padding: 18px 32px;
    width: 100%;
    text-align: center;
  }

  .hero-headline {
    font-size: 34px;
  }
}
