/* Aikon flagship - content-page design system.
   Extends styles.css (tokens, nav, buttons, footer base, .reveal).
   Content pages load BOTH styles.css and site.css (site.css second).
   Blue sells, orange buys. */

/* ---------- nav active state (content pages) ---------- */
.nav-links a.nav-active { color: var(--sell-deep); }

/* ---------- page hero (eyebrow + h1 + lede, centered) ---------- */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 60px 20px 52px;
  text-align: center;
}
.page-hero-inner { max-width: 780px; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 900; letter-spacing: -0.042em; line-height: 1.02;
  text-wrap: balance;
}
.page-hero .lede {
  max-width: 620px; margin: 20px auto 0;
  font-size: 18px; color: var(--ink-2); text-wrap: pretty;
}
.page-hero .lede a { color: var(--sell-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 9px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); transition: color .15s; }
.breadcrumbs a:hover { color: var(--sell-deep); }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs [aria-current] { color: var(--ink-2); }
/* left-aligned variant for article pages */
.breadcrumbs.crumbs-left { justify-content: flex-start; }

/* ---------- article typography (measure ~72ch) ---------- */
.prose {
  max-width: 72ch; margin: 0 auto;
  padding: 56px 20px 80px;
  font-size: 17px; color: var(--ink-2);
}
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(24px, 3.4vw, 33px); font-weight: 800;
  letter-spacing: -0.028em; color: var(--ink);
  margin-top: 50px; text-wrap: balance;
}
.prose h3 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin-top: 34px;
}
.prose p { line-height: 1.78; }
.prose a { color: var(--sell-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--sell); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: 8px; line-height: 1.7; }
.prose li::marker { color: var(--buy-deep); }
.prose blockquote {
  border-left: 3px solid var(--sell); background: var(--sell-bg);
  padding: 16px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2); font-style: italic;
}
.prose figure { margin: 30px 0; }
.prose img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 6px;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* styled tables - always wrap in .table-wrap for horizontal scroll */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 26px 0; border-radius: var(--r-md); }
.prose table, .content-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--card); min-width: 460px;
}
.prose th, .prose td, .content-table th, .content-table td {
  border: 1px solid var(--line); padding: 11px 15px; text-align: left; vertical-align: top;
}
.prose thead th, .content-table thead th {
  background: var(--paper-2); font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em;
}
.prose tbody tr:nth-child(even), .content-table tbody tr:nth-child(even) { background: rgba(18, 20, 26, 0.015); }

/* ---------- callout / takeaways (buy-tinted, orange accent) ---------- */
.callout {
  max-width: 72ch; margin: 34px auto;
  background: var(--buy-bg);
  border: 1px solid rgba(220, 136, 38, 0.28); border-left: 4px solid var(--buy);
  border-radius: var(--r-md); padding: 22px 26px;
}
.callout .callout-title, .callout h3 {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--buy-deep); margin: 0 0 12px;
}
.callout ul { padding-left: 1.2em; margin: 0; }
.callout li { margin-top: 8px; color: var(--ink-2); line-height: 1.65; }
.callout li::marker { color: var(--buy); }
.callout p { color: var(--ink-2); }
.callout p + p { margin-top: 10px; }

/* ---------- post meta (date · read-time · section chip) ---------- */
.post-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-top: 22px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.post-meta .chip-section {
  background: var(--sell-bg); color: var(--sell-deep);
  padding: 4px 13px; border-radius: var(--r-pill); font-weight: 700;
}
.post-meta .dot { color: var(--line-2); }

/* ---------- table of contents ---------- */
.toc {
  max-width: 72ch; margin: 0 auto 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--sh-sm);
}
.toc-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.toc a { font-weight: 600; color: var(--ink-2); }
.toc a:hover { color: var(--sell-deep); }

/* ---------- FAQ accordion (native details/summary as flagship cards) ---------- */
.faq-body { max-width: 800px; margin: 0 auto; padding: 56px 20px 40px; }
.faq-section { margin-bottom: 46px; }
.faq-section:last-child { margin-bottom: 0; }
.faq-section-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.faq-section-head .faq-ic { font-size: 22px; line-height: 1; }
.faq-section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: var(--sell); box-shadow: var(--sh-md); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; min-height: 44px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sell-deep); }
.faq-item[open] summary { color: var(--sell-deep); }
/* +/- indicator */
.faq-plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--muted);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background .2s ease;
}
.faq-plus::before { top: 9px; left: 2px; width: 16px; height: 2.5px; }
.faq-plus::after { left: 9px; top: 2px; width: 2.5px; height: 16px; }
.faq-item[open] .faq-plus::before { background: var(--sell); }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 2px 22px 20px; }
.faq-a p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.faq-a p + p { margin-top: 12px; }
.faq-a a { color: var(--sell-deep); text-decoration: underline; text-underline-offset: 3px; }
.faq-a strong { color: var(--ink); font-weight: 700; }

/* ---------- related articles grid ---------- */
.related { max-width: 1140px; margin: 0 auto; padding: 8px 20px 90px; }
.related > h2 { text-align: center; font-size: clamp(26px, 3.6vw, 32px); font-weight: 800; margin-bottom: 34px; text-wrap: balance; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--sell); }
/* Blog-card thumbnail (bleeds to card edges, rounded top matching card radius) */
.related-card .r-thumb {
  margin: -24px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.related-card .r-thumb img,
.related-card .r-thumb picture { display: block; width: 100%; height: 100%; }
.related-card .r-thumb img { object-fit: cover; transition: transform .45s ease; }
.related-card:hover .r-thumb img { transform: scale(1.04); }
.related-card .r-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--buy-deep);
}
.related-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.related-card p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }

