/* ==============================================
   COTTAGE SHELF — Landing Page Stylesheet
   Palette: Cream #F5EDD8 | Forest Green #2D4739 | Brass #C8A96A | Coral #E8785A | Teal #1C3D4A
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --cream: #F5EDD8;
  --cream-dark: #EDE0C4;
  --cream-darker: #E3D3A8;
  --green: #2D4739;
  --green-light: #3E6050;
  --green-mid: #4a7c59;
  --brass: #C8A96A;
  --brass-light: #D9BD82;
  --coral: #E8785A;
  --coral-light: #F09070;
  --teal: #1C3D4A;
  --teal-mid: #2a5568;
  --ink: #2C2015;
  --ink-soft: #5C4A30;
  --ink-muted: #8B7355;
  --white: #FFFDF7;
  --amber: #F5A623;
  --shadow-warm: rgba(44, 32, 21, 0.12);
  --shadow-gold: rgba(200, 169, 106, 0.25);
  --glow-amber: rgba(245, 166, 35, 0.35);
  --glow-green: rgba(45, 71, 57, 0.3);

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-lora: 'Lora', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-circle: 50%;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans);
  background-color: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Particles Canvas (ambient dust) ---- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---- Paper texture overlay ---- */
.hero-paper-overlay {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(245, 237, 216, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 169, 106, 0.3), 0 4px 20px rgba(44, 32, 21, 0.08);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo-leaf {
  font-size: 1rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-text-link {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--brass-light), var(--amber, #C8A96A));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green) !important;
  color: var(--cream) !important;
  padding: 9px 22px;
  border-radius: var(--radius-xl);
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  box-shadow: 0 2px 12px rgba(45, 71, 57, 0.25);
}

.nav-cta:hover {
  background: var(--green-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 71, 57, 0.35) !important;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(200, 169, 106, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(45, 71, 57, 0.06) 0%, transparent 60%),
    var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 48px,
      rgba(200, 169, 106, 0.06) 48px,
      rgba(200, 169, 106, 0.06) 49px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Floating decorative elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: float-gentle 6s ease-in-out infinite;
}

.hero-deco--leaf1 {
  top: 15%;
  left: 6%;
  font-size: 2.2rem;
  opacity: 0.35;
  animation-delay: 0s;
}

.hero-deco--leaf2 {
  top: 60%;
  left: 4%;
  font-size: 1.6rem;
  opacity: 0.3;
  animation-delay: 1.5s;
}

.hero-deco--star1 {
  top: 20%;
  right: 8%;
  font-size: 1.2rem;
  color: var(--brass);
  opacity: 0.5;
  animation-delay: 0.7s;
}

.hero-deco--star2 {
  top: 55%;
  right: 5%;
  font-size: 0.8rem;
  color: var(--brass);
  opacity: 0.4;
  animation-delay: 2s;
}

.hero-deco--star3 {
  top: 80%;
  right: 12%;
  font-size: 1rem;
  color: var(--brass);
  opacity: 0.35;
  animation-delay: 1s;
}

@keyframes float-gentle {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(3deg);
  }

  66% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 71, 57, 0.08);
  border: 1px solid rgba(45, 71, 57, 0.2);
  border-radius: var(--radius-xl);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fade-in-up 0.8s ease both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Logo lockup */
.hero-logo-wrap {
  animation: fade-in-up 0.9s ease 0.1s both;
}

.hero-logo-ornament {
  opacity: 0.7;
  margin: 4px auto;
  width: 220px;
}

.ornament-svg {
  width: 100%;
  display: block;
}

.hero-logo {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 50%, var(--ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-logo-img {
  height: clamp(180px, 22vw, 320px);
  width: auto;
  display: block;
  margin: 8px auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(200, 169, 106, 0.4));
}

.hero-logo::after {
  content: 'Shelfie!';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brass-light), var(--amber), var(--brass));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-logo:hover::after {
  opacity: 0.15;
}

/* Headline */
.hero-headline {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 24px;
  margin-bottom: 20px;
  animation: fade-in-up 0.9s ease 0.2s both;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

/* Sub-headline */
.hero-sub {
  font-family: var(--ff-lora);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fade-in-up 0.9s ease 0.3s both;
}

/* Scroll CTA */
.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--cream);
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 24px rgba(45, 71, 57, 0.3);
  animation: fade-in-up 0.9s ease 0.4s both;
}

