/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: -webkit-fill-available; /* Safari fix for 100vh */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #111827;
  font-size: 16px;
}

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

/* Override img defaults for hero shapes */
.hero-shape img {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

ul {
  list-style: none;
}

/* ===== PAGE VISIBILITY ===== */
#main-page {
  display: block;
}

#privacy-page {
  display: none;
}

#privacy-page.visible {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 60;
  overflow-y: auto;
}

#main-page.hidden {
  display: none;
}

/* ===== NAVIGATION ===== */
.nav {
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  transition: color 0.15s;
}

.nav-logo:hover {
  color: #374151;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 1rem;
  color: #4b5563;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #111827;
}

.btn-primary {
  background-color: #111827;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s;
  display: none;
}

.btn-primary:hover {
  background-color: #1f2937;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  overflow: hidden;
}

.hero-wrapper {
  max-width: 80rem;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Base styles for all hero shapes */
.hero-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Orange squares - upper right */
.hero-shape-orange {
  top: 8%;
  right: 5%;
  width: 100px;
  height: 100px;
}

/* Green circle - upper left */
.hero-shape-green-circle {
  top: 20%;
  left: 15%;
  width: 80px;
  height: 80px;
}

/* Blue crescents - left side, middle */
.hero-shape-blue {
  top: 50%;
  left: 0;
  width: 200px;
  height: 136px;
  transform: translateY(-50%) translateX(-100px);
}

/* Purple circles - right side, middle */
.hero-shape-purple {
  top: 50%;
  right: 0;
  width: 140px;
  height: 142px;
  transform: translateY(-20%) translateX(50px);
}

/* Triangle bottom (orange) - lower left */
.hero-shape-triangle-bottom {
  bottom: 20%;
  left: 10%;
  width: 80px;
  height: 69px;
  transform: rotate(180deg);
}

/* Triangle mid - hidden on mobile */
.hero-shape-triangle-mid {
  display: none;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  /* Orange squares - upper right */
  .hero-shape-orange {
    top: 10%;
    right: 8%;
    width: 202px;
    height: 202px;
  }

  /* Green circle - upper left */
  .hero-shape-green-circle {
    top: 18%;
    left: 20%;
    width: 101px;
    height: 101px;
  }

  /* Blue crescents - left side, middle - BIGGER */
  .hero-shape-blue {
    top: 50%;
    left: 0;
    width: 400px;
    height: 273px;
    transform: translateY(-50%) translateX(-80px);
  }

  /* Purple circles - right side, middle */
  .hero-shape-purple {
    top: 50%;
    right: 0;
    width: 296px;
    height: 302px;
    transform: translateY(-10%) translateX(80px);
  }

  /* Triangle bottom (orange) - lower left */
  .hero-shape-triangle-bottom {
    bottom: 22%;
    left: 12%;
    width: 107px;
    height: 93px;
  }
}

@media (min-width: 1024px) {
  /* Blue crescents - even bigger on large screens */
  .hero-shape-blue {
    width: 450px;
    height: 307px;
  }
}

.hero-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
  position: relative;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Word Pile at Bottom */
.word-pile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.word-pile > div {
  max-width: 48rem;
}

.word-pill-bottom {
  position: absolute;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.word-pill-pile {
  position: absolute;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.word-pill-pile-sm {
  position: absolute;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Brand colors */
.pill-blue-main {
  background-color: #8ec5ff;
}

.pill-green-main {
  background-color: #bbf451;
}

.pill-purple-main {
  background-color: #dab2ff;
}

.pill-orange-main {
  background-color: #ffb86a;
}

/* Additional pastel colors */
.pill-blue {
  background-color: #dbeafe;
}

.pill-green {
  background-color: #dcfce7;
}

.pill-purple {
  background-color: #f3e8ff;
}

.pill-orange {
  background-color: #fed7aa;
}

.pill-pink {
  background-color: #fce7f3;
}

.pill-yellow {
  background-color: #fef3c7;
}

.tablet-only {
  display: none;
}

@media (min-width: 640px) {
  .tablet-only {
    display: block;
  }

  .word-pile {
    height: 20rem;
  }
}

@media (min-width: 1024px) {
  .desktop-only {
    display: block;
  }
}

.hero-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 48px 0 64px;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 64px 0 64px;
  }
}

.app-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #dab2ff;
  border-radius: 9999px;
}

.badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #374151;
}

.badge-text {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 2.5rem;
  line-height: 1.625;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cta-container {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  align-items: center;
}

.waitlist-form > div {
  width: 100%;
}

.email-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  outline: none;
  transition: all 0.15s;
}

.email-input:focus {
  outline: 2px solid #111827;
  outline-offset: 0;
  border-color: transparent;
}

.email-input.error {
  border-color: #ef4444;
}

.email-input.error:focus {
  outline: 2px solid #ef4444;
  border-color: transparent;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0 1rem;
  text-align: left;
}

.info-message {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0 1rem;
  text-align: left;
}

