* { box-sizing: border-box; margin: 0; }

body {
    font-family: "Inter", Arial, sans-serif;
    color: #111827;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

/* ── Layout ── */
.pub-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
.pub-header {
    border-bottom: 1px solid #e4e7ec;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.pub-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #5b5cf0;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.pub-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.pub-nav a {
    text-decoration: none;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 500;
}

.pub-nav a:hover {
    color: #111827;
}

/* ── Mobile menu toggle ── */
.pub-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.pub-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.pub-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pub-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.pub-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.pub-btn {
    background: #5b5cf0;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s;
}

.pub-btn:hover {
    background: #4a4bd6;
}

.pub-btn-outline {
    background: #fff;
    color: #111827 !important;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: border-color 0.15s;
}

.pub-btn-outline:hover {
    border-color: #5b5cf0;
    color: #5b5cf0 !important;
}

.pub-btn-lg {
    padding: 0.7rem 2rem;
    font-size: 1rem;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
}

.hero-eyebrow {
    display: inline-block;
    background: #eef0ff;
    color: #5b5cf0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.1rem;
    letter-spacing: -0.03em;
}

.hero-sub {
    color: #667085;
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Sections ── */
.section-white {
    padding: 4.5rem 0;
}

.section-alt {
    padding: 4.5rem 0;
    background: #f8f9fc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: #667085;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Steps ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #5b5cf0;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.step-card p {
    color: #667085;
    font-size: 0.9rem;
}

/* ── Image placeholders ── */
.img-placeholder {
    background: #e8ebf0;
    border-radius: 12px;
    width: 100%;
    height: 180px;
    margin-bottom: 1.25rem;
}

.img-placeholder-lg {
    height: 280px;
    flex: 1;
    flex-shrink: 0;
}

.split-img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
    object-fit: contain;
    margin-bottom: 0;
}

.img-placeholder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

/* ── Split sections ── */
.split-section {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.split-reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.split-text p {
    color: #667085;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.check-list li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    color: #344054;
    font-size: 0.9rem;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #5b5cf0;
    font-weight: 700;
}

/* ── Features grid ── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: #667085;
    font-size: 0.88rem;
}

/* ── Testimonials ── */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1.75rem;
    background: #fff;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: #344054;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.testimonial-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-featured {
    border-color: #5b5cf0;
    box-shadow: 0 4px 24px rgba(91, 92, 240, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #5b5cf0;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.pricing-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #667085;
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #344054;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #5b5cf0;
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    text-align: center;
}

/* ── CTA ── */
.cta-section {
    padding: 4rem 0 5rem;
}

.cta-card {
    background: #f8f9fc;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: #667085;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Footer ── */
.pub-footer {
    border-top: 1px solid #e4e7ec;
    padding: 3rem 0 1.5rem;
    color: #667085;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-col a {
    display: block;
    color: #667085;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.2rem 0;
}

.footer-col a:hover {
    color: #111827;
}

.footer-bottom {
    border-top: 1px solid #f0f2f5;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ── Legal pages ── */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-page h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: #667085;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
}

.legal-page p {
    color: #344054;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.legal-page a {
    color: #5b5cf0;
}

/* ── Page sections (FAQ, Contact) ── */
.page-section {
    padding: 3rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.page-section h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #f0f2f5;
    padding: 1.25rem 0;
}

.faq-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.faq-item p {
    color: #667085;
    font-size: 0.9rem;
}

/* ── Blog hero ── */
.blog-hero {
    text-align: center;
    padding: 3.5rem 0 3rem;
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.blog-hero .hero-sub {
    margin-bottom: 0;
}

/* ── Blog roll grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
    border-color: #c7c8f5;
    box-shadow: 0 4px 16px rgba(91, 92, 240, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-img-placeholder {
    background: linear-gradient(135deg, #eef0ff 0%, #f8f9fc 100%);
}

.blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: #111827;
}

.blog-card-excerpt {
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    color: #98a2b3;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Blog tags ── */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.blog-tag {
    display: inline-block;
    background: #eef0ff;
    color: #5b5cf0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Blog empty state ── */
.blog-empty {
    text-align: center;
    padding: 3rem 0;
}

.blog-empty h2 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.blog-empty p {
    color: #667085;
    font-size: 0.95rem;
}

/* ── Blog article ── */
.blog-article {
    padding: 2rem 0 4rem;
}

.blog-article-container {
    max-width: 760px;
}

.blog-back-link {
    display: inline-block;
    color: #5b5cf0;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.blog-back-link:hover {
    color: #4a4bd6;
}

.blog-article-header {
    margin-bottom: 1.5rem;
}

.blog-article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-article-meta time {
    color: #98a2b3;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-featured-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e4e7ec;
}

/* ── Blog content (rendered HTML from CMS) ── */
.blog-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #344054;
}

.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
    color: #111827;
    letter-spacing: -0.01em;
}

.blog-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
    color: #111827;
}

.blog-content p {
    margin-bottom: 1.1rem;
}

.blog-content a {
    color: #5b5cf0;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #4a4bd6;
}

.blog-content ul,
.blog-content ol {
    margin: 0.75rem 0 1.1rem 1.5rem;
}

.blog-content li {
    margin-bottom: 0.35rem;
}

.blog-content blockquote {
    border-left: 3px solid #5b5cf0;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: #f8f9fc;
    border-radius: 0 8px 8px 0;
    color: #344054;
    font-style: italic;
}

.blog-content hr {
    border: none;
    border-top: 1px solid #e4e7ec;
    margin: 2rem 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-content code {
    background: #f0f2f5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* ── Blog content – tables ── */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content table thead {
    background: #f8f9fa;
}

.blog-content table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #eaeaea;
}

.blog-content table tbody tr {
    border-bottom: 1px solid #f1f1f1;
}

.blog-content table tbody tr:last-child {
    border-bottom: none;
}

.blog-content table tbody tr:hover {
    background: #f8f9fa;
}

.blog-content table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: top;
}

.blog-content table tbody td:first-child {
    font-weight: 500;
    color: #111827;
}

.blog-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f2f5;
}