.hero-scroll-cta:hover {
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 71, 57, 0.4);
}

.cta-arrow {
  animation: bounce-arrow 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ============================================================
   SECTION 2: APP VISUAL
   ============================================================ */
.visual-section {
  position: relative;
  z-index: 1;
  padding: 60px 5% 80px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(28, 61, 74, 0.05) 0%, transparent 70%),
    var(--cream);
}

.visual-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Shelf frame (decorative wood header) */
.shelf-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
}

.shelf-frame-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  gap: 12px;
  margin: 0 auto 48px;
  text-align: center;
}

.frame-title-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px;
  width: 100%;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 500;
  margin-bottom: 0;
}

.frame-nail {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D4A84B, #8B6914);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.frame-title {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brass-light), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  margin: 0;
}

.section-sub {
  font-family: var(--ff-lora);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: -16px;
  margin-bottom: 32px;
  max-width: 600px;
  text-align: center;
  font-style: italic;
  opacity: 0.8;
}

/* App Mockup */
.app-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 20px 0 40px;
}

.app-phone-shadow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(44, 32, 21, 0.2) 0%, transparent 70%);
  filter: blur(12px);
}

.app-phone {
  width: 300px;
  border-radius: 38px;
  background: #1a1612;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(200, 169, 106, 0.3),
    0 20px 60px rgba(44, 32, 21, 0.35),
    0 0 80px rgba(200, 169, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--teal);
  aspect-ratio: 9/20;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Floating feature tags */
.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 237, 216, 0.92);
  border: 1px solid rgba(200, 169, 106, 0.5);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(44, 32, 21, 0.12);
  white-space: nowrap;
  animation: tag-float 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.float-tag--lamp {
  top: 15%;
  right: -10%;
  animation-delay: 0s;
}

.float-tag--music {
  top: 45%;
  left: -14%;
  animation-delay: 0.8s;
}

.float-tag--snail {
  bottom: 25%;
  right: -12%;
  animation-delay: 1.4s;
}

.tag-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: transparent;
  box-shadow: 0 0 12px var(--glow-amber);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes tag-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Ivy decorations */
.ivy-left,
.ivy-right {
  position: absolute;
  top: 0;
  width: 80px;
  height: 400px;
  pointer-events: none;
}

.ivy-left {
  left: -60px;
}

.ivy-right {
  right: -60px;
}

.ivy-svg {
  width: 100%;
  height: 100%;
}

/* Visual caption */
.visual-caption {
  margin-top: 0px;
  font-family: var(--ff-lora);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTION 3: WAITLIST CTA
   ============================================================ */
.waitlist-section {
  position: relative;
  z-index: 1;
  padding: 80px 5% 100px;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 169, 106, 0.15) 0%, transparent 60%);
  overflow: hidden;
}

.waitlist-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-light), transparent);
  opacity: 0.6;
}

.waitlist-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.waitlist-lamp-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(200, 169, 106, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist-tag-strip {
  margin-bottom: 20px;
}

.waitlist-tag {
  display: inline-block;
  background: rgba(45, 71, 57, 0.08);
  border: 1px solid rgba(45, 71, 57, 0.18);
  border-radius: var(--radius-xl);
  padding: 5px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}

.waitlist-heading {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.waitlist-sub {
  font-family: var(--ff-lora);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

/* Form */
.waitlist-form {
  position: relative;
}

.form-field-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1.5px solid rgba(200, 169, 106, 0.4);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 24px var(--shadow-warm), 0 0 0 0px var(--brass);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field-wrap:focus-within {
  border-color: var(--brass);
  box-shadow: 0 4px 24px var(--shadow-warm), 0 0 0 3px rgba(200, 169, 106, 0.15);
}

.waitlist-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 0;
}

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

.waitlist-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--coral-light);
  border: none;
  border-radius: var(--radius-xl);
  padding: 13px 24px;
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(45, 71, 57, 0.3);
}

