/* ==========================================================================
   Pillar/resource page-type layout. Tokens, typography, buttons, header/footer
   chrome and form base styles live in app.css. This file mirrors the shared
   section styling BoFuPage.css defines for its own wrapper (block/band/
   sec-head/hero/faq/cta/specs-table/buyer-card/process, since those rules are
   scoped per page-type wrapper, not global) and adds the Pillar-only layout:
   the sticky TOC sidebar and article rhythm.
   ========================================================================== */

.pillar-page { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }
.pillar-page a { color: inherit; text-decoration: none; }
.pillar-page img { max-width: 100%; display: block; }
.pillar-page .wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.pillar-page h1, .pillar-page h2, .pillar-page h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: 1.15; color: var(--ink); }
.pillar-page h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 14px 0 16px; }
.pillar-page h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 10px 0; }
.pillar-page h3 { font-size: 1.1rem; margin: 0 0 8px; }
.pillar-page .eyebrow { font-family: var(--font-label); color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.pillar-page .btn { display: inline-block; font-family: var(--font-label); padding: 13px 24px; border-radius: 4px; font-weight: 700; font-size: .92rem; letter-spacing: .02em; cursor: pointer; border: 1.5px solid var(--ink); }
.pillar-page .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pillar-page .btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.pillar-page .btn-ghost { background: transparent; color: var(--ink); }
.pillar-page .block { padding: 56px 0; }
.pillar-page .band { background: var(--paper2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar-page .sec-head { max-width: 760px; margin-bottom: 22px; }
.pillar-page .sec-head p, .pillar-page p { color: var(--muted); }

/* Hero (shared HeroSection component, Pillar-scoped) */
.pillar-page .hero { padding: 48px 0 44px; }
.pillar-page .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.pillar-page .hero-breadcrumb ol { display: flex; list-style: none; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.pillar-page .hero-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.pillar-page .hero-lead { font-size: 1.05rem; max-width: 60ch; margin-bottom: 22px; }
.pillar-page .hero-points { padding: 0; margin: 0 0 24px; list-style: none; display: grid; gap: 8px; }
.pillar-page .hero-points li { color: var(--muted); padding-left: 20px; position: relative; }
.pillar-page .hero-points li::before { content: ''; width: 8px; height: 8px; position: absolute; left: 0; top: .55em; border-radius: 50%; background: var(--gold); }
.pillar-page .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.pillar-page .hero-visual { aspect-ratio: 16 / 9; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--white); }
.pillar-page .hero-visual.has-image img { width: 100%; height: 100%; object-fit: cover; }
.pillar-page .hero-visual-cap { display: none; }

/* Pillar layout: sticky TOC + article column */
.pillar-page .pillar-layout { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 8px; display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.pillar-page .toc { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 18px; display: grid; gap: 4px; }
.pillar-page .toc-title { font-family: var(--font-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.pillar-page .toc a { display: block; padding: 6px 0; font-size: .88rem; color: var(--muted); border-left: 2px solid transparent; padding-left: 10px; margin-left: -1px; }
.pillar-page .toc a:hover { color: var(--ink); }
.pillar-page .toc a.active { color: var(--ink); border-left-color: var(--gold); font-weight: 600; }
.pillar-page .toc a.sub { padding-left: 22px; font-size: .82rem; }
.pillar-page .toc a.toc-cta { margin-top: 10px; padding: 10px 12px; background: var(--ink); color: var(--paper); border-radius: 4px; border-left: 0; font-family: var(--font-label); font-weight: 700; text-align: center; }
.pillar-page .toc a.toc-cta:hover { background: var(--gold-bright); color: var(--ink); }
.pillar-page .article { min-width: 0; display: grid; gap: 0; }
.pillar-page .article .block { padding: 0 0 44px; }
.pillar-page .article .block.band { padding: 32px 24px; margin: 0 0 44px; border-radius: 8px; border: 1px solid var(--line); }
.pillar-page .article .wrap { max-width: none; padding: 0; }

/* Section image shared across text/card/table sections (TextCtaSection, SpecsTableSection) */
.pillar-page .section-image { width: 100%; max-height: 340px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin: 20px 0; display: block; }
.pillar-page .section-cta { margin-top: 18px; display: inline-flex; }
.pillar-page .text-cta-bullets { margin: 12px 0; padding-left: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.pillar-page .text-cta-bullets li { padding-left: 4px; }

/* Buyer cards */
.pillar-page .buyer-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillar-page .buyer-cards-cta { margin: 20px 0 0; }
.pillar-page .buyer-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.pillar-page .buyer-card p { font-size: .9rem; }

/* Specs / matrix tables */
.pillar-page .specs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.pillar-page .specs-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.pillar-page .specs-table th, .pillar-page .specs-table td { padding: 13px 15px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
.pillar-page .specs-table th { background: var(--ink); color: var(--gold-bright); font-family: var(--font-label); letter-spacing: .03em; }
.pillar-page .specs-table td { color: var(--muted); }

/* Process (ordered confirmation steps) */
.pillar-page .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; gap: 18px; }
.pillar-page .process-grid li { border-top: 2px solid var(--gold); padding: 16px 4px 0; }
.pillar-page .process-grid p { font-size: .89rem; }
.pillar-page .process-number { color: var(--gold); font-family: var(--font-label); font-weight: 700; }

/* FAQ */
.pillar-page .faq-wrap { max-width: 820px; }
.pillar-page .faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pillar-page .faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pillar-page .faq summary::-webkit-details-marker { display: none; }
.pillar-page .faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
.pillar-page .faq details[open] summary::after { content: '−'; }

/* Quote form */
.pillar-page .quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.pillar-page .quote-form-wrap { background: var(--white); border: 1px solid var(--ink); border-radius: 10px; padding: 30px; }
.pillar-page label { font-family: var(--font-label); font-size: .78rem; color: var(--muted); display: block; margin-bottom: 6px; }
.pillar-page input, .pillar-page select, .pillar-page textarea { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; color: var(--ink); font-family: var(--font-body); }
.pillar-page .quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pillar-page .quote-form .form-field { margin-bottom: 12px; }
.pillar-page .quote-submit { width: 100%; margin-top: 6px; }
.pillar-page .quote-footer-note { font-size: .78rem; text-align: center; margin-top: 14px; }
.pillar-page .quote-image { max-width: 460px; max-height: 280px; object-fit: cover; }
.pillar-page .quote-success { background: var(--paper2); border: 1px solid var(--ok); border-radius: 8px; padding: 24px; color: var(--ink); font-size: .95rem; }
.pillar-page .quote-error { border: 1px solid var(--danger); border-radius: 8px; padding: 12px 16px; color: var(--danger); font-size: .9rem; margin-bottom: 16px; }

/* CTA section (full width, outside pillar-layout) */
.pillar-page .cta-section { background: var(--ink); text-align: center; }
.pillar-page .cta-section-inner { max-width: 760px; }
.pillar-page .cta-section h2 { color: var(--white); }
.pillar-page .cta-section p { color: var(--paper); margin: 14px auto 24px; }
.pillar-page .cta-section .btn-primary { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }
.pillar-page .cta-section .btn { margin-top: 6px; }
.pillar-page .cta-section .btn + .btn { margin-left: 12px; }
.pillar-page .cta-section .btn-ghost { color: var(--paper); border-color: var(--paper); }
.pillar-page .cta-section .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Technical review */
.pillar-page .tech-review { padding: 8px 0 48px; }
.pillar-page .tech-review-box { background: var(--ink); border-radius: 12px; padding: 40px 44px; margin: 0; position: relative; }
.pillar-page .tech-review-box::before { content: '\201C'; font-family: var(--font-display); color: var(--gold-bright); font-size: 3.4rem; line-height: 1; display: block; margin-bottom: 6px; }
.pillar-page .tech-review-quote { margin: 0 0 20px; }
.pillar-page .tech-review-quote p { color: var(--paper); font-size: 1.12rem; font-style: italic; line-height: 1.7; margin: 0; }
.pillar-page .tech-review-byline { display: flex; flex-direction: column; gap: 4px; }
.pillar-page .tech-review-name { font-family: var(--font-label); letter-spacing: .02em; color: var(--gold-bright); font-size: 1rem; }
.pillar-page .tech-review-name a { color: var(--gold-bright); text-decoration: underline; }
.pillar-page .tech-review-name span { color: var(--gold-bright); }
.pillar-page .tech-review-meta { color: var(--line); font-size: .86rem; }

@media (max-width: 1080px) {
  .pillar-page .pillar-layout { grid-template-columns: 200px 1fr; gap: 32px; }
}

@media (max-width: 960px) {
  .pillar-page .hero-grid, .pillar-page .quote-grid { grid-template-columns: 1fr; }
  .pillar-page .process-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-page .pillar-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .pillar-page .toc { position: static; order: -1; }
}

@media (max-width: 640px) {
  .pillar-page .buyer-card-grid, .pillar-page .quote-form .form-row, .pillar-page .process-grid { grid-template-columns: 1fr; }
}