/* ── Tool pages ── */
.tool-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.tool-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.tool-hero .hero-sub {
    margin-bottom: 0;
}

.tool-container {
    max-width: 640px;
}

.tool-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 2rem;
}

.tool-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f2f5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tool-section-title:first-child {
    margin-top: 0;
}

.tool-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.35rem;
}

.tool-field input,
.tool-field textarea,
.tool-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s;
}

.tool-field input:focus,
.tool-field textarea:focus {
    outline: none;
    border-color: #5b5cf0;
    box-shadow: 0 0 0 3px rgba(91, 92, 240, 0.1);
}

.tool-field textarea {
    resize: vertical;
    min-height: 52px;
}

/* ── Tool results ── */
.tool-results {
    margin-top: 1.5rem;
    border-top: 1px solid #f0f2f5;
    padding-top: 1.25rem;
}

.tool-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.tool-result-label {
    font-size: 0.88rem;
    color: #667085;
}

.tool-result-label small {
    font-weight: 400;
}

.tool-result-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.tool-result-lg {
    font-size: 1.4rem;
}

.tool-result-highlight {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.4rem -0.5rem;
}

.tool-result-warn {
    color: #dc2626;
}

.tool-result-success {
    color: #16a34a;
}

/* ── Tool inline CTA ── */
.tool-cta-inline {
    margin-top: 1.5rem;
    background: #eef0ff;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.tool-cta-inline p {
    font-size: 0.9rem;
    color: #344054;
    margin-bottom: 0.75rem;
}

/* ── Tool sticky banner ── */
.tool-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    color: #fff;
    padding: 0.85rem 0;
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.tool-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tool-sticky-text strong {
    display: block;
    font-size: 0.88rem;
}

.tool-sticky-text span {
    font-size: 0.8rem;
    color: #98a2b3;
}

.tool-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.tool-sticky-close {
    background: transparent;
    border: none;
    color: #98a2b3;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.tool-sticky-close:hover {
    color: #fff;
}

/* ── Invoice generator specifics ── */
.tool-trojan {
    background: #eef0ff;
    border: 1px solid #c7c8f5;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tool-trojan p {
    font-size: 0.9rem;
    color: #344054;
    margin-bottom: 0.75rem;
}

.tool-line-item {
    display: grid;
    grid-template-columns: 1fr 110px 32px;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.tool-line-item input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111827;
}

.tool-line-item input:focus {
    outline: none;
    border-color: #5b5cf0;
    box-shadow: 0 0 0 3px rgba(91, 92, 240, 0.1);
}

.tool-line-remove {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-line-remove:hover {
    background: #fef2f2;
}

.tool-add-line {
    background: transparent;
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    padding: 0.55rem;
    width: 100%;
    font-size: 0.85rem;
    color: #5b5cf0;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.25rem;
    font-family: inherit;
}

.tool-add-line:hover {
    border-color: #5b5cf0;
    background: #fafaff;
}

.tool-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #111827;
    margin-top: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-download-btn {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
}

/* ── Tool SEO content ── */
.tool-seo-content {
    max-width: 720px;
}

.tool-seo-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    margin-top: 2rem;
    color: #111827;
}

.tool-seo-content h2:first-child {
    margin-top: 0;
}

.tool-seo-content p {
    color: #667085;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    /* ── Mobile nav ── */
    .pub-menu-toggle {
        display: flex;
    }

    .pub-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e4e7ec;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        padding: 0.5rem 1.5rem 1rem;
        gap: 0;
    }

    .pub-nav.open {
        display: flex;
    }

    .pub-nav a {
        padding: 0.7rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f2f5;
    }

    .pub-nav a:last-child {
        border-bottom: none;
    }

    .pub-nav .pub-btn,
    .pub-nav .pub-btn-outline {
        text-align: center;
        margin-top: 0.5rem;
        border-bottom: none;
    }

    /* ── General ── */
    .hero h1 {
        font-size: 1.8rem;
    }

    .split-section,
    .split-reverse {
        flex-direction: column;
    }

    .img-placeholder-lg {
        min-width: 0;
        height: 200px;
    }

    .split-text {
        flex: none;
    }

    .split-img {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* ── Blog ── */
    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article-header h1 {
        font-size: 1.5rem;
    }

    .blog-article-container {
        overflow-x: hidden;
    }

    .blog-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 500px;
    }

    .blog-content table thead,
    .blog-content table tbody {
        display: table;
        width: 100%;
        min-width: 500px;
    }

    /* ── Tools ── */
    .tool-hero h1 {
        font-size: 1.5rem;
    }

    .tool-input-row {
        grid-template-columns: 1fr;
    }

    .tool-sticky-inner {
        flex-direction: column;
        text-align: center;
    }

    .tool-sticky-text span {
        display: none;
    }

    .tool-line-item {
        grid-template-columns: 1fr 90px 32px;
    }
}
