/* Kindleo landing — styles. Tokens lifted from the app's tokens.jsx. */

:root {
  /* surfaces */
  --cream: #FFF8F0;
  --peach: #FDEBD0;
  --peach-soft: #FFF1DE;
  --sage: #B5C9B0;
  --sage-soft: #E2EBDE;

  /* brand */
  --coral: #E8836A;
  --coral-dark: #CF6A52;
  --coral-soft: #FBE4DC;
  --coral-tint: #FFF1EC;

  /* care dots */
  --sleep: #A8C4E0;   --sleep-bg: #EBF1F8;
  --meals: #F5D77A;   --meals-bg: #FBF1D2;
  --nappy: #9DD4B8;   --nappy-bg: #E1F0E8;
  --health: #E8836A;  --health-bg: #FBE4DC;
  --photos: #C3B1D4;  --photos-bg: #EFE8F4;

  /* text */
  --ink: #2E2A26;
  --ink-sub: #766F66;
  --ink-softer: #A89F94;

  /* structural */
  --card: #FFFFFF;
  --line: rgba(46, 42, 38, 0.07);
  --divider: #EFE5D4;

  --shadow-sm: 0 1px 2px rgba(74,50,30,0.06), 0 1px 3px rgba(74,50,30,0.04);
  --shadow:    0 2px 6px rgba(74,50,30,0.05), 0 6px 18px rgba(74,50,30,0.06);
  --shadow-lg: 0 4px 12px rgba(74,50,30,0.08), 0 18px 40px rgba(74,50,30,0.10);

  --maxw: 1120px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ───────────────────────── wordmark ───────────────────────── */
.kindleo {
  display: inline-flex; align-items: flex-end; position: relative;
  font-weight: 900; letter-spacing: -0.04em; color: var(--ink);
  line-height: 1; user-select: none;
}
.kindleo .dot-i { position: relative; }
.kindleo .dot-i::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; background: var(--coral);
  width: 0.30em; height: 0.30em; top: -0.42em;
}

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--peach-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.lang-toggle button {
  border: none; background: transparent; color: var(--ink-sub);
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; transition: all .15s;
}
.lang-toggle button.on {
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 16px; font-weight: 800; letter-spacing: -0.01em;
  padding: 13px 20px; font-size: 15px; transition: transform .14s, box-shadow .14s;
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 4px 12px rgba(232,131,106,0.35); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,131,106,0.40); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }

/* play store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 11px 20px 11px 16px; transition: transform .14s, box-shadow .14s;
  box-shadow: var(--shadow);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge .glyph {
  width: 30px; height: 30px; flex-shrink: 0;
}
.store-badge .st { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .st .small { font-size: 10.5px; font-weight: 700; opacity: 0.72; letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .st .big { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.soon-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-soft); color: #3F5A3A;
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(96,123,90,0.22);
}
.soon-pill .blip { width: 8px; height: 8px; border-radius: 50%; background: #5BA37E; box-shadow: 0 0 0 0 rgba(91,163,126,0.6); animation: blip 2.2s ease-out infinite; }
@keyframes blip { 0%,100% { box-shadow: 0 0 0 0 rgba(91,163,126,0.55);} 70% { box-shadow: 0 0 0 9px rgba(91,163,126,0);} }

/* ───────────────────────── hero ───────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% -10%, var(--peach) 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 0%, var(--peach-soft) 0%, transparent 45%);
  opacity: 0.9;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-dark); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--coral); }
h1.hero-title {
  font-size: clamp(40px, 5.4vw, 64px); font-weight: 900; letter-spacing: -0.035em;
  line-height: 1.02; margin: 0 0 22px; text-wrap: balance;
}
h1.hero-title .accent { color: var(--coral); }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; color: var(--ink-sub); max-width: 30em; margin: 0 0 30px; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--ink-softer); display: flex; align-items: center; gap: 8px; }

/* scattered hero dots */
.scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scatter span { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ───────────────────────── phone ───────────────────────── */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 286px; border-radius: 42px; background: #20201E;
  padding: 11px; box-shadow: var(--shadow-lg), 0 40px 70px rgba(74,50,30,0.16);
}
.phone .screen {
  position: relative; border-radius: 32px; overflow: hidden; background: var(--cream);
  height: 580px; display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #20201E; border-radius: 999px; z-index: 6;
}
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; font-size: 12px; font-weight: 800; color: var(--ink); }
.statusbar .dots-mini { display: flex; gap: 4px; }
.statusbar .dots-mini i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.55; }

