@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700');
@import url('https://fonts.bunny.net/css?family=nunito:600,700,800');

:root {
  --bg: #f7f5f2;
  --bg-soft: #f1ede7;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #5f6672;
  --line: #e5e2dc;
  --accent: #6ca28f;
  --accent-strong: #568674;
  --shadow: 0 14px 40px rgba(20, 30, 60, 0.12);

  --lilac: #ebe7ff;
  --lilac-ink: #7564d5;
  --amber: #f8eecf;
  --amber-ink: #c4962a;
  --mint: #e5f1ea;
  --mint-ink: #4c8b72;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, #ffffff, var(--bg-soft)) fixed;
  color: var(--ink);
  line-height: 1.6;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

.eyebrow,
.btn,
.nav-links {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header .app-name {
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4f2ef;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.menu-toggle:hover {
  background: #efece7;
  transform: translateY(-1px);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon::before {
  top: 0;
}

.menu-icon::after {
  bottom: 0;
}

.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle.is-open .menu-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.menu-toggle.is-open .menu-icon span {
  opacity: 0;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mobile-drawer.open {
  max-height: 260px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem 1.1rem;
}

.mobile-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
}

.mobile-nav .btn-ghost {
  justify-content: flex-start;
  padding: 0.6rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #f0ede7;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(86, 134, 116, 0.35);
}

.btn-secondary {
  background: #eef0f3;
  color: var(--ink);
  border: 1px solid #e1e4ea;
}

.btn-ghost {
  background: #f4f2ef;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.65rem 1.2rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fdfcfb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.phone-wrap {
  position: relative;
  justify-self: center;
}

.phone-mock {
  width: min(320px, 82vw);
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(160deg, #ffffff, #f4f2ef);
  box-shadow: 0 16px 40px rgba(20, 30, 60, 0.14);
  border: 1px solid var(--line);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 20;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-shadow {
  position: absolute;
  inset: auto -8% -12% -8%;
  height: 18px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.24), transparent 70%);
  filter: blur(8px);
  opacity: 0.5;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.4rem;
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background: #e6efe9;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf8;
  font-size: 0.92rem;
}

.result-card {
  background: var(--card);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.result-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px #e6efe9;
}

.timestamp {
  font-size: 0.95rem;
}

.result-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.thumb {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: 16px;
  background: #f0efed;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hazard-count {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hazard-sub {
  color: var(--muted);
}

/* Features */
.features {
  padding: 3rem 0;
}

.features h2,
.about h2 {
  text-align: center;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.feature-card.feature-one {
  border-left: 6px solid #67b37c;
}

.feature-card.feature-two {
  border-left: 6px solid #8db1d5;
}

.feature-card.feature-three {
  border-left: 6px solid #e58fa1;
}

.feature-visual {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  /* box-shadow: 0 8px 20px rgba(20, 30, 60, 0.1); */
  border: none;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feature-copy h3 {
  margin-top: 0.1rem;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stores */
.stores {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, #fdfbf8 0%, #f3efe9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stores h2 {
  text-align: center;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.stores p {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 1.6rem auto;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  cursor: default;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  min-width: 180px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(20, 30, 60, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 30, 60, 0.24);
}

.store-badge.playstore,
.store-badge.appstore {
  background: #ffffff;
}

/* About */
.about {
  padding: 3rem 0 3.5rem;
  background: #faf8f6;
  border-top: 1px solid var(--line);
}

.about > .container > p {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.about-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

.about-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.about.legal .container {
  max-width: 720px;
  text-align: left;
}

.about.legal h1 {
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.about.legal h2 {
  text-align: left;
  font-size: 1.35rem;
  margin: 1.6rem 0 0.6rem;
}

.about.legal h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.4rem;
}

.about.legal > .container > p {
  text-align: left;
  max-width: none;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.about.legal p {
  margin: 0 0 1rem 0;
}

.about.legal ul {
  margin: 0.3rem 0 1.1rem 1.2rem;
  padding-left: 0.8rem;
}

.about.legal li {
  margin-bottom: 0.35rem;
}

/* Safety tips index */
.tips-index {
  padding: 3.5rem 0 4.5rem;
}

.tips-index .container {
  max-width: 900px;
}

.tips-header {
  max-width: 700px;
  margin-bottom: 2rem;
}

.tips-header h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.tips-header p {
  color: var(--muted);
  font-size: 1rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.2rem;
}

.tip-card {
  --tip-base: rgba(108, 162, 143, 0.35);
  --tip-soft: rgba(108, 162, 143, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 18px;
  min-height: 200px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--tip-base), var(--tip-soft));
  box-shadow: 0 14px 30px rgba(20, 30, 60, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.tip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 55%);
  pointer-events: none;
}

.tip-card-inner {
  position: relative;
  z-index: 1;
}

.tip-icon {
  font-size: 1.55rem;
  line-height: 1;
  color: #1f2430;
}

.tip-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.tip-detail {
  --tip-icon: #1f2430;
}

.tip-detail-title {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.tip-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.tip-detail-icon {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--tip-icon);
}

.tip-divider {
  margin: 50px 0 50px 0;
  color: #999;
}

.tip-product-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.5;
  margin-top: -0.8rem;
  margin-bottom: 1.4rem;
}

.tip-card h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.tip-card .teaser {
  color: #2b2b2e;
  font-size: 0.97rem;
  line-height: 1.45;
}

.tip-link {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-weight: 500;
  color: #1f2430;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 30, 60, 0.16);
}

.tip-products {
  margin-top: 1.1rem;
}

.tip-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.tip-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 30, 60, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tip-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(20, 30, 60, 0.12);
}

.product-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tip-icon);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.product-feature {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfaf8;
  color: var(--muted);
}

.product-cta {
  align-self: flex-start;
  margin-top: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ffd814;
  color: #111111;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #fcd200;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.12);
  text-transform: none;
}

.product-empty {
  margin-top: 0.8rem;
  color: var(--muted);
}

.tip-sharp-corners {
  --tip-base: rgba(103, 179, 124, 0.35);
  --tip-soft: rgba(103, 179, 124, 0.08);
  --tip-icon: #67b37c;
}

.tip-electrical-cords {
  --tip-base: rgba(229, 143, 161, 0.35);
  --tip-soft: rgba(229, 143, 161, 0.08);
  --tip-icon: #e58fa1;
}

.tip-locks-latches {
  --tip-base: rgba(141, 177, 213, 0.35);
  --tip-soft: rgba(141, 177, 213, 0.08);
  --tip-icon: #8db1d5;
}

.tip-tip-over {
  --tip-base: rgba(127, 183, 178, 0.35);
  --tip-soft: rgba(127, 183, 178, 0.08);
  --tip-icon: #7fb7b2;
}

.tip-safety-gates {
  --tip-base: rgba(185, 166, 216, 0.35);
  --tip-soft: rgba(185, 166, 216, 0.08);
  --tip-icon: #b9a6d8;
}

.tip-window-safety {
  --tip-base: rgba(242, 195, 92, 0.35);
  --tip-soft: rgba(242, 195, 92, 0.08);
  --tip-icon: #f2c35c;
}

.tip-water-safety {
  --tip-base: rgba(141, 177, 213, 0.35);
  --tip-soft: rgba(141, 177, 213, 0.08);
  --tip-icon: #8db1d5;
}

.tip-fire-burns {
  --tip-base: rgba(229, 143, 161, 0.35);
  --tip-soft: rgba(229, 143, 161, 0.08);
  --tip-icon: #e58fa1;
}

.tip-choking-poisoning {
  --tip-base: rgba(103, 179, 124, 0.35);
  --tip-soft: rgba(103, 179, 124, 0.08);
  --tip-icon: #67b37c;
}

.tip-babyproofing-checklist {
  --tip-base: rgba(196, 150, 42, 0.35);
  --tip-soft: rgba(196, 150, 42, 0.08);
  --tip-icon: #c4962a;
}

.tip-crawling-first-steps {
  --tip-base: rgba(103, 179, 124, 0.35);
  --tip-soft: rgba(103, 179, 124, 0.08);
  --tip-icon: #67b37c;
}

.tip-room-by-room {
  --tip-base: rgba(141, 177, 213, 0.35);
  --tip-soft: rgba(141, 177, 213, 0.08);
  --tip-icon: #8db1d5;
}

.tip-common-mistakes {
  --tip-base: rgba(229, 143, 161, 0.35);
  --tip-soft: rgba(229, 143, 161, 0.08);
  --tip-icon: #e58fa1;
}

.tip-cords {
  --tip-base: rgba(127, 183, 178, 0.35);
  --tip-soft: rgba(127, 183, 178, 0.08);
  --tip-icon: #7fb7b2;
}

.tip-crawling-to-walking {
  --tip-base: rgba(185, 166, 216, 0.35);
  --tip-soft: rgba(185, 166, 216, 0.08);
  --tip-icon: #b9a6d8;
}

@media (max-width: 720px) {
  .tips-index {
    padding: 2.8rem 0 3.8rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tip-card {
    min-height: 0;
  }
}

/* Footer */
.footer {
  background: #f3f1ed;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--ink);
  margin-left: 1rem;
  font-weight: 700;
}

.footer nav {
  display: flex;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 {
  transition-delay: 0.1s;
}

.fade-in.delay-2 {
  transition-delay: 0.2s;
}

.fade-in.delay-3 {
  transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    display: block;
  }

  .result-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .header .btn-ghost {
    width: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-visual {
    margin: 0 auto;
  }
}

@media (orientation: landscape) {
  .hero,
  .features,
  .about,
  .stores {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero .container,
  .features .container,
  .about .container,
  .stores .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .about.legal {
    min-height: auto;
    display: block;
  }
}
