/* BabyTalk landing page — static, no build step. */

:root {
  --cream: #FDF1EB;
  --peach: #F6E2D6;
  --terracotta: #C8583A;
  --terracotta-dark: #A8432A;
  --ink: #1F2420;
  --ink-soft: #4A5048;
  --muted: #5E655B;
  --gray: #8E9488;
  --tan: #8A7355;
  --forest: #2F5D50;
  --mint: #E4EDE7;
  --line: #EAD9CC;
  --divider: #F1E7DE;
  --phone: #1A1613;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

em { color: var(--terracotta); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  font: 500 12.5px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 12px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 640px;
  text-wrap: balance;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 241, 235, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138, 115, 85, .12);
}
.site-header .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: 'Margarine', cursive; font-size: 22px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font: 500 15px var(--sans); color: var(--ink-soft); display: none; }
@media (min-width: 640px) { .nav-link { display: inline; } }

.btn-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--terracotta);
  color: #fff;
  font: 600 14.5px var(--sans);
}
.btn-pill:hover { color: #fff; background: var(--terracotta-dark); }

/* ---------- Icon ---------- */

.bt-icon { display: block; }

/* ---------- Account buttons (register / log in) ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 99px;
  font: 600 16px var(--sans);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-lg.primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 88, 58, .26);
}
.btn-lg.primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-lg.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-lg.secondary:hover { background: var(--ink); color: #fff; }
.btn-lg:focus-visible, .btn-pill:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 48px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
}
.hero-copy { flex: 1 1 360px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 9vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-lede {
  font: 400 18px/1.55 var(--sans);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 460px;
  text-wrap: pretty;
}

.hero-art {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 20px 0;
}
.hero-blob {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.hero-blob::before {
  content: "";
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--peach);
}

.float { position: absolute; z-index: 3; pointer-events: none; }
.float-sitter { bottom: 70px; left: max(calc(50% - 215px), -12px); }
.float-code { top: 90px; right: max(calc(50% - 225px), -12px); }

.sitter-card {
  transform: rotate(-4deg);
  background: #fff;
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 18px 40px rgba(31, 36, 32, .18);
  width: 200px;
}
.sitter-card .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint); color: var(--forest);
  display: grid; place-items: center; flex: none;
}
.sitter-card .name { font: 600 14px var(--sans); color: var(--ink); }
.sitter-card .status { font: 400 12px var(--sans); color: var(--forest); }

.code-card {
  transform: rotate(5deg);
  background: var(--forest);
  border-radius: 18px;
  padding: 11px 14px;
  box-shadow: 0 18px 40px rgba(47, 93, 80, .3);
  color: #fff;
}
.code-card .label {
  font: 500 10.5px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #BFD6CD;
}
.code-card .digits { display: flex; gap: 5px; margin-top: 6px; }
.code-card .digits span {
  width: 24px; height: 30px; border-radius: 7px;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center;
  font: 600 16px var(--sans);
}

/* ---------- Phone mockups ---------- */

.phone {
  position: relative;
  background: var(--phone);
  box-shadow: inset 0 0 0 1.5px #3A332D, 0 0 0 2px #0E0C0A, 0 26px 50px rgba(31, 36, 32, .22);
}
.phone .btn-side { position: absolute; background: #2A241F; }
.phone .btn-side.l { border-radius: 3px 0 0 3px; }
.phone .btn-side.r { border-radius: 0 3px 3px 0; }

.screen {
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex: none;
  font: 600 13px var(--sans);
  color: var(--ink);
}
.statusbar .island {
  position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 99px; background: #0E0C0A;
}
.statusbar .sys { display: flex; align-items: center; gap: 5px; }
.statusbar .battery {
  width: 22px; height: 11px; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(31, 36, 32, .45);
  padding: 1.5px; display: flex;
}
.statusbar .battery span { width: 75%; background: var(--ink); border-radius: 1.5px; }

.home-bar { border-radius: 99px; background: var(--ink); }

/* Hero phone */
.phone-hero {
  z-index: 2;
  width: 290px;
  border-radius: 48px;
  padding: 10px;
  box-shadow: inset 0 0 0 1.5px #3A332D, 0 0 0 2px #0E0C0A, 0 30px 60px rgba(31, 36, 32, .28);
}
.phone-hero .btn-side { width: 4px; }
.phone-hero .btn-side.l { left: -4px; }
.phone-hero .btn-side.r { right: -4px; }
.phone-hero .screen { border-radius: 39px; padding: 0 16px 10px; gap: 12px; }
.phone-hero .statusbar { height: 44px; padding: 0 10px; }
.phone-hero .island { top: 10px; width: 86px; height: 25px; }
.phone-hero .home-bar { width: 110px; height: 5px; margin: 4px auto 0; }

/* Small phones (showcase) */
.phone-sm { width: 230px; border-radius: 42px; padding: 8px; }
.phone-md {
  width: 250px; border-radius: 44px; padding: 8px;
  box-shadow: inset 0 0 0 1.5px #3A332D, 0 0 0 2px #0E0C0A, 0 34px 70px rgba(31, 36, 32, .3);
}
.phone-sm .btn-side, .phone-md .btn-side { width: 3px; }
.phone-sm .btn-side.l, .phone-md .btn-side.l { left: -3px; }
.phone-sm .btn-side.r, .phone-md .btn-side.r { right: -3px; }
.phone-sm .screen { border-radius: 34px; }
.phone-md .screen { border-radius: 36px; }
.phone-sm .screen, .phone-md .screen { padding: 0 16px 24px; gap: 12px; }
.phone-sm .statusbar, .phone-md .statusbar {
  height: 40px; margin: 0 -16px; padding: 0 22px; font-size: 12px;
}
.phone-sm .island, .phone-md .island { top: 9px; width: 72px; height: 22px; }
.phone-sm .battery, .phone-md .battery { width: 20px; height: 10px; }
.phone-sm .sys, .phone-md .sys { gap: 4px; }
.phone-sm .home-bar, .phone-md .home-bar {
  position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%);
  width: 90px; height: 4px;
}

/* ---------- In-phone UI bits ---------- */

.avatar {
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  flex: none;
}
.avatar.peach { background: #F3D9C6; color: #A8452B; }
.avatar.mint { background: var(--mint); color: var(--forest); }

.p-row { display: flex; align-items: center; }
.p-serif { font-family: var(--serif); line-height: 1.1; }
.p-sub { font-family: var(--sans); color: var(--gray); }
.p-eyebrow {
  font: 500 10.5px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tan);
}

.alert-card { background: var(--terracotta); color: #fff; }
.alert-card .k {
  font-family: var(--sans); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.alert-card .v { font-family: var(--sans); font-weight: 600; }

.list-card { background: #fff; display: flex; flex-direction: column; }
.list-card .row { display: flex; justify-content: space-between; }
.list-card .row span:first-child { color: var(--gray); }
.list-card .row span:last-child { font-weight: 600; }
.list-card .hr { height: 1px; background: var(--divider); }

.mint-card { background: var(--mint); }
.mint-card .t { font-weight: 600; color: var(--forest); }
.mint-card .s { color: #5E7A70; }

.tag {
  font: 600 10px var(--sans);
  padding: 3px 8px;
  border-radius: 99px;
}
.tag.live { color: var(--forest); background: var(--mint); }
.tag.expired { color: var(--tan); background: #F6E7C4; }

/* ---------- How it works ---------- */

.how { background: #fff; scroll-margin-top: 64px; }
.how .wrap { padding-top: 72px; padding-bottom: 72px; }
.how .h2 { margin-bottom: 40px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.step {
  background: var(--cream);
  border-radius: 28px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-head { display: flex; align-items: center; gap: 14px; }
.step-n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px;
  flex: none;
}
.step-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin: 0; font-weight: 400; }
.step p { font: 400 16px/1.55 var(--sans); color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- Showcase ---------- */

.showcase { background: var(--peach); overflow: hidden; position: relative; }
.showcase-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 0 88px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.showcase-row > div { flex: none; }
.showcase-row .left { margin-top: 60px; }
.showcase-row .center { position: relative; z-index: 2; }
.showcase-row .right { margin-top: 100px; }

/* ---------- Features ---------- */

.features { padding-top: 72px; padding-bottom: 72px; }
.features .h2 { margin-bottom: 36px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
}
.feature {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature h3 { font: 600 17px var(--sans); margin: 0; }
.feature p { font: 400 15.5px/1.5 var(--sans); color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- Privacy ---------- */

.privacy { background: var(--forest); color: #fff; scroll-margin-top: 64px; overflow: hidden; }
.privacy .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.privacy .eyebrow { color: #BFD6CD; }
.privacy-intro { flex: 1 1 320px; }
.privacy-list {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.check {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint); color: var(--forest);
  display: grid; place-items: center;
  flex: none; margin-top: 1px;
}
.privacy-list h3 { font: 600 17px var(--sans); margin: 0; }
.privacy-list p { font: 400 15.5px/1.5 var(--sans); color: #D3E3DC; margin: 3px 0 0; }

/* ---------- Final CTA ---------- */

.get {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  scroll-margin-top: 64px;
}
.get-icon { filter: drop-shadow(0 14px 28px rgba(200, 88, 58, .3)); }
.get h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 600px;
  text-wrap: balance;
}
.get p { font: 400 17px/1.55 var(--sans); color: var(--muted); margin: 0; max-width: 420px; }
.get .cta-row { justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid rgba(138, 115, 85, .15); }
.site-footer .wrap {
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font: 400 14px var(--sans);
  color: var(--gray);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
