/* Playful Template - Vibrant Retro Collage Design */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Primary Colors - from the screenshot */
  --color-blue: #2563eb;
  --color-blue-light: #60a5fa;
  --color-blue-dark: #1a3a5c;
  --color-yellow: #fcd34d;
  --color-yellow-dark: #f59e0b;
  --color-orange: #f97316;
  --color-coral: #e8927c;
  --color-red: #c0392b;

  /* Neutrals */
  --color-cream: #f5f0e8;
  --color-white: #ffffff;
  --color-text: #1a3a5c;
  --color-text-muted: #3d5a73;

  /* Shadows */
  --shadow-hard: 4px 4px 0 var(--color-blue-dark);
  --shadow-hard-lg: 6px 6px 0 var(--color-blue-dark);
  --shadow-hard-yellow: 4px 4px 0 var(--color-yellow-dark);

  /* Border */
  --border: 3px solid var(--color-blue-dark);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 2rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus & Selection Styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--color-yellow-dark);
  outline-offset: 3px;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--color-text);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ============================================
   Background Grid
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 58, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 58, 92, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ============================================
   Section Common Styles
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-text);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  border: var(--border);
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--color-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: rgba(245, 240, 232, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: var(--border);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: rotate(-2deg) scale(1.02);
}

.site-logo {
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius-sm);
  border: var(--border);
  box-shadow: var(--shadow-hard-yellow);
  object-fit: cover;
}

.brand-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #fef3c7;
  border-color: var(--color-yellow-dark);
}

.nav-star {
  color: var(--color-yellow-dark);
  font-weight: 700;
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
  display: inline-block;
  background: var(--color-yellow-dark);
  color: var(--color-text);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-hard);
}

.cta-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.cta-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-blue-dark);
}

.cta-button-primary {
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.cta-button-inverted {
  background: var(--color-white);
  color: var(--color-text);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-light) 50%, var(--color-yellow) 50%, var(--color-yellow) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 8rem;
  }
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-star {
  position: absolute;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.6;
}

.deco-star-1 {
  top: 10%;
  left: 5%;
  font-size: 3rem;
  animation: twinkle 2s ease-in-out infinite;
}

.deco-star-2 {
  top: 20%;
  right: 10%;
  font-size: 2rem;
  animation: twinkle 2.5s ease-in-out infinite 0.5s;
}

.deco-star-3 {
  bottom: 55%;
  right: 5%;
  font-size: 2.5rem;
  color: var(--color-blue-dark);
  animation: twinkle 3s ease-in-out infinite 1s;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
}

