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

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --ink:          #1d2740;
  --ink-muted:    rgba(29, 39, 64, 0.55);
  --ink-soft:     rgba(29, 39, 64, 0.38);
  --accent:       #3d83e6;        /* sleep / primary blue */
  --accent-feed:  #e87a3b;        /* feeding / orange */
  --accent-diap:  #9272c8;        /* diaper / purple */
  --accent-grow:  #4ea35d;        /* growth / green */
  --bg-base:      #f5f1ec;
  --bg-card:      rgba(255,255,255,0.82);
  --radius-card:  20px;
  --radius-pill:  999px;
  --shadow-card:  0 1px 3px rgba(29,39,64,0.06), 0 8px 32px rgba(29,39,64,0.08);
  --mono:         'JetBrains Mono', ui-monospace, monospace;
  --rounded:      'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-base);
  line-height: 1.6;
  min-height: 100vh;
  /* warm gradient that mirrors the app's home screen */
  background: linear-gradient(180deg, #e8f1fb 0%, #eef5f0 55%, #f5f1ec 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Decorative blobs (mirrors the app's background) ─────────── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

body::before {
  width: 420px;
  height: 420px;
  background: var(--accent);
  opacity: 0.07;
  top: -80px;
  left: -100px;
}

body::after {
  width: 320px;
  height: 320px;
  background: var(--accent-feed);
  opacity: 0.07;
  bottom: 10%;
  right: -80px;
}

/* All sections sit above blobs */
nav, section, footer {
  position: relative;
  z-index: 1;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(245,241,236,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,39,64,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.site-nav ul a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}

.site-nav ul a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(135deg, #3d83e6 0%, #1f5cba 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2.4rem;
  box-shadow: 0 8px 28px rgba(61,131,230,0.32), 0 2px 6px rgba(29,39,64,0.1);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero p.tagline {
  font-size: 1.1rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.65;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.88);
  color: var(--accent);
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid rgba(61,131,230,0.22);
  box-shadow: var(--shadow-card);
  letter-spacing: 0.01em;
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  padding: 80px 24px 96px;
}

.features h2 {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: none;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

/* Activity-palette gradient backgrounds */
.feature-card:nth-child(1) { background: linear-gradient(135deg, #fde7d0 0%, #fcdac4 100%); }
.feature-card:nth-child(2) { background: linear-gradient(135deg, #dfe9fa 0%, #dcd6f3 100%); }
.feature-card:nth-child(3) { background: linear-gradient(135deg, #ece6f8 0%, #f3e3eb 100%); }
.feature-card:nth-child(4) { background: linear-gradient(135deg, #e6f3e1 0%, #dff0e8 100%); }

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(29,39,64,0.07), 0 16px 40px rgba(29,39,64,0.11);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Each card gets its own app-category tint */
.feature-card:nth-child(1) .icon { background: rgba(232,122,59,0.22); }   /* feeding */
.feature-card:nth-child(2) .icon { background: rgba(61,131,230,0.22); }    /* sleep   */
.feature-card:nth-child(3) .icon { background: rgba(146,114,200,0.22); }   /* sharing */
.feature-card:nth-child(4) .icon { background: rgba(78,163,93,0.22); }     /* watch   */

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Category accent colors for card headings */
.feature-card:nth-child(1) h3 { color: #a55a23; }
.feature-card:nth-child(2) h3 { color: #1f4ea3; }
.feature-card:nth-child(3) h3 { color: #6b4ea1; }
.feature-card:nth-child(4) h3 { color: #3a7a48; }

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── Page content (privacy, terms, support) ──────────────────── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-content h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-content .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(29,39,64,0.08);
}

.page-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content p,
.page-content ul {
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.page-content ul {
  padding-left: 22px;
}

.placeholder-notice {
  background: rgba(255,248,225,0.9);
  border: 1px solid rgba(255,224,130,0.7);
  border-radius: 12px;
  padding: 20px;
  color: #795548;
  font-size: 0.95rem;
  margin: 24px 0;
}

/* ── Support ─────────────────────────────────────────────────── */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-top: 1px solid rgba(29,39,64,0.07);
  padding: 22px 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.contact-box {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  margin-top: 48px;
  text-align: center;
  border: 1px solid rgba(29,39,64,0.06);
  box-shadow: var(--shadow-card);
}

.contact-box h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-box p {
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.contact-box a.email-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(29,39,64,0.07);
  padding: 36px 24px;
  text-align: center;
  background: rgba(245,241,236,0.6);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.site-footer nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-footer .copyright {
  color: var(--ink-soft);
  font-size: 0.83rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .site-nav {
    padding: 14px 20px;
  }

  .site-nav ul {
    gap: 16px;
  }

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

@media (max-width: 420px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Gift page ───────────────────────────────────────────────── */
.gift-hero {
  text-align: center;
  padding: 64px 24px 32px;
}

.gift-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.gift-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 16px 0 12px;
}

.gift-hero .tagline {
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.gift-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 28px;
  background: #c98a1f;
  color: #fff;
  font-family: var(--rounded);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gift-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,138,31,0.36);
  text-decoration: none;
}

.gift-notice {
  max-width: 920px;
  margin: 0 auto 8px;
  padding: 14px 20px;
  border-radius: var(--radius-card);
  font-weight: 600;
  text-align: center;
}

.gift-notice--warn {
  background: rgba(232,122,59,0.12);
  color: var(--accent-feed);
}

.gift-layout {
  max-width: 920px;
  margin: 24px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.gift-main,
.gift-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gift-fieldset {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.gift-fieldset legend {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 16px;
}

.plan-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid rgba(29,39,64,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.plan-card:hover {
  border-color: rgba(61,131,230,0.5);
}

.plan-card--selected {
  border-color: var(--accent);
  background: rgba(61,131,230,0.06);
}

.plan-card input[type=radio] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.plan-card-label {
  font-weight: 700;
  flex: 1;
}

.plan-card-price {
  font-weight: 700;
  color: var(--accent);
}

.gift-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 16px 0 6px;
}

.gift-label:first-of-type {
  margin-top: 0;
}

.gift-label .req { color: var(--accent-feed); }
.gift-label .opt { color: var(--ink-soft); font-weight: 500; }

.gift-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(29,39,64,0.12);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}

.gift-input:focus {
  outline: none;
  border-color: var(--accent);
}

.gift-textarea {
  resize: vertical;
  min-height: 80px;
}

.gift-hint {
  color: var(--ink-soft);
  font-size: 0.83rem;
  margin-top: 6px;
}

.field-error,
.gift-error {
  color: var(--accent-feed);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}

.gift-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.gift-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61,131,230,0.32);
}

.gift-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift-trust {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.83rem;
  margin-top: 12px;
}

.order-summary,
.included-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.order-summary h2,
.included-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-plan { color: var(--ink-muted); }
.order-price { font-weight: 700; }

.order-divider {
  height: 1px;
  background: rgba(29,39,64,0.1);
  margin: 14px 0;
}

.order-total {
  font-weight: 800;
  font-size: 1.1rem;
}

.included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.included-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.included-icon { font-size: 1.3rem; }

/* ── Gift success page ───────────────────────────────────────── */
.success-wrap {
  max-width: 560px;
  margin: 24px auto 64px;
  padding: 0 24px;
}

.success-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: center;
}

.success-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.code-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.code-block code {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  word-break: break-all;
}

.copy-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.redeem-link {
  display: inline-block;
  margin: 8px 0;
  font-weight: 700;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 4px solid rgba(61,131,230,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gift-spin 0.8s linear infinite;
}

@keyframes gift-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .gift-layout {
    grid-template-columns: 1fr;
  }

  .gift-hero h1 {
    font-size: 2rem;
  }

  .gift-aside {
    order: -1;
  }
}
