/* Public pages: legal, about, pricing, contact, tools listing, blog */
.page-hero { padding: 2.25rem 0 1.5rem; background: linear-gradient(180deg, #fff, var(--bg)); }
.page-hero .crumbs { margin-bottom: 1rem; }
.page-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.display-title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46rem; }
.page-hero.text-center .page-lead { margin-left: auto; margin-right: auto; }
.page-hero-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; flex: 0 0 auto; }
.text-ink { color: var(--ink) !important; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* legal */
.legal-panel { padding: 2rem 2.25rem; max-width: none; }
.legal-section { scroll-margin-top: 90px; }
.legal-section + .legal-section { border-top: 1px solid var(--line-2); margin-top: 1.75rem; padding-top: .25rem; }
.legal-section h2 { font-size: 1.3rem; margin-top: 1.5rem; }
.legal-num { color: var(--brand); margin-right: .25rem; }
.legal-note { margin-top: 2rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg); font-size: .86rem; color: var(--muted); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem .9rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc-title { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc-list { list-style: none; counter-reset: toc; padding: 0; margin: 0; font-size: .89rem; }
.toc-list li { counter-increment: toc; }
.toc-list a { display: flex; gap: .5rem; padding: .32rem .4rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc-list a::before { content: counter(toc) "."; color: var(--muted); font-weight: 700; min-width: 1.2rem; }
.toc-list a:hover, .toc-list a.active { background: var(--brand-50); color: var(--brand); }

/* about */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.stat-box .v { font-size: 2rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat-box .l { color: var(--muted); font-weight: 600; font-size: .9rem; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }

/* pricing */
.billing-toggle .save-pill { display: inline-block; margin-left: .3rem; background: #EBFBEE; color: var(--success); font-size: .72rem; padding: .1rem .4rem; border-radius: 999px; font-weight: 800; }
.billing-toggle button.active .save-pill { background: rgba(255, 255, 255, .2); color: #fff; }
.plan-features li { font-size: .93rem; }
.compare-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { margin: 0; }
.compare-table th, .compare-table td { padding: .8rem 1rem; text-align: center; border-color: var(--line-2); }
.compare-table th[scope=row], .compare-table thead th:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare-table thead th { font-weight: 800; color: var(--ink); background: var(--bg); }
.compare-table .col-prem { background: #F8F5FF; font-weight: 700; }
.compare-table thead .col-prem { background: linear-gradient(135deg, var(--premium), var(--premium-2)); color: #fff; }

/* tools listing */
.cat-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.active .text-muted { color: rgba(255, 255, 255, .7) !important; }
.cat-block { margin-bottom: 2.75rem; scroll-margin-top: 90px; }
.cat-block-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.cat-card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.cat-card .tool-ico { --c: inherit; }
.cat-card-tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.cat-card-tools span { font-size: .78rem; background: var(--bg); border-radius: 8px; padding: .2rem .5rem; color: var(--ink-2); font-weight: 600; }
.cat-card-tools .more { background: var(--line); }
.empty-state { text-align: center; background: #fff; border: 1px dashed #D0D4E0; border-radius: 22px; padding: 3rem 1.5rem; }
.empty-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; }

/* blog */
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.post-featured-img { display: block; background: var(--line-2); min-height: 260px; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.post-featured-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: .5rem 0 .75rem; line-height: 1.2; }
.post-featured-title a { color: var(--ink); text-decoration: none; }
.post-featured-title a:hover { color: var(--brand); }
a.post-cat { text-decoration: none; }
.toto-pagination .page-link { border-radius: 10px !important; margin: 0 .15rem; color: var(--ink); border-color: var(--line); font-weight: 650; }
.toto-pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.popular-list { padding-left: 1.1rem; margin: 0; font-size: .9rem; }
.popular-list li { margin-bottom: .45rem; }
.popular-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.popular-list a:hover { color: var(--brand); }
.side-cats li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.side-cats li:last-child { border-bottom: 0; }
.side-cats a { color: var(--ink-2); text-decoration: none; }
.side-cats a:hover { color: var(--brand); }
.side-cats span { color: var(--muted); font-size: .8rem; }
.post-hero-inner { max-width: 820px; }
.post-h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: .5rem 0 .85rem; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.post-byline a { color: var(--ink); text-decoration: none; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.author-avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.author-avatar.ph { background: linear-gradient(135deg, var(--brand), #F76707); color: #fff; font-weight: 800; }
.post-cover { margin: 0 0 1.75rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.post-cover img { width: 100%; height: auto; display: block; }
.post-content h2 { scroll-margin-top: 90px; }
.post-content a { color: var(--brand-600); font-weight: 600; }
.post-toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1.5rem; }
.post-toc summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.post-toc ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.post-aside { position: sticky; top: 90px; }
.post-tool-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.25rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff, #FFF5F5); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.share-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.share-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-link { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.post-nav-link small { color: var(--muted); font-weight: 600; }
.post-nav-link:hover { border-color: #F3B3B3; color: var(--brand); }

@media (max-width: 991.98px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img { min-height: 0; aspect-ratio: 1200/630; }
  .post-aside { position: static; }
}
@media (max-width: 575.98px) {
  .legal-panel { padding: 1.25rem; }
  .value-grid { grid-template-columns: 1fr; }
  .post-featured-body { padding: 1.25rem; }
  .post-nav { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-jump { justify-content: flex-start; }
  .compare-table th, .compare-table td { padding: .6rem .5rem; font-size: .85rem; }
}
.container-xxl.page-wrap, .container.page-wrap { padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); }
