/* Storynite Marketing Website */

/* ====== CUSTOM PROPERTIES ====== */
:root {
  --primary: #7C4DFF;
  --primary-dark: #651FFF;
  --primary-light: #B388FF;
  --secondary: #FFD54F;
  --secondary-dark: #FFC107;
  --bg-cream: #FFF8E7;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F5F5;
  --text-primary: #3E2723;
  --text-secondary: #6D4C41;
  --text-tertiary: #8D6E63;
  --text-light: #F5F3F7;
  --night-start: #1A237E;
  --night-end: #311B92;
  --dark-bg: #1A1625;
  --success: #4CAF50;
  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

/* ====== RESET ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ====== CONTAINER ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== SECTION BASICS ====== */
.section {
  padding: 80px 0;
}
@media (min-width: 1024px) {
  .section { padding: 120px 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,77,255,0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-label-light {
  color: var(--secondary);
  background: rgba(255,213,79,0.15);
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title-light { color: var(--text-light); }
.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section-subtitle-light { color: rgba(245,243,247,0.8); }

@media (min-width: 768px) {
  .section-title { font-size: 42px; }
}
@media (min-width: 1024px) {
  .section-title { font-size: 48px; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,77,255,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
  font-size: 16px;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-block { width: 100%; justify-content: center; }
.btn-cta-final {
  background: #fff;
  color: var(--primary);
  padding: 18px 40px;
  font-size: 18px;
}
.btn-cta-final:hover {
  background: var(--secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,213,79,0.4);
}

/* ====== PHONE MOCKUP ====== */
.phone-mockup {
  position: relative;
  width: 280px;
  border-radius: 44px;
  border: 6px solid #1a1a2e;
  background: #000;
  box-shadow: 0 0 0 2px #444, var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  flex-shrink: 0;
}
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}
.phone-large { width: 300px; }
.phone-medium { width: 260px; }
.phone-small { width: 200px; }
@media (min-width: 768px) {
  .phone-large { width: 340px; }
  .phone-medium { width: 280px; }
  .phone-small { width: 220px; }
}
.phone-tilt { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform var(--transition); }
.phone-tilt:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.phone-tilt-left { transform: perspective(1000px) rotateY(5deg) rotateX(2deg); transition: transform var(--transition); }
.phone-tilt-left:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,248,231,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.site-header.header-scrolled {
  background: rgba(255,248,231,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.main-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.header-cta { display: none; }

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,248,231,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-cta { margin-top: 16px; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .mobile-nav-toggle { display: none; }
  .mobile-nav-overlay { display: none; }
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-cream) 0%, #F3EDFF 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }
  .hero-content { flex: 1; }
  .hero-phone { flex-shrink: 0; }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(124,77,255,0.1);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
}
@media (min-width: 768px) {
  .hero-title { font-size: 48px; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 56px; }
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
}
@media (min-width: 1024px) {
  .hero-subtitle { font-size: 20px; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
@media (min-width: 1024px) {
  .hero-cta { align-items: flex-start; }
}
.hero-coming-soon {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.app-store-btn svg { margin-right: 4px; }


.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero-trust { justify-content: flex-start; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.trust-item svg { color: var(--primary); }

/* Hero entrance animations */
.animate-hero {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease forwards;
}
.animate-hero-1 { animation-delay: 0.1s; }
.animate-hero-2 { animation-delay: 0.25s; }
.animate-hero-3 { animation-delay: 0.4s; }
.animate-hero-4 { animation-delay: 0.55s; }
.animate-hero-5 { animation-delay: 0.7s; }
.animate-hero-6 { animation-delay: 0.5s; }

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

/* Hero floating decorations */
.hero-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.moon {
  top: 8%;
  right: 8%;
  animation: float 6s ease-in-out infinite;
}
.star-1 { top: 15%; left: 10%; animation: float 5s ease-in-out infinite 0.5s; }
.star-2 { top: 30%; right: 15%; animation: float 4.5s ease-in-out infinite 1s; }
.star-3 { bottom: 25%; left: 20%; animation: float 5.5s ease-in-out infinite 1.5s; }
.sparkle-1 { bottom: 30%; right: 25%; animation: float 7s ease-in-out infinite 0.8s; }

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

.hero-phone {
  position: relative;
  z-index: 1;
}

/* ====== TRUST BAR ====== */
.trust-bar {
  background: rgba(255,236,179,0.25);
  border-top: 1px solid rgba(255,213,79,0.2);
  border-bottom: 1px solid rgba(255,213,79,0.2);
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-secondary);
}
.trust-bar-item strong { color: var(--text-primary); }
.trust-bar-divider {
  width: 4px;
  height: 4px;
  background: var(--secondary-dark);
  border-radius: 50%;
}
@media (max-width: 640px) {
  .trust-bar-divider { display: none; }
  .trust-bar-inner { flex-direction: column; gap: 8px; }
}

/* ====== HOW IT WORKS ====== */
.how-it-works { background: var(--bg-white); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}
.step-card .phone-mockup {
  margin: 0 auto 20px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Connector line between steps (desktop) */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -16px;
    width: 32px;
    height: 2px;
    border-top: 2px dashed var(--primary-light);
  }
}

/* ====== FEATURE SECTIONS ====== */
.feature-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .feature-grid {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
  .feature-content { flex: 1; }
  .feature-phone { flex-shrink: 0; }
  .feature-grid-reverse { flex-direction: row-reverse; }
}

.feature-description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
}
.feature-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Gratitude callout */
.feature-callout {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255,213,79,0.1);
  border-left: 4px solid var(--secondary-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-callout svg { flex-shrink: 0; margin-top: 2px; }
.feature-callout p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Stacked phones for engagement section */
.feature-phone-stack {
  position: relative;
  width: 300px;
  height: 500px;
}
.stacked-phone-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}
.stacked-phone-front {
  position: absolute;
  top: 30px;
  left: 40px;
  transform: rotate(4deg);
  z-index: 2;
}
@media (min-width: 768px) {
  .feature-phone-stack { width: 340px; height: 540px; }
  .stacked-phone-front { left: 60px; }
}

/* ====== AVATAR SECTION ====== */
.avatar-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .avatar-phones { gap: -20px; }
  .avatar-phone-left { transform: rotate(-4deg); z-index: 1; }
  .avatar-phone-right { transform: rotate(4deg); z-index: 2; margin-left: -30px; }
}
.avatar-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.avatar-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-white);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.avatar-feature-icon { font-size: 20px; }

/* ====== FAMILY & LANGUAGES ====== */
.feature-family { background: var(--bg-white); }

.family-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); }
}
.family-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124,77,255,0.1);
}
.family-card-icon { margin-bottom: 16px; }
.family-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.family-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Language tags */
.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.lang-tag {
  padding: 8px 18px;
  background: rgba(124,77,255,0.08);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124,77,255,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}
