/* heymama baby — website styles */

@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #0c1628;
  --card: #2c2c45;
  --card-border: rgba(255, 255, 255, 0.12);
  --purple-light: #d4a8f5;
  --purple: #b07fe8;
  --purple-deep: #6b4fa8;
  --text: #f2eeff;
  --text-muted: #9b8ec0;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  color: #ffffff;
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--purple);
}

.btn-outline:hover { background: rgba(176, 127, 232, 0.12); }


/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0;
  padding: 16px 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.nav-brand img { width: 58px; height: 58px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 20px;
}

.nav-links a:not(.btn) { opacity: 0.85; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--purple-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--bg);
}

.hero-media {
  position: relative;
  width: 100%;
  height: clamp(460px, 46vw, 700px);
  overflow: hidden;
  background: var(--bg);
}

/* stars + clouds */
.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 18% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 34% 8%, #fff, transparent),
    radial-gradient(1px 1px at 27% 48%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 18%, #fff, transparent),
    radial-gradient(1px 1px at 38% 72%, #fff, transparent),
    radial-gradient(1px 1px at 12% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 52% 90%, #fff, transparent);
  opacity: 0.7;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffe7a8 0%, rgba(255, 220, 140, 0) 70%);
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ffe2a0;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.sparkle::before { width: 2px; height: 14px; }
.sparkle::after { width: 14px; height: 2px; }
.sparkle.small { transform: scale(0.6); }

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

.phone-mockup {
  position: absolute;
  left: 41%;
  top: 50%;
  height: 92%;
  width: auto;
  transform: translateY(-50%) perspective(1400px) rotateY(-14deg) rotateZ(3deg);
  z-index: 2;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.55));
}

.hero-text {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 36%;
  max-width: 520px;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(22px, 4.2vw, 60px);
  color: var(--text);
  margin-bottom: 0.4em;
  line-height: 1.15;
}

.thread-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.2em 0 1em;
  overflow: visible;
  opacity: 0.9;
  filter: drop-shadow(0 0 1.5px rgba(255, 210, 130, 0.9)) drop-shadow(0 0 4px rgba(255, 160, 50, 0.5));
}

.thread-divider path {
  fill: none;
  stroke-width: 1.3px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thread-divider-center {
  width: 320px;
  max-width: 80%;
  margin: 0 auto 18px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(10px, 1.5vw, 19px);
  color: var(--text);
  margin-bottom: 1.4em;
  line-height: 1.5;
}

.hero-ctas { display: flex; gap: clamp(6px, 1.2vw, 16px); flex-wrap: wrap; margin-bottom: 1.4em; }

.hero-ctas .btn {
  font-size: clamp(8px, 1.3vw, 15px);
  padding: clamp(5px, 1.1vw, 14px) clamp(10px, 2.2vw, 30px);
}

.feature-tags {
  display: none;
}

@media (min-width: 640px) {
  .feature-tags {
    display: block;
    font-size: clamp(9px, 1.1vw, 14px);
    color: var(--text-muted);
    letter-spacing: 0.3px;
  }
}

/* Content bands: image fades into the background, text on the other side */
.band {
  position: relative;
  height: clamp(340px, 30vw, 480px);
  overflow: hidden;
  background: var(--bg);
}

.band-img {
  position: absolute;
  top: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
}

.band-img-left .band-img {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
}

.band-img-right .band-img {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
}

.band-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 520px;
  z-index: 2;
}

.band-img-left .band-text { left: 56%; }
.band-img-right .band-text { left: 6%; }

.band h2 {
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.25;
  margin-bottom: 0.6em;
}

.band h2 .accent,
.band-quote p {
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.band p {
  font-size: clamp(14px, 1.25vw, 18px);
  color: var(--text);
  opacity: 0.85;
}

.band-heart {
  display: block;
  width: 26px;
  height: 26px;
  margin-top: 20px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.band-btn { margin-top: 24px; }

/* Phone band */
.band-phone-img {
  position: absolute;
  right: 16%;
  top: 50%;
  height: 92%;
  width: auto;
  transform: translateY(-50%) rotate(5deg);
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
}

.band-heart-big {
  position: absolute;
  right: 36%;
  top: 22%;
  width: 54px;
  height: 54px;
  margin: 0;
  stroke: var(--purple-light);
  opacity: 0.8;
}

/* Quote band */
.band-quote {
  padding: 70px 24px;
  text-align: center;
  background: var(--bg);
}

.band-quote p {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 36px 0 18px;
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 127, 232, 0.45), transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a { color: var(--text); opacity: 0.8; }
.footer-nav a:hover { opacity: 1; color: var(--purple-light); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(176, 127, 232, 0.35);
  color: var(--purple-light);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-icon:hover {
  background: rgba(176, 127, 232, 0.15);
  border-color: var(--purple-light);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
  max-width: 900px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--purple-light); }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: center; }
}

