/* =========================================================
   Toolkit Studio — CONTENT PAGE STYLES
   ---------------------------------------------------------
   Shared styles for simple "read this" pages: About, Privacy,
   and anything similar you add later (Terms, Contact, FAQ...).

   Load order in <head> is always:
     1. assets/colors.css   (the color palette)
     2. assets/style.css    (site-wide basics: body, .wrap, .hero,
                              footer, buttons — used by every page)
     3. assets/pages.css    (this file — content-page-only layout)

   Nothing in here duplicates colors.css — every color below is a
   variable defined there, so the theme picker in the header still
   re-colors these pages automatically.

   HOW THIS FILE IS ORGANIZED (matches top to bottom on the page):
     1. Page header (title + subtitle + meta line)
     2. Prose column (readable width for paragraphs/lists)
     3. Table of contents / jump links
     4. Section headings
     5. Callout banners (summary boxes, notices)
     6. Card grid (used for "values", "stats", "features" blocks)
     7. FAQ-style toggle blocks
   ========================================================= */

/* ---------- 1. Page header ---------- */
/* A shorter version of the home page's .hero, used at the top
   of every content page. */
.page-header{
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 36px;
}
.page-header .wrap{ max-width: 760px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
@media (max-width: 640px){ .page-header{ padding: 36px 0 28px; } .page-header .wrap, main.page-content{ padding-left: 20px; padding-right: 20px; } }
.page-header .eyebrow{
  display:inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.page-header h1{
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  max-width: 26ch;
}
.page-header .lede{
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 16px;
}
.page-header .meta{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- 2. Prose column ---------- */
/* Content pages read better narrower than the 1100px site max-width,
   so this wraps prose sections at a comfortable line length. */
.page-content{
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 32px 24px;
}
.page-content > *:first-child{ margin-top: 0; }

.page-content h2{
  font-size: 20px;
  margin-top: 42px;
  margin-bottom: 12px;
  scroll-margin-top: 24px; /* keeps the heading visible under the sticky header when jumped to */
}
.page-content h3{
  font-size: 15.5px;
  margin-top: 22px;
  margin-bottom: 8px;
}
.page-content p{
  color: var(--text);
  margin: 0 0 14px;
}
.page-content p.muted{ color: var(--text-muted); }
.page-content ul,
.page-content ol{
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text);
}
.page-content li{ margin-bottom: 6px; }
.page-content li:last-child{ margin-bottom: 0; }
.page-content strong{ color: var(--text); }
.page-content hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.page-content a.inline-link{ font-weight: 600; }

/* ---------- 3. Table of contents ---------- */
/* Optional block of jump links near the top of a long page
   (Privacy uses this; skip it on shorter pages like About). */
.toc{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 8px;
}
.toc .toc-title{
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.toc ol{
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}
.toc li{ margin-bottom: 6px; font-size: 13.5px; break-inside: avoid; }
.toc a{ color: var(--text-muted); }
.toc a:hover{ color: var(--accent); }
@media (max-width: 560px){ .toc ol{ columns: 1; } }

/* ---------- 4. Section anchors ---------- */
/* Small "#" link that appears next to a heading on hover, so a
   section can be linked to directly. Purely optional — a heading
   works fine without it. */
.section-anchor{
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 6px;
  opacity: 0;
  text-decoration: none;
  transition: opacity 120ms ease;
}
.page-content h2:hover .section-anchor{ opacity: 1; }

/* ---------- 5. Callout banners ---------- */
/* Reuses the .banner component from style.css (already shared by
   the tool pages) but adds a couple of tone variants for content
   pages: neutral (default), info (accent), and note (quieter). */
.callout{
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.callout p{ margin: 0; font-size: 14px; color: var(--text-muted); }
.callout p + p{ margin-top: 8px; }
.callout strong{ color: var(--text); }
.callout ul{ margin: 8px 0 0; }
.callout.tone-note{ border-left-color: var(--text-dim); }

/* ---------- 6. Card grid ---------- */
/* Used for "our values" cards on About and could be reused for
   any "here are N things" block. Duplicate one .info-card to add
   another item — see the HTML files for the exact markup to copy. */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.info-card{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card, none);
}
.info-card .icon{
  width: 34px; height: 34px;
  display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
}
.info-card h3{ margin: 0 0 6px; font-size: 14.5px; }
.info-card p{ margin: 0; font-size: 13.5px; color: var(--text-muted); }

/* Compact stat strip — e.g. "3 tools", "$0 cost", "100% local". */
.stat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  text-align: center;
}
.stat-card{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 18px 12px;
}
.stat-card .stat-value{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}
.stat-card .stat-label{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- 7. FAQ-style toggle blocks ---------- */
/* Plain <details>/<summary> — no JS needed. Duplicate one
   .faq-item to add a question. */
.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: '+';
  font-size: 18px;
  color: var(--text-dim);
  flex: none;
}
.faq-item[open] summary::after{ content: '\2212'; } /* minus sign */
.faq-item .faq-body{
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- Contact / CTA block ---------- */
.cta-box{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-box .cta-text h3{ margin: 0 0 4px; font-size: 15px; }
.cta-box .cta-text p{ margin: 0; font-size: 13.5px; color: var(--text-muted); }
