/* Blog styles — builds on styles.css design tokens (--bg-base, --brand, --text, --muted, --gold, --font-serif). */

/* ---- breadcrumbs ---- */
.crumbs { position: static; max-width: none; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--text); }

/* ---- article ---- */
.post { max-width: 920px; margin: 0 auto; padding: 120px 22px 80px; }
.post-head { margin: 18px 0 26px; }
.post-head h1 { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 12px 0 10px; letter-spacing: -1px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0; }
.post-hero { margin: 0 0 32px; border-radius: 20px; overflow: hidden; }
.post-hero img, .post-figure img { width: 100%; height: auto; display: block; }
.post-figure { margin: 30px 0; border-radius: 16px; overflow: hidden; }

.post-body { font-size: 18px; line-height: 1.75; color: var(--text); }
.post-body .post-intro { font-size: 21px; line-height: 1.6; color: var(--text); font-weight: 500; margin: 0 0 26px; }
.post-body h2 { font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 30px); margin: 38px 0 14px; letter-spacing: -0.5px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin: 0 0 10px; }
.post-body li::marker { color: var(--brand); }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---- key takeaways ---- */
.post-takeaways { margin: 28px 0 34px; padding: 22px 26px; background: rgba(92,154,130,0.07); border: 1px solid rgba(92,154,130,0.18); border-radius: 18px; }
.post-takeaways h2 { font-family: var(--font-serif); margin: 0 0 12px; font-size: 20px; }
.post-takeaways ul { list-style: none; padding: 0; margin: 0; }
.post-takeaways li { position: relative; padding-left: 28px; margin: 0 0 10px; line-height: 1.6; }
.post-takeaways li:last-child { margin-bottom: 0; }
.post-takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* ---- stats ---- */
.post-stats { margin: 34px 0; padding: 22px 26px; background: rgba(92,154,130,0.07); border: 1px solid rgba(92,154,130,0.18); border-radius: 18px; }
.post-stats h2 { margin: 0 0 12px; font-size: 22px; }
.post-stats ul { list-style: none; padding: 0; margin: 0; }
.post-stats li { margin: 0 0 12px; }
.post-stats .stat-text { display: block; }
.post-stats cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 2px; }
.post-stats cite a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.post-stats cite a:hover { color: var(--brand); }

/* ---- quote ---- */
.post-quote { margin: 34px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--brand); font-family: var(--font-serif); font-size: 23px; line-height: 1.5; color: var(--text); }
.post-quote cite { display: block; margin-top: 12px; font-family: var(--font-sans, inherit); font-style: normal; font-size: 15px; color: var(--muted); }

/* ---- in-article CTA ---- */
.post-cta { display: flex; align-items: center; gap: 20px; margin: 50px 0 0; padding: 32px 0 32px 34px; background: rgba(242,192,120,0.10); border: 1px solid rgba(242,192,120,0.30); border-radius: 24px; overflow: hidden; }
.post-cta-text { flex: 1 1 auto; }
.post-cta p { font-size: 19px; line-height: 1.5; margin: 0 0 18px; }
.post-cta .btn-primary { color: #fff; text-decoration: none; }
.post-cta-img { flex: 0 0 240px; width: 240px; height: auto; align-self: flex-end; margin: -8px -10px -32px 0; display: block; }
@media (max-width: 640px) {
  .post-cta { flex-direction: column; text-align: center; padding: 30px 24px 0; gap: 8px; }
  .post-cta-img { flex-basis: auto; width: 200px; align-self: center; margin: 4px 0 0; }
}

/* ---- FAQ (reuse home faq look) ---- */
.post-faq { max-width: 920px; margin: 50px auto 0; padding: 0 22px; }
.post-faq > h2 { font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 30px); margin: 0 0 18px; }
.post-faq .faq-item { padding: 6px 24px; margin-bottom: 10px; background: rgba(255,255,255,0.5); border: 1px solid rgba(26,18,8,0.08); border-radius: 16px; overflow: hidden; }
.post-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq .faq-body { padding: 0 0 16px; color: var(--muted); line-height: 1.7; }

/* ---- related ---- */
.post-related { max-width: 980px; margin: 60px auto 0; padding: 0 22px; }
.post-related > h2 { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 28px); margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: rgba(255,255,255,0.5); border: 1px solid rgba(26,18,8,0.08); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,18,8,0.08); }
.related-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.related-title { padding: 14px 16px; font-weight: 600; line-height: 1.35; }

