/* =====================================================
   Premium pass — loaded last.
   Deep navy + brand blue, hairline borders, restrained shadows,
   no script fonts, refined buttons/nav, dark footer & CTA.
   ===================================================== */

:root {
  --navy: #0b1630;
  --navy-2: #12285a;
  --ink: #0b1630;
  --ink-2: #54627e;
  --blue: #1a6ef0;
  --card-border: #e5ecf7;
  --hair: #edf2fa;
  --hand: var(--font);            /* retire the script font everywhere */
  --radius: 20px;
  --card-shadow: 0 1px 2px rgba(11, 22, 48, .04), 0 12px 32px -18px rgba(11, 22, 48, .18);
  --card-shadow-hover: 0 2px 4px rgba(11, 22, 48, .05), 0 24px 48px -20px rgba(26, 110, 240, .32);
}

::selection { background: #cfe1ff; color: var(--navy); }
html { scrollbar-color: #b9cdf0 #f3f8ff; }
body { color: var(--ink); font-size: 1.02rem; line-height: 1.7; text-rendering: optimizeLegibility; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.site-header.scrolled { border-color: var(--card-border); box-shadow: 0 1px 0 rgba(11,22,48,.03), 0 12px 30px -20px rgba(11,22,48,.25); }
.header-inner { height: 72px; }
.brand { letter-spacing: -.03em; }
.main-nav { gap: 34px; }
.main-nav a:not(.btn) { position: relative; padding: 6px 0; color: #3d4b68; }
.main-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn { border-radius: 14px; padding: 15px 28px; letter-spacing: -.005em; }
.btn-sm { padding: 11px 20px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(180deg, #3b87ff, #1a6ef0 60%, #1662dd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 24px -10px rgba(26,110,240,.7);
}
.btn-primary:hover { background: linear-gradient(180deg, #3480fa, #1a6ef0 55%, #135bd0); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 16px 30px -10px rgba(26,110,240,.75); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #d3deef; }
.btn-outline:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline .ic { color: var(--blue); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.038em; }
h2 { letter-spacing: -.032em; line-height: 1.12; }
h3 { letter-spacing: -.015em; }
.lead { color: var(--ink-2); line-height: 1.72; }
.eyebrow { background: #fff; border: 1px solid #d9e6fa; color: var(--blue); box-shadow: 0 1px 2px rgba(11,22,48,.04); }

/* handwritten accents → refined, quiet copy */
.hand-note {
  font-family: var(--font); font-size: 1.05rem; line-height: 1.6; font-weight: 500; color: var(--ink-2);
  border-left: 3px solid var(--blue); padding-left: 16px; margin-bottom: 30px;
}
.hero-visual .hand-top, .hero-visual .hand-side { display: none; }
.hand-inline { font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--ink-2); text-align: right; transform: none; }
.belief strong { font-family: var(--font); font-size: 1.05rem; color: var(--navy); letter-spacing: -.01em; }
.feature-art .hand {
  font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 10px 18px; border-radius: 12px; transform: none;
  box-shadow: 0 8px 24px -10px rgba(11,22,48,.4);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 90% 0%, #dbe9ff 0%, transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}
.hero::before { opacity: .35; }
.hero-badges li { border-color: var(--card-border); color: #3d4b68; box-shadow: none; }
.hero-photo { border-width: 8px; box-shadow: 0 40px 80px -30px rgba(11,22,48,.45); }
.chip { box-shadow: 0 10px 28px -12px rgba(11,22,48,.35); border: 1px solid var(--card-border); }
.phone { box-shadow: 0 40px 80px -24px rgba(11,22,48,.55); }

/* ---------- Trust: one clean panel with hairline dividers ---------- */
.trust-panel {
  background: #fff; border: 1px solid var(--card-border); border-radius: 28px;
  box-shadow: 0 30px 70px -40px rgba(11,22,48,.35); padding: clamp(28px, 4vw, 52px);
}
.trust-panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 36px; }
.trust-grid { gap: 0; }
.trust-item {
  background: transparent; border: 0; border-left: 1px solid var(--card-border); border-radius: 0; box-shadow: none;
  padding: 6px clamp(18px, 2.4vw, 36px); text-align: left;
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item:hover { transform: none; box-shadow: none; }
.trust-item .ic-xl {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px; margin-bottom: 18px;
  background: var(--tile); box-shadow: inset 0 0 0 1px #d2e2fb;
}
.trust-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-item p { font-size: .92rem; line-height: 1.65; }
@media (max-width: 900px) {
  .trust-grid { gap: 32px 24px; }
  .trust-item, .trust-item:first-child { border-left: 0; padding: 0; }
}

/* ---------- Section surfaces ---------- */
.values { background: #f6f9ff; }
.values::after { display: none; }
.problems { background: #f6f9ff; }
.features { background: #fff; }
.faq { background: #f6f9ff; }
.values-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.value { background: #fff; border-radius: 20px; }
.value h3 { font-size: 1.05rem; }

/* ---------- Features ---------- */
.feature { padding: 30px; border-radius: 20px; }
.feature .badge { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 20px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature p { color: var(--ink-2); }
.feature-more { border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 14px !important; color: #7484a3 !important; }
.feature::before { background: var(--blue); height: 2px; }
.feature-art { border-radius: 20px; box-shadow: var(--card-shadow); }

/* ---------- Problems ---------- */
.problem { padding: 30px; border-top: 1px solid var(--card-border); border-radius: 20px; }
.problem:nth-child(n) { border-top-color: var(--card-border); }
.problem h3 { font-size: 1.08rem; line-height: 1.35; }
.outcome { border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 6px; }
.outcome span { color: #7484a3; font-weight: 600; }

/* ---------- How it works ---------- */
.how { background: #fff; }
.how-close { background: #f6f9ff; border-radius: 20px; }

/* ---------- Testimonials ---------- */
.quote { border-radius: 20px; padding: 30px; }
.quote blockquote { font-size: 1.08rem; letter-spacing: -.01em; }
.qmark { color: var(--blue); opacity: .9; }
.proof-photo { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(11,22,48,.4); }

/* ---------- FAQ ---------- */
.faq-list details { border-radius: 16px; }
.faq-list summary { padding: 20px 22px; font-size: .95rem; color: var(--navy); }
.faq-list summary::after { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); font-size: 1.1rem; }
.faq-list details p { padding: 0 22px 20px; line-height: 1.7; }

/* ---------- Final CTA: deep navy ---------- */
.final-cta { background: #fff; }
.cta-panel {
  border-radius: 32px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(640px 320px at 88% -10%, rgba(46,132,255,.55), transparent 62%),
    radial-gradient(500px 300px at 0% 110%, rgba(46,132,255,.25), transparent 60%),
    linear-gradient(135deg, #12285a, #0b1630);
  box-shadow: 0 40px 80px -30px rgba(11,22,48,.6);
}
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-panel .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.cta-panel .btn-primary:hover { background: #eef5ff; }
.cta-panel .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-panel .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; }
.cta-panel .btn-outline .ic { color: #fff; }
.qr-card { border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.orb-1, .orb-2 { display: none; }

/* ---------- Footer: dark ---------- */
.site-footer { background: var(--navy); color: #a5b3d1; border-top: 0; padding-top: 72px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li, .site-footer .muted { color: #a5b3d1; }
.site-footer li a { transition: color .15s; }
.site-footer li a:hover { color: #fff; }
.site-footer .footer-brand .tag { color: #fff; }
.site-footer .brand span { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.site-footer .brand-mark { width: 46px; height: 46px; padding: 5px; background: #fff; border-radius: 14px; }
.site-footer .social a { background: rgba(255,255,255,.08); color: #dbe6ff; }
.site-footer .social a:hover { background: var(--blue); color: #fff !important; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); color: #8494b8; }
.footer-bottom a { color: #dbe6ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal / info pages ---------- */
.page-hero { background: linear-gradient(180deg, #f3f8ff, #fff); }
.prose h2 { color: var(--navy); }
.contact-card { background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); }
.toc { background: #f6f9ff; border-radius: 20px; }
.form input, .form select, .form textarea { border-radius: 12px; border-color: #d3deef; }

/* =====================================================
   Alignment with the design mockup
   ===================================================== */

/* Header: logo left, links centred, CTA right (desktop) */
@media (min-width: 901px) {
  .main-nav { display: contents; }
  .main-nav a:not(.btn) { margin: 0 17px; }
  .brand { margin-right: auto; }
  .main-nav .nav-cta { margin-left: auto; }
}

/* Hero headline breaks as in the mockup: Help Your Child / Build Better / Digital Habits. */
.hero h1 { max-width: 9em; }

/* Trust strip: soft blue panel */
.trust-panel { background: linear-gradient(160deg, #eef5ff, #f7faff); border-color: #d9e7fb; }

/* Values: open layout with no boxes, like the mockup */
.value { background: transparent; border: 0; box-shadow: none; padding: 0; }
.value:hover { transform: none; box-shadow: none; }
.values-grid { gap: 36px 48px; }

/* Problems: six across on large screens, as in the mockup */
@media (min-width: 1500px) {
  .problem-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .problem { padding: 24px 22px; }
  .problem h3 { font-size: 1rem; }
  .problem p:not(.outcome) { font-size: .88rem; }
}

/* Testimonials: photo on the left, heading + quotes on the right */
.proof-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.proof-photo { margin: 0; border-radius: 28px; overflow: hidden; min-height: 460px; }
.proof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 16% 40%; }
.proof-body { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.proof-intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.proof-intro .belief { margin-bottom: 18px; max-width: 620px; }
@media (max-width: 1080px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-photo { min-height: 0; aspect-ratio: 16 / 10; }
}

/* =====================================================
   Styled (handwritten) writing — restored, used sparingly
   ===================================================== */
:root { --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; }

.hand-note {
  font-family: var(--hand); font-size: 1.5rem; line-height: 1.15; font-weight: 600; color: var(--blue);
  border-left: 0; padding-left: 0; margin-bottom: 30px; transform: rotate(-1deg); transform-origin: left;
}
.hero-visual .hand-top, .hero-visual .hand-side { display: block; font-family: var(--hand); font-weight: 600; color: #3d5a94; }
.hand-top { font-size: 1.45rem; top: 0; left: -14px; transform: rotate(-4deg); }
.hand-side { font-size: 1.3rem; top: 6px; right: 0; text-align: right; line-height: 1.15; }
.hand-side small { font-size: 1.3rem; }
.hand-inline { font-family: var(--hand); font-size: 1.7rem; font-weight: 600; color: var(--blue); text-align: right; line-height: 1.1; transform: rotate(-3deg); }
.belief strong { font-family: var(--hand); font-size: 1.7rem; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.feature-art .hand {
  font-family: var(--hand); font-size: 1.8rem; font-weight: 600; letter-spacing: 0; line-height: 1.05; color: var(--blue-dark);
  background: rgba(255,255,255,.92); padding: 10px 20px; border-radius: 14px; transform: rotate(-3deg);
}
.hand-cta {
  display: block; position: absolute; z-index: 2; right: clamp(24px, 4vw, 64px); top: 18px; left: auto; width: auto; white-space: nowrap;
  font-family: var(--hand); font-size: 1.55rem; font-weight: 600; line-height: 1.1; color: #a9ccff; text-align: right; transform: rotate(3deg);
}
@media (max-width: 900px) { .hand-cta { display: none; } }
@media (max-width: 640px) { .hero-visual .hand-top, .hero-visual .hand-side { display: none; } }

/* Hero photos: two children alternate with a soft crossfade */
.hero-photo { background: #e9f1fd; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  opacity: 0; transform: scale(1.07); transition: opacity 1.4s ease, transform 6.5s ease;
}
.hero-photo img.active { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: none; transform: none; } }

/* Hero photo frame morphs between shapes (arch, star, circle, cube, heart, diamond, squircle, pill) */
.hero-photo { border: 0; border-radius: 0; overflow: visible; box-shadow: none; background: none; filter: drop-shadow(0 30px 36px rgba(11,22,48,.30)); }
.hp-shape {
  position: absolute; inset: 0; background: #e9f1fd;
  clip-path: inset(0 round 999px 999px 32px 32px);
  transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1);
}
.hp-cube { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.hp-cube.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hp-shape { transition: none; } }
.app { text-align: center; line-height: 1.15; }