/* Simple page (placeholder content pages) */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero h1 { font-size: 38px; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 17px; }

/* Contact page */
.contact-hero h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.contact-hero h1 .accent {
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.contact-body { padding: 8px 0 72px; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.contact-card h2 { font-size: 20px; }

.contact-card p { color: var(--text-muted); font-size: 15px; }

.contact-card .btn { margin-top: auto; padding: 11px 24px; font-size: 14px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.contact-row:hover { color: var(--purple-light); }

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(176, 127, 232, 0.12);
  color: var(--purple-light);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-note {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at center, rgba(176, 127, 232, 0.09), transparent 70%);
}

.note-heart {
  display: block;
  width: 34px;
  height: auto;
  margin: 0 auto 14px;
  overflow: visible;
  fill: none;
  stroke: #ffd98f;
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(255, 210, 130, 0.9)) drop-shadow(0 0 6px rgba(255, 160, 50, 0.5));
}

.note-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
}

.note-text {
  font-size: 19px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text);
  opacity: 0.88;
}

.note-sign {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.note-sign strong { color: var(--text); }

@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* FAQ page */
.faq-body { padding: 8px 0 72px; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color 0.15s ease;
}

.faq-item[open] { border-color: rgba(176, 127, 232, 0.4); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(176, 127, 232, 0.14);
  color: var(--purple-light);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--purple-light); }

.faq-answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 22px 22px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.82;
}

.faq-answer strong { color: var(--purple-light); font-weight: 700; }

.faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.faq-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(176, 127, 232, 0.12);
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 600;
}

.faq-btn { padding: 10px 22px; font-size: 14px; }

.faq-cta {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
}

.faq-cta p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-muted);
}

/* The App page */
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(44, 44, 69, 0.88);
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.chip img { width: 36px; height: 36px; object-fit: contain; }

.chip div { display: flex; flex-direction: column; line-height: 1.25; }
.chip strong { font-size: 14px; font-weight: 700; color: var(--text); }
.chip span { font-size: 12.5px; color: var(--text-muted); }

.accent {
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-hero { position: relative; padding: 48px 0 24px; overflow: hidden; }

.app-hero::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 10%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 127, 232, 0.16), transparent 65%);
  pointer-events: none;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.app-hero-text h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.app-lead {
  max-width: 470px;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.app-hero-note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

.app-hero-visual {
  position: relative;
  height: clamp(460px, 44vw, 620px);
}

.app-hero-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  transform: translate(-50%, -50%) rotate(4deg);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.chip-float { position: absolute; z-index: 2; }

/* chips floating over image bands */
.app-band { height: clamp(380px, 32vw, 520px); }

.band-chips {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.band-img-left .band-chips { left: 30%; }
.band-img-right .band-chips { right: 41%; }

.band-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
}

.band-img-left .band-chips-grid { left: 24%; }

.band-chips-timeline .chip:nth-child(2) { margin-left: 28px; }
.band-chips-timeline .chip:nth-child(3) { margin-left: 56px; }

/* thoughts section */
.app-thoughts { padding: 80px 0; }

.app-thoughts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.app-thoughts-text h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.app-thoughts-text p { font-size: 18px; color: var(--text); opacity: 0.85; }

.app-thoughts-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}

.thought-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 340px;
}

.thought {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--text-muted);
}

.thought:nth-child(odd) { transform: rotate(-2deg); }
.thought:nth-child(even) { transform: rotate(2deg) translateY(6px); }

.thought-arrow {
  flex-shrink: 0;
  width: 70px;
  fill: none;
  stroke: #ffd98f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(255, 200, 110, 0.8));
}