@media (min-width: 640px) {
  .email-input {
    padding: 1rem 1.25rem;
  }
}

.btn-cta {
  width: 100%;
  background-color: #111827;
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  transition: background-color 0.15s;
  font-weight: 400;
  text-align: center;
}

@media (min-width: 640px) {
  .btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
  }
}

.btn-cta:hover {
  background-color: #1f2937;
}

.appstore-text {
  font-size: 0.875rem;
  color: #4b5563;
  text-align: center;
}

/* Word Grid */
.word-grid {
  width: 100%;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.word-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.word-pill {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.word-pill-large {
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

/* ===== FEATURE SECTIONS ===== */
.feature-section {
  padding: 6rem 0;
}

.feature-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.feature-card {
  border-radius: 5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.feature-card.orange {
  background: linear-gradient(to bottom, #ffffff, #fff7ed);
}

.feature-card.blue {
  background: linear-gradient(to bottom, #ffffff, #eff6ff);
}

.feature-card.green {
  background: linear-gradient(to bottom, #ffffff, #f0fdf4);
}

.feature-card.purple {
  background: linear-gradient(to bottom, #ffffff, #faf5ff);
}

.feature-card.pink {
  background: linear-gradient(to bottom, #ffffff, #fdf2f8);
}

.feature-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.feature-image-wrapper {
  display: flex;
  justify-content: center;
}

.feature-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-title {
  font-size: 2.25rem;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.feature-description {
  font-size: 1.25rem;
  color: #111827;
  line-height: 1.625;
  letter-spacing: -0.025em;
  font-weight: 400;
}

/* Mobile ordering */
.order-1-mobile {
  order: 1;
}

.order-2-mobile {
  order: 2;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.faq-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-item h3 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.faq-item p {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.625;
  letter-spacing: -0.025em;
  font-weight: 400;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
  background-color: #ffffff;
  padding: 6rem 1.5rem 8rem;
  text-align: center;
}

.final-cta-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.final-cta-text {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  letter-spacing: -0.025em;
  font-weight: 400;
}

/* ===== FOOTER ===== */
footer {
  background-color: #f9fafb;
  padding: 4rem 0;
}

.footer-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column:nth-child(1) {
  gap: 0.25rem;
}

.footer-column:nth-child(2),
.footer-column:nth-child(3) {
  gap: 0.75rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}

.footer-tagline {
  color: #6b7280;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  font-weight: 400;
  line-height: 1.75rem;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.025em;
}

.footer-column a,
.footer-column button {
  font-size: 1.125rem;
  color: #6b7280;
  transition: color 0.15s;
  letter-spacing: -0.025em;
  text-align: left;
  font-weight: 400;
}

.footer-column a:hover,
.footer-column button:hover {
  color: #111827;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  text-align: left;
  font-weight: 400;
  line-height: 1.75rem;
}

/* ===== PRIVACY POLICY ===== */
.privacy-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  transition: color 0.15s;
  margin-bottom: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.back-btn:hover {
  color: #111827;
}

.back-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.privacy-prose h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.privacy-date {
  color: #4b5563;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.privacy-prose p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.625;
}

.privacy-prose h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.privacy-prose h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.privacy-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-prose li {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.625;
}

.privacy-prose a {
  color: #111827;
}

.privacy-prose a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE - SMALL PHONES (up to 374px) ===== */
@media (max-width: 374px) {
  .hero-content {
    padding: 120px 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 0.875rem 2.5rem;
  }

  .geometric-shape svg {
    width: 20px !important;
    height: 20px !important;
  }

  .feature-card {
    padding: 2rem;
    min-height: 500px;
    border-radius: 3rem;
  }

  .feature-title {
    font-size: 1.875rem;
  }

  .feature-description {
    font-size: 1.125rem;
  }
}

/* ===== RESPONSIVE - TABLET (640px+) ===== */
@media (min-width: 640px) {
  .btn-primary {
    display: inline-block;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 5rem;
  }

  .feature-title {
    font-size: 3rem;
  }

  .faq-title {
    font-size: 3rem;
  }

  .final-cta-title {
    font-size: 3rem;
  }

  .privacy-prose h1 {
    font-size: 3rem;
  }

  .privacy-content {
    padding: 4rem 1.5rem;
  }

  .footer-top {
    flex-direction: row;
  }
}

/* ===== RESPONSIVE - DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .hero-content {
    max-width: 80rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .emoji-mobile {
    display: none;
  }

  .emoji-desktop {
    display: block;
  }

  .emoji {
    font-size: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-image {
    max-width: 320px;
  }

  .feature-image-wrapper {
    justify-content: flex-end;
  }

  .order-1-desktop {
    order: 1;
  }

  .order-2-desktop {
    order: 2;
  }

  .feature-text {
    padding-right: 3rem;
  }

  .order-2-desktop.feature-text {
    padding-right: 0;
    padding-left: 3rem;
  }

  .order-1-desktop.feature-image-wrapper {
    justify-content: flex-start;
  }
}
