/* ===== CUSTOM FONTS ===== */
@font-face {
  font-family: 'Sailors';
  src: url('../fonts/Sailors.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fonts/GlacialIndifference.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ===== VARIABLES ===== */
:root {
  --teal: #2db8a0;
  --teal-dark: #1f9080;
  --coral: #f4786a;
  --coral-dark: #d95f50;
  --sage: #7bc67a;
  --lavender: #a78bfa;
  --cream: #fffdf8;
  --dark: #1a2e2b;
  --text: #2d3748;
  --text-light: #718096;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --font-heading: 'Sailors', cursive;
  --font-body: 'Glacial Indifference', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  padding-bottom: 80px;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--teal);
}
.logo-icon { font-size: 1.6rem; }
.topnav {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}
.topnav a:hover { color: var(--teal); }
.install-btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.btn:active { transform: translateY(0); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { background: white; color: var(--teal); border: 2px solid var(--teal); }
.btn-white { background: white; color: var(--teal-dark); font-weight: 800; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8faf7 0%, #fef9f0 50%, #fdeef0 100%);
  padding: 40px 20px 50px;
  max-width: 480px;
  margin: 0 auto;
}
.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
}
.b1 { width: 200px; height: 200px; background: var(--teal); top: -50px; right: -60px; }
.b2 { width: 150px; height: 150px; background: var(--coral); bottom: 20px; left: -40px; }
.b3 { width: 100px; height: 100px; background: var(--sage); top: 40%; right: 10px; }

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.phone-mockup {
  width: 160px;
  height: 200px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 3px var(--teal);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: floatPhone 4s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.phone-item {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: white;
  font-weight: 700;
}
.phone-item.teal { background: var(--teal); }
.phone-item.coral { background: var(--coral); }
.phone-item.sage { background: var(--sage); }
.phone-item.lavender { background: var(--lavender); }

.hero-text { text-align: center; }
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--teal);
}

/* ===== CARD SECTIONS ===== */
.card-section {
  max-width: 480px;
  margin: 0 auto 4px;
  background: white;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.card-section.alt { background: #f0faf8; flex-direction: row-reverse; }
.card-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}
.card-section.alt::before {
  background: linear-gradient(90deg, var(--coral), var(--sage));
}

.section-img {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.baby-graphic { font-size: 5rem; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.seats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 2.5rem;
  text-align: center;
}
.compare-graphic {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal);
}

.section-body { flex: 1; }
.section-body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--dark);
}
.section-body h2 em { font-style: normal; color: var(--teal); }

.sticker {
  display: inline-block;
  background: var(--coral);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  animation: wiggle 3s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 90%, 100% { transform: rotate(0deg); }
  93% { transform: rotate(-3deg); }
  97% { transform: rotate(3deg); }
}

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 36px 24px;
  max-width: 480px;
  margin: 0 auto 4px;
  position: relative;
  overflow: hidden;
}
.subscribe-section::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 4px;
}
.subscribe-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.subscribe-text h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}
.subscribe-img { font-size: 4.5rem; flex-shrink: 0; }

/* ===== ABOUT ===== */
.about-section {
  background: white;
  padding: 32px 24px;
  max-width: 480px;
  margin: 0 auto 4px;
}
.about-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-avatar {
  font-size: 4rem;
  background: linear-gradient(135deg, #e8faf7, #fdeef0);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--teal);
}
.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.about-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
}
.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 100;
  border-top: 1px solid #f0f0f0;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 1.3rem;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
  padding: 4px 4px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 0;
}
.bnav-item small { font-size: 0.6rem; font-weight: 700; white-space: nowrap; }
.bnav-item.active { color: var(--teal); }
.bnav-item:hover { color: var(--teal); transform: translateY(-2px); }

/* ===== HAMBURGER MENU ===== */
.ham-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark);
  padding: 4px 8px;
  line-height: 1;
}
.ham-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 500;
}
.ham-overlay.open { display: block; }
.ham-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: white;
  z-index: 501;
  padding: 24px 20px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ham-overlay.open .ham-drawer { transform: translateX(0); }
.ham-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  align-self: flex-end;
  line-height: 1;
  margin-bottom: 16px;
}
.ham-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.ham-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.ham-link:last-child { border-bottom: none; }
.ham-link span { font-size: 1.2rem; }
.ham-link:hover { color: var(--teal); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 200;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .topnav { display: none; }
  .card-section {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }
  .card-section.alt { flex-direction: column; }
  .btn-row { justify-content: center; }
  .subscribe-inner { flex-direction: column; text-align: center; }
  .subscribe-img { font-size: 3rem; }
  .about-inner { flex-direction: column; align-items: center; text-align: center; }
  .social-row { justify-content: center; }
  .hero { padding: 28px 16px 36px; }
}

@media (max-width: 380px) {
  .hero-text h1 { font-size: 1.6rem; }
  .section-body h2 { font-size: 1.1rem; }
  .topnav { display: none; }
  .bnav-item { padding: 4px 2px; }
}
