/* ==========================================================================
   ВедиSMM — Landing / marketing pages
   ========================================================================== */

.lp-nav { position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center;
    background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border); }
.lp-nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-width: 0; }
.brand-home-button { border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.brand-home-button:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: var(--r-sm); }
.lp-nav-links { display: flex; align-items: center; gap: var(--sp-6); min-width: 0; }
.lp-nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 600; font-size: var(--text-base); }
.lp-nav-links a:not(.btn):hover { color: var(--text); }

/* hero */
.hero { position: relative; padding: var(--sp-24) 0 var(--sp-16); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(60% 50% at 80% 0%, rgba(255,92,138,.14), transparent 60%),
      radial-gradient(70% 60% at 10% 10%, rgba(91,75,255,.16), transparent 60%); }
.hero-badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--r-full); font-size: var(--text-sm);
    font-weight: 600; color: var(--text-secondary); background: var(--surface); box-shadow: var(--shadow-xs); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-500); box-shadow: 0 0 0 3px rgba(18,183,106,.2); }
/* Recent activity as social proof, visible before the headline on mobile. */
.hero-publications { display: inline-flex; align-items: center; gap: var(--sp-3);
    max-width: 100%; padding: 12px 18px; border-radius: var(--r-xl);
    border: 1px solid color-mix(in srgb, var(--brand-500) 24%, var(--border));
    background: color-mix(in srgb, var(--brand-500) 6%, var(--surface)); }
.hero-publications-icon { display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none; border-radius: var(--r-full);
    color: var(--brand-600); background: var(--surface); }
.hero-publications-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hero-publications-main { font-size: var(--text-base); color: var(--text); line-height: 1.25; }
.hero-publications-main strong { font-size: clamp(24px, 3vw, 30px); font-weight: 800;
    letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--brand-600); }
.hero-publications-period { font-size: var(--text-sm); line-height: 1.4; color: var(--text-secondary); }
:root[data-theme="dark"] .hero-publications-icon,
:root[data-theme="dark"] .hero-publications-main strong { color: var(--brand-300); }
@media (max-width: 480px) {
    .hero-publications { padding: 10px 12px; gap: 10px; }
    .hero-publications-icon { width: 34px; height: 34px; }
    .hero-publications-period { font-size: 12px; }
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: var(--sp-5) 0; max-width: 780px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand-500), var(--accent-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-secondary); max-width: 620px; margin-bottom: var(--sp-8); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; color: var(--text-muted); font-size: var(--text-sm); }
.net-strip { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* hero visual (mock dashboard) */
.hero-visual { margin-top: var(--sp-16); border-radius: var(--r-2xl); border: 1px solid var(--border);
    background: var(--surface); box-shadow: var(--shadow-xl); overflow: hidden; }
.hero-visual .mock-bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 var(--sp-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hero-visual .mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.hero-visual img { width: 100%; display: block; }
.hero-mock { padding: var(--sp-6); background: var(--surface-2); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-5); }
.hero-mock-compose { padding: var(--sp-5); min-width: 0; }
.hero-mock-copy { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; background: var(--surface); color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; overflow-wrap: anywhere; }
.hero-mock-thumb { width: 56px; height: 56px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--brand-300), var(--accent-500)); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.hero-mock-stats { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.hero-mock-stat { padding: var(--sp-4); min-width: 0; }
.hero-mock-stat .stat-value { font-size: 26px; overflow-wrap: anywhere; }

/* sections */
.section { padding: var(--sp-20) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-12); }
.section-head .eyebrow { color: var(--brand-600); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; }
:root[data-theme="dark"] .section-head .eyebrow { color: var(--brand-300); }
.section-head h1, .section-head h2 { font-size: clamp(26px, 4vw, 40px); margin: var(--sp-3) 0; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--text-secondary); font-size: var(--text-lg); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); }
.feature { padding: var(--sp-6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); transition: all var(--dur) var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); color: #fff; margin-bottom: var(--sp-4); box-shadow: var(--shadow-md); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--text-secondary); font-size: var(--text-base); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-8); }
.step .step-num { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-600);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-lg); margin-bottom: var(--sp-3); }
:root[data-theme="dark"] .step .step-num { background: rgba(91,75,255,.15); color: var(--brand-300); }
.step h3 { font-size: var(--text-md); margin-bottom: var(--sp-2); }
.step p { color: var(--text-secondary); font-size: var(--text-base); }