.deco-blob-1 {
  width: 100px;
  height: 100px;
  background: var(--color-orange);
  top: 15%;
  left: 10%;
  opacity: 0.3;
  transform: rotate(45deg);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.deco-blob-2 {
  width: 80px;
  height: 80px;
  background: var(--color-coral);
  bottom: 60%;
  right: 15%;
  opacity: 0.4;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-shadow:
    4px 4px 0 var(--color-blue-dark),
    -1px -1px 0 var(--color-blue-dark),
    1px -1px 0 var(--color-blue-dark),
    -1px 1px 0 var(--color-blue-dark),
    1px 1px 0 var(--color-blue-dark);
}

.hero-subtitle-wrapper {
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-hard-lg);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.hero-cta {
  margin-bottom: 2rem;
}

.hero-rating {
  display: flex;
  justify-content: center;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-hard);
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  color: var(--color-yellow-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.rating-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.rating-text strong {
  color: var(--color-text);
  font-weight: 700;
}

.rating-count {
  color: var(--color-text-muted);
}

.hero-edge {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--color-cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 95% 30%, 90% 0, 85% 25%, 80% 5%, 75% 35%, 70% 0, 65% 20%, 60% 0, 55% 30%, 50% 0, 45% 25%, 40% 5%, 35% 35%, 30% 0, 25% 20%, 20% 0, 15% 30%, 10% 5%, 5% 25%, 0 0);
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots-section {
  padding: 5rem 0;
  background: var(--color-cream);
}

.screenshots-container {
  margin-bottom: 3rem;
}

.screenshots-label {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Wrapper: vertical padding + edge-to-edge on mobile */
.screenshots-scroll-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Single element: overflow + mask + padding (ALL ON SAME ELEMENT) */
.screenshots-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem max(1.5rem, env(safe-area-inset-right)) 2rem max(1.5rem, env(safe-area-inset-left));
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(1.5rem, env(safe-area-inset-left));
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.screenshot-card {
  flex-shrink: 0;
  position: relative;
  scroll-snap-align: start;
}

/* Scrollbar styling */
.screenshots-scroll::-webkit-scrollbar {
  height: 10px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: var(--color-white);
  border: 2px solid var(--color-blue-dark);
  border-radius: 5px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-yellow-dark);
  border: 2px solid var(--color-blue-dark);
  border-radius: 5px;
}

/* Mobile: edge-to-edge breakout */
@media (max-width: 767px) {
  .screenshots-scroll-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Desktop: larger padding + edge fade */
@media (min-width: 768px) {
  .screenshots-scroll {
    padding-inline: 2rem;
    scroll-padding-inline: 2rem;
  }

  .screenshots-scroll::-webkit-scrollbar-track {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* Edge fade + padding on SAME element */
  @supports ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
    .screenshots-scroll {
      --edge-fade: 2.5rem;
      -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--edge-fade),
        #000 calc(100% - var(--edge-fade)),
        transparent 100%
      );
      mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--edge-fade),
        #000 calc(100% - var(--edge-fade)),
        transparent 100%
      );
      padding-inline: var(--edge-fade);
      scroll-padding-inline: var(--edge-fade);
    }

    .screenshots-scroll::-webkit-scrollbar-track {
      margin-left: var(--edge-fade);
      margin-right: var(--edge-fade);
    }
  }
}

.screenshot-frame {
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow-hard-lg);
  transition: all 0.3s ease;
  background: var(--color-white);
}

.screenshot-card:hover .screenshot-frame {
  transform: rotate(-2deg) translateY(-8px);
  box-shadow: 8px 8px 0 var(--color-blue-dark);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 607;
  display: block;
}

.screenshot-sticker {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: var(--color-yellow);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  transform: rotate(15deg);
}

.screenshots-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   Highlights Section
   ============================================ */
.highlights-section {
  padding: 5rem 0;
  background: var(--color-blue);
  position: relative;
}

.highlights-section .section-header h2 {
  color: var(--color-white);
}

.highlights-section .section-description,
#highlights .section-description,
section#highlights > div.container > div.section-header > p.section-description {
  color: #ffffff !important;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.highlight-card {
  position: relative;
}

.highlight-card-inner {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-hard-lg);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.highlight-card:hover .highlight-card-inner {
  transform: rotate(-1deg) translateY(-6px);
}

.highlight-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 60px;
  height: 20px;
  background: var(--color-yellow);
  opacity: 0.9;
  z-index: 2;
}

.highlight-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-yellow);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 3px 3px 0 var(--color-blue-dark);
}

.icon-emoji {
  font-size: 2rem;
}

.highlight-title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.highlight-description {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: 5rem 0;
  background: var(--color-cream);
}

.feature-category {
  margin-bottom: 5rem;
}

.feature-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  text-align: center;
}

