:root {
  --cream: #FDF8EE;
  --cream-deep: #F7ECD7;
  --ink: #3E2F23;
  --ink-soft: #7A6753;
  --maroon: #8C2F39;
  --maroon-dark: #6E2330;
  --saffron: #E8912D;
  --gold: #C9962E;
  --card: #FFFFFF;
  --line: #EBDCC4;
  --radius: 22px;
  --shadow: 0 6px 24px rgba(62, 47, 35, 0.08);
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

img { max-width: 100%; }

h1, h2, h3, .tl-card h4 {
  font-family: "Baloo 2", "Nunito", Georgia, serif;
  font-weight: 700;
  color: var(--maroon-dark);
}

body {
  margin: 0;
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-nav a { margin-left: 18px; color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--maroon-dark); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 64px;
  background:
    radial-gradient(600px 300px at 20% 10%, #FBE3C2 0%, transparent 60%),
    radial-gradient(600px 300px at 85% 20%, #F6D9C9 0%, transparent 60%),
    var(--cream);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem;
  color: var(--maroon); font-weight: 600; margin: 0 0 12px;
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.15; margin: 0 0 12px; }
.hero-sub { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 28px; }

/* Floating baby icons above the sign */
.floaties { display: flex; gap: 28px; justify-content: center; font-size: 1.7rem; margin: 2px 0 12px; }
.floaties span { display: inline-block; animation: floaty 4s ease-in-out infinite; }
.floaties span:nth-child(2) { animation-delay: -1.3s; }
.floaties span:nth-child(3) { animation-delay: -2.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Glowing "live sign" */
.live-sign {
  display: inline-block;
  background: linear-gradient(165deg, #8e2c3b 0%, #5e1c29 100%);
  border: 3px solid #b35660;
  border-radius: 30px;
  padding: 20px 48px;
  margin: 4px 0 20px;
  box-shadow: 0 12px 32px rgba(110, 35, 48, 0.35), inset 0 0 28px rgba(0, 0, 0, 0.28);
  animation: signIn 0.9s ease-out both;
}
.live-sign .sign-text {
  font-family: "Baloo 2", "Nunito", cursive;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: #ffedbe;
  text-shadow: 0 0 6px #ffd97a, 0 0 20px #f7b733, 0 0 46px #e8912d;
  animation: signGlow 3.4s ease-in-out infinite;
}
@keyframes signIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes signGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.93; } }
@media (prefers-reduced-motion: reduce) {
  .live-sign, .live-sign .sign-text, .floaties span { animation: none; }
}

.countdown { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.cd-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  min-width: 76px; padding: 12px 8px; box-shadow: var(--shadow);
}
.cd-num { display: block; font-size: 1.7rem; font-weight: 700; color: var(--maroon-dark); font-variant-numeric: tabular-nums; }
.cd-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.cd-days-only { min-width: 132px; padding: 14px 24px; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-art {
  display: block; margin: 40px auto 0; width: 100%; max-width: 480px;
  border-radius: 24px; box-shadow: var(--shadow);
}

/* Watch him grow */
.growing { padding: 72px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.growing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.growing-inner > * { min-width: 0; }
.growing-art { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.growing-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; }
.grow-emoji { font-size: 4.2rem; margin: 12px 0 4px; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.grow-text { font-size: 1.15rem; margin: 0 0 8px; }
.grow-text strong { color: var(--maroon-dark); }
.grow-dims { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) {
  .growing-inner { grid-template-columns: 1fr; gap: 28px; }
  .growing-card { text-align: center; }
}
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem; transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: 0 8px 20px rgba(140, 47, 57, 0.35); }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--maroon); }

/* Sections */
section { padding: 56px 0; }
.welcome { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.7rem; margin: 0 0 8px; }
.section-sub { color: var(--ink-soft); margin: 0 0 24px; }
.signature { font-style: italic; color: var(--ink-soft); }

/* Babylist banner */
.babylist-banner {
  padding: 60px 0; text-align: center;
  background: linear-gradient(135deg, #FBEFD8 0%, #F6DFC2 100%);
  border-bottom: 1px solid var(--line);
}
.babylist-inner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.babylist-inner p { color: var(--ink-soft); margin: 0 0 22px; }
.babylist-banner[hidden] { display: none; }

/* Progress */
.progress-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.progress-meta { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.progress-bar { height: 12px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 999px; transition: width 0.5s ease; }

/* Filters */
.filters { margin-bottom: 28px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  border: 2px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; cursor: pointer; font-weight: 600;
}
.chip:hover { border-color: var(--maroon); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
#searchBox {
  flex: 1; min-width: 180px; padding: 11px 16px; border-radius: 999px;
  border: 2px solid var(--line); font-size: 0.95rem; background: var(--card); color: var(--ink);
}
#searchBox:focus { outline: none; border-color: var(--maroon); }
#priorityFilter {
  padding: 11px 14px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 0.9rem;
}
.toggle { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--maroon); }

/* Item grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.group-title {
  grid-column: 1 / -1; font-size: 1.35rem; margin: 26px 0 2px;
  display: flex; align-items: center; gap: 14px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid > .group-title:first-child { margin-top: 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(62, 50, 41, 0.12); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--cream-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.giftcard-art {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 55%, var(--maroon) 100%);
  display: flex; align-items: center; justify-content: center;
}
.giftcard-art span { font-size: 4.5rem; filter: drop-shadow(0 4px 10px rgba(62, 50, 41, 0.3)); }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; padding: 5px 11px; border-radius: 999px;
}
.badge.must { background: var(--maroon); color: #fff; }
.badge.nice { background: var(--saffron); color: #fff; }
.purchased-ribbon {
  position: absolute; top: 12px; right: 12px; background: rgba(62, 50, 41, 0.85); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--maroon); font-weight: 700; margin-bottom: 6px; }
.card h3 { font-size: 1.02rem; margin: 0 0 4px; line-height: 1.35; }
.card-brand { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 8px; }
.card-blurb { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-price { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.card-store { font-size: 0.8rem; color: var(--ink-soft); }
.card-actions { display: flex; gap: 10px; }
.btn-buy {
  flex: 1; text-align: center; background: var(--maroon); color: #fff; text-decoration: none;
  padding: 11px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
}
.btn-buy:hover { background: var(--maroon-dark); }
.btn-claim {
  flex: 1; background: transparent; border: 2px solid var(--line); color: var(--ink-soft);
  padding: 9px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.btn-claim:hover { border-color: var(--gold); color: var(--ink); }
.btn-claim.claimed { background: var(--cream-deep); border-color: var(--gold); color: var(--ink); }
span.btn-claim.claimed { cursor: default; }
.card.purchased { opacity: 0.75; }
.card.purchased .card-img img { filter: saturate(0.6); }
.empty-msg { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* How it works */
.how { background: var(--cream-deep); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 14px; font-size: 1.02rem; }
.fine-print { font-size: 0.88rem; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; }

/* Alternatives */
.alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.alt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.alt-icon { font-size: 2.4rem; margin-bottom: 10px; }
.alt-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.alt-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--maroon-dark); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.contact { margin-top: 24px; }
.contact a { color: var(--maroon-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #EDE4D6; text-align: center; padding: 32px 0; }
.site-footer p { margin: 0; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(62, 50, 41, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--card); border-radius: var(--radius);
  max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 28px 26px; position: relative; box-shadow: 0 20px 60px rgba(62, 50, 41, 0.25);
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.modal h3 { margin: 0 0 4px; font-size: 1.3rem; }
.modal-sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 18px; }
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--maroon-dark); }
.field .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.82rem; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line);
  font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--cream);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--maroon); }