/* app header inside phone */
.app-head { background: var(--peach); padding: 12px 16px 16px; border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; position: relative; }
.app-head .row { display: flex; align-items: center; justify-content: space-between; }
.app-head .greet-s { font-size: 11px; font-weight: 800; color: var(--coral-dark); letter-spacing: 0.04em; text-transform: uppercase; }
.app-head .greet-b { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; margin-top: 2px; }
.app-head .ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--coral-dark); font-size: 14px; }

.app-body { flex: 1; overflow: hidden; padding: 14px 14px 0; }
.app-body::-webkit-scrollbar { display: none; }

.sec-label { font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-softer); margin: 4px 2px 9px; }

/* quick-log grid (educator) */
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qcard { border-radius: 18px; padding: 13px 12px; text-align: left; border: none; min-height: 86px; display: flex; flex-direction: column; }
.qcard .emo { font-size: 22px; }
.qcard .qn { font-weight: 800; font-size: 13.5px; margin-top: auto; }
.qcard .qs { font-weight: 700; font-size: 10.5px; color: var(--ink-sub); margin-top: 2px; }

/* child row */
.kid-row { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-sm); margin-top: 9px; }
.kid-row .kava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex-shrink: 0; }
.kid-row .kn { font-weight: 800; font-size: 13px; }
.kid-row .ka { font-weight: 700; font-size: 10.5px; color: var(--ink-sub); }
.kid-row .kdots { margin-left: auto; display: flex; gap: 5px; }
.kid-row .kdots i { width: 9px; height: 9px; border-radius: 50%; }

