/* ECO-1199: interior pages (pricing, about, blog, privacy, terms, support).
   One type scale (style.css --text-* / --heading-* tokens, nothing else),
   one spacing scale (--s-*), no eyebrows: no uppercase micro-labels, no
   pills above headings. Never restyles the lander. */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --radius: 12px;
  --tint: #f3f4f6;
}
/* Interior pages read on white, never on the cream paper (Saad, 2026-10-01).
   This file loads only on interior pages, so the lander keeps its ground. */
body { background: #fff; }

/* Header */
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s-5); padding: var(--s-3) max(var(--s-5), calc((100vw - 1120px) / 2)); background: #ffffffee; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-links { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; font-size: var(--text-sm); font-weight: 600; }
.site-links a { min-height: 44px; padding: 0 var(--s-3); display: inline-flex; align-items: center; border-radius: var(--s-2); color: var(--muted); white-space: nowrap; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.site-nav .button.nav-button { flex: none; }

/* Page frame and type: the same for every interior page. */
.page, .legal { max-width: 760px; margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-8); }
.page.wide { max-width: 1040px; }
.page h1, .legal h1 { font-size: var(--heading-lg); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.page h2, .legal h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--heading-sm); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.page h3, .legal h3 { margin: var(--s-5) 0 var(--s-2); font-size: var(--text-lede); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.page p, .page li, .legal p, .legal li, .legal td { font-size: var(--text-base); line-height: 1.7; text-wrap: pretty; }
.page p + p, .legal p + p { margin-top: var(--s-4); }
.legal p, .legal ul, .legal ol, .legal .table-wrap { margin-bottom: var(--s-4); }
.legal h1 + p { margin-top: var(--s-2); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; color: var(--muted); font-size: var(--text-sm); }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
/* The current page repeats the H1, so it stays on the trail's line and truncates. */
.crumbs li:last-child { flex: 1 1 0; display: flex; min-width: 0; white-space: nowrap; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--purple-ink); }

.page-head { margin-bottom: var(--s-6); }
.page-head .lede { max-width: 640px; margin-top: var(--s-4); color: var(--muted); font-size: var(--text-lede); line-height: 1.55; }
.page-head .meta { margin-top: var(--s-3); color: var(--quiet); font-size: var(--text-sm); }

/* Prose (posts and legal) */
.prose ul, .legal ul { list-style: disc; padding-left: var(--s-5); }
.prose ol, .legal ol { list-style: decimal; padding-left: var(--s-5); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose li, .legal li { margin: var(--s-1) 0; }
.prose a, .legal main a, .legal a, .page .text-link { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose code, .legal code { font-size: var(--text-sm); padding: 1px var(--s-2); border-radius: 6px; background: var(--tint); overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; margin: 0 0 var(--s-4); padding: var(--s-4); border-radius: var(--radius); background: #2c2b2f; color: #f4f2ee; font-size: var(--text-sm); line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; overflow-wrap: normal; }
.legal hr, .prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0 var(--s-5); }
.legal em { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-4); }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: var(--s-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--text-sm); line-height: 1.55; }
.table-wrap th { font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-5); }
.plan { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: var(--s-3); }
.plan.is-current { border-color: var(--purple); box-shadow: 0 8px 24px #6d3fd31a; }
.page .plan h2 { margin: 0; font-size: var(--text-lede); font-weight: 600; }
.plan .plan-price { margin: 0; color: var(--ink); font-size: var(--heading-md); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan .plan-price small { margin-left: var(--s-2); color: var(--muted); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; }
.plan p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.plan li { position: relative; padding-left: var(--s-5); font-size: var(--text-sm); line-height: 1.5; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-ink); font-weight: 600; }
.plan .button { margin-top: auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 52px; padding: var(--s-3) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); cursor: pointer; font-size: var(--text-base); font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: var(--text-lede); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 var(--s-4); color: var(--muted); }
.page .faq + p { margin-top: var(--s-5); }

/* Blog */
.post-list { display: grid; border-top: 1px solid var(--line); }
.post-card { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.page .post-card h2 { margin: 0 0 var(--s-2); font-size: var(--text-lede); font-weight: 600; }
.post-card h2 a:hover { color: var(--purple-ink); }
.page .post-card p { margin: 0; color: var(--muted); }
.page .post-card .meta { margin-top: var(--s-2); color: var(--quiet); font-size: var(--text-sm); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.page .tags li { padding: var(--s-1) var(--s-3); border-radius: var(--s-2); background: var(--tint); color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.toc { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: var(--tint); }
.page .toc p { margin: 0 0 var(--s-2); font-size: var(--text-sm); font-weight: 600; }
.toc ol { margin: 0; padding-left: var(--s-5); list-style: decimal; }
.page .toc li { margin: var(--s-1) 0; font-size: var(--text-sm); line-height: 1.5; }
.toc a { color: var(--purple-ink); }
.related { margin-top: var(--s-8); }
.page .related h2 { margin-top: 0; }
.cta-band { margin-top: var(--s-7); padding: var(--s-5); border-radius: var(--radius); background: var(--lavender); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.page .cta-band p { margin: 0; font-weight: 600; }
.empty { padding: var(--s-5) 0; color: var(--muted); }

/* About */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-5); }
.facts dt { color: var(--muted); }
.facts dt, .facts dd { margin: 0; font-size: var(--text-base); line-height: 1.6; overflow-wrap: anywhere; }
.principles { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.page .principles li { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.principles strong { display: block; margin-bottom: var(--s-1); }

/* Footer: links grouped by aria-label, no visible micro-headings. */
.site-footer { max-width: 1120px; margin: 0 auto; padding: var(--s-6) var(--s-5); border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr repeat(3, 1fr); align-items: start; gap: var(--s-5); font-size: var(--text-sm); }
.site-footer-brand p { margin-top: var(--s-2); color: var(--muted); max-width: 260px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-1); }
.site-footer li a { min-height: 32px; display: inline-flex; align-items: center; }
.site-footer li a:hover { color: var(--purple-ink); }
.site-footer-legal { grid-column: 1 / -1; color: var(--quiet); font-size: var(--text-sm); }

@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-4); }
  .site-links { order: 3; width: 100%; margin-left: calc(var(--s-3) * -1); overflow-x: auto; }
  .site-nav .button.nav-button { margin-left: auto; }
  .page, .legal { padding: var(--s-5) var(--s-4) var(--s-7); }
  .page h1, .legal h1 { font-size: var(--heading-md); }
  .site-footer { grid-template-columns: repeat(3, 1fr); padding: var(--s-5) var(--s-4); }
  .site-footer-brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: var(--s-3); }
}