.field textarea { resize: vertical; }
.form-error { color: #B3402E; font-size: 0.88rem; font-weight: 600; }
.btn-block { width: 100%; border: none; cursor: pointer; margin-top: 6px; }
.claim-details { margin: 0 0 14px; }
.claim-details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-top: 12px; }
.claim-details dd { margin: 2px 0 0; font-weight: 600; }
.claim-details dd.msg { font-weight: 400; font-style: italic; background: var(--cream-deep); border-radius: 10px; padding: 10px 14px; margin-top: 6px; }
.btn-undo {
  background: none; border: none; color: var(--ink-soft); font-size: 0.82rem;
  cursor: pointer; text-decoration: underline; padding: 4px 2px; align-self: center;
}
.giver-link { cursor: pointer; }

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 8px; }
  .site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .site-nav a { margin-left: 0; font-size: 0.85rem; }
  .hero { padding: 52px 0 48px; }
  .cd-box { min-width: 64px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  #searchBox { min-width: 0; }
  .card-actions { flex-wrap: wrap; }
  .btn-buy, .btn-claim { flex: 1 1 140px; }
}

/* Pregnancy timeline */
.timeline-title { text-align: center; margin: 14px 0 8px; font-size: 1.35rem; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 1.75rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0.55rem; top: 0.75rem; bottom: 0.75rem;
  width: 2px; background: var(--line); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 1.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.6rem; top: 0.45rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line);
}
.tl-item.past .tl-dot { background: var(--gold); border-color: var(--gold); }
.tl-item.today .tl-dot {
  background: var(--gold); border-color: var(--maroon-dark);
  width: 1.15rem; height: 1.15rem; left: -1.72rem; top: 0.32rem;
  box-shadow: 0 0 0 5px rgba(233, 180, 76, 0.25);
}
.tl-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
}
.tl-item.today .tl-card { border-color: var(--gold); background: #FFFDF6; }
.tl-item.future .tl-card { opacity: 0.75; }
.tl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.tl-date { font-size: 0.85rem; color: var(--ink-soft); }
.tl-week {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--cream-deep); border: 1px solid var(--line);
  padding: 2px 10px; border-radius: 999px; color: var(--maroon-dark);
}
.tl-item.today .tl-week { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.tl-card h4 { margin: 4px 0 2px; font-size: 1.05rem; }
.tl-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Lotus ornament divider */
.ornament { color: var(--gold); text-align: center; margin: 30px 0 6px; }
.ornament svg { width: 160px; height: 28px; }

/* Sanskrit blessing */
.blessing {
  font-family: "Baloo 2", "Nunito", serif;
  font-size: 1.7rem; color: var(--maroon); text-align: center; margin: 30px 0 4px;
}
.blessing-en { text-align: center; color: var(--ink-soft); font-style: italic; margin: 0; }

/* Name suggestion form */
.names { padding: 64px 0; background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.names h2 { margin-top: 0; }
#nameForm {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 28px; box-shadow: var(--shadow); margin-top: 24px;
}
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--maroon); }
.field .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.85em; }
.field input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 16px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232, 145, 45, 0.18); }
.form-note { color: var(--ink-soft); font-size: 0.9rem; margin: 14px 0 0; }