.category-description {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.feature-card {
  position: relative;
}

.feature-card-inner {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-card-inner {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: var(--shadow-hard-lg);
}

.feature-card-accent {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  background: var(--color-yellow);
  border-radius: var(--radius-md);
  border: var(--border);
  z-index: 0;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-blue-light);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 2px 2px 0 var(--color-blue-dark);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-description {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
  padding: 5rem 0;
  background: var(--color-yellow);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.step-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: var(--shadow-hard-lg);
}

.step-number-wrapper {
  margin-bottom: 1.5rem;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-blue);
  color: var(--color-white);
  border: var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 3px 3px 0 var(--color-blue-dark);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.step-description {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

.step-connector {
  display: none;
}

@media (min-width: 1024px) {
  .step-card:not(:last-child) .step-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 4px;
    background: var(--color-blue-dark);
  }

  .step-card:not(:last-child) .step-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    border: 6px solid transparent;
    border-left-color: var(--color-blue-dark);
  }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: 5rem 0;
  background: var(--color-cream);
  overflow: hidden;
}

/* Wrapper: vertical padding + edge-to-edge on mobile */
.testimonials-scroll-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Single element: overflow + mask + padding (ALL ON SAME ELEMENT) */
.testimonials-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem max(1.5rem, env(safe-area-inset-right)) 2rem max(1.5rem, env(safe-area-inset-left));
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(1.5rem, env(safe-area-inset-left));
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling */
.testimonials-scroll::-webkit-scrollbar {
  height: 10px;
}

.testimonials-scroll::-webkit-scrollbar-track {
  background: var(--color-white);
  border: 2px solid var(--color-blue-dark);
  border-radius: 5px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
  background: var(--color-coral);
  border: 2px solid var(--color-blue-dark);
  border-radius: 5px;
}

/* Mobile: edge-to-edge breakout */
@media (max-width: 767px) {
  .testimonials-scroll-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Desktop: larger padding + edge fade */
@media (min-width: 768px) {
  .testimonials-scroll {
    padding-inline: 2rem;
    scroll-padding-inline: 2rem;
  }

  .testimonials-scroll::-webkit-scrollbar-track {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* Edge fade + padding on SAME element */
  @supports ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
    .testimonials-scroll {
      --edge-fade: 2.5rem;
      -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--edge-fade),
        #000 calc(100% - var(--edge-fade)),
        transparent 100%
      );
      mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 var(--edge-fade),
        #000 calc(100% - var(--edge-fade)),
        transparent 100%
      );
      padding-inline: var(--edge-fade);
      scroll-padding-inline: var(--edge-fade);
    }

    .testimonials-scroll::-webkit-scrollbar-track {
      margin-left: var(--edge-fade);
      margin-right: var(--edge-fade);
    }
  }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  position: relative;
}

.testimonial-card-inner {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.testimonial-card:nth-child(odd) .testimonial-card-inner {
  transform: rotate(-1deg);
}

.testimonial-card:nth-child(even) .testimonial-card-inner {
  transform: rotate(1deg);
}

.testimonial-card:hover .testimonial-card-inner {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-hard-lg);
}

.testimonial-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-red);
  border: 2px solid var(--color-blue-dark);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 2px 2px 0 var(--color-blue-dark);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating .star {
  color: var(--color-yellow-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
  padding: 5rem 0;
  background: var(--color-blue);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-content {
  position: relative;
  z-index: 2;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-yellow);
  color: var(--color-text);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  border: var(--border);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-hard);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.download-content h2 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 3px 3px 0 var(--color-blue-dark);
}

.download-description,
#download .download-description,
section#download > div.container > div.download-content > p.download-description {
  font-size: 1.125rem;
  color: #ffffff !important;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--color-yellow);
  opacity: 0.4;
}

.confetti-1 {
  top: 10%;
  left: 10%;
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.confetti-2 {
  top: 20%;
  right: 15%;
  font-size: 2rem;
  animation: float 3.5s ease-in-out infinite 0.5s;
}

.confetti-3 {
  bottom: 20%;
  left: 15%;
  font-size: 2.5rem;
  animation: float 4s ease-in-out infinite 1s;
}

.confetti-4 {
  bottom: 15%;
  right: 10%;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite 1.5s;
}

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

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  padding: 5rem 0;
  background: var(--color-coral);
}

.faq-section .section-badge {
  background: var(--color-white);
}

.faq-section .section-description,
#faq .section-description {
  color: var(--color-blue-dark);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
}

.faq-item:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.faq-item:nth-child(even) {
  transform: rotate(0.5deg);
}

.faq-item:hover {
  transform: rotate(0deg);
  box-shadow: var(--shadow-hard-lg);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 1.75rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #fef3c7;
}

