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

:root {
  /* Palette */
  --clr-bg: #FDFBF7;
  --clr-surface: #FFFFFF;
  --clr-primary: #7C6CDB;
  --clr-primary-light: #A99AEF;
  --clr-primary-dark: #5B4BBF;
  --clr-accent-peach: #FFB8A1;
  --clr-accent-mint: #A8E6CF;
  --clr-accent-blue: #B8D4F0;
  --clr-accent-lavender: #D5C8F0;
  --clr-text: #2D2A3E;
  --clr-text-muted: #6B6582;
  --clr-border: #EDE8F5;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(124,108,219,.08);
  --shadow-md: 0 4px 20px rgba(124,108,219,.12);
  --shadow-lg: 0 8px 40px rgba(124,108,219,.15);
  --shadow-card: 0 2px 16px rgba(124,108,219,.07);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  /* Transition */
  --ease: cubic-bezier(.25,.8,.25,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

/* ===== Layout ===== */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ===== Animated Background Blobs ===== */
.blobs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: blobFloat 18s var(--delay, 0s) ease-in-out infinite alternate;
}
.blobs .b1 {
  width: 420px; height: 420px;
  background: var(--clr-accent-lavender);
  top: -10%; right: -5%;
  --delay: 0s;
}
.blobs .b2 {
  width: 350px; height: 350px;
  background: var(--clr-accent-peach);
  bottom: 5%; left: -8%;
  --delay: 4s;
}
.blobs .b3 {
  width: 300px; height: 300px;
  background: var(--clr-accent-mint);
  top: 40%; left: 50%;
  --delay: 8s;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(.95); }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header.scrolled {
  background: rgba(253,251,247,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-primary);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-lavender));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.header-cta {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--clr-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.header-cta:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content {
  animation: fadeUp .8s var(--ease) both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--clr-accent-lavender);
  color: var(--clr-primary-dark);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-md);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp .8s .2s var(--ease) both;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 12px 40px rgba(124,108,219,.18));
}
/* ===== Features ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header p {
  color: var(--clr-text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.fi-feed  { background: rgba(255,184,161,.2); }
.fi-sleep { background: rgba(184,212,240,.2); }
.fi-stats { background: rgba(168,230,207,.2); }
.feature-card h3 {
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--clr-text-muted);
  font-size: .93rem;
}

/* ===== App Preview (visual strip) ===== */
.app-preview {
  position: relative;
  z-index: 1;
  padding: 60px 0 100px;
}
.app-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.app-preview-image {
  animation: fadeUp .8s var(--ease) both;
}
.app-preview-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  margin: 0 auto;
}
.app-preview-text h2 {
  margin-bottom: 16px;
}
.app-preview-text p {
  color: var(--clr-text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}
.checklist .check-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: .75rem;
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.cta-card {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta-card h2 {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cta-card p {
  opacity: .85;
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-white {
  background: #fff;
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: #f5f3ff;
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--clr-border);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: var(--clr-text-muted);
  font-size: .85rem;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--clr-text-muted);
  font-size: .85rem;
  transition: color .25s var(--ease);
}
.footer-links a:hover {
  color: var(--clr-primary);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
  .hero .container { gap: 32px; }
  .features-grid { gap: 18px; }
  .feature-card { padding: 28px 22px; }
  .hero-image-wrapper { max-width: 380px; }
}

/* --- Tablet / large phone --- */
@media (max-width: 900px) {
  html { font-size: 15.5px; }

  .hero {
    padding: 120px 0 64px;
    min-height: auto;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { max-width: 340px; margin: 0 auto; }

  .features { padding: 56px 0 72px; }
  .section-header { margin-bottom: 40px; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  .app-preview { padding: 40px 0 72px; }
  .app-preview .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .app-preview-image { order: -1; }
  .app-preview-image img { max-width: 320px; }
  .checklist { align-items: center; max-width: 420px; margin: 0 auto; }

  .cta-section { padding: 64px 0; }
  .cta-card { padding: 48px 28px; }
}

/* --- Phones --- */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { width: 90%; }

  /* Header */
  .header { padding: 12px 0; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-icon { width: 34px; height: 34px; }
  .header-cta { padding: 9px 16px; font-size: .82rem; }

  /* Hero */
  .hero { padding: 100px 0 48px; }
  .hero .container { gap: 28px; }
  .hero-badge { font-size: .75rem; margin-bottom: 16px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-text { font-size: 1rem; margin-bottom: 26px; }
  .hero-image-wrapper { max-width: 260px; }

  /* Features → single column */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .feature-card { padding: 26px 24px; }
  .feature-icon { width: 48px; height: 48px; font-size: 1.4rem; margin-bottom: 14px; }

  /* App preview */
  .app-preview-image img { max-width: 260px; }

  /* CTA */
  .cta-card {
    padding: 40px 22px;
    border-radius: var(--radius-md);
  }
  .cta-card::before, .cta-card::after { display: none; }

  /* Stacked actions, full-width tap targets */
  .hero-actions, .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  /* Footer stacks */
  .footer { padding: 32px 0; }
  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  /* Lighter blobs to avoid overflow & save battery */
  .blobs span { filter: blur(60px); opacity: .25; }
  .blobs .b1 { width: 260px; height: 260px; }
  .blobs .b2 { width: 220px; height: 220px; }
  .blobs .b3 { width: 200px; height: 200px; }
}

/* --- Small phones --- */
@media (max-width: 380px) {
  .logo { font-size: 1rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 1rem; }
  .header-cta { padding: 8px 13px; font-size: .76rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-image-wrapper { max-width: 220px; }
}

/* --- Safe-area insets for notched devices --- */
@supports (padding: max(0px)) {
  .header .container,
  .hero .container,
  .features .container,
  .app-preview .container,
  .cta-section .container,
  .footer .container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* --- Respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blobs span { animation: none; }
}


/* ===== Interactive app demo (BabyCareDairy) ===== */
.bcd-stage { position: relative; width: min(330px, 84vw); margin-inline: auto; display: flex; flex-direction: column; align-items: center; animation: fadeUp .8s .2s var(--ease) both; }
.bcd-phone { position: relative; width: 100%; }
.bcd-frame { position: relative; background: #0f1020; border-radius: 46px; padding: 12px; box-shadow: 0 22px 60px rgba(46,40,90,.28), inset 0 0 0 2px rgba(255,255,255,.06); }
.bcd-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 104px; height: 26px; background: #0f1020; border-radius: 16px; z-index: 6; }
.bcd-screen { position: relative; overflow: hidden; border-radius: 36px; background: #eef1f6; height: 600px; }
.bcd-app { display: flex; flex-direction: column; height: 100%; position: relative; font-size: 13px; color: #1e2a4a; font-family: inherit; }
.bcd-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 22px 2px; font-size: 11px; font-weight: 700; color: #1e2a4a; flex: 0 0 auto; }
.bcd-statusbar .bcd-pill { width: 70px; height: 15px; background: #0f1020; border-radius: 10px; }
.bcd-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 16px; }
.bcd-body::-webkit-scrollbar { width: 0; }
.bcd-head { display: flex; align-items: center; gap: 12px; padding: 10px 2px 4px; }
.bcd-avatar { width: 46px; height: 46px; border-radius: 50%; background: #e7e9fb; color: #5b6cf0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.bcd-head h3 { font-size: 21px; font-weight: 800; line-height: 1.1; }
.bcd-head .bcd-age { color: #8a93a6; font-size: 12.5px; margin-top: 3px; }
.bcd-gear { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 4px 14px rgba(30,42,74,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }
.bcd-label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; color: #9aa3b2; text-transform: uppercase; margin: 16px 2px 9px; }
.bcd-timers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcd-tcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 6px 18px rgba(30,42,74,.06); cursor: pointer; text-align: left; border: none; width: 100%; font-family: inherit; transition: transform .12s ease; }
.bcd-tcard:active { transform: scale(.97); }
.bcd-tcard .t-label { font-size: 12px; color: #1e2a4a; font-weight: 600; }
.bcd-tcard .t-big { font-size: 20px; font-weight: 800; margin-top: 8px; letter-spacing: -.01em; color: #1e2a4a; }
.bcd-tcard .t-sub { font-size: 11.5px; color: #8a93a6; margin-top: 6px; }
.bcd-tcard.is-idle .t-big { color: #b6bdca; }
.bcd-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcd-qcard { position: relative; border-radius: 22px; padding: 15px; min-height: 116px; box-shadow: 0 6px 18px rgba(30,42,74,.06); border: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; font-family: inherit; transition: transform .12s ease; }
.bcd-qcard:active { transform: scale(.96); }
.bcd-qic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bcd-qcard .q-name { font-size: 15px; font-weight: 800; color: #1e2a4a; }
.q-sleep { background: linear-gradient(160deg,#f3f1fd,#fff); } .q-sleep .bcd-qic { background: #e7e3fb; }
.q-feed { background: linear-gradient(160deg,#fdf0e6,#fff); } .q-feed .bcd-qic { background: #fbe0cd; }
.q-diaper { background: linear-gradient(160deg,#e9f6ef,#fff); } .q-diaper .bcd-qic { background: #d4eede; }
.q-walk { background: linear-gradient(160deg,#e8f0fc,#fff); } .q-walk .bcd-qic { background: #d6e6fb; }
.bcd-nav { flex: 0 0 auto; display: flex; justify-content: space-around; align-items: center; padding: 8px 6px 14px; background: rgba(255,255,255,.94); border-top: 1px solid #e6e9f0; }
.bcd-navbtn { border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 14px; color: #9aa3b2; font-size: 10px; font-weight: 700; font-family: inherit; }
.bcd-navbtn svg { width: 21px; height: 21px; }
.bcd-navbtn.is-active { color: #3d6fe3; background: #eaf1fd; }
.bcd-backdrop { position: absolute; inset: 0; background: rgba(20,24,40,.42); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 20; }
.bcd-backdrop.is-open { opacity: 1; pointer-events: auto; }
.bcd-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: #f4f6fa; border-radius: 26px 26px 36px 36px; padding: 18px 18px 22px; transform: translateY(110%); transition: transform .32s cubic-bezier(.22,.8,.2,1); max-height: 88%; overflow-y: auto; box-shadow: 0 -10px 40px rgba(20,24,40,.18); }
.bcd-sheet::-webkit-scrollbar { width: 0; }
.bcd-sheet.is-open { transform: translateY(0); }
.bcd-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.bcd-sheet-head h4 { font-size: 20px; font-weight: 800; }
.bcd-x { border: none; background: none; font-size: 17px; color: #8a93a6; cursor: pointer; line-height: 1; padding: 4px; }
.bcd-sheet .s-desc { color: #8a93a6; font-size: 12.5px; margin: 4px 0 6px; }
.bcd-flabel { font-size: 13px; font-weight: 800; margin: 14px 2px 8px; }
.bcd-input { width: 100%; border: none; background: #fff; border-radius: 16px; padding: 13px 15px; font-size: 14px; color: #1e2a4a; box-shadow: inset 0 0 0 1px #e6e9f0; outline: none; font-family: inherit; }
.bcd-input::placeholder { color: #aab1c0; }
.bcd-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.bcd-chip { border: none; background: #fff; box-shadow: inset 0 0 0 1px #e3e8f0; border-radius: 14px; padding: 11px 15px; font-size: 13px; font-weight: 600; color: #1e2a4a; cursor: pointer; font-family: inherit; }
.bcd-chip.is-active { background: #e7eefd; color: #2e5bd0; box-shadow: inset 0 0 0 1.4px #bcd0f5; }
.bcd-date { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 13px 15px; margin-top: 8px; box-shadow: inset 0 0 0 1px #e6e9f0; }
.bcd-date .d-ic { width: 40px; height: 40px; border-radius: 50%; background: #eef2f9; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.bcd-date b { font-size: 14px; color: #1e2a4a; } .bcd-date small { display: block; color: #8a93a6; font-size: 11.5px; margin-top: 2px; }
.bcd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.bcd-btn { border: none; border-radius: 16px; padding: 14px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.bcd-btn-ghost { background: #fff; color: #1e2a4a; box-shadow: inset 0 0 0 1px #e3e8f0; }
.bcd-btn-primary { background: linear-gradient(135deg,#5b8def,#3d6fe3); color: #fff; box-shadow: 0 8px 20px rgba(61,111,227,.32); }
.bcd-seg { display: inline-flex; background: #eef2f9; border-radius: 14px; padding: 4px; gap: 4px; }
.bcd-seg button { border: none; background: none; padding: 9px 18px; border-radius: 11px; font-weight: 700; font-size: 13px; color: #8a93a6; cursor: pointer; font-family: inherit; }
.bcd-seg button.is-active { background: #fff; color: #1e2a4a; box-shadow: 0 2px 8px rgba(30,42,74,.1); }
.bcd-opt { display: flex; align-items: center; gap: 14px; width: 100%; background: #fff; border: none; border-radius: 18px; padding: 15px; margin-top: 12px; cursor: pointer; text-align: left; box-shadow: 0 4px 14px rgba(30,42,74,.05); font-family: inherit; transition: transform .12s ease; }
.bcd-opt:active { transform: scale(.98); }
.bcd-opt .o-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.bcd-opt b { font-size: 15px; color: #1e2a4a; } .bcd-opt small { display: block; color: #8a93a6; font-size: 12px; margin-top: 2px; }
.o-smes { background: #fbe0cd; } .o-prikorm { background: #dbe7fb; } .o-grud { background: #dff0e6; }
.bcd-diary { display: flex; flex-direction: column; gap: 10px; }
.bcd-ditem { display: flex; align-items: center; gap: 13px; background: #fff; border-radius: 18px; padding: 13px 14px; box-shadow: 0 4px 14px rgba(30,42,74,.05); animation: fadeUp .35s var(--ease) both; }
.bcd-dic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.bcd-ditem .d-body { flex: 1 1 auto; min-width: 0; }
.bcd-ditem b { font-size: 14px; color: #1e2a4a; } .bcd-ditem small { display: block; color: #8a93a6; font-size: 12px; margin-top: 2px; }
.bcd-dtime { font-size: 12px; color: #8a93a6; font-weight: 700; flex: 0 0 auto; }
.bcd-empty { text-align: center; color: #9aa3b2; padding: 44px 20px; }
.bcd-empty .e-emoji { font-size: 34px; display: block; margin-bottom: 10px; }
.k-feed { background: #fbe0cd; } .k-sleep { background: #e7e3fb; } .k-diaper { background: #d4eede; } .k-walk { background: #d6e6fb; }
.bcd-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcd-stat { background: #fff; border-radius: 18px; padding: 15px; box-shadow: 0 4px 14px rgba(30,42,74,.05); }
.bcd-stat .s-num { font-size: 24px; font-weight: 800; color: #1e2a4a; } .bcd-stat .s-cap { color: #8a93a6; font-size: 12px; margin-top: 3px; }
.bcd-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(30,42,74,.05); margin-top: 12px; }
.bcd-card h5 { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: #1e2a4a; }
.bcd-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bcd-bars span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bcd-bars i { width: 100%; background: linear-gradient(180deg,#7ba0f2,#3d6fe3); border-radius: 7px 7px 4px 4px; min-height: 6px; }
.bcd-bars small { font-size: 10px; color: #9aa3b2; }
.bcd-fam-hero { background: linear-gradient(160deg,#eef2fc,#fff); border-radius: 20px; padding: 18px; text-align: center; box-shadow: 0 6px 18px rgba(30,42,74,.06); }
.bcd-fam-hero .f-av { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px; background: #e7e9fb; color: #5b6cf0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; }
.bcd-members { display: flex; flex-direction: column; gap: 10px; }
.bcd-member { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(30,42,74,.05); }
.bcd-member .m-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: 0 0 auto; font-size: 14px; }
.bcd-member b { font-size: 14px; color: #1e2a4a; }
.bcd-toast { position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 12px); background: #1e2a4a; color: #fff; font-size: 12.5px; font-weight: 600; padding: 10px 16px; border-radius: 14px; opacity: 0; pointer-events: none; transition: all .28s ease; z-index: 30; box-shadow: 0 8px 24px rgba(20,24,40,.3); white-space: nowrap; }
.bcd-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.bcd-hint { margin-top: 18px; font-size: 13px; color: var(--clr-text-muted); text-align: center; max-width: 290px; line-height: 1.5; }
@media (max-width: 900px) { .bcd-stage { width: min(320px, 80vw); } }
@media (max-width: 640px) { .bcd-screen { height: 564px; } .bcd-stage { width: min(300px, 86vw); } .bcd-hint { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .bcd-sheet { transition: none; } .bcd-backdrop { transition: none; } .bcd-ditem { animation: none; } }