.waitlist-btn:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 71, 57, 0.4);
}

.btn-lamp {
  font-size: 1rem;
}

/* Success state */
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--green);
  font-family: var(--ff-lora);
  font-style: italic;
  font-size: 1rem;
  animation: fade-in-up 0.5s ease;
}

.form-success.visible {
  display: flex;
}

/* Founder's perk */
.founders-perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(200, 169, 106, 0.12), rgba(245, 166, 35, 0.08));
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(200, 169, 106, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.perk-lamp-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.6));
  animation: lamp-glow 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes lamp-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(245, 166, 35, 0.9));
  }
}

.perk-text {
  font-family: var(--ff-lora);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
}

.perk-text strong {
  color: var(--ink);
}

.perk-text em {
  color: var(--green);
  font-style: italic;
}

/* Trust signals */
.trust-signals {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.trust-dot {
  color: var(--brass);
  font-size: 1.2rem;
  line-height: 1;
}

/* Feature Popups */
/* On desktop: floats absolutely over the shelf-frame */
/* On mobile: becomes a static grid between mockup and toggle */
.visual-popups {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.visual-popup {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: var(--radius-xl);
  padding: 10px 18px;
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(44, 32, 21, 0.12);
  white-space: nowrap;
  animation: popup-float 6s ease-in-out infinite both;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease;
}

.visual-popup:hover {
  transform: scale(1.05);
  background: var(--white);
  border-color: var(--brass);
}

.p-icon {
  font-size: 1rem;
}

/* Individual placements - Centered Symmetrically around the phone */
.p-1 {
  top: 120px;
  left: 50%;
  margin-left: -440px;
  animation-delay: 0s;
}

.p-2 {
  top: 280px;
  left: 50%;
  margin-left: -480px;
  animation-delay: 1.5s;
}

.p-3 {
  top: 480px;
  left: 50%;
  margin-left: -420px;
  animation-delay: 0.7s;
}

.p-4 {
  top: 140px;
  right: 50%;
  margin-right: -420px;
  animation-delay: 2.2s;
}

.p-5 {
  top: 320px;
  right: 50%;
  margin-right: -460px;
  animation-delay: 1s;
}

.p-6 {
  top: 520px;
  right: 50%;
  margin-right: -400px;
  animation-delay: 3.5s;
}

@media (max-width: 1200px) {
  .p-1 {
    margin-left: -380px;
  }

  .p-2 {
    margin-left: -400px;
  }

  .p-3 {
    margin-left: -360px;
  }

  .p-4 {
    margin-right: -340px;
  }

  .p-5 {
    margin-right: -380px;
  }

  .p-6 {
    margin-right: -320px;
  }
}

@keyframes popup-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(5px, -10px) rotate(1deg);
  }

  66% {
    transform: translate(-3px, -5px) rotate(-1deg);
  }
}

@media (max-width: 1100px) {
  .p-1 {
    left: 5%;
  }

  .p-4 {
    right: 5%;
  }
}