.thought-phone {
  width: 230px;
  border-radius: 26px;
  border: 6px solid #0a0a16;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* you decide what to track */
.app-promise {
  padding: 40px 0 80px;
  text-align: center;
}

.app-promise h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.app-promise p {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.85;
}

.app-promise .app-promise-strong {
  margin-top: 18px;
  font-weight: 700;
  color: var(--purple-light);
  opacity: 1;
}

/* growing with you */
.app-growing,
.app-family,
.app-ready {
  padding: 80px 0;
  text-align: center;
}

.app-growing h2,
.app-family h2,
.app-ready h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.app-growing > .container > p,
.app-ready p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text);
  opacity: 0.85;
}

.age-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.age-row figure { margin: 0; }

.age-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 140px;
  background: radial-gradient(ellipse 50% 40% at 50% 62%, rgba(176, 127, 232, 0.22), transparent 70%);
}

.age-circle img { width: 100%; height: 100%; object-fit: contain; }

.age-row figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-light);
}

/* family cards */
.family-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 36px auto 0;
}

.family-card {
  padding: 26px 22px 24px;
  border-radius: 22px;
  text-align: center;
  background: radial-gradient(ellipse 80% 90% at center, rgba(176, 127, 232, 0.14), rgba(176, 127, 232, 0.04) 75%);
  border: 1px solid rgba(176, 127, 232, 0.25);
}

.family-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  fill: none;
  stroke: #ffd98f;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.family-card h3 { font-size: 18px; margin-bottom: 8px; }
.family-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.app-ready { padding-bottom: 96px; }

@media (max-width: 1100px) {
  .band-img-left .band-chips,
  .band-img-left .band-chips-grid { left: 18%; }
  .band-img-right .band-chips { right: 34%; }
}

@media (max-width: 860px) {
  .app-hero-grid,
  .app-thoughts-grid { grid-template-columns: 1fr; }
  .app-hero-visual { height: 460px; }
  .chip-float { transform: scale(0.85); }
  .app-band .band-chips {
    position: static;
    transform: none;
    padding: 0 24px 40px;
  }
  .band-chips-grid { grid-template-columns: 1fr; }
  .band-chips-timeline .chip:nth-child(n) { margin-left: 0; }
  .app-band .band-text { order: 0; }
  .app-band .band-chips { order: 1; }
  .app-thoughts-visual { flex-direction: column; }
  .thought-arrow { transform: rotate(90deg); }
  .family-cards { grid-template-columns: 1fr; }
  .age-circle { width: 140px; height: 115px; }
}

/* Moments (blog) */
.moments-list { padding: 8px 0 90px; }

.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.moment-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.moment-card:hover { transform: translateY(-4px); border-color: rgba(176, 127, 232, 0.5); }

.moment-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.moment-card-img img { width: 100%; height: 100%; object-fit: cover; }

.moment-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  flex: 1;
}

.moment-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
}

.moment-card-title { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--text); }
.moment-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.moment-card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--purple-light); }

.moment-card-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
}

.moment-card-featured .moment-card-img { aspect-ratio: auto; min-height: 380px; }
.moment-card-featured .moment-card-body { justify-content: center; padding: 40px; gap: 14px; }
.moment-card-featured .moment-card-title { font-size: clamp(24px, 2.4vw, 34px); }
.moment-card-featured .moment-card-excerpt { font-size: 17px; }
.moment-card-featured .moment-card-more { margin-top: 8px; }

/* article page */
.moment-cover {
  position: relative;
  height: clamp(420px, 72vh, 780px);
  overflow: hidden;
}

.moment-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.moment-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0) 0%, rgba(12, 22, 40, 0.15) 50%, rgba(12, 22, 40, 0.75) 80%, var(--bg) 100%);
}

.moment-cover-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 1;
  text-align: center;
}