/* networks grid */
.nets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-4); }
.net-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--border);
    border-radius: var(--r-lg); background: var(--surface); transition: all var(--dur) var(--ease); }
.net-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.net-card .net-meta strong { display: block; font-size: var(--text-base); }
.net-card .net-meta span { font-size: var(--text-sm); color: var(--text-muted); }

/* CTA band */
.cta-band { border-radius: var(--r-2xl); padding: var(--sp-16) var(--sp-8); text-align: center; color: #fff;
    background: linear-gradient(120deg, var(--brand-600), #6a4bff 50%, var(--accent-500)); box-shadow: var(--shadow-xl); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--text-lg); max-width: 520px; margin: var(--sp-3) auto var(--sp-6); }
.cta-band .btn-secondary { background: #fff; color: var(--brand-700); border-color: #fff; }

/* footer */
.lp-footer { border-top: 1px solid var(--border); padding: var(--sp-12) 0 var(--sp-8); margin-top: var(--sp-16); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer-grid h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--sp-3); }
.footer-grid a { display: block; color: var(--text-secondary); font-size: var(--text-base); padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer-grid .footer-socials a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-full); font-size: var(--text-sm); text-decoration: none; }
.footer-socials svg { flex: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--sp-8); padding-top: var(--sp-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); color: var(--text-muted); font-size: var(--text-sm); }

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(150deg, var(--brand-700), var(--brand-500) 55%, var(--accent-500));
    color: #fff; padding: var(--sp-12); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; bottom: -160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-aside h2 { color: #fff; font-size: var(--text-3xl); max-width: 420px; }
.auth-aside p { color: rgba(255,255,255,.82); font-size: var(--text-lg); max-width: 400px; margin-top: var(--sp-3); }
.auth-aside .quote { background: rgba(255,255,255,.1); border-radius: var(--r-lg); padding: var(--sp-5); backdrop-filter: blur(4px); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--sp-8); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.auth-checklist li { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-3); color: rgba(255,255,255,.92); }
.auth-checklist svg { width: 20px; height: 20px; flex: none; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-5); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { color: var(--text-muted); transition: transform var(--dur) var(--ease); flex: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 var(--sp-5) var(--sp-4); color: var(--text-secondary); line-height: 1.6; }

/* comparison hub cards */
.cmp-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }
.cmp-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); transition: all var(--dur) var(--ease); text-decoration: none; }
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cmp-card-vs { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }
.cmp-chip { font-weight: 700; font-size: var(--text-base); color: var(--text); text-align: center; }
.cmp-flag { font-size: var(--text-sm); }
.cmp-vs { font-size: var(--text-xs); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); border-radius: var(--r-full); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cmp-card-title { text-align: center; color: var(--text-secondary); font-size: var(--text-sm); }
.cmp-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--sp-2); }
.cmp-card-arrow { color: var(--brand-500); transition: transform var(--dur) var(--ease); }
.cmp-card:hover .cmp-card-arrow { transform: translateX(4px); }

