/* Landing Page Styles - Spelling Chimps */

:root {
  /* Brand Colors (Matching App) */
  --brand-blue: #1565c0;
  --success-green: #00c853;
  --ink-blue: #16324f;
  --error-red: #ff5252;

  /* Landing Page Specifics */
  --bg-sky: #E0F7FA;
  --bg-cream: #FFF8E1;
  --accent-yellow: #F1C40F;
  /* Banana Yellow for highlights */
  --accent-brown: #8D6E63;
  /* Monkey Brown */

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 4rem 2rem;

  /* Text stroke variables */
  --text-stroke-thick: 4px #ffffff;
  --text-stroke-medium: 3px #ffffff;
  --text-stroke-thin: 2px #ffffff;
  --text-stroke-minimal: 1px #ffffff;
  --text-stroke-none: 0px;
  --nav-font-size: 1.6rem;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink-blue);
  background-color: var(--bg-sky);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.2;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--success-green);
  color: white;
  border-bottom: 4px solid #009624;
  /* Darker green shade */
}

/* Landing Page Styles - Spelling Chimps */

:root {
  /* Brand Colors (Matching App) */
  --brand-blue: #1565c0;
  --success-green: #00c853;
  --ink-blue: #16324f;
  --error-red: #ff5252;

  /* Landing Page Specifics */
  --bg-sky: #E0F7FA;
  --bg-cream: #FFF8E1;
  --accent-yellow: #F1C40F;
  /* Banana Yellow for highlights */
  --accent-brown: #8D6E63;
  /* Monkey Brown */

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 4rem 2rem;

  /* Text stroke variables */
  --text-stroke-thick: 4px #ffffff;
  --text-stroke-medium: 3px #ffffff;
  --text-stroke-thin: 2px #ffffff;
  --text-stroke-minimal: 1px #ffffff;
  --text-stroke-none: 0px;
  --nav-font-size: 1.6rem;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink-blue);
  background-color: var(--bg-sky);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.2;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--success-green);
  color: white;
  border-bottom: 4px solid #009624;
  /* Darker green shade */
}

.btn-secondary {
  background-color: white;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  font-size: 1.35rem;
}

/* Header */
.app-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 4px 12px;
  position: sticky;
  top: 0;
  background: #293b96;
  border-bottom: none;
  z-index: 100;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 6px;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.1s ease;
  will-change: transform;
  touch-action: manipulation;
  z-index: 1;
}

.brand-mark img {
  position: relative;
  top: -6px;
  pointer-events: none;
}

.brand-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 40px;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #2e6bf6;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-text-stroke: var(--text-stroke-thick);
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff,
    0px 2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  display: inline-block;
}

.title-stars {
  position: absolute;
  top: -10px;
  right: -47px;
  width: 45px;
  height: 45px;
  z-index: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-right: 6px;
}

/* Landing Page Nav Links (Custom for Landing) */
.landing-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.landing-nav-link {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  /* Changed to white for blue background */
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--accent-yellow);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-sky) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--ink-blue);
  opacity: 0.9;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-card {
  background: white;
  border-radius: 20px;
  padding: 2.3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  border: 4px solid var(--accent-yellow);
  /* Container sized for prominence with proper aspect ratio */
  width: 600px;
  height: 378px;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background-color: white;
  scroll-margin-top: 50px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 4.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {}

/* Header */
.app-header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 4px 12px;
  position: sticky;
  top: 0;
  background: #293b96;
  border-bottom: none;
  z-index: 100;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 6px;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.1s ease;
  will-change: transform;
  touch-action: manipulation;
  z-index: 1;
}

.brand-mark img {
  position: relative;
  top: -6px;
  pointer-events: none;
}

.brand-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 40px;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #2e6bf6;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-text-stroke: var(--text-stroke-thick);
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff,
    0px 2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  display: inline-block;
}

.title-stars {
  position: absolute;
  top: -10px;
  right: -47px;
  width: 45px;
  height: 45px;
  z-index: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-right: 6px;
}

/* Landing Page Nav Links (Custom for Landing) */
.landing-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.landing-nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  /* Changed to white for blue background */
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--accent-yellow);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-sky) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--ink-blue);
  opacity: 0.9;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-card {
  background: white;
  border-radius: 20px;
  padding: 2.3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  border: 4px solid var(--accent-yellow);
  /* Container sized for prominence with proper aspect ratio */
  width: 600px;
  height: 378px;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background-color: white;
  scroll-margin-top: 50px;
}

.features .section-title {
  font-size: 3rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 4.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ink-blue);
}

/* How It Works */
.how-it-works {
  padding: var(--section-padding);
  background-color: var(--bg-sky);
  scroll-margin-top: 50px;
}

.how-it-works .section-title {
  font-size: 3rem;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 228px;
  text-align: center;
  position: relative;
}

.step p {
  max-width: 60%;
  margin: 0 auto;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--brand-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ink-blue);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  padding-top: 3.75rem;
  background-color: var(--brand-blue);
  color: white;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-btn {
  background-color: var(--accent-yellow);
  color: var(--ink-blue);
  border-bottom: 4px solid #F39C12;
  font-size: 1.5rem;
  padding: 1.2rem 3rem;
}

/* Footer */
.footer {
  background-color: var(--ink-blue);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 1rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

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

  .landing-nav-links {
    display: none;
    /* Simple hide for now, could add hamburger later */
  }

  .steps-container {
    flex-direction: column;
    gap: 3rem;
  }

  /* Mobile-friendly button styles */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }

  .btn-secondary {
    font-size: 1.15rem;
  }
}