.lang-tag.visible {
  opacity: 1;
  transform: translateY(0);
}
.lang-tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ====== ILLUSTRATION GALLERY ====== */
.gallery-section {
  background: linear-gradient(135deg, var(--night-start), var(--night-end));
  position: relative;
  overflow: hidden;
}
/* Desktop: masonry column layout */
.gallery-grid {
  column-count: 1;
  column-gap: 16px;
}
@media (min-width: 640px) { .gallery-grid { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid { column-count: 3; } }
@media (min-width: 1440px) { .gallery-grid { column-count: 4; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-item:nth-child(3n+1) { transform: rotate(-1.5deg); }
.gallery-item:nth-child(3n+2) { transform: rotate(1deg); }
.gallery-item:nth-child(3n)   { transform: rotate(-0.5deg); }

.gallery-item:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,213,79,0.4);
  z-index: 5;
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-lg) - 2px);
}

/* Mobile: horizontal swipe carousel */
@media (max-width: 639px) {
  .gallery-grid {
    column-count: unset;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 10%;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }

  .gallery-item {
    flex: 0 0 80%;
    margin-bottom: 0;
    scroll-snap-align: center;
    transform: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .gallery-item:nth-child(3n+1),
  .gallery-item:nth-child(3n+2),
  .gallery-item:nth-child(3n) {
    transform: none;
  }
  .gallery-item:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255,255,255,0.1);
  }
  .gallery-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* Dot indicators */
  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
  }
  .gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .gallery-dot.active {
    background: #FFD54F;
    transform: scale(1.3);
  }
}

/* Hide dots on desktop */
@media (min-width: 640px) {
  .gallery-dots { display: none; }
}