/* spoke intro cards */
.cmp-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.cmp-intro-card { padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.cmp-us-card { border-color: var(--brand-400); box-shadow: var(--ring); background: var(--brand-50); }
:root[data-theme="dark"] .cmp-us-card { background: rgba(91,75,255,.12); }
@media (max-width: 720px) { .cmp-intro { grid-template-columns: 1fr; } }

/* comparison table */
.cmp-wrap { box-shadow: var(--shadow-sm); }
.cmp-table th, .cmp-table td { text-align: center; }
.cmp-table thead th:first-child, .cmp-table tbody td:first-child { text-align: left; }
.cmp-col { vertical-align: bottom; }
.cmp-name { font-weight: 700; font-size: var(--text-sm); color: var(--text); text-transform: none; letter-spacing: 0; }
.cmp-region { font-size: var(--text-sm); margin-top: 2px; text-transform: none; }
.cmp-us { background: var(--brand-50); position: relative; }
:root[data-theme="dark"] .cmp-us { background: rgba(91,75,255,.14); }
.cmp-table thead th.cmp-us { border-top: 3px solid var(--brand-500); border-top-left-radius: var(--r-sm); border-top-right-radius: var(--r-sm); }
.cmp-table thead th.cmp-us .cmp-name { color: var(--brand-700); }
:root[data-theme="dark"] .cmp-table thead th.cmp-us .cmp-name { color: var(--brand-300); }
.cmp-yes { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success-50); color: var(--success-600); }
:root[data-theme="dark"] .cmp-yes { background: rgba(18,183,106,.16); color: #3ddc94; }
.cmp-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--text-muted); }
.cmp-partial { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--warning-50); color: var(--warning-600); font-weight: 800; }
:root[data-theme="dark"] .cmp-partial { background: rgba(247,144,9,.16); color: #f9b155; }

@media (max-width: 900px) {
    .lp-nav { height: 60px; }
    .lp-nav .container { padding: 0 var(--sp-4); gap: var(--sp-3); }
    .lp-nav-links { gap: var(--sp-2); flex: none; }
    .lp-nav-links a:not(.btn) { display: none; }
    .lp-nav-login { display: none; }
    .lp-nav-links .btn-gradient { max-width: calc(100vw - 220px); overflow: hidden; text-overflow: ellipsis; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 720px) {
    .hero { padding: var(--sp-16) 0 var(--sp-12); }
    .hero-visual { margin-top: var(--sp-10); border-radius: var(--r-xl); }
    .hero-mock { grid-template-columns: 1fr; padding: var(--sp-4); gap: var(--sp-4); }
    .hero-mock-compose { padding: var(--sp-4); }
    .hero-mock-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-mock-stat .stat-value { font-size: var(--text-xl); }
    .section { padding: var(--sp-16) 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .lp-nav .container { padding: 0 var(--sp-3); }
    .lp-nav-links .btn-gradient { max-width: calc(100vw - 184px); padding: 0 var(--sp-3); }
    .hero-cta .btn { width: 100%; }
    .hero-mock-stats { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .footer-grid { grid-template-columns: 1fr; }
    .lp-nav .brand-name { display: none; }
    .lp-nav-links .btn-gradient { max-width: calc(100vw - 116px); }
}

/* Contacts page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.contact-address { font-style: normal; }
.contact-card { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4);
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
    transition: border-color .15s, transform .15s, box-shadow .15s; }
.contact-card:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 12px; color: var(--brand-600);
    background: color-mix(in srgb, var(--brand-500) 12%, transparent); }
.contact-body { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-weight: 600; color: var(--text); }
.contact-mail { font-size: var(--text-sm); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; }
.requisites { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5) var(--sp-6); }
.req-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.req-label { font-size: var(--text-sm); color: var(--text-muted); }
.req-value { margin: 0; font-weight: 600; color: var(--text); word-break: break-word; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
    .requisites { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .requisites { grid-template-columns: 1fr; }
}

/* Legal pages (privacy / terms / data-deletion) */
.legal h2 { font-size: 18px; margin: 26px 0 10px; }
.legal p { line-height: 1.7; }
.legal ul li { line-height: 1.6; }
.legal a { color: var(--brand-600); text-decoration: underline; }

/* ============================================================ Blog / journal */
.blog-hero { text-align: center; max-width: 760px; margin: 0 auto var(--sp-10); }
.blog-hero .eyebrow { color: var(--brand-600); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; }
.blog-hero h1 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.03em; margin: var(--sp-3) 0; font-weight: 800; }
.blog-hero p { color: var(--text-secondary); font-size: var(--text-lg); }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.hub-card { display: block; padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.hub-card .hub-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: var(--sp-3); }
:root[data-theme="dark"] .hub-card .hub-ic { background: rgba(91,75,255,.16); color: var(--brand-300); }
.hub-card h3 { font-size: var(--text-xl); margin: 0 0 var(--sp-2); letter-spacing: -.02em; }
.hub-card p { color: var(--text-secondary); font-size: var(--text-sm); margin: 0; }
.hub-card .hub-count { display: inline-block; margin-top: var(--sp-3); font-size: var(--text-sm); font-weight: 600; color: var(--brand-600); }

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }
.art-card { display: flex; flex-direction: column; padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.art-card .art-hub { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-600); }
.art-card h3 { font-size: var(--text-lg); margin: var(--sp-2) 0; letter-spacing: -.02em; line-height: 1.3; }
.art-card p { color: var(--text-secondary); font-size: var(--text-sm); margin: 0 0 var(--sp-3); flex: 1; }
.art-card .art-meta { font-size: var(--text-xs); color: var(--text-muted); display: flex; gap: var(--sp-2); align-items: center; }

/* Breadcrumbs (visual; JSON-LD is separate) */
.breadcrumb-bar { padding-top: var(--sp-4); }
.breadcrumb-bar .crumbs { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs span.sep { color: var(--text-muted); }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; }
.term-name { font-style: normal; }
.article-head h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.15; margin: var(--sp-2) 0 var(--sp-3); font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--sp-6); }
.article-meta .badge-brand { background: var(--brand-50); color: var(--brand-700); }
:root[data-theme="dark"] .article-meta .badge-brand { background: rgba(91,75,255,.16); color: var(--brand-300); }
.article-body { font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; margin: var(--sp-8) 0 var(--sp-3); font-weight: 800; scroll-margin-top: 90px; }
.article-body h3 { font-size: var(--text-xl); margin: var(--sp-6) 0 var(--sp-2); font-weight: 700; }
.article-body p { margin: 0 0 var(--sp-4); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 6px; }
.article-body li { line-height: 1.6; }
.article-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--brand-500) 45%, transparent); transition: color .1s; }
.article-body a:hover { color: var(--brand-700); text-decoration-color: currentColor; }
.article-body strong { font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--brand-400); background: var(--surface-2); padding: var(--sp-3) var(--sp-4); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 0 0 var(--sp-4); color: var(--text-secondary); }
/* Responsive tables: shrink-to-content, cap at 100%, scroll inside (GitHub-style) — never overflows the page. */
.article-body table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 var(--sp-4); font-size: var(--text-sm); -webkit-overflow-scrolling: touch; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top; }
.article-body th { background: var(--surface-2); font-weight: 700; }
.article-body .kbd { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; }
.article-toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); }
.article-toc strong { display: block; margin-bottom: var(--sp-2); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.article-toc ol { margin: 0 0 0 var(--sp-4); display: flex; flex-direction: column; gap: 4px; }
.article-toc a { color: var(--brand-600); text-decoration: none; }
.article-faq { margin-top: var(--sp-8); }
.article-faq details { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); background: var(--surface); }
.article-faq summary { cursor: pointer; font-weight: 700; }
.article-faq details p { margin: var(--sp-2) 0 0; color: var(--text-secondary); }

