/* Totti — babyaigenerator.com shared stylesheet */
:root {
  --navy: #172554;
  --navy-soft: #3b4a7a;
  --ink: #1e2a52;
  --muted: #5b6690;
  --pink: #ec5fa0;
  --pink-deep: #d33d85;
  --pink-soft: #fde7ef;
  --blue-soft: #dbeafe;
  --cream: #fffaf5;
  --gold: #f0b429;
  --card: #ffffff;
  --line: #e9e2f2;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(23, 37, 84, 0.10);
  --shadow-soft: 0 4px 14px rgba(23, 37, 84, 0.07);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--pink-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

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

.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, #fff5fa 0%, #f2f6ff 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.06rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pink-deep); background: var(--pink-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--navy-soft); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.nav-links a:hover { background: var(--pink-soft); color: var(--pink-deep); text-decoration: none; }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 9px 18px !important;
  border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--pink-deep) !important; color: #fff !important; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-appstore img { height: 54px; width: auto; }
.btn-appstore:hover { opacity: 0.85; }
.btn-primary {
  display: inline-block; background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 15px 32px; border-radius: 999px; box-shadow: 0 8px 24px rgba(211, 61, 133, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(211, 61, 133, 0.45); color: #fff; text-decoration: none; }
.btn-secondary {
  display: inline-block; background: #fff; color: var(--navy); font-weight: 700;
  padding: 14px 30px; border-radius: 999px; border: 2px solid var(--line);
}
.btn-secondary:hover { border-color: var(--pink); color: var(--pink-deep); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 60%),
    radial-gradient(900px 500px at 10% 10%, #fde7ef 0%, rgba(253, 231, 239, 0) 55%),
    var(--cream);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
}
.hero h1 { margin: 18px 0 16px; }
.hero h1 .accent { color: var(--pink-deep); }
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.88rem; font-weight: 600; color: var(--navy-soft);
  box-shadow: var(--shadow-soft);
}
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone img {
  width: min(320px, 78vw); border-radius: 36px; box-shadow: 0 30px 60px rgba(23, 37, 84, 0.25);
  border: 6px solid #fff;
}
.hero-badge-float {
  position: absolute; top: 18px; right: 4%;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; font-size: 0.85rem; font-weight: 700; color: var(--navy);
  transform: rotate(3deg);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.5rem; color: var(--pink-deep); }
.stat span { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
.shots img {
  width: 250px; border-radius: 26px; box-shadow: var(--shadow); border: 4px solid #fff;
}
.shots figcaption { text-align: center; font-size: 0.9rem; color: var(--muted); font-weight: 600; margin-top: 12px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.feature .emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.feature h3 { margin-bottom: 6px; font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Comparison ---------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: 0.95rem; }
.compare-table td:first-child { font-weight: 600; }
.compare-table .win { color: var(--pink-deep); font-weight: 800; }
.table-wrap { overflow-x: auto; }

/* ---------- Cards (guides / blog) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.card .emoji { font-size: 1.7rem; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.card .more { color: var(--pink-deep); font-weight: 700; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--pink-deep); font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 22px 18px; color: var(--muted); }
.faq-list .faq-body a { font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2d3f76 60%, #4a3a78 100%);
  border-radius: 28px; padding: 56px 32px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #cdd8f5; max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4e8; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; max-width: var(--max); margin: 0 auto; padding: 0 20px 36px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #b9c4e8; font-size: 0.93rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-note { font-size: 0.88rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 20px 0; text-align: center; font-size: 0.85rem; max-width: var(--max); margin: 0 auto; }

/* ---------- Article pages (guides + blog) ---------- */
.article-hero { background: linear-gradient(180deg, #fde7ef 0%, var(--cream) 100%); padding: 48px 0 36px; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--pink-deep); }
.article-meta { color: var(--muted); font-size: 0.92rem; margin-top: 14px; font-weight: 600; }
.article { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.article h2 { margin: 40px 0 14px; }
.article h3 { margin: 28px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 24px; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px auto; }
.article .shot-inline { width: min(300px, 90%); }
.article blockquote {
  border-left: 4px solid var(--pink); background: var(--pink-soft);
  padding: 14px 20px; border-radius: 0 14px 14px 0; margin: 20px 0; color: var(--navy-soft);
}
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }
.article th, .article td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
.article thead th { background: var(--pink-soft); color: var(--navy); }
.app-callout {
  background: linear-gradient(135deg, #fff5fa 0%, #eef4ff 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 32px 0; box-shadow: var(--shadow-soft);
}
.app-callout .callout-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-callout .callout-head img { width: 52px; height: 52px; border-radius: 13px; margin: 0; box-shadow: var(--shadow-soft); }
.app-callout h3 { margin: 0; }
.app-callout p { margin-bottom: 16px; color: var(--navy-soft); }
.related { background: var(--pink-soft); border-radius: var(--radius); padding: 24px 26px; margin-top: 44px; }
.related h3 { margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 8px; }
.related a { font-weight: 700; }

/* Blog index */
.blog-section-h { font-size: 1.35rem; margin: 46px 0 4px; }
.blog-section-h:first-of-type { margin-top: 0; }
.blog-section-p { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.post-card .post-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.post-card .post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.post-card h3 { font-size: 1.02rem; }
.post-card p { color: var(--muted); font-size: 0.9rem; flex-grow: 1; }
.post-card .more { color: var(--pink-deep); font-weight: 700; font-size: 0.9rem; }
.thumb-pink { background: linear-gradient(135deg, #fde7ef, #fbd0e2); }
.thumb-blue { background: linear-gradient(135deg, #dbeafe, #c7dcfb); }
.thumb-gold { background: linear-gradient(135deg, #fdf1d7, #fbe3ae); }
.thumb-mint { background: linear-gradient(135deg, #d9f5ec, #bfeee0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-rating { justify-content: center; }
  .steps, .features, .cards, .post-list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .article table { display: block; overflow-x: auto; }
}
@media (max-width: 580px) {
  .section { padding: 52px 0; }
  .steps, .features, .cards, .post-list { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .cta-banner { padding: 44px 22px; }
  .nav-cta { order: -1; }
}

/* ---------- Diagram library ---------- */
.diagram-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 20px; margin: 0 0 26px; }
.diagram-card img { width: 100%; height: auto; border-radius: 12px; }
.diagram-card figcaption { padding-top: 14px; }
.diagram-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.diagram-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.diagram-links { font-weight: 700; font-size: 0.92rem; }
