/* BabyCanvas site */
:root {
    --bg: #FFF7F1;
    --surface: #FFFFFF;
    --text: #2A1F3D;
    --muted: #6F6784;
    --accent: #FF6F7D;
    --accent-dark: #C93545;
    --accent2: #8C7BF7;
    --line: #F1E4DA;
    --gradient: linear-gradient(120deg, #FF6F7D 0%, #FF8E72 50%, #B07CF7 100%);
    --radius: 24px;
    --shadow: 0 12px 40px rgba(42, 31, 61, 0.08);
    --heading: "Fredoka", "Nunito", system-ui, sans-serif;
    --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
    font-family: var(--heading);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
    margin: 0 0 0.5em;
}

:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 247, 241, 0.9);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
@media (max-width: 720px) {
    .nav .nav-optional { display: none; }
    .nav { gap: 14px; }
    .brand img { height: 28px; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 999px;
    font-weight: 800; text-decoration: none;
    background: var(--text); color: #fff;
}
.btn:hover { color: #fff; background: #3d2f56; }
.app-store-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.app-store-badge svg { height: 54px; width: auto; }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    padding: 64px 0 88px;
    background:
        radial-gradient(circle at 85% 10%, rgba(176, 124, 247, 0.20), transparent 45%),
        radial-gradient(circle at 5% 80%, rgba(255, 142, 114, 0.20), transparent 45%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: #fff; color: var(--accent-dark); font-weight: 800; font-size: 14px;
    box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
    width: 46%; max-width: 260px; border-radius: 34px; overflow: hidden;
    border: 6px solid #fff; background: #fff; box-shadow: 0 24px 60px rgba(42, 31, 61, 0.16);
}
.phone:nth-child(2) { transform: translateY(40px); }

@media (max-width: 860px) {
    .hero { padding-top: 44px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .phone:nth-child(2) { transform: translateY(24px); }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--muted); margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px;
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
    background: var(--gradient); color: #fff; margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px;
    background: var(--text); color: #fff; font-family: var(--heading); font-weight: 600;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 24px; margin-top: 56px; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { border-radius: 26px; border: 5px solid #fff; box-shadow: var(--shadow); margin: 0 auto 10px; }
.gallery figcaption { font-weight: 700; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; } .gallery img { border-width: 3px; border-radius: 16px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
    background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
    padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
    font-family: var(--heading); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.5rem; color: var(--accent-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band {
    background: var(--gradient); color: #fff; border-radius: 32px;
    padding: 48px 28px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.cta-band p { margin: 0 0 22px; font-weight: 700; }

/* Legal / content pages */
.page-header { padding: 56px 0 24px; text-align: center; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-header p { color: var(--muted); margin: 0; }
.prose {
    max-width: 800px; margin: 0 auto 72px; background: var(--surface);
    border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .note { background: var(--bg); border-radius: 16px; padding: 16px 20px; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 600px) { .prose { padding: 24px 18px; border-radius: 18px; } }

.contact-card {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    background: var(--bg); border-radius: 18px; padding: 20px 22px; margin: 1em 0 2em;
}
.contact-card p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }
.site-footer small { display: block; width: 100%; }