/* ====== THEME SHOWCASE (Light/Dark) ====== */
.theme-showcase {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 600px;
}
.theme-split {
  position: absolute;
  inset: 0;
  display: flex;
}
.theme-light-half {
  flex: 1;
  background: var(--bg-cream);
}
.theme-dark-half {
  flex: 1;
  background: var(--dark-bg);
}
.theme-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
}
.theme-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--text-primary) 50%, var(--text-light) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 768px) {
  .theme-title { font-size: 48px; }
}
.theme-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.theme-phones {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .theme-phones { gap: 48px; }
}
.theme-phone-light { box-shadow: 0 0 0 2px #444, 0 20px 60px rgba(0,0,0,0.1); }
.theme-phone-dark { box-shadow: 0 0 0 2px #555, 0 20px 60px rgba(0,0,0,0.3); }

/* ====== IPAD SECTION ====== */
.ipad-section {
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}
.ipad-section-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center top, rgba(124,77,255,0.07) 0%, transparent 68%);
  pointer-events: none;
}

/* iPad device mockup frame */
.ipad-device {
  border-radius: 16px;
  border: 8px solid #1c1c2e;
  background: #000;
  box-shadow:
    0 0 0 2px #3a3a5c,
    0 30px 80px rgba(0,0,0,0.22),
    0 0 50px rgba(124,77,255,0.10);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ipad-device img {
  display: block;
  width: 100%;
  height: auto;
}

/* Landscape iPad — behind the portrait */
.ipad-landscape {
  width: min(460px, 82vw);
  z-index: 1;
}
@media (min-width: 640px) {
  .ipad-landscape {
    width: min(460px, 56vw);
    transform: scale(0.95);
    transform-origin: right center;
  }
  .ipad-landscape:hover {
    transform: scale(0.97);
  }
}

/* Portrait iPad — in front, overlapping landscape */
.ipad-portrait-hidden-mobile {
  display: none;
}
@media (min-width: 640px) {
  .ipad-portrait-hidden-mobile { display: block; }
  .ipad-portrait {
    width: min(330px, 40vw);
    margin-left: -70px;
    z-index: 2;
    box-shadow:
      0 0 0 2px #3a3a5c,
      0 40px 100px rgba(0,0,0,0.32),
      0 0 60px rgba(124,77,255,0.18);
  }
  .ipad-portrait:hover {
    transform: translateY(-4px);
  }
}

.ipad-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
}

/* iPad feature cards */
.ipad-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .ipad-features { grid-template-columns: repeat(3, 1fr); }
}
.ipad-feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124,77,255,0.1);
  transition: all var(--transition);
}
.ipad-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.ipad-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(124,77,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ipad-feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ipad-feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ====== PRICING ====== */
.pricing-section { background: var(--bg-cream); }

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.pricing-toggle-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.pricing-toggle-label.active { color: var(--text-primary); }
.pricing-save-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--secondary);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
  vertical-align: middle;
}

.pricing-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: #ddd;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.pricing-toggle.active { background: var(--primary); }
.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}
.pricing-toggle.active .pricing-toggle-knob {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(124,77,255,0.2);
}
@media (min-width: 768px) {
  .pricing-card-featured { transform: scale(1.05); }
  .pricing-card-featured:hover { transform: scale(1.05) translateY(-4px); }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(124,77,255,0.3); }
  50% { box-shadow: 0 4px 24px rgba(124,77,255,0.6); }
}

.pricing-card-header { text-align: center; margin-bottom: 24px; }
.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
}
.price-period {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.price-annual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.price-annual-monthly {
  font-size: 42px;
  font-weight: 800;
  font-family: var(--font-display);
}
.price-annual-total {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}
.pricing-features li svg { flex-shrink: 0; }
.pricing-feature-disabled {
  color: var(--text-tertiary) !important;
  opacity: 0.6;
}

.pricing-disclaimer {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 24px;
}

/* ====== FAQ ====== */
.faq-section { background: var(--bg-white); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== FINAL CTA ====== */
.final-cta {
  background: linear-gradient(135deg, var(--night-start), var(--night-end));
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.final-cta-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.twinkle-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.final-cta-content { position: relative; z-index: 1; }
.final-cta-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .final-cta-title { font-size: 48px; }
}
.final-cta-subtitle {
  font-size: 18px;
  color: rgba(245,243,247,0.8);
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-fine-print {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(245,243,247,0.5);
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 48px 0 24px;
}
.footer-inner { text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-icon { border-radius: 10px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(245,243,247,0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-tagline {
  font-size: 15px;
  color: rgba(245,243,247,0.6);
  margin-bottom: 16px;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(245,243,247,0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ====== SCROLL ANIMATIONS ====== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll, .animate-hero, .slide-left, .slide-right, .lang-tag {
    opacity: 1;
    transform: none;
  }
}

/* ====== FOCUS VISIBLE ====== */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