/* ---- blog index ---- */
.blog-hero { max-width: 760px; margin: 0 auto 10px; padding: 120px 22px 0; text-align: center; }
.blog-hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 12px 0 12px; letter-spacing: -1.5px; }
.blog-hero p { color: var(--muted); font-size: 19px; margin: 0; }
.post-list { max-width: 1080px; margin: 30px auto 0; padding: 0 22px 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: rgba(255,255,255,0.55); border: 1px solid rgba(26,18,8,0.08); border-radius: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,18,8,0.10); }
.post-card-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card-body h2, .post-card-body h3 { font-size: 20px; line-height: 1.3; margin: 4px 0 0; }
.post-card-body p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.post-card-body time { color: var(--muted); font-size: 13px; }

/* ---- homepage "from the blog" block ---- */
.home-blog { text-align: center; }
.home-blog .inner > h2 { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 38px); margin: 12px 0 30px; letter-spacing: -0.5px; }
.home-blog-grid { max-width: 1080px; margin: 0 auto 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.home-blog-all { display: inline-flex; }

/* ---- /screen-time-statistics hub page ---- */
.stats-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.stats-highlight { background: rgba(92,154,130,0.07); border: 1px solid rgba(92,154,130,0.18); border-radius: 18px; padding: 18px 16px; text-align: center; }
.stats-highlight-value { font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: var(--brand); line-height: 1.1; }
.stats-highlight-label { font-size: 13.5px; color: var(--text); margin-top: 6px; line-height: 1.4; }
.stats-highlight-src { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stats-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.stats-toc-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-right: 4px; }
.stats-toc a { display: inline-block; font-size: 13.5px; color: var(--text); text-decoration: none; padding: 6px 13px; background: rgba(255,255,255,0.6); border: 1px solid rgba(26,18,8,0.10); border-radius: 999px; transition: border-color .15s ease, color .15s ease; }
.stats-toc a:hover { border-color: var(--brand); color: var(--brand); }
.stats-table-wrap { margin: 22px 0; overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 15px; background: rgba(255,255,255,0.55); border: 1px solid rgba(26,18,8,0.08); border-radius: 14px; overflow: hidden; }
.stats-table caption { caption-side: top; text-align: left; font-weight: 600; font-size: 14px; color: var(--muted); padding: 0 2px 8px; }
.stats-table th, .stats-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(26,18,8,0.08); }
.stats-table thead th { background: rgba(92,154,130,0.10); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
.stats-table tbody th { font-weight: 500; }
.stats-table tbody tr:last-child th, .stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table-wrap figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.stats-table-wrap figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.stats-block { margin-top: 18px; }
.stats-chart { margin: 22px 0; }
.stats-chart img { width: 100%; height: auto; display: block; border: 1px solid rgba(26,18,8,0.08); border-radius: 14px; background: var(--bg-base); }
.stats-chart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.stats-cite { margin: 40px 0 10px; padding: 22px 26px; background: rgba(255,255,255,0.55); border: 1px dashed rgba(26,18,8,0.2); border-radius: 18px; }
.stats-cite h2 { margin: 0 0 10px; font-size: 22px; }
.stats-cite p { margin: 0 0 10px; }
.stats-cite-example { font-size: 15px; color: var(--muted); font-style: italic; }

@media (max-width: 820px) {
  .related-grid, .post-list, .home-blog-grid { grid-template-columns: 1fr; }
  .stats-highlights { grid-template-columns: repeat(2, 1fr); }
}

/* ---- /tools/* interactive tool pages ---- */
.tool-card { background: rgba(255,255,255,0.6); border: 1px solid rgba(26,18,8,0.10); border-radius: 22px; padding: 28px; margin: 26px 0 30px; }
.tool-field { margin-bottom: 22px; }
.tool-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.tool-slider-row { display: flex; align-items: center; gap: 16px; }
.tool-slider-row input[type="range"] { flex: 1; accent-color: var(--brand); height: 6px; }
.tool-slider-row output { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--brand); min-width: 84px; text-align: right; }
.tool-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.tool-result { text-align: center; padding: 26px 18px 22px; margin-top: 8px; background: rgba(92,154,130,0.07); border: 1px solid rgba(92,154,130,0.18); border-radius: 18px; }
.tool-result-big { font-family: var(--font-serif); font-size: clamp(48px, 9vw, 72px); font-weight: 600; color: var(--green); line-height: 1; }
.tool-result-outof { font-size: 0.45em; color: var(--muted); font-weight: 400; }
.tool-result-label { font-size: 15px; color: var(--text); margin-top: 8px; line-height: 1.45; }
.tool-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 6px; }
.tool-result-grid > div { background: rgba(255,255,255,0.65); border-radius: 14px; padding: 12px 10px; }
.tool-result-grid strong { display: block; font-family: var(--font-serif); font-size: 22px; color: var(--brand); }
.tool-result-grid span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 3px; }
.tool-result-note { font-size: 14.5px; color: var(--text); margin: 12px auto 16px; max-width: 480px; line-height: 1.5; }
.tool-result-text { font-size: 15.5px; margin: 12px auto 18px; max-width: 520px; }
.tool-result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool-result-actions .btn-primary { color: #fff; text-decoration: none; }
.tool-share, .tool-retake { cursor: pointer; font: inherit; }
.tool-retake { background: transparent; border: 1.5px solid rgba(26,18,8,0.25); color: var(--text); }
.tool-retake:hover { border-color: var(--text); }
.tool-share-done { display: block; font-size: 13px; color: var(--green); margin-top: 10px; }
.tool-disclaimer { font-size: 13.5px; color: var(--muted); margin: -12px 0 28px; }
.tool-more { margin-top: 26px; font-size: 15px; }
.tool-progress { height: 6px; background: rgba(26,18,8,0.08); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.tool-progress-bar { height: 100%; width: 0%; background: var(--brand); border-radius: 999px; transition: width .25s ease; }
.tool-q { border: none; padding: 0; margin: 0 0 22px; }
.tool-q legend { font-weight: 600; font-size: 15.5px; padding: 0; margin-bottom: 10px; line-height: 1.45; }
.tool-q-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tool-q-options label { display: flex; align-items: center; justify-content: center; padding: 9px 6px; font-size: 14px; background: rgba(255,255,255,0.6); border: 1px solid rgba(26,18,8,0.12); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.tool-q-options label:hover { border-color: var(--brand); }
.tool-q-options label.sel { background: rgba(92,154,130,0.14); border-color: var(--brand); color: var(--green); font-weight: 600; }
.tool-q-options input { position: absolute; opacity: 0; pointer-events: none; }

/* ---- homepage free tools block ---- */
.home-tools-grid { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; text-align: left; }
.home-tool-card { display: block; background: rgba(255,255,255,0.6); border: 1px solid rgba(26,18,8,0.10); border-radius: 22px; padding: 26px; text-decoration: none; color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-tool-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 42px -18px rgba(92,154,130,0.45); }
.home-tool-card .tool-emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.home-tool-card h3 { font-family: var(--font-serif); font-size: 21px; margin: 0 0 8px; }
.home-tool-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.home-tool-card .tool-go { font-size: 14px; font-weight: 600; color: var(--brand); }

@media (max-width: 640px) {
  .tool-card { padding: 20px 16px; }
  .tool-result-grid { grid-template-columns: 1fr; }
  .tool-q-options { grid-template-columns: repeat(2, 1fr); }
  .home-tools-grid { grid-template-columns: 1fr; }
}

/* ---- /about page ---- */
.about-founder { display: flex; align-items: center; gap: 22px; margin: 26px 0 8px; padding: 22px 26px; background: rgba(255,255,255,0.6); border: 1px solid rgba(26,18,8,0.10); border-radius: 22px; }
.about-founder img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(92,154,130,0.35); }
.about-founder h2 { margin: 0 0 2px; }
.about-founder-role { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.about-founder-links { margin: 0; font-size: 14.5px; }
@media (max-width: 640px) {
  .about-founder { flex-direction: column; text-align: center; }
}

/* ---- quick-answer box (articles) + glossary ---- */
.quick-answer { margin: 22px 0 6px; padding: 18px 22px; background: rgba(92,154,130,0.10); border-left: 3px solid var(--brand); border-radius: 0 16px 16px 0; }
.quick-answer-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.quick-answer p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.glossary-more { margin-top: -6px; font-size: 14.5px; }

/* ---- sticky mobile install CTA (Pinterest/social traffic) ---- */
.sticky-app-cta { display: none; }
@media (max-width: 720px) {
  .sticky-app-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250,247,242,0.92); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(26,18,8,0.10);
  }
  .sticky-app-cta-text { font-size: 14px; font-weight: 600; color: var(--ink, #1a1208); }
  .sticky-app-cta-btn { white-space: nowrap; padding: 10px 18px; font-size: 14.5px; }
  body { padding-bottom: 64px; }
}