.moment-cover-text h1 {
  max-width: 820px;
  margin: 0 auto 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.moment-article { padding-top: 24px; }

.moment-body {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
}

.moment-body > p { margin-bottom: 16px; color: var(--text); opacity: 0.88; }

.moment-body h2 {
  margin: 44px 0 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  color: #b094e8;
}

.moment-body ul {
  margin: 4px 0 20px;
  padding-left: 20px;
  list-style: none;
  border-left: 2px solid rgba(176, 127, 232, 0.4);
}

.moment-body li { margin: 6px 0; color: var(--text); opacity: 0.88; }

.moment-reminder {
  margin: 56px 0 8px;
  padding: 36px 32px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(ellipse 80% 90% at center, rgba(176, 127, 232, 0.14), rgba(176, 127, 232, 0.04) 75%);
  border: 1px solid rgba(176, 127, 232, 0.25);
}

.moment-reminder p:not(.note-label) {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

.moment-more { padding: 30px 0 90px; }

.moment-more h2 {
  margin-bottom: 28px;
  text-align: center;
  font-size: clamp(26px, 2.8vw, 36px);
}

@media (max-width: 960px) {
  .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment-card-featured { grid-template-columns: 1fr; }
  .moment-card-featured .moment-card-img { min-height: 260px; }
  .moment-card-featured .moment-card-body { padding: 24px; }
}

@media (max-width: 600px) {
  .moment-grid { grid-template-columns: 1fr; }
  .moment-body { font-size: 17px; }
  .moment-reminder { padding: 28px 20px; }
}

/* The Story page — personal journal layout */
.story-cover {
  position: relative;
  padding: 72px 0 24px;
}

.story-cover-text { text-align: center; }

.story-cover-text h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.story-cover-text h1 .accent,
.accent-beat,
.story-motto {
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-kicker {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-light);
}

/* golden thread running through the whole story */
.journal {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.journal::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 120px;
  left: 84px;
  width: 1.5px;
  background: linear-gradient(180deg, transparent 0%, #ffd98f 6%, #ffd98f 92%, transparent 100%);
  box-shadow: 0 0 6px rgba(255, 190, 90, 0.7), 0 0 14px rgba(255, 160, 50, 0.35);
}

.journal-chapter {
  display: grid;
  grid-template-columns: 120px minmax(0, 680px);
  gap: 40px;
  margin-bottom: 72px;
}

.journal-marker {
  position: relative;
}

.journal-marker::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 48px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.6 6.2 6.7.6-5.1 4.4 1.5 6.6L12 16.8l-5.7 3.5 1.5-6.6-5.1-4.4 6.7-.6z' fill='%230c1628' stroke='%23ffd98f' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 3px rgba(255, 200, 110, 0.85)) drop-shadow(0 0 7px rgba(255, 160, 50, 0.4));
}

.journal-text p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.88;
}

.journal-text .story-lead,
.journal-text .story-beat {
  margin: 24px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 1;
}

.journal-text .story-lead { margin-top: 0; }


.journal-label {
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light) !important;
  opacity: 1 !important;
}

.journal-h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.story-questions,
.story-wishes {
  margin: 8px 0 24px;
  padding-left: 20px;
  list-style: none;
  border-left: 2px solid rgba(176, 127, 232, 0.4);
}

.story-questions li,
.story-wishes li {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.88;
}

.story-wishes li {
  color: var(--purple-light);
  opacity: 1;
}

.journal-quote {
  position: relative;
  margin: 34px 0;
  padding-left: 48px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.journal-quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -18px;
  font-size: 80px;
  line-height: 1;
  color: var(--purple);
}

.journal-quote::after {
  content: '”';
  margin-left: 6px;
  font-size: 56px;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--purple);
}

.journal-text .story-motto {
  margin: 34px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 1;
}

.journal-text em { font-style: normal; color: var(--purple-light); }

/* polaroids */
.journal-photos {
  position: relative;
}

.polaroid {
  position: sticky;
  top: 130px;
  margin: 0;
  padding: 10px 10px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.polaroid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 3px;
}

.polaroid img.polaroid-screen { object-position: center top; }

.polaroid figcaption {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: var(--purple-light);
}

.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(3deg); }

/* signature */
.journal-sign { margin-top: 44px; }

.journal-text .journal-sign-dash { margin: 0; font-size: 22px; color: var(--purple-light); opacity: 1; }

.journal-text .story-sign-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
}

.journal-text .story-sign-role {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  opacity: 1;
}

.journal-text .story-sign-born {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--purple-light);
  opacity: 1;
}