@media (max-width: 860px) {

  /* Switch popups from absolute-floating to a static grid below the mockup */
  .visual-popups {
    position: static !important;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding: 0 16px;
  }

  .visual-popup {
    position: static !important;
    margin: 0;
    animation: none;
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: normal;
  }

  /* Reset all individual px offsets */
  .p-1,
  .p-2,
  .p-3,
  .p-4,
  .p-5,
  .p-6 {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .visual-popups {
    grid-template-columns: repeat(2, auto);
  }
}

/* Shop Banner */
.shop-feature-banner {
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(45, 71, 57, 0.25);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.shop-feature-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.shop-banner-text {
  flex: 1;
}

.shop-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 500;
  margin-bottom: 10px;
}

.shop-title {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.shop-desc {
  font-family: var(--ff-lora);
  font-size: 0.9rem;
  color: rgba(245, 237, 216, 0.75);
  line-height: 1.65;
  max-width: 340px;
}

.shop-props {
  display: flex;
  gap: 16px;
  align-items: center;
}

.shop-prop {
  font-size: 2rem;
  animation: shop-prop-float 4s ease-in-out infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes shop-prop-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(5deg);
  }

  66% {
    transform: translateY(-5px) rotate(-3deg);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  padding: 60px 5% 40px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-divider {
  width: 100%;
  margin-bottom: 40px;
  opacity: 0.5;
}

.footer-divider-svg {
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-logo-icon {
  font-size: 1.2rem;
  opacity: 0.7;
}

.footer-story {
  font-family: var(--ff-lora);
  font-size: 0.95rem;
  color: rgba(245, 237, 216, 0.6);
  line-height: 1.75;
  margin-bottom: 36px;
}

.footer-story em {
  color: rgba(245, 237, 216, 0.8);
  font-style: italic;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 36px;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(245, 237, 216, 0.55);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0 4px;
}

.footer-link:hover {
  color: var(--brass-light);
}

.footer-nav-dot {
  color: rgba(200, 169, 106, 0.4);
  margin: 0 8px;
  font-size: 1.1rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid rgba(200, 169, 106, 0.12);
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(245, 237, 216, 0.3);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}

.footer-heart {
  color: rgba(245, 237, 216, 0.45);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.revealed>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.0s;
}

.reveal-stagger.revealed>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.reveal-stagger.revealed>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.30s;
}

.reveal-stagger.revealed>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.reveal-stagger.revealed>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.60s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid rgba(200, 169, 106, 0.4);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(44, 32, 21, 0.1);
}

.carousel-control:hover {
  background: var(--white);
  border-color: var(--brass);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(44, 32, 21, 0.15);
}

.carousel-control.prev {
  left: -20px;
}

.carousel-control.next {
  right: -20px;
}

.arrow-icon {
  line-height: 1;
}

/* Theme Toggle Container (at bottom) */
.theme-toggle-container {
  display: flex;
  justify-content: center;
  padding-top: 60px;
  margin-bottom: 20px;
}

.theme-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.theme-toggle {
  width: 64px;
  height: 32px;
  background: var(--teal);
  border-radius: 32px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(200, 169, 106, 0.2);
  transition: background var(--transition);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(to right, #2a5568, #1C3D4A);
  opacity: 1;
  transition: opacity var(--transition);
}

.toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.toggle-icon {
  font-size: 0.9rem;
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.toggle-icon.sun {
  opacity: 0;
  transform: rotate(-90deg);
}

.toggle-icon.moon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-label {
  font-family: var(--ff-lora);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Day Mode State */
.day-mode .theme-toggle {
  background: #7fb6d1;
}

.day-mode .toggle-handle {
  transform: translateX(32px);
}

.day-mode .toggle-icon.sun {
  opacity: 1;
  transform: rotate(0deg);
}

.day-mode .toggle-icon.moon {
  opacity: 0;
  transform: rotate(90deg);
}

@media (max-width: 860px) {
  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .form-field-wrap {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    border-radius: var(--radius-lg);
  }

  .waitlist-btn {
    width: 100%;
    justify-content: center;
  }

  .trust-signals {
    flex-direction: column;
    gap: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============ MOBILE RESPONSIVE FIX ============ */
@media (max-width: 768px) {

  /* Global centering */
  body {
    overflow-x: hidden;
  }

  section,
  .visual-section,
  .hero,
  .waitlist-section {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    text-align: center;
  }

  /* Visual section container */
  .visual-container {
    width: 100%;
    padding: 0;
    align-items: center;
  }

  .shelf-frame {
    width: 100%;
    max-width: 100%;
  }

  /* App mockup: center and full-width — keep row so arrows stay left/right */
  .app-mockup-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 0 24px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
  }

  /* Phone scales to viewport */
  .app-phone {
    width: min(240px, 72vw);
    border-radius: 28px;
  }

  /* Keep arrows absolutely positioned on sides */
  .carousel-control.prev {
    left: 0;
  }

  .carousel-control.next {
    right: 0;
  }

  /* Hero text */
  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1rem;
    padding: 0 8px;
  }

  /* Waitlist section */
  .waitlist-inner {
    padding: 40px 16px;
  }

  .waitlist-headline {
    font-size: 2.2rem;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Ivy decorations — hide on mobile to avoid overflow */
  .ivy-left,
  .ivy-right {
    display: none;
  }
}