/* Earnest Family landing page. No framework, no web fonts, light + dark. */
:root {
  color-scheme: light dark;
  --indigo: #6366f1;
  --indigo-deep: #4f46e5;
  --indigo-ink: #312e81;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: #fffaf3;
  --border: #ebe5da;
  --tint: #eef2ff;
  --tint-border: #c7d2fe;
  --star: #f59e0b;
  --shadow: 0 24px 60px -30px rgba(49, 46, 129, 0.35);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --indigo-ink: #c7d2fe;
    --ink: #f3f4f6;
    --body: #d1d5db;
    --muted: #9ca3af;
    --bg: #0f1120;
    --panel: #181b2e;
    --panel-soft: #14172a;
    --border: #2a2e45;
    --tint: #1e1b4b;
    --tint-border: #4338ca;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo-deep); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.top nav a { color: var(--body); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--indigo-deep); }
.lang { color: var(--muted) !important; font-weight: 500 !important; }
@media (max-width: 560px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 1.05rem; line-height: 1.2; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.7); }
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn-small { padding: 10px 18px; font-size: 0.95rem; }
.fine { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } .hero { padding: 64px 0 40px; } }
.kicker {
  display: inline-block; color: var(--indigo-deep); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.01em; margin-bottom: 14px;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--body); max-width: 34em; }
.hero .cta { margin-top: 28px; }

/* Phone frame. Screenshots come from tests/tools/landing-screenshots.ts at
   390x844 (no status bars), so the frame matches that aspect ratio exactly. */
.phone {
  width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 390 / 844;
  border-radius: 40px; border: 9px solid #15162b; background: #15162b;
  overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.phone img { width: 100%; height: auto; }
.phone-sm { width: min(280px, 70vw); }
.crop-list img { margin-top: -33%; } /* same shot as the hero, scrolled to the task list */
@media (prefers-color-scheme: dark) { .phone { border-color: #2a2e45; background: #2a2e45; } }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 860px) { section { padding: 80px 0; } }
.section-soft { background: var(--panel-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--indigo-deep); font-weight: 700; font-size: 0.95rem; text-transform: none; margin-bottom: 10px; }
.center { text-align: center; }

/* Empathy */
.morning h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.morning p { font-size: clamp(1.05rem, 2vw, 1.2rem); }

/* Steps */
.steps { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--tint); color: var(--indigo-deep); font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--body); }

/* Pillars */
.pillar { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
@media (min-width: 860px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; }
  .pillar.flip .pillar-text { order: 2; }
}
.pillar-text p { font-size: clamp(1.05rem, 2vw, 1.15rem); max-width: 30em; }

/* Testimonials */
.quotes { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.quote h3 { font-size: 1.15rem; }
.quote p { margin-bottom: 14px; }
.quote footer { color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.plans { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; max-width: 820px; margin-left: auto; margin-right: auto; } }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; }
.plan.featured { border-color: var(--tint-border); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.1rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-alt { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.plan ul { padding: 0; margin: 20px 0 0; list-style: none; }
.plan li { padding: 7px 0 7px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--indigo-deep); font-weight: 800; }
.plan .fine { margin-top: 18px; }

/* FAQ */
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details { border-top: 1px solid var(--border); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo-deep); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); }

/* Footer */
.foot {
  border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted); font-size: 0.9rem;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--indigo-deep); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