.journal-end {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

@media (max-width: 1000px) {
  .journal::before { left: 30px; }
  .journal-chapter { grid-template-columns: 24px minmax(0, 1fr); gap: 24px; }
  .journal-marker::before { left: -6px; }
  .journal-photos { grid-column: 2; }
  .polaroid { position: static; max-width: 320px; }
}

@media (max-width: 600px) {
  .journal-text p, .story-questions li, .story-wishes li { font-size: 17px; }
  .polaroid img { height: 220px; }
}

/* Legal pages (privacy policy, terms, cookies) */
.legal { position: relative; padding: 56px 0 80px; overflow: clip; }

.legal-ornament {
  position: sticky;
  top: 120px;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.legal-ornament svg {
  position: absolute;
  top: 0;
  left: calc(50% - 410px - 170px);
  width: 120px;
  height: 600px;
  overflow: visible;
  filter: drop-shadow(0 0 2px rgba(255, 210, 130, 0.9)) drop-shadow(0 0 6px rgba(255, 160, 50, 0.45));
}

.legal-ornament path {
  fill: none;
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-ornament .sparkle { margin-left: calc(50% - 410px - 170px); opacity: 0.85; }

@media (max-width: 1240px) {
  .legal-ornament { display: none; }
}

.legal-body {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.legal-body h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 8px;
}

.legal-body h2,
.legal-body h3 {
  font-size: 22px;
  margin: 40px 0 14px;
  color: var(--purple-light);
}

.legal-body h4 { font-size: 18px; margin: 28px 0 10px; }
.legal-body h5 { font-size: 16px; margin: 22px 0 8px; }

.legal-body p { margin-bottom: 12px; opacity: 0.88; }

.legal-body ul,
.legal-body ol { margin: 0 0 16px 22px; opacity: 0.88; }

.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--purple); }

.legal-body strong { color: var(--text); font-weight: 700; }

.legal-body a { color: var(--purple-light); text-decoration: underline; }

.legal-body hr {
  border: none;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(90deg, transparent, rgba(176, 127, 232, 0.45), transparent);
}

.page-body { padding: 20px 0 80px; }
.page-body .container { max-width: 760px; }
.page-body h2 { font-size: 24px; margin: 32px 0 12px; }
.page-body p { color: var(--text-muted); margin-bottom: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .band {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .band-img,
  .band-img-left .band-img,
  .band-img-right .band-img {
    position: relative;
    width: 100%;
    height: 260px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }

  .band-text,
  .band-img-left .band-text,
  .band-img-right .band-text {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    padding: 8px 24px 48px;
  }

  .band-phone { padding-top: 40px; }
  .band-phone .band-text { order: -1; padding-bottom: 24px; }

  .band-phone-img {
    position: relative;
    right: auto;
    top: auto;
    height: 380px;
    margin: 0 auto 48px;
    transform: rotate(4deg);
  }

  .band-heart-big { display: none; }

  .hero-media {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: 380px;
    order: 1;
  }

  .hero-photo { width: 62%; }

  .phone-mockup {
    left: 8%;
    height: 90%;
  }

  .thread-divider-center { width: 260px; }

  .hero-text {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    padding: 32px 24px 24px;
    order: -1;
  }

  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .hero-ctas .btn { font-size: 14px; padding: 12px 24px; }
  .feature-tags { display: block !important; font-size: 13px; }
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
}

/* health chips sit low over the illustration, below the book */
.band-img-left .band-chips-low {
  top: auto;
  bottom: 3%;
  left: 20%;
  gap: 10px;
  transform: none;
}

.band-chips-low .chip { padding: 6px 14px 6px 8px; }
.band-chips-low .chip img { width: 30px; height: 30px; }
.family-card .family-icon-img { display: block; width: 50px; height: auto; margin: 0 auto 14px; }

/* reminder lines are centered text, not a bordered list */
.moment-reminder ul {
  margin: 0;
  padding: 0;
  border-left: none;
}

.moment-reminder li {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  opacity: 1;
}

/* Mobile polish */
@media (max-width: 860px) {
  .band .band-text,
  .band-img-left .band-text,
  .band-img-right .band-text { padding-bottom: 28px; }

  .band-quote { padding: 36px 24px; }
  .band-phone { padding-top: 16px; }
  .band-phone-img { margin-bottom: 24px; }

  .app-thoughts { padding: 40px 0; }
  .app-promise { padding: 16px 0 40px; }
  .app-growing,
  .app-family,
  .app-ready { padding: 44px 0; }
  .app-ready { padding-bottom: 56px; }
  .app-band .band-chips { padding-bottom: 28px; }

  .band-img-left .band-chips-low {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .band-chips-low .chip { white-space: normal; }
  .band-chips-low .chip strong { font-size: 13px; }
  .band-chips-low .chip span { font-size: 11.5px; }

  .contact-hero h1 br,
  .story-cover-text h1 br { display: none; }

  .page-hero { padding: 44px 0 24px; }
  .contact-note { margin-top: 36px; }

  .moment-article { padding-top: 0; }
  .moment-article.legal { padding-top: 8px; }
  .moment-cover { height: clamp(380px, 62vh, 520px); }
  .moment-more { padding-bottom: 56px; }
}

/* ===== Mobile design (phones) ===== */
@media (max-width: 860px) {
  /* type scale */
  .band h2,
  .app-thoughts-text h2,
  .app-promise h2,
  .app-growing h2,
  .app-family h2,
  .app-ready h2 { font-size: 28px; line-height: 1.22; }
  .band p { font-size: 16px; line-height: 1.65; }

  /* home hero: full-bleed illustration, text centered over its faded bottom */
  .hero-media { display: flex; flex-direction: column; }
  .hero-sky { display: none; }
  .hero-visual {
    order: 0;
    position: relative;
    width: 100%;
    height: 58vh;
    min-height: 360px;
    max-height: 520px;
  }
  .hero-visual .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-visual .phone-mockup { display: none; }
  .hero-text {
    order: 1;
    position: relative;
    z-index: 2;
    margin-top: -96px;
    padding: 0 24px 40px;
    text-align: center;
  }
  .hero h1 { font-size: 38px; line-height: 1.12; }
  .hero .thread-divider { width: 220px; margin: 14px auto 16px; }
  .hero p.lead { font-size: 17px; max-width: 340px; margin: 0 auto 24px; }
  .hero-ctas { justify-content: center; }
  .hero-ctas .btn { font-size: 15px; padding: 13px 24px; }
  .feature-tags { font-size: 12.5px !important; line-height: 1.7; }

  /* image bands: rounded image cards with gutters */
  .band { padding: 8px 0 12px; }
  .band-img,
  .band-img-left .band-img,
  .band-img-right .band-img {
    position: relative;
    width: calc(100% - 32px);
    height: 300px;
    margin: 0 16px;
    border-radius: 24px;
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .band .band-text,
  .band-img-left .band-text,
  .band-img-right .band-text { padding: 24px 24px 32px; }
  .band-heart { margin-top: 14px; }

  /* chips under app bands: tidy compact grid */
  .app-band .band-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 32px;
  }
  .app-band .band-chips .chip { white-space: normal; padding: 8px 10px 8px 8px; }
  .app-band .band-chips .chip img { width: 30px; height: 30px; }
  .app-band .band-chips .chip strong { font-size: 13px; }
  .app-band .band-chips .chip span { font-size: 11.5px; }

  /* the app hero: phone with only two floating chips, kept clear of the screen */
  .app-hero { padding-top: 24px; }
  .app-hero-text { text-align: center; }
  .app-hero-text h1 { font-size: 38px; }
  .app-lead { margin-left: auto; margin-right: auto; font-size: 17px; }
  .app-hero-visual { height: 440px; margin-top: 8px; }
  .chip-float { transform: scale(0.82); }
  .chip-float:nth-of-type(2),
  .chip-float:nth-of-type(4) { display: none; }
}

@media (max-width: 860px) {
  .app-band .band-chips .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* mobile: phone first, then text — keeps the picture/text rhythm on the home page */
@media (max-width: 860px) {
  .band-phone .band-phone-img { order: 1; margin: 8px auto 4px; }
  .band-phone .band-text { order: 2; padding-top: 24px; padding-bottom: 32px; }
}
.thread-divider-after { margin: 20px auto 0; }

/* mobile, The App: heading + text, then chips, then the illustration */
@media (max-width: 860px) {
  .app-band .band-text { order: 1; padding-bottom: 16px; }
  .app-band .band-chips { order: 2; padding-bottom: 20px; }
  .app-band .band-img { order: 3; margin-bottom: 36px; }
}
.app-promise .app-promise-heart-after { margin: 22px auto 0; }

/* language switch */
.nav-links .lang-switch {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(176, 127, 232, 0.45);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
}

.nav-links .lang-switch:hover { opacity: 1; border-color: var(--purple-light); }

/* tighter spacing around "You decide what to track" on desktop */
@media (min-width: 861px) {
  .app-thoughts { padding-bottom: 32px; }
  .app-promise { padding: 0 0 44px; }
}