/* ---------- centered CTA band ---------- */
.page-cta { background: var(--paper-2); border-top: 1px solid var(--line); padding: 72px 20px; text-align: center; }
.page-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; }
.page-cta p { color: var(--ink-2); margin: 14px auto 26px; font-size: 17px; max-width: 480px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}
.wa-btn:hover { transform: translateY(-2px); opacity: 0.94; }
.wa-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* ---------- legal pages (narrower measure, numbered h2s) ---------- */
.prose.legal { max-width: 64ch; counter-reset: legal-h2; }
.prose.legal h2 { counter-increment: legal-h2; }
.prose.legal h2::before { content: counter(legal-h2) ". "; color: var(--sell-deep); font-weight: 800; }
.prose.legal .legal-updated { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- news / changelog entry list ---------- */
.changelog { max-width: 820px; margin: 0 auto; padding: 52px 20px 90px; }
.change-entry {
  position: relative; padding: 0 0 34px 30px;
  border-left: 2px solid var(--line);
}
.change-entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.change-entry::before {
  content: ""; position: absolute; left: -7px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sell); border: 2px solid var(--paper);
}
.change-date { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.change-tag {
  display: inline-block; margin: 8px 0; font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--buy-bg); color: var(--buy-deep);
}
.change-entry h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 8px; }
.change-entry p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ---------- footer extensions (extends styles.css .footer) ---------- */
.footer-brand .footer-contact { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.footer-brand .footer-contact a { color: var(--sell); font-size: 14px; transition: opacity .15s; }
.footer-brand .footer-contact a:hover { opacity: 0.8; }
.footer-legal {
  max-width: 1140px; margin: 0 auto; padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.footer-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-trust-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.footer-trust-logos { display: flex; align-items: center; gap: 12px; }
.footer-trust-logo {
  background: #fff; border-radius: 10px; padding: 5px 10px;
  display: flex; align-items: center; justify-content: center;
}
.footer-trust-logo svg { height: 32px; width: auto; }
.footer-legal-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-legal-links a:hover { color: var(--sell); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 44px 16px 38px; }
  .prose { padding: 44px 16px 60px; font-size: 16px; }
  .prose h2 { margin-top: 40px; }
  .faq-body { padding: 44px 16px 32px; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-a { padding: 2px 18px 18px; }
  .related { padding: 8px 16px 60px; }
  .changelog { padding: 40px 16px 60px; }
  .page-cta { padding: 56px 16px; }
  .toc, .callout { border-radius: var(--r-md); }
}

/* ---------- post-body components carried in body_html from prod posts ---------- */
.prose .post-figure { margin: 2.4rem 0; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.prose .post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.prose .post-figure figcaption { font-size: 0.82rem; color: var(--muted); padding: 0.7rem 1rem 0.85rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.prose .kf-block { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--sell); border-radius: var(--r-md); padding: 1.5rem 1.75rem; margin: 2.2rem 0; box-shadow: var(--sh-sm); }
.prose .kf-block h3 { margin-top: 0; }
.prose .kf-block p:last-child { margin-bottom: 0; }
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: var(--r-md); scrollbar-width: thin; }
.prose .table-scroll table.compare-table { margin: 0; }
.prose .compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.prose .compare-table th, .prose .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .compare-table th { background: var(--paper-2); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.prose .compare-table tr:last-child td { border-bottom: none; }
.prose p.answer-lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; line-height: 1.7; border-left: 3px solid var(--sell); padding-left: 1rem; }
@media (max-width: 600px) {
  .prose .kf-block { padding: 1.15rem 1.25rem; margin: 1.7rem 0; }
  .prose p.answer-lead { font-size: 1.05rem; }
}

/* changelog: blue variant for New tags (prod had two colors) */
.change-tag.tag-new { background: var(--sell-bg); color: var(--sell-deep); }

/* any prose table scrolls within itself: many ported post bodies carry bare tables
   wider than the article measure (prod handled this with per-page inline CSS) */
.prose table, .prose table.compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: thin; }
@media (max-width: 760px) {
  /* min-width would force the table box wider than the column; content itself
     stays wide and scrolls internally instead */
  .prose table, .content-table { min-width: 0; }
}

/* imageless blog cards: branded placeholder header so mixed rows stay even */
.r-thumb-ph { display: flex; align-items: center; justify-content: center; }
.r-thumb-ph img { width: 64px !important; height: 64px !important; object-fit: contain !important; opacity: 0.4; filter: grayscale(35%); }
.related-card:hover .r-thumb-ph img { transform: none; }
.r-ph-1 { background: linear-gradient(135deg, rgba(44,158,243,0.10), rgba(44,158,243,0.03) 60%, #f4efe4); }
.r-ph-2 { background: linear-gradient(135deg, rgba(220,136,38,0.10), rgba(220,136,38,0.03) 60%, #f4efe4); }
.r-ph-3 { background: linear-gradient(135deg, rgba(18,20,26,0.07), rgba(18,20,26,0.02) 60%, #f4efe4); }
