/* ============================================
   TAPPADOO LANDING — landing.css
   Warm pastel nursery aesthetic + SVG icons
   ============================================ */

:root {
  --cream: #FFF8F0;
  --cream-dark: #F0E8DE;
  --blush: #FFD6E0;
  --blush-deep: #FF9BB3;
  --lavender: #E8D5F5;
  --lavender-deep: #C9A0E8;
  --mint: #C5F0D6;
  --mint-deep: #7DD4A0;
  --sky: #C5E4F7;
  --sky-deep: #7BBEE8;
  --peach: #FFE0C8;
  --peach-deep: #FFB88A;
  --lemon: #FFF4B8;
  --coral: #FF8A80;
  --text: #3D2C2C;
  --text-mid: #6B5656;
  --text-light: #A08888;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(60,40,40,0.05), 0 4px 12px rgba(60,40,40,0.04);
  --shadow-md: 0 2px 8px rgba(60,40,40,0.06), 0 8px 24px rgba(60,40,40,0.06);
  --shadow-lg: 0 4px 16px rgba(60,40,40,0.06), 0 16px 48px rgba(60,40,40,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.section-inner { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Scroll animations */
.fade-target { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-target.visible { opacity: 1; transform: translateY(0); }
.fade-target:nth-child(2) { transition-delay: 0.07s; }
.fade-target:nth-child(3) { transition-delay: 0.14s; }
.fade-target:nth-child(4) { transition-delay: 0.21s; }
.fade-target:nth-child(5) { transition-delay: 0.28s; }
.fade-target:nth-child(6) { transition-delay: 0.35s; }

/* ============================================
   NAV
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 1.5rem; transition: all 0.3s ease; }
.nav-scrolled { background: rgba(255,248,240,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 8px rgba(60,40,40,0.06); padding: 0.6rem 1.5rem; }
.nav-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Lilita One', cursive; font-size: 1.6rem; color: var(--text); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.85rem;
  color: var(--white); background: var(--blush-deep);
  padding: 8px 20px; border-radius: 50px; text-decoration: none;
  transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(255,155,179,0.3);
}
.nav-cta svg { fill: none; stroke: currentColor; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,155,179,0.4); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  padding: 14px 28px; border-radius: 50px; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s ease;
}
.btn svg { fill: none; stroke: currentColor; flex-shrink: 0; }
.btn-primary { background: var(--blush-deep); color: var(--white); box-shadow: 0 2px 12px rgba(255,155,179,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,155,179,0.4); }
.btn-secondary { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { font-size: 1.1rem; padding: 16px 36px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; padding: 7rem 1.5rem 4rem; overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--blush) 35%, var(--lavender) 65%, var(--sky) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.12; }
.shape-1 { width: 300px; height: 300px; background: var(--lemon); top: -80px; right: -60px; }
.shape-2 { width: 200px; height: 200px; background: var(--mint); bottom: 40px; left: -60px; }
.shape-3 { width: 120px; height: 120px; background: var(--peach); top: 30%; left: 20%; }
.shape-4 { width: 180px; height: 180px; background: var(--white); bottom: -40px; right: 15%; opacity: 0.2; }

.hero-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 700px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero { padding: 8rem 1.5rem 5rem; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-mid); padding: 6px 14px; border-radius: 50px; margin-bottom: 1rem;
}
.hero h1 { font-family: 'Lilita One', cursive; font-size: clamp(2.4rem,7vw,3.8rem); line-height: 1.08; color: var(--text); margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1rem,2.5vw,1.15rem); color: var(--text-mid); font-weight: 600; line-height: 1.6; max-width: 480px; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 700; color: var(--text-mid); opacity: 0.7; }
.trust-icon { fill: none; stroke: currentColor; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-frame {
  width: clamp(220px,55vw,280px); aspect-ratio: 9/17;
  background: #2A2A2A; border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.1); position: relative;
}
.phone-frame::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #2A2A2A; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; position: relative; }
.phone-demo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 1rem; }
.demo-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #C5F0D6 0%, #7DD4A0 100%); }
.demo-float { position: absolute; font-size: 1.2rem; opacity: 0.5; z-index: 1; }
.demo-f1 { top: 15%; left: 12%; animation: floatAround 6s ease-in-out infinite; }
.demo-f2 { top: 12%; right: 15%; animation: floatAround 5s ease-in-out 0.5s infinite; }
.demo-f3 { bottom: 25%; right: 18%; animation: floatAround 7s ease-in-out 1s infinite; }
.demo-question {
  font-family: 'Baloo 2', cursive; font-size: clamp(0.85rem,2.5vw,1rem); font-weight: 700;
  color: #2d5016; text-align: center; position: relative; z-index: 1;
  line-height: 1.3; margin-bottom: 0.75rem; text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.demo-tap-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: 2px dashed rgba(255,255,255,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 1; animation: pulse 2s ease-in-out infinite; color: #2d5016;
}
.demo-tap-circle span { font-family: 'Baloo 2', cursive; font-size: 1.2rem; font-weight: 700; }
.demo-tap-circle small { font-family: 'Nunito', sans-serif; font-size: 0.6rem; font-weight: 700; }

@keyframes floatAround {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(4deg); }
  75% { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section-label {
  font-family: 'Nunito', sans-serif; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blush-deep); margin-bottom: 0.5rem;
}
section h2 { font-family: 'Lilita One', cursive; font-size: clamp(1.8rem,5vw,2.6rem); line-height: 1.15; color: var(--text); margin-bottom: 0.75rem; }
.section-sub { font-size: clamp(0.95rem,2.3vw,1.05rem); color: var(--text-mid); font-weight: 600; max-width: 520px; margin-bottom: 2rem; }

/* ============================================
   BOOKS
   ============================================ */
.books { padding: 5rem 0; background: var(--white); position: relative; }
.books::before { content: ''; position: absolute; top: -1px; left: -5%; width: 110%; height: 40px; background: var(--white); border-radius: 0 0 50% 50%; }
.book-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 550px) { .book-grid { grid-template-columns: 1fr 1fr; } }
.book-item {
  background: var(--cream); border-radius: var(--radius-lg); padding: 1.75rem;
  position: relative; overflow: hidden; transition: all 0.25s ease;
  border: 1.5px solid rgba(0,0,0,0.03);
}
.book-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.book-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.book-item-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.book-item-icon::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.book-item-num { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.15rem; }
.book-item h3 { font-family: 'Baloo 2', cursive; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; line-height: 1.2; }
.book-item p { font-size: 0.88rem; color: var(--text-mid); font-weight: 600; line-height: 1.5; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how { padding: 5rem 0; background: var(--cream); }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 650px) { .how-grid { grid-template-columns: 1fr 1fr 1fr; } }
.how-step { text-align: center; padding: 1.5rem; }
.how-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--lavender));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; box-shadow: var(--shadow-sm);
}
.how-step h3 { font-family: 'Baloo 2', cursive; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.how-step p { font-size: 0.88rem; color: var(--text-mid); font-weight: 600; line-height: 1.5; }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 4rem 0; background: var(--white); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 550px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 800px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }
.feature { padding: 1.5rem; border-radius: var(--radius); transition: all 0.25s ease; }
.feature:hover { background: var(--cream); }

