:root {
  --bg-start: #e7ac27;
  --bg-end: #f5cf79;
  --text-color: #1a1a1a;
  --primary-font: "Outfit", sans-serif;
  --secondary-font: "Inter", sans-serif;
  --button-bg: #d99f22;
  --button-hover: #c48c15;
}

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

body {
  font-family: var(--secondary-font);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Ensure background covers everything */
}

/* Background container */
.background-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background Blobs */
.bg-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: #f9ebcb;
}
.blob-left {
  top: 50%;
  left: -15vw; /* Position to be visible but at the edge */
  width: 40vw;
  height: 40vw; /* Keep 1:1 aspect ratio */
  opacity: 0.5;
}
.blob-right {
  top: 60%;
  right: -15vw;
  width: 40vw;
  height: 40vw;
  opacity: 0.3;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: #000;
}

/* Main Hero */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Push content to top approx */
  padding-top: 8vh;
  width: 100%;
  z-index: 5;
  position: relative;
  pointer-events: none; /* Allow clicks to pass through to phones */
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
  z-index: 20; /* Above phones if they overlap */
  pointer-events: auto; /* Re-enable clicks for form and text */
}

.headline {
  font-family: var(--primary-font);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.highlight-container {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.underline-shape {
  position: absolute;
  bottom: -0.3em;
  left: -0.1em;
  width: 105%;
  height: auto;
  z-index: -2;
  pointer-events: none;
}

/* Form */
.form-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  background: #fff;
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.email-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.5rem;
  font-family: var(--secondary-font);
  font-size: 1rem;
  background: transparent;
  color: #333;
}

.submit-button {
  background: var(--button-bg);
  color: #1a1a1a; /* Dark text on yellow button */
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-family: var(--primary-font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.submit-button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(1px);
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}
.form-message.success {
  color: #2e7d32;
  font-weight: 500;
}
.form-message.error {
  color: #d32f2f;
}
.hidden {
  visibility: hidden;
}

.subtitle {
  font-family: var(--primary-font);
  font-weight: 600;
  color: #665c40; /* Darker yellow/brown text */
  margin-top: 0.5rem;
}

/* Footer - Copyright */
footer {
  padding: 2rem;
  text-align: center;
  color: #665c40;
  font-size: 0.9rem;
  z-index: 10;
}

/* Phones */
.phones-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1800px; /* Constrain width on large screens */
  height: 100%;
  pointer-events: none; /* Let clicks pass through */
  z-index: 2; /* Below text input but above bg? Wait text form should be capable of handling input. Text is z-index 20. */
}

.phone-mockup {
  position: absolute;
  width: 280px; /* Base width */
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy feel */
  cursor: pointer;
}

.phone-left {
  top: 35%; /* Adjust vertically */
  left: 8%;
  transform: rotate(-10deg);
}

.phone-right {
  top: 45%;
  right: 10%;
  transform: rotate(10deg);
  width: 380px; /* Right phone is larger/closer in design */
}

@media (min-width: 769px) {
  .phone-left:hover {
    transform: rotate(-15deg) translateY(-30px);
  }

  .phone-right:hover {
    transform: rotate(15deg) translateY(-30px);
  }
}

/* Floating Assets */
.floating-asset {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.asset-box {
  top: 15%;
  left: 20%;
  width: 60px;
  animation: float-box 6s ease-in-out infinite;
}

.asset-camera {
  top: 25%;
  right: 15%;
  width: 80px;
  animation: float-camera 7s ease-in-out infinite 1s;
}

.asset-island {
  bottom: 5%;
  left: 15%; /* Moved slightly right from edge */
  width: 120px;
  z-index: 10; /* Above bottom elements */
  animation: float-island 8s ease-in-out infinite 0.5s;
}

/* Animations */
@keyframes float-box {
  0% {
    transform: translateY(0px) rotate(-6deg);
  }
  50% {
    transform: translateY(-20px) rotate(6deg);
  }
  100% {
    transform: translateY(0px) rotate(-6deg);
  }
}

@keyframes float-camera {
  0% {
    transform: translateY(0px) rotate(-20deg);
  } /* Base -15 +/- 5 */
  50% {
    transform: translateY(-25px) rotate(-10deg);
  }
  100% {
    transform: translateY(0px) rotate(-20deg);
  }
}

@keyframes float-island {
  0% {
    transform: translateY(0px) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
  100% {
    transform: translateY(0px) rotate(2deg);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .phone-left {
    left: -50px;
    width: 240px;
  }
  .phone-right {
    right: -80px;
    width: 300px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 5vh;
  }

  /* Move phones down or simplify */
  .phone-left {
    top: 60%;
    left: -20px;
    transform: rotate(-5deg);
    width: 200px;
  }

  .phone-right {
    top: 65%;
    right: -40px;
    transform: rotate(5deg);
    width: 250px;
  }

  .floating-asset {
    transform: scale(0.7);
  }
}

@media (max-width: 768px) {
  /* Mobile Layout */
  .hero-section {
    padding-top: 2rem;
  }

  .headline {
    font-size: 2.8rem;
  }

  .newsletter-form {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 1rem;
  }

  .email-input {
    background: #fff;
    border-radius: 40px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .submit-button {
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* Phone Layout on Mobile */
  .phones-container {
    position: relative;
    top: auto;
    left: 0; /* Reset from desktop's centralized absolute positioning */
    transform: none;
    width: 100%;
    height: 720px; /* Allocated space for stacked phones (prevent footer overlap) */
    display: flex; /* Not strictly needed for absolute children but keeps centering intent */
    justify-content: center;
    margin-top: 2rem;
    pointer-events: auto;
    overflow: visible;
  }

  .phone-left {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 260px;
    /* Center horizontally, then offset slightly left. Rotate -10deg */
    transform: translateX(-60%) rotate(-10deg);
    z-index: 2; /* Stack on top */
  }

  .phone-right {
    position: absolute;
    top: 80px; /* Push down slightly */
    left: 50%;
    transform: translateX(-40%) rotate(10deg);
    width: 300px;
    z-index: 1; /* Behind left phone */
  }

  .asset-box {
    top: 5%;
    left: 5%;
  }

  /* Camera positioning on mobile */
  .asset-camera {
    position: absolute;
    top: 75%; /* Push it down near the form button area */
    right: 5%; /* Stick to the right edge */
    left: auto;
    bottom: auto;
    width: 60px;
  }

  .asset-island {
    display: none;
  } /* Hide lower asset on mobile to save space */
}

/* Policy Pages */
.policy-page {
  background: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.policy-navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  justify-content: center; /* keep logo centered like main page */
}

/* Reuse .logo-container and .logo-text from main styles */
.policy-page .logo-text {
  color: #1a1a1a;
}
.policy-page a {
  text-decoration: none;
}

.policy-container {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.policy-header {
  text-align: center;
  margin-bottom: 3rem;
}

.policy-header h1 {
  font-family: var(--primary-font);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.last-updated {
  font-size: 0.9rem;
  color: #666;
}

.policy-content-body {
  font-family: var(--secondary-font);
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.policy-content-body h2 {
  font-family: var(--primary-font);
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.policy-content-body p {
  margin-bottom: 1rem;
}

.policy-content-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-content-body li {
  margin-bottom: 0.5rem;
}

.policy-content-body strong {
  font-weight: 600;
  color: #000;
}

/* Footer for policy pages */
.policy-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #666;
  font-size: 0.9rem;
}

.policy-footer .copyright {
  color: #888;
}

@media (max-width: 600px) {
  .policy-header h1 {
    font-size: 2rem;
  }
}

/* Footer Links */
.footer-links {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #665c40;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.footer-links .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}