/* timeline (parent) */
.tl { position: relative; padding-left: 8px; }
.tl-item { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.tl-item .tl-dot { width: 28px; height: 28px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tl-item .tl-c { flex: 1; }
.tl-item .tl-t { font-weight: 800; font-size: 12.5px; }
.tl-item .tl-time { font-weight: 800; font-size: 10.5px; color: var(--ink-softer); }
.tl-item .tl-d { font-weight: 700; font-size: 11px; color: var(--ink-sub); margin-top: 1px; }
.tl-photo { margin-top: 6px; border-radius: 12px; height: 78px; background:
  repeating-linear-gradient(135deg, var(--photos-bg), var(--photos-bg) 9px, #fff 9px, #fff 18px);
  border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 8px; }
.tl-photo span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 9px; font-weight: 700; color: #8B72A8; background: rgba(255,255,255,0.85); padding: 2px 6px; border-radius: 6px; }

.fab { position: absolute; right: 14px; bottom: 78px; width: 50px; height: 50px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(232,131,106,0.45); border: none; font-size: 25px; z-index: 6; }

.app-tabbar { display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 6px 12px; background: var(--card); border-top: 1px solid var(--line); }
.app-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; color: var(--ink-softer); }
.app-tabbar .tab.on { color: var(--coral-dark); }
.app-tabbar .tab .tg { width: 32px; height: 22px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.app-tabbar .tab.on .tg { background: var(--coral-soft); }

/* float anim wrapper for hero phone */
.phone-float { animation: float 8s ease-in-out infinite; }

/* small floating chips around hero phone */
.chip {
  position: absolute; background: var(--card); border-radius: 14px; padding: 9px 13px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 12.5px;
  border: 1px solid var(--line); z-index: 5;
}
.chip .cdot { width: 14px; height: 14px; border-radius: 50%; }
.chip.c1 { top: 150px; left: -22px; animation: float 6.5s ease-in-out infinite; }
.chip.c2 { bottom: 118px; right: -26px; animation: float 7.5s ease-in-out infinite .6s; }

/* ───────────────────────── section scaffolding ───────────────────────── */
section { position: relative; }
.band { padding: 84px 0; }
.band.tint-cream { background: var(--cream); }
.band.tint-peach { background: linear-gradient(180deg, var(--peach-soft), var(--cream)); }
.band.tint-sage { background: var(--sage-soft); }

.head-center { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: 14px; }
h2.sec-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.sec-lead { font-size: 17px; font-weight: 600; color: var(--ink-sub); margin: 0; text-wrap: pretty; }

/* care category cards */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  border-radius: 22px; padding: 22px 18px 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat .cemo { width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.cat .cn { font-weight: 900; font-size: 17px; letter-spacing: -0.02em; }
.cat .cd { font-weight: 600; font-size: 13px; color: var(--ink-sub); margin-top: 5px; text-wrap: pretty; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { display: flex; justify-content: center; position: relative; }
.feat-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.feat-tag.educ { background: var(--coral-soft); color: var(--coral-dark); }
.feat-tag.par { background: var(--sage-soft); color: #3F5A3A; }
.split h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.split .lead { font-size: 16.5px; font-weight: 600; color: var(--ink-sub); margin: 0 0 26px; text-wrap: pretty; }

.feat-list { display: flex; flex-direction: column; gap: 16px; }
.feat-item { display: flex; gap: 14px; align-items: flex-start; }
.feat-item .fi-ic { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.feat-item .fi-t { font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; }
.feat-item .fi-d { font-weight: 600; font-size: 13.5px; color: var(--ink-sub); margin-top: 2px; text-wrap: pretty; }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trust-card { background: var(--card); border-radius: 22px; padding: 24px 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.trust-card .tc-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.trust-card .tc-t { font-weight: 900; font-size: 17px; letter-spacing: -0.02em; }
.trust-card .tc-d { font-weight: 600; font-size: 13.5px; color: var(--ink-sub); margin-top: 7px; text-wrap: pretty; }

/* final cta */
.cta-card {
  position: relative; overflow: hidden; border-radius: 34px; padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, var(--coral-soft) 0%, var(--peach) 100%);
  border: 1px solid rgba(232,131,106,0.22); box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.cta-card p { font-size: 17px; font-weight: 600; color: var(--ink-sub); margin: 0 auto 30px; max-width: 30em; }
.cta-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.waitlist-form {
  display: flex; align-items: center; gap: 0;
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.waitlist-input {
  border: none; outline: none; background: transparent;
  padding: 13px 16px; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); min-width: 220px;
}
.waitlist-input::placeholder { color: var(--ink-softer); }
.waitlist-form .btn-coral { border-radius: 0 15px 15px 0; margin: 0; }
.waitlist-msg {
  width: 100%; text-align: center; font-weight: 700; font-size: 14px;
  min-height: 22px; margin-top: 4px;
}
.waitlist-msg.success { color: #3F5A3A; }
.waitlist-msg.error { color: var(--coral-dark); }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 22px; font-weight: 700; font-size: 13.5px; color: var(--ink-sub); }
.foot .links a:hover { color: var(--coral-dark); }
.foot .copy { font-weight: 700; font-size: 12.5px; color: var(--ink-softer); }

/* reveal on scroll — only hidden when JS is active, so content is never lost */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .phone-stage { order: -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .band { padding: 60px 0; }
  .nav .soon-pill { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .chip.c1 { left: 0; }
  .chip.c2 { right: 0; }
  .waitlist-form { flex-direction: column; border-radius: 16px; }
  .waitlist-input { min-width: 0; width: 100%; text-align: center; }
  .waitlist-form .btn-coral { border-radius: 0 0 15px 15px; width: 100%; }
}