/* Inline CTA band inside/after articles */
.cta-inline { margin: var(--sp-8) auto 0; background: linear-gradient(120deg, var(--brand-500), var(--accent-500)); color: #fff; border-radius: var(--r-xl, 18px); padding: var(--sp-6) var(--sp-6); text-align: center; }
.cta-inline h3 { color: #fff; font-size: var(--text-2xl); margin: 0 0 var(--sp-2); letter-spacing: -.02em; }
.cta-inline p { color: rgba(255,255,255,.9); margin: 0 auto var(--sp-4); max-width: 520px; }
.cta-inline .btn { background: #fff; color: var(--brand-700); border: none; }
.cta-inline .btn:hover { transform: translateY(-1px); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }

/* Link contrast in dark theme — the brand-600 used for links is too dark on dark surfaces. */
:root[data-theme="dark"] .article-body a,
:root[data-theme="dark"] .article-toc a,
:root[data-theme="dark"] .art-hub,
:root[data-theme="dark"] .hub-card .hub-count,
:root[data-theme="dark"] .crumbs a:hover { color: var(--brand-300); }
:root[data-theme="dark"] .article-body a { text-decoration-color: color-mix(in srgb, var(--brand-300) 50%, transparent); }
:root[data-theme="dark"] .article-body a:hover { color: var(--brand-200, #c7bcff); }

/* ============================================================ Free tools */
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.cnt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
.cnt-stat { text-align: center; background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-3); }
.cnt-num { display: block; font-size: var(--text-2xl); font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; }
.cnt-lbl { font-size: var(--text-xs); color: var(--text-muted); }
.cnt-limits { display: flex; flex-direction: column; gap: 8px; }
.cnt-limit { display: grid; grid-template-columns: 130px 1fr 84px; align-items: center; gap: var(--sp-3); font-size: var(--text-sm); }
.cnt-limit-name { color: var(--text-secondary); }
.cnt-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cnt-bar-fill { display: block; height: 100%; width: 0; background: var(--brand-500); transition: width .12s, background .12s; }
.cnt-limit-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
@media (max-width: 520px) { .cnt-stats { grid-template-columns: repeat(2, 1fr); } .cnt-limit { grid-template-columns: 96px 1fr 68px; } }

.utm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-2); }
@media (max-width: 560px) { .utm-grid { grid-template-columns: 1fr; } }
.utm-result { margin-top: var(--sp-5); }
.utm-out { word-break: break-all; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); }
.utm-out.ready { color: var(--brand-700); border-style: solid; border-color: var(--brand-300); background: var(--brand-50); }
:root[data-theme="dark"] .utm-out.ready { color: var(--brand-300); background: rgba(91,75,255,.12); }

/* ============================================================ Glossary term boxes */
.term-box-label { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--sp-2); }
.term-formula { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
.term-formula .term-box-label { color: var(--text-muted); }
.term-formula-body { font-family: var(--font-mono); font-size: 1.02rem; color: var(--brand-700); line-height: 1.6; }
:root[data-theme="dark"] .term-formula-body { color: var(--brand-300); }
.term-example { border-left: 3px solid var(--brand-400); background: color-mix(in srgb, var(--brand-500) 6%, var(--surface)); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
.term-example .term-box-label { color: var(--brand-600); }
:root[data-theme="dark"] .term-example { background: rgba(91,75,255,.1); }
:root[data-theme="dark"] .term-example .term-box-label { color: var(--brand-300); }
.term-example p:last-child { margin-bottom: 0; }
.term-mistake { border-left: 3px solid var(--warning-500, #f79009); background: color-mix(in srgb, #f79009 8%, var(--surface)); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
.term-mistake .term-box-label { color: #b54708; }
:root[data-theme="dark"] .term-mistake { background: rgba(247,144,9,.1); }
:root[data-theme="dark"] .term-mistake .term-box-label { color: #f79009; }
.term-mistake p:last-child, .term-formula p:last-child { margin-bottom: 0; }

/* ER calculator + hashtag generator */
.er-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
@media (max-width: 560px) { .er-results { grid-template-columns: 1fr; } }
.er-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.er-lbl { display: block; font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.er-val { display: block; font-size: var(--text-2xl); font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; margin: 6px 0 2px; }
:root[data-theme="dark"] .er-val { color: var(--brand-300); }
.er-hint { display: block; font-size: var(--text-xs); color: var(--text-muted); }
.ht-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.ht-chip { background: var(--brand-50); color: var(--brand-700); border-radius: 999px; padding: 4px 12px; font-size: var(--text-sm); font-weight: 600; }
:root[data-theme="dark"] .ht-chip { background: rgba(91,75,255,.16); color: var(--brand-300); }

/* Best-time / content-plan / text-style tools */
.bt-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (max-width: 480px) { .bt-slots { grid-template-columns: 1fr; } }
.bt-slot { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); display: flex; justify-content: space-between; align-items: center; }
.bt-slot.off { opacity: .5; }
.bt-slot-lbl { font-size: var(--text-sm); color: var(--text-muted); }
.bt-slot-val { font-weight: 700; color: var(--brand-600); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .bt-slot-val { color: var(--brand-300); }
.cp-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cp-table th, .cp-table td { border: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); text-align: left; }
.cp-table th { background: var(--surface-2); font-weight: 700; }
.cp-type { font-size: var(--text-xs); font-weight: 700; color: var(--brand-600); }
:root[data-theme="dark"] .cp-type { color: var(--brand-300); }
.ts-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.ts-row { display: flex; align-items: center; gap: var(--sp-3); justify-content: space-between; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); background: var(--surface); flex-wrap: wrap; }
.ts-out { font-size: 1.05rem; word-break: break-word; flex: 1 1 60%; min-width: 0; }
.ts-side { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.ts-name { font-size: var(--text-xs); color: var(--text-muted); }