.question-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.question-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-yellow);
  border: 2px solid var(--color-blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.question-icon svg {
  color: var(--color-text);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.75rem;
}

.answer-content {
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-bottom: 1.5rem;
}

.faq-item.is-open .faq-answer {
  padding-top: 0;
}

.faq-item.is-open .question-icon {
  background: var(--color-blue);
  transform: rotate(180deg);
}

.faq-item.is-open .question-icon svg {
  color: var(--color-white);
}

/* ============================================
   Changelog Section
   ============================================ */
.changelog-section {
  padding: 5rem 0;
  background: var(--color-cream);
}

.changelog-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.changelog-entry {
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
}

.changelog-entry:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard-lg);
}

.changelog-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.version-label {
  background: var(--color-blue);
  color: var(--color-white);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-blue-dark);
}

.version-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.changelog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.changelog-changes {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.changelog-changes li {
  margin-bottom: 0.5rem;
}

.changelog-changes li::marker {
  color: var(--color-yellow-dark);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--color-blue-dark);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.footer-wave {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--color-blue-dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 50%, 95% 30%, 90% 60%, 85% 25%, 80% 55%, 75% 35%, 70% 60%, 65% 20%, 60% 50%, 55% 30%, 50% 60%, 45% 25%, 40% 55%, 35% 35%, 30% 60%, 25% 20%, 20% 50%, 15% 30%, 10% 60%, 5% 25%, 0 50%);
}

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

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  border: var(--border);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-hard-yellow);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-yellow);
}

.footer-copyright {
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================
   Blog Pages
   ============================================ */
.blog-index {
  padding: 5rem 0;
  background: var(--color-cream);
}

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-header h1 {
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  position: relative;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-content {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
}

.blog-card:hover .blog-card-content {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-hard-lg);
}

.blog-card-tape {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 50px;
  height: 18px;
  background: var(--color-yellow);
  transform: rotate(5deg);
  opacity: 0.9;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.blog-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-read-more {
  color: var(--color-blue);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
}

.blog-post {
  padding: 5rem 0;
  background: var(--color-cream);
}

.blog-post-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-block;
  color: var(--color-blue);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.blog-post-header h1 {
  margin-bottom: 1rem;
}

.blog-post-meta {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.blog-post-content,
.prose {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--color-yellow-dark);
}

.prose code {
  background: var(--color-yellow);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
  border: 2px solid var(--color-blue-dark);
}

.prose pre {
  background: var(--color-blue-dark);
  color: #f3f4f6;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: var(--border);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  border: none;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: var(--border);
  margin: 2rem 0;
  box-shadow: var(--shadow-hard);
}

.prose a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--color-yellow);
  transition: border-color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--color-blue);
}

.page-content {
  padding: 5rem 0;
  background: var(--color-cream);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ============================================
   QR Popup Modal
   ============================================ */
.qr-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 92, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1.5rem;
}

.qr-popup-content {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: var(--border);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 8px 8px 0 var(--color-blue-dark);
  position: relative;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.qr-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-yellow);
  border: 2px solid var(--color-blue-dark);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--color-blue-dark);
}

.qr-popup-close:hover {
  transform: rotate(90deg);
  background: var(--color-red);
  color: var(--color-white);
}

.qr-popup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.qr-popup-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-blue-light);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 3px 3px 0 var(--color-blue-dark);
}

.qr-popup-icon img {
  width: 2.25rem;
  height: 2.25rem;
}

.qr-popup-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.qr-popup-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.qr-popup-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.qr-popup-qr img {
  width: 14rem;
  height: 14rem;
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-hard);
}

.qr-popup-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.qr-popup-store-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.qr-popup-store-link:hover {
  transform: scale(1.1);
}

.qr-popup-store-icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-yellow-dark);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 10000;
  border: var(--border);
  border-top: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav {
    display: none;
  }

  .cta-button {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero-subtitle-wrapper {
    transform: none;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .screenshots-scroll,
  .testimonials-scroll {
    scroll-behavior: auto;
  }
}
