/* ============================================================
   MyParentCare — Warm Editorial Reassurance
   Aesthetic thesis: warm paper + editorial serif + a "signal of
   life" that breathes. Green is reserved for the OK/safe moment
   (mirrors the app). Orange is conversion-only.
   ============================================================ */

:root {
  /* Color story: warm cream paper, deep navy ink, trust blue,
     safe green (status only), warm orange (CTA only). */
  --paper:      #FBF8F2;
  --paper-2:    #F3ECDF;
  --card:       #FFFFFF;
  --ink:        #182338;
  --ink-soft:   #4b566d;
  --ink-faint:  #7a8296;

  --blue:       #2563EB;
  --blue-deep:  #1D4ED8;
  --blue-tint:  #E8EEFE;

  --safe:       #2D6A4F;
  --safe-tint:  #E4F1EA;
  --safe-glow:  rgba(45, 106, 79, .45);

  --accent:     #F97316;
  --accent-deep:#EA580C;

  --line:       rgba(24, 35, 56, .12);
  --line-soft:  rgba(24, 35, 56, .07);

  --shadow-sm:  0 1px 2px rgba(24,35,56,.06), 0 4px 14px rgba(24,35,56,.05);
  --shadow-md:  0 10px 30px rgba(24,35,56,.10), 0 2px 8px rgba(24,35,56,.06);
  --shadow-lg:  0 30px 70px rgba(24,35,56,.16), 0 8px 20px rgba(24,35,56,.08);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm paper grain — subtle, ties the whole thing together */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.narrow { max-width: 780px; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); font-weight: 600; }
h1 em { color: var(--blue); font-style: italic; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow.light { color: #cfe0ff; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 34ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.prose { font-size: 1.18rem; color: var(--ink-soft); margin-top: 18px; }
.prose:first-of-type { margin-top: 0; }
.prose em { color: var(--blue-deep); font-style: italic; }
.prose strong { color: var(--ink); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(249,115,22,.32); }
.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,115,22,.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.cta-sub { margin-top: 14px; font-size: .92rem; color: var(--ink-faint); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,242,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.brand-pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; position: relative; }
.brand-pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero h1 { margin: 6px 0 26px; }
.hero-cta { margin-top: 34px; }

/* the breathing reassurance card — the memorable anchor */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.status-card {
  width: 100%; max-width: 380px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg);
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}
.status-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 6px rgba(45,106,79,.08); opacity: 0; animation: breathe 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

.status-top { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-tint); color: var(--blue-deep); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; display: grid; place-items: center; }
.status-name { display: flex; flex-direction: column; line-height: 1.2; }
.status-name strong { font-family: var(--serif); font-size: 1.15rem; }
.status-name span { font-size: .82rem; color: var(--ink-faint); }
.status-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--safe); background: var(--safe-tint); padding: 6px 12px; border-radius: 999px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 0 var(--safe-glow); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--safe-glow); } 70% { box-shadow: 0 0 0 12px rgba(45,106,79,0); } 100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); } }

.status-headline { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 22px 0 18px; color: var(--safe); letter-spacing: -.01em; }
.status-rows { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.status-rows li { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; color: var(--ink-soft); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.status-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.status-rows b { color: var(--ink); font-weight: 600; }
.status-foot { margin-top: 18px; font-size: .82rem; color: var(--ink-faint); text-align: center; }
.visual-note { font-size: .92rem; color: var(--ink-faint); font-style: italic; text-align: center; }

/* ---------- Problem ---------- */
.problem { padding: clamp(50px, 7vw, 100px) 0; background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.problem h2 { margin-bottom: 28px; }
.problem .prose { font-size: 1.28rem; }

/* ---------- How ---------- */
.how { padding: clamp(60px, 8vw, 120px) 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--blue); opacity: .35; display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Why / features ---------- */
.why { padding: clamp(60px, 8vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature h3::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: 16px; }
.feature p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(70px, 9vw, 130px) 0; background: linear-gradient(160deg, #16233e, #0f1a30); color: #eaf0fb; }
.privacy .prose { color: #b9c4dc; }
.privacy .prose strong { color: #fff; }
.privacy h2 { color: #fff; }
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: #cdd7ec; font-size: 1.05rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--safe); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.privacy-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 34px; text-align: center; backdrop-filter: blur(6px); }
.privacy-card p { color: #dbe3f4; font-size: .98rem; }
.privacy-card strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.lock-badge { width: 60px; height: 60px; border-radius: 18px; background: rgba(45,106,79,.25); color: #7ee0ab; display: grid; place-items: center; margin: 0 auto 18px; }
.privacy-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); margin: 22px 0; position: relative; }
.privacy-line::after { content: "→"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #13203a; padding: 0 10px; color: #7dd3fc; }
.privacy-out strong { color: #7ee0ab !important; }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(60px, 8vw, 120px) 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.3rem; margin-bottom: 16px; }
.price { font-family: var(--serif); display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.amount { font-size: 2.8rem; font-weight: 600; letter-spacing: -.02em; }
.per { color: var(--ink-faint); font-size: 1rem; font-family: var(--sans); }
.plan-note { color: var(--ink-soft); font-size: .98rem; margin-bottom: 26px; flex: 1; }
.plan .btn { justify-content: center; width: 100%; }
.plan-featured { border-color: var(--blue); box-shadow: 0 20px 50px rgba(37,99,235,.18); transform: translateY(-8px); }
.plan-featured:hover { transform: translateY(-12px); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 6px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(37,99,235,.4); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(60px, 8vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .25s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 26px 24px; }
.faq-a p { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(70px, 9vw, 130px) 0; text-align: center; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta > .wrap > p { color: var(--ink-soft); font-size: 1.2rem; margin-bottom: 32px; }
.final-cta .btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c4dc; padding: 64px 0 34px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 30ch; font-size: .98rem; }
.footer-brand .brand-word { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 44px; align-content: start; }
.footer-nav a { color: #b9c4dc; font-size: .98rem; transition: color .18s; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .86rem; color: #8494b4; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 110px); }
.legal-head { max-width: 760px; margin: 0 auto 40px; }
.legal-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.legal-head .updated { color: var(--ink-faint); font-size: .95rem; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin: 42px 0 12px; }
.legal-body h3 { font-size: 1.15rem; margin: 26px 0 8px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.legal-body p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 14px; }
.legal-body ul { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 14px 1.1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-deep); }
.legal-body strong { color: var(--ink); }
.legal-body .toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.legal-body .toc p { font-family: var(--sans); font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: .95rem; letter-spacing: .02em; }
.legal-body .toc ol { margin: 0 0 0 1.1em; color: var(--ink-soft); }
.legal-body .toc a { text-decoration: none; }
.legal-body .callout { background: var(--blue-tint); border: 1px solid rgba(37,99,235,.2); border-left: 4px solid var(--blue); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.legal-body .callout p:last-child { margin-bottom: 0; }
.legal-body .callout.warn { background: #FFF4EC; border-color: rgba(249,115,22,.28); border-left-color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .lede { max-width: none; }
  .steps, .feature-grid, .plan-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0 !important; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