.feature-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--fi-bg, #F5F5F5);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
}
.feature h3 { font-family: 'Baloo 2', cursive; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature p { font-size: 0.85rem; color: var(--text-mid); font-weight: 600; line-height: 1.5; }

/* ============================================
   CTA
   ============================================ */
.cta-section { padding: 5rem 0; background: var(--cream); }
.cta-box {
  background: linear-gradient(135deg, var(--blush) 0%, var(--lavender) 50%, var(--sky) 100%);
  border-radius: var(--radius-lg); padding: clamp(2.5rem,6vw,4rem) clamp(1.5rem,4vw,3rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-icons { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.2rem; }
.cta-box h2 { color: var(--text); margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-mid); font-weight: 600; margin-bottom: 1.5rem; font-size: 1rem; }
.cta-coming { margin-top: 1.8rem; }

/* Apple App Store badge */
.app-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000000; color: #FFFFFF;
  padding: 10px 20px 10px 16px; border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.app-store-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.apple-logo { flex-shrink: 0; margin-top: -2px; }
.app-store-text { text-align: left; line-height: 1; }
.app-store-small { display: block; font-family: 'Nunito', sans-serif; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.85; margin-bottom: 2px; }
.app-store-big { display: block; font-family: 'Nunito', sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }

/* ============================================
   EMAIL SIGNUP
   ============================================ */
.signup { padding: 4rem 0 5rem; background: var(--white); text-align: center; }
.signup-icon { margin-bottom: 1rem; }
.signup h2 { margin-bottom: 0.5rem; }
.signup > .section-inner > p { color: var(--text-mid); font-weight: 600; font-size: 0.95rem; max-width: 440px; margin: 0 auto 1.5rem; }
.signup-form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup-form input {
  flex: 1; min-width: 200px; padding: 14px 20px;
  border: 2px solid var(--cream-dark); border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--text); background: var(--cream); outline: none; transition: border-color 0.2s ease;
}
.signup-form input:focus { border-color: var(--blush-deep); }
.signup-form input::placeholder { color: var(--text-light); }
.signup-note { display: block; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-light); font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--cream); padding: 3rem 1.5rem 2rem; border-top: 1px solid rgba(0,0,0,0.04); }
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: 'Lilita One', cursive; font-size: 1.4rem; color: var(--text); }
.footer-brand p { font-size: 0.85rem; color: var(--text-light); font-weight: 600; margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0; }
.footer-links a { font-size: 0.82rem; font-weight: 700; color: var(--text-mid); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--blush-deep); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(0,0,0,0.04); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }
.footer-copy { margin-top: 0.25rem; font-size: 0.7rem !important; opacity: 0.7; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 500px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .phone-frame { width: 200px; }
}