/* ECO-1200: "ecco vs. X" comparison posts. */
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-4); margin: 0 0 var(--s-6); }
.choose > div { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); }
.page .choose h2 { margin: 0 0 var(--s-2); font-size: var(--text-lede); font-weight: 600; }
.choose ul { margin: 0; padding-left: var(--s-5); list-style: disc; }
.page .choose li { margin: var(--s-1) 0; font-size: var(--text-base); line-height: 1.6; }
.compare-table caption { padding-bottom: var(--s-2); text-align: left; color: var(--muted); font-size: var(--text-sm); }
.compare-table th[scope="row"] { width: 28%; font-weight: 600; }
.compare-table thead th { border-bottom: 2px solid var(--ink); }
.page .comparison section > h2 { scroll-margin-top: 96px; }
.disclosure { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.page .disclosure p { color: var(--muted); font-size: var(--text-sm); }
.page .disclosure h2 { margin: var(--s-5) 0 var(--s-2); font-size: var(--text-base); font-weight: 600; }
.sources { margin: 0; padding-left: var(--s-5); list-style: decimal; }
.page .sources li { font-size: var(--text-sm); line-height: 1.6; overflow-wrap: anywhere; }
.sources a { color: var(--purple-ink); text-decoration: underline; text-underline-offset: 2px; }

/* Blog index as a library: a featured post, then Guides, Compare and Ideas. */
.feature-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: var(--s-5); align-items: center; margin: 0 0 var(--s-7); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page .feature-card h2 { margin: 0 0 var(--s-2); font-size: var(--heading-sm); line-height: 1.2; }
.feature-card h2 a:hover { color: var(--purple-ink); }
.page .feature-card p { margin: 0 0 var(--s-4); color: var(--muted); }
.feature-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.post-group { margin: 0 0 var(--s-7); }
.page .post-group > h2 { margin: 0 0 var(--s-4); font-size: var(--heading-sm); scroll-margin-top: 96px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; gap: var(--s-1); height: 100%; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile:hover { border-color: var(--purple); }
.tile strong { font-size: var(--text-base); line-height: 1.35; }
.tile:hover strong { color: var(--purple-ink); }
.tile span { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.tiles.compact .tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-image { order: -1; }
}

/* Posts and comparisons: byline, one inline call to action, the short answer,
   and on wide screens a sticky side-rail table of contents. */
.byline { display: flex; align-items: center; gap: var(--s-2); }
.byline .avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavender); color: var(--purple-ink); font-size: var(--text-xs); font-weight: 700; }
.cta-inline { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border-radius: var(--radius); background: var(--lavender); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.page .cta-inline p { margin: 0; }
.short-answer { margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--purple); background: var(--surface); }
.page .short-answer h2 { margin: 0 0 var(--s-1); font-size: var(--text-base); font-weight: 600; }
.page .short-answer p { margin: 0; font-size: var(--text-lede); line-height: 1.55; }
.toc a[aria-current] { font-weight: 600; color: var(--ink); }
@media (min-width: 1100px) {
  .page:has(.has-rail) { max-width: 1040px; }
  .has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: var(--s-7); }
  .has-rail > * { grid-column: 1; max-width: 720px; }
  .has-rail > .toc { grid-column: 2; grid-row: 1 / span 40; align-self: start; position: sticky; top: var(--s-6); margin: 0; padding: 0 0 0 var(--s-4); border-left: 1px solid var(--line); border-radius: 0; background: none; max-height: calc(100vh - 2 * var(--s-6)); overflow-y: auto; }
  .has-rail > .toc ol { list-style: none; padding-left: 0; }
  .has-rail > .toc a { color: var(--muted); }
  .has-rail > .toc a:hover, .has-rail > .toc a[aria-current] { color: var(--purple-ink); }
}

/* Footer: four link groups (Product, Company, Legal, Learn). */
.site-footer { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 760px) { .site-footer { grid-template-columns: repeat(2, 1fr); } }
