/* ======================================================
   Duefy — public site styles (landing / pricing / blog / legal)
   ====================================================== */

/* a11y: skip-to-content (lets screen-reader / keyboard users skip nav and jump to main) */
.skip-link {
    position: absolute; top: 0; left: 0;
    background: #4F46E5; color: #fff; padding: 8px 16px;
    border-radius: 0 0 6px 0; z-index: 10000;
    text-decoration: none; font-weight: 600;
    transform: translateY(-100%);
    transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); outline: none; }

:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --primary:      #4F46E5;
    --primary-dark: #4338CA;
    --ink:          #111827;
    --body:         #4B5563;
    --muted:        #6B7280;
    --line:         #E5E7EB;
    --bg-soft:      #F9FAFB;
    --bg-tint:      #EEF2FF;
    --green:        #10B981;
    --success:      #16A34A;   /* darker green for icon strokes (matches app.css --success) */
    --warning:      #D97706;   /* amber — used for alert-triangle / risk-flag icons */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- buttons ---- */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 9px;
    font-weight: 600; font-size: 15px; cursor: pointer; text-align: center;
    border: 1.5px solid transparent; transition: background .15s, box-shadow .15s, transform .08s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--bg-tint); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---- header / nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.is-active { color: var(--primary); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { color: var(--ink); font-weight: 600; font-size: 15px; }
.btn-nav { position: relative; padding: 10px 20px; font-size: 15px; }

/* Logged in: circular avatar (email initial) — public-page nav signals "I'm logged in" */
.nav-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-tint, #EEF2FF);
    color: var(--primary, #4F46E5);
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.nav-avatar:hover {
    background: var(--primary, #4F46E5);
    color: #fff;
    border-color: var(--primary, #4F46E5);
}
.btn-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 10px; white-space: nowrap;
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 44px;       /* WCAG SC 2.5.5 touch target ≥44×44 */
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.nav-hamburger:hover { background: #F3F4F6; }
.nav-hamburger:focus-visible { outline: 2px solid var(--primary, #4F46E5); outline-offset: 2px; }

/* ---- section primitives ---- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-label {
    text-align: center; text-transform: uppercase; letter-spacing: .08em;
    font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px;
}
.section h2, .results-section h2, .how-it-works h2, .pricing-section h2 {
    font-size: 36px; font-weight: 800; color: var(--ink);
    text-align: center; letter-spacing: -.02em; margin-bottom: 12px;
}
.section-sub { text-align: center; font-size: 17px; max-width: 580px; margin: 0 auto 48px; }

/* ---- hero ---- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: 56px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 24px 76px;
}
.hero-content { max-width: 590px; }
.hero-badge { margin-bottom: 16px; }
.hero-badge span {
    background: var(--bg-tint); color: var(--primary); font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 6px;
}
.hero-badge-icon { flex-shrink: 0; }
.hero h1 {
    max-width: 590px;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0;
}
.hero-highlight { color: var(--primary); }
.hero-sub {
    max-width: 560px;
    font-size: 18px;
    line-height: 1.62;
    margin: 18px 0 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---- hero dashboard mock ---- */
.hero-visual { position: relative; }
.hero-dashboard-mock {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 60px rgba(17,24,39,.16); overflow: hidden;
}
.mock-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.mock-logo { font-weight: 800; color: var(--primary); }
.mock-badge-green { color: var(--green); font-size: 12px; font-weight: 600; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 16px 18px; }
.mock-stat { background: var(--bg-soft); border-radius: 8px; padding: 12px; text-align: center; }
.mock-stat-green { background: #ECFDF5; }
.mock-stat-value { font-size: 19px; font-weight: 800; color: var(--ink); }
.mock-stat-label { font-size: 11px; color: var(--muted); }
.mock-table { padding: 0 18px 18px; }
.mock-row {
    display: flex; align-items: center; gap: 8px; padding: 10px 0;
    border-top: 1px solid var(--line); font-size: 13px;
}
.mock-client { flex: 1; font-weight: 600; color: var(--ink); }
.mock-amount { font-weight: 700; color: var(--ink); }
.mock-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.mock-status-sent { background: #DBEAFE; color: #1D4ED8; }
.mock-status-paid { background: #DCFCE7; color: #15803D; }
.mock-status-overdue { background: #FEE2E2; color: #B91C1C; }
.mock-row-ai { background: var(--bg-tint); border-radius: 8px; margin-top: 6px; padding: 10px; border-top: none; }
.mock-ai-badge { font-size: 11px; font-weight: 700; color: var(--primary); }
.mock-ai-text { flex: 1; color: var(--ink); }
.mock-ai-action { font-size: 11px; color: var(--primary); font-weight: 600; }
.mock-float {
    position: absolute; background: #fff; border-radius: 10px; padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(17,24,39,.16); font-size: 13px; font-weight: 600;
    display: flex; gap: 8px; align-items: center;
}
.mock-float-1 { top: -18px; right: -10px; }
.mock-float-2 { bottom: -18px; left: -16px; }

/* ---- results ---- */
.results-section { padding: 72px 24px; max-width: 1120px; margin: 0 auto; }
.results-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 44px; }
.result-item {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 26px 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.result-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .10);
}
.result-value { font-size: 34px; font-weight: 800; color: var(--primary); }
.result-icon  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: #EEF2FF;
    border-radius: 12px;
    margin-bottom: 6px;
}
.result-label { font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.result-sub { font-size: 13px; color: var(--muted); }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; }
.feature .ico {
    width: 48px; height: 48px; border-radius: 11px; background: var(--bg-tint);
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px;
}
.feature h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.features-note { text-align: center; margin-top: 32px; color: var(--muted); font-size: 14px; }

/* ---- how it works ---- */
.how-it-works { padding: 80px 0; background: var(--bg-soft); }
.steps-container { display: flex; flex-direction: column; gap: 56px; margin-top: 48px; }
.step {
    display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; align-items: center;
    max-width: 1000px; margin: 0 auto;
}
.step-number { font-size: 48px; font-weight: 800; color: var(--bg-tint); -webkit-text-stroke: 1px var(--primary); }
.step-content h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.step-features { list-style: none; margin-top: 12px; }
.step-features li { font-size: 14px; color: var(--body); padding: 3px 0; }
.step-mock {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px; box-shadow: 0 12px 30px rgba(17,24,39,.08); font-size: 13px;
}
.mock-upload-zone {
    border: 2px dashed var(--line); border-radius: 8px; padding: 18px;
    text-align: center; color: var(--muted); margin-bottom: 10px;
}
.mock-preview-row { display: flex; gap: 6px; padding: 5px 0; }
.mock-preview-row span { flex: 1; }
.mock-preview-row.header { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mock-import-btn {
    margin-top: 10px; background: var(--primary); color: #fff; text-align: center;
    padding: 8px; border-radius: 7px; font-weight: 600;
}
.mock-email-header { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.mock-email-header span { display: block; font-size: 12px; color: var(--muted); }
.mock-email-body p { margin-bottom: 8px; color: var(--ink); }
.mock-pay-btn {
    background: var(--primary); color: #fff; text-align: center; padding: 9px;
    border-radius: 7px; font-weight: 700; margin: 8px 0;
}
.mock-email-meta { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.mock-notification { border-radius: 8px; padding: 12px; margin-bottom: 10px; font-size: 13px; }
.mock-notification small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mock-notification-paid { background: #ECFDF5; color: #065F46; }
.mock-notification-ai { background: var(--bg-tint); color: var(--ink); }
.mock-suggestion { display: block; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* ---- faq ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
    border: 1px solid var(--line); border-radius: 11px;
    padding: 18px 22px; margin-bottom: 14px;
    background: #FAFBFD;  /* subtle cool off-white — distinct from section bg-soft #F9FAFB without feeling sterile-white */
    transition: background .18s ease, border-color .18s ease;
}
.faq details[open] {
    background: #fff;  /* expanded panel pops slightly whiter as it gets the user's focus */
    border-color: var(--primary-soft, #C7D2FE);
}
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--primary); font-size: 20px; }
.faq details[open] summary:after { content: "−"; }
.faq details p { margin-top: 12px; }
.faq-footer {
    max-width: 720px; margin: 22px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted, #6B7280);
}
.faq-footer a { color: var(--primary); }

/* ---- migration entry ---- */
.migrate-header { text-align: center; margin-bottom: 36px; }
.migrate-header .section-label { margin-bottom: 10px; }
.migrate-header h2 { margin-bottom: 14px; }
.migrate-header .section-sub { margin: 0 auto; }
.migrate-integrations-note {
    margin-top: 14px; font-size: 13px; color: var(--muted, #6B7280);
    text-align: center;
}
.migrate-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 720px; margin: 0 auto;
}
.migrate-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.migrate-card-content {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
}
.migrate-card-name { line-height: 1.25; }
.migrate-card-sub {
    font-size: 12px; font-weight: 400;
    color: var(--muted, #6B7280);
    letter-spacing: 0.1px;
}
.migrate-card-arrow {
    color: var(--primary); font-size: 18px; font-weight: 700;
    transition: transform .18s ease;
    flex-shrink: 0;
}
.migrate-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(79, 70, 229, .10);
    transform: translateY(-1px);
}
.migrate-card:hover .migrate-card-arrow { transform: translateX(3px); }

/* ---- trust badges ---- */
.trust-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.trust-badge {
    display: flex; gap: 12px; align-items: center; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.trust-icon { font-size: 26px; }
.trust-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.trust-sub { font-size: 12px; color: var(--muted); }

/* ---- bottom CTA ---- */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-band-sub {
    font-size: 16px; color: rgba(255, 255, 255, 0.85);
    max-width: 560px; margin: 0 auto 22px;
}
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: #F3F4F6; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #9CA3AF; padding: 48px 0 24px; font-size: 14px; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 8px; color: #9CA3AF; }
.footer-contact { color: #C7D2FE !important; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; color: #9CA3AF; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    border-top: 1px solid #374151; padding-top: 22px;
}
.footer-badges { display: flex; gap: 14px; }
.footer-badges span { font-size: 12px; }
.footer-badges a { color: #C7D2FE; text-decoration: none; }
.footer-badges a:hover { color: #fff; }

/* migrate page h2 icon align */
.migrate-h2-icon { color: var(--primary); vertical-align: middle; margin-right: 4px; }

/* ---- legacy nav (blog / pricing standalone pages) ---- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* ---- legacy pricing cards (pricing.tpl.php) ---- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 18px 44px rgba(79,70,229,.18); }
.plan .tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px;
}
.plan h3 { font-size: 18px; color: var(--ink); }
.plan .price { font-size: 44px; font-weight: 800; color: var(--ink); margin: 10px 0 2px; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.plan li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan .btn { width: 100%; }
.pricing-vs { text-align: center; margin-top: 34px; font-size: 15px; color: var(--muted); }

/* ===== /pricing/ standalone page — hero + comparison grid + decision FAQ =====
   Hero shares bg-soft with the pricing grid below so the two visually merge
   into one block (avoiding a stark white→grey jump). pricing-section already
   has its own padding-top so we keep hero's bottom-padding small. */
.pricing-page-hero {
    padding: 64px 0 0;
    background: var(--bg-soft);
    text-align: center;
}
.pricing-page-hero h1 {
    font-size: 44px; font-weight: 800; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 12px;
}
.pricing-page-sub {
    font-size: 17px; color: var(--muted);
    max-width: 560px; margin: 0 auto;
}
.pricing-vs-section, .pricing-faq-section { padding: 64px 0; }
.pricing-vs-header { text-align: center; margin-bottom: 36px; }
.pricing-vs-header .section-label { margin-bottom: 10px; }
.pricing-vs-header h2 { margin-bottom: 0; }
.pricing-vs-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 16px; max-width: 960px; margin: 0 auto;
    align-items: stretch;
}
@media (max-width: 768px) {
    .pricing-vs-grid { grid-template-columns: 1fr; max-width: 480px; }
    .pricing-page-hero h1 { font-size: 32px; }
}
.pricing-vs-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px 22px;
    display: flex; flex-direction: column;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pricing-vs-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .12);
    transform: translateY(-2px);
}
.pricing-vs-name {
    font-size: 17px; font-weight: 600; color: var(--ink);
    margin-bottom: 8px;
}
.pricing-vs-name strong { color: var(--primary); }
.pricing-vs-price {
    font-size: 24px; font-weight: 700; color: var(--ink);
    margin-bottom: 16px;
}
.pricing-vs-price-other { color: var(--muted); font-weight: 600; font-size: 18px; }
.pricing-vs-period { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-vs-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 14px; color: var(--ink);
}
.pricing-vs-list li {
    padding-left: 22px; position: relative; line-height: 1.45;
}
.pricing-vs-list li.vs-yes::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--primary); font-weight: 700;
}
.pricing-vs-list li.vs-no {
    color: var(--muted);
}
.pricing-vs-list li.vs-no::before {
    content: "—"; position: absolute; left: 0; top: 0;
    color: var(--muted); font-weight: 700;
}
.pricing-vs-footnote {
    text-align: center; font-size: 12.5px;
    max-width: 720px; margin: 22px auto 0;
}
.lead { text-align: center; font-size: 17px; max-width: 560px; margin: 0 auto 48px; }

/* ---- blog ---- */
.blog-page-title {
    font-size: 40px; text-align: center; color: var(--ink); margin-bottom: 10px;
}
/* In-article chronological nav (prev/next) — sits between content and Back link */
.blog-post-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin: 40px 0 24px;
    padding: 20px 0; border-top: 1px solid var(--line);
}
.blog-post-nav-cell { display: flex; flex-direction: column; min-width: 0; }
.blog-post-nav-prev { align-items: flex-start; }
.blog-post-nav-next { align-items: flex-end; text-align: right; }
.blog-post-nav-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.blog-post-nav-link  { font-weight: 600; color: var(--ink); text-decoration: none; }
.blog-post-nav-link:hover { color: var(--primary); }
@media (max-width: 600px) {
    .blog-post-nav { grid-template-columns: 1fr; }
    .blog-post-nav-next { align-items: flex-start; text-align: left; }
}
.blog-list {
    max-width: 820px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px 30px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .05);
    transform: translateY(-1px);
}
.blog-card .blog-date {
    text-transform: uppercase; letter-spacing: .06em;
    font-size: 12px; font-weight: 700; color: var(--muted);
    margin: 0 0 8px;
}
.blog-card-link { text-decoration: none; display: block; }
.blog-card h2 {
    text-align: left;
    font-size: 22px; line-height: 1.3; font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    transition: color .15s ease;
}
.blog-card-link:hover h2 { color: var(--primary); }
.blog-excerpt { color: var(--body); margin: 0 0 14px; line-height: 1.55; }
.blog-more {
    color: var(--primary); font-weight: 600; font-size: 14px;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.blog-more:hover { text-decoration: underline; }
.blog-pager {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 820px; margin: 36px auto 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.blog-pager-link {
    color: var(--primary); font-weight: 600; text-decoration: none;
    padding: 8px 14px; border-radius: 8px;
    transition: background .15s ease;
}
.blog-pager-link:hover { background: var(--bg-tint); }
.blog-pager-link.is-disabled { color: var(--muted); cursor: default; pointer-events: none; }
.blog-pager-status { color: var(--muted); font-size: 13px; }
.blog-article { max-width: 720px; margin: 0 auto; }
.blog-back {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; font-weight: 600; color: var(--muted);
    text-decoration: none; margin-bottom: 24px;
    transition: color .15s ease;
}
.blog-back:hover { color: var(--primary); }
.blog-article-head { margin-bottom: 32px; }
.blog-article-head .blog-meta {
    text-transform: uppercase; letter-spacing: .06em;
    font-size: 12px; font-weight: 700; color: var(--muted);
    margin: 0 0 12px;
}
.blog-article h1 {
    text-align: left;
    font-size: 38px; font-weight: 800; color: var(--ink);
    line-height: 1.15; letter-spacing: -.01em;
    margin: 0;
}
.blog-content { margin-top: 0; color: var(--body); }
.blog-content > p:first-of-type {
    font-size: 18px; line-height: 1.6;
    color: var(--ink);
    margin-bottom: 22px;
}
.blog-content h2 {
    font-size: 24px; font-weight: 800; color: var(--ink);
    margin: 36px 0 12px; text-align: left;
    line-height: 1.3;
}
.blog-content h3 {
    font-size: 19px; font-weight: 700; color: var(--ink);
    margin: 28px 0 10px;
}
.blog-content p { margin-bottom: 16px; line-height: 1.7; }
.blog-content ul, .blog-content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-content li { margin-bottom: 6px; line-height: 1.7; }
.blog-content a { color: var(--primary); }
.blog-content blockquote {
    margin: 20px 0;
    padding: 12px 18px;
    border-left: 3px solid var(--primary);
    background: var(--bg-soft);
    border-radius: 0 8px 8px 0;
    color: var(--ink);
    font-style: italic;
}
/* Article tables (pricing/option comparisons) — were unstyled browser-default
   tables that also stretched the page sideways on phones. */
.blog-content table {
    width: 100%; border-collapse: collapse;
    margin: 0 0 18px; font-size: 14px;
}
.blog-content th, .blog-content td {
    padding: 8px 12px; border-bottom: 1px solid var(--line);
    text-align: left; line-height: 1.5; vertical-align: top;
}
.blog-content th { font-weight: 700; color: var(--ink); background: var(--bg-soft); }
@media (max-width: 480px) {
    .blog-content table { display: block; overflow-x: auto; }
}
.blog-article-foot {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.blog-article-foot .blog-back { margin-bottom: 0; }
.site-foot { background: var(--ink); color: #9CA3AF; padding: 34px 0; font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-foot a { color: #C7D2FE; }

/* ---- legal pages ---- */
.legal-page { background: var(--bg-soft); padding: 60px 0; }
.legal-container {
    max-width: 800px; margin: 0 auto; background: #fff;
    border-radius: 12px; padding: 48px; box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.legal-page h1 { font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.legal-date { color: var(--muted); margin-bottom: 40px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: #374151; }
.legal-content p, .legal-content li { color: var(--body); line-height: 1.7; margin-bottom: 12px; }
.legal-content ul { padding-left: 24px; }
.legal-content a { color: var(--primary); }

/* ---- responsive ---- (unified breakpoints: 768 tablet / 480 mobile) ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px;
    }
    .nav-hamburger { display: flex; }
    .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
    .hero h1 { font-size: 36px; line-height: 1.1; }
    .hero-sub { font-size: 16px; line-height: 1.58; }
    .hero-visual { margin-top: 0; }
    .results-grid, .features, .trust-badges { grid-template-columns: 1fr 1fr; }
    .migrate-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; gap: 16px; }
    .step-number { font-size: 36px; }
    .section h2, .results-section h2, .how-it-works h2, .pricing-section h2 { font-size: 28px; }
}
@media (max-width: 480px) {
    /* Nav bar must fit a 375px phone: the always-on CTA (Dashboard / Start
       Free Trial) stays beside the logo + hamburger, so tighten the 32px gap,
       trim padding, drop the "14 days free" badge and shrink the wordmark —
       otherwise the row overflows the viewport and adds a horizontal scrollbar. */
    .nav-container { gap: 12px; padding: 0 16px; }
    .nav-actions { gap: 10px; }
    .btn-badge { display: none; }
    .logo-text { font-size: 20px; }
    .hero { padding: 36px 20px 56px; }
    .hero h1 { font-size: 32px; }
    .hero-cta .btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; }
    .results-grid, .features, .trust-badges { grid-template-columns: 1fr; }
    .migrate-grid { grid-template-columns: 1fr; }
    /* Wide legal/privacy data tables (e.g. the DPA sub-processor list) scroll
       inside their own box on a phone instead of widening the whole page. */
    .legal-table, .privacy-table { display: block; overflow-x: auto; }
}

/* ---- legal pages: DPA + GDPR section (task: GDPR/Analytics) ---- */
.legal-header { margin-bottom: 32px; }
.legal-header .text-muted { color: var(--muted); margin: 8px 0 16px; line-height: 1.7; }
.legal-container > section { margin: 28px 0; }
.legal-container > section h2,
.legal-intro + section h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.legal-container > section h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: #374151; }
.legal-container > section p,
.legal-container > section li,
.legal-intro p, .legal-intro li,
.dpa-signing p, .dpa-signing li { color: var(--body); line-height: 1.7; margin-bottom: 12px; }
.legal-container > section ul,
.legal-container > section ol,
.legal-intro ul { padding-left: 24px; }
.legal-container a, .legal-intro a, .dpa-signing a { color: var(--primary); }
.legal-intro { margin: 24px 0 8px; }

/* GDPR section heading inside the existing .legal-content layout */
.legal-content #gdpr h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }

/* legal data tables (DPA sub-processors / GDPR privacy table) */
.legal-table, .privacy-table {
    width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.legal-table th, .privacy-table th,
.legal-table td, .privacy-table td {
    border: 1px solid var(--line); padding: 10px 12px; text-align: left;
    color: var(--body); vertical-align: top;
}
.legal-table th, .privacy-table th {
    background: var(--bg-tint); color: var(--ink); font-weight: 600;
}

/* DPA signing block */
.dpa-signing {
    margin-top: 36px; padding: 24px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: 12px;
}
.dpa-signing h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }

@media print {
    .site-header, .site-footer, .dpa-signing .btn,
    .legal-header .btn { display: none !important; }
    .legal-page { background: #fff; padding: 0; }
    .legal-container { box-shadow: none; max-width: 100%; padding: 0; }
}

/* ======================================================
   Pricing section (redesigned: cumulative feature list + Annual/Monthly toggle)
   Variables reuse the :root variables already defined in this file
   ====================================================== */
.pricing-section {
    padding: 80px 24px;
    background: var(--bg-soft);
}
.pricing-container {
    max-width: 1080px;
    margin: 0 auto;
}
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}
.pricing-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
}
.pricing-header p {
    font-size: 18px;
    color: var(--body);
}

/* "No setup / per-invoice fees" trust badge — sits between header copy and
   billing toggle, surfaces the differentiator that was buried in FAQ. */
.pricing-honest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== Annual/Monthly toggle ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 15px;
}
.toggle-label { color: var(--body); font-weight: 500; }
.toggle-label-active { color: var(--ink); font-weight: 700; }
.toggle-save-badge {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 13px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #4F46E5; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ===== Pricing card ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}
.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Pro card: highlight border via box-shadow so it doesn't add to content width (keeps the three columns equal) */
.pricing-card-featured {
    border: 1px solid #4F46E5;
    box-shadow:
        0 0 0 1px #4F46E5,
        0 8px 32px rgba(79,70,229,0.15);
    box-sizing: border-box;
}
.pricing-card-featured:hover {
    box-shadow:
        0 0 0 1px #4F46E5,
        0 12px 36px rgba(79,70,229,0.22);
}

/* ===== Recommended badge ===== */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== Card header ===== */
.pricing-card-header { margin-bottom: 20px; }
.pricing-plan-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
    min-height: 28px;
}
.pricing-plan-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    min-height: 40px;   /* two lines of text so the three price columns start at the same baseline */
}
/* Fixed min-height on the price area keeps all three columns aligned horizontally */
.pricing-price-wrap {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}
.pricing-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}
.pricing-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -2px;
    transition: color 0.2s;
}
.pricing-period {
    font-size: 15px;
    color: var(--muted);
    margin-left: 2px;
}
/* ===== Annual hint (shown below the price when monthly is selected) ===== */
.pricing-annual-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #065F46;
    background: #D1FAE5;
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 6px;
    width: fit-content;
    min-height: 28px;
}
.pricing-annual-hint strong { font-weight: 700; }
.annual-hint-arrow {
    display: inline-flex; vertical-align: middle;
    opacity: 0.7; margin-right: 2px;
}

/* Billing note shown when annual is selected */
.pricing-billed-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* ===== CTA button ===== */
.pricing-cta {
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 700;
}

/* ===== Feature list ===== */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Base feature item */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--body);
    border-bottom: 1px solid var(--bg-soft);
}
.feature-item:last-child { border-bottom: none; }

/* Inherited features (slightly dimmed) */
.feature-inherited { opacity: 0.65; }
/* Pro-inherited features in the Team column (dimmer than Solo-inherited to distinguish two inheritance levels) */
.feature-inherited-pro { opacity: 0.55; }
.feature-inherited-pro .feature-check { color: #9CA3AF; }
.feature-check {
    color: #10B981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.feature-check-muted { color: #9CA3AF; }
.feature-note {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

/* A Solo feature whose quota is lifted at this tier: stays in the inherited
   block (so it stays aligned across columns) but is not dimmed, and its quota
   note is accented to keep the upgrade visible. Declared after .feature-inherited
   so the opacity override wins. */
.feature-upgrade { opacity: 1; }
.feature-note-upgrade { color: var(--primary); }
.feature-note-upgrade strong { font-weight: 700; }

/* Divider: Everything in X, plus: */
.feature-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #4F46E5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature-divider::before,
.feature-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E0E7FF;
}

/* New features (highlighted) */
.feature-new {
    color: var(--ink);
    font-weight: 500;
    opacity: 1;
}
.feature-new-icon {
    color: #4F46E5;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Add-on cost note */
.feature-addon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* ===== Footer copy ===== */
.pricing-footer {
    text-align: center;
    margin-top: 40px;
}
.pricing-footer-items {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--body);
    margin-bottom: 12px;
}
.pricing-footer-note {
    font-size: 13px;
    color: var(--muted);
}
.pricing-footer-note a { color: #4F46E5; }

/* ===== AI section (home-page AI feature showcase) =====
   Subtle top-to-bottom indigo wash → bg-soft. Top hint signals the AI / Claude
   theme color without overwhelming; fades into bg-soft so the next pricing
   section (also bg-soft) blends smoothly. Inner demo cards stay white and
   pop against the tinted backdrop. */
.ai-section {
    padding: 96px 24px;
    background: linear-gradient(180deg, #F4F6FC 0%, var(--bg-soft) 100%);
    overflow: hidden;
}
.ai-container { max-width: 1080px; margin: 0 auto; }

/* ===== Heading area ===== */
.ai-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.ai-header-tag {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.ai-header h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--ink);
}
.ai-header p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .ai-header h2 { font-size: 28px; }
    .ai-header p  { font-size: 16px; }
}

/* ===== Before / After comparison ===== */
.ai-compare { margin-bottom: 80px; }
.ai-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 768px) {
    .ai-compare-grid { grid-template-columns: 1fr; gap: 16px; }
    .ai-compare-arrow { transform: rotate(90deg); }
}

.ai-compare-card {
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--line);
}
.ai-compare-before { background: #FEF2F2; border-color: #FCA5A5; }
.ai-compare-after  { background: #F0FDF4; border-color: #86EFAC; }

.ai-compare-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}
.ai-compare-label-bad  { color: #DC2626; }
.ai-compare-label-good { color: #16A34A; }

.ai-email-mock {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    font-size: 13px;
}
.ai-email-header {
    background: #F9FAFB;
    padding: 10px 14px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ai-email-from    { color: #6B7280; font-size: 12px; }
.ai-email-subject { color: #111; font-weight: 600; font-size: 13px; }
.ai-email-body    { padding: 14px; color: #374151; line-height: 1.6; }
.ai-email-body p  { margin-bottom: 8px; }
.ai-email-body p:last-child { margin-bottom: 0; }

.ai-annotations {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.ai-annotation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #16A34A;
}
.ai-annotation-dot {
    width: 6px; height: 6px;
    background: #16A34A;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.ai-compare-result {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
}
.ai-compare-result-bad  { background: #FEE2E2; color: #DC2626; }
.ai-compare-result-good { background: #DCFCE7; color: #16A34A; }

.ai-compare-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ai-compare-arrow-icon  { font-size: 28px; }
.ai-compare-arrow-label { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ===== Three-scenario tabs ===== */
.ai-scenarios {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 4px 16px rgba(17, 24, 39, .04);
}
.ai-scenarios h3 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--ink);
}
.ai-scenarios-subtitle {
    text-align: center;
    color: var(--body);
    margin-bottom: 28px;
    font-size: 15px;
}

.ai-scenario-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ai-scenario-tab {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--body);
    transition: all 0.2s;
}
.ai-scenario-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.ai-scenario-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ai-scenario-panel { display: none; }
.ai-scenario-panel.active {
    display: block;
    animation: aiFadeIn 0.25s ease;
}
@keyframes aiFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .ai-scenario-grid { grid-template-columns: 1fr; }
}

.ai-scenario-signals {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}
.ai-scenario-signals h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.ai-scenario-signals ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.ai-scenario-signals li {
    font-size: 13px;
    color: var(--body);
}

.ai-scenario-verdict {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: 8px;
}
.verdict-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.verdict-text  { font-size: 13px; font-weight: 700; }
.verdict-low    { color: #16A34A; }
.verdict-medium { color: #D97706; }
.verdict-high   { color: #DC2626; }

.ai-scenario-action {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}
.ai-scenario-action h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.ai-mini-email {
    background: var(--bg-soft);
    border-left: 3px solid var(--primary);
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--body);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ai-scenario-outcome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--body);
}
.outcome-icon { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 2px; }

/* ===== AI Feature rows (alternating left/right) ===== */
.ai-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.ai-feature-row-reverse { direction: rtl; }
.ai-feature-row-reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .ai-feature-row         { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
    .ai-feature-row-reverse { direction: ltr; }
}

.ai-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ai-feature-text h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
    line-height: 1.3;
}
.ai-feature-text p {
    color: var(--body);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}
.ai-feature-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-feature-benefits li {
    font-size: 14px;
    color: var(--body);
}

/* ===== AI reply-analysis demo ===== */
.ai-reply-demo {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(17, 24, 39, .04);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-reply-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.ai-reply-bubble {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--body);
    font-style: italic;
    line-height: 1.6;
}
.ai-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.ai-reply-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.ai-reply-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #F3F4F6;
    gap: 12px;
}
.ai-reply-row:last-child { border-bottom: none; }
.ai-reply-key {
    width: 110px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.ai-reply-val    { font-size: 13px; font-weight: 500; }
.ai-reply-green  { color: #16A34A; }
.ai-reply-yellow { color: #D97706; }
.ai-reply-action-row { background: var(--bg-tint); }
.ai-reply-action { color: var(--primary); font-weight: 700; }

/* ===== Client risk-score demo ===== */
.ai-risk-demo {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(17, 24, 39, .04);
    border-radius: 16px;
    padding: 24px;
}
.ai-risk-header {
    display: grid;
    grid-template-columns: 1fr auto 80px 40px;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}
.ai-risk-row {
    display: grid;
    grid-template-columns: 1fr auto 80px 40px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}
.ai-risk-row:last-of-type { border-bottom: none; }
.ai-risk-row-highlight {
    background: #FEF2F2;
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 8px;
}
.ai-risk-name   { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-risk-amount { font-size: 13px; color: var(--body); white-space: nowrap; }
.ai-risk-bar-wrap {
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}
.ai-risk-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.ai-risk-bar-a { background: #16A34A; }
.ai-risk-bar-b { background: #65A30D; }
.ai-risk-bar-c { background: #D97706; }
.ai-risk-bar-d { background: #DC2626; }

/* Width utility classes — used for inline widths like the risk bar */
.w-30 { width: 30%; }
.w-55 { width: 55%; }
.w-75 { width: 75%; }
.w-90 { width: 90%; }

/* "Suggested draft email" hint for AI high-risk clients */
.ai-risk-followup {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Style for trust-badge once it's wrapped in a link — same as the original badge, plus hover */
.trust-badge .trust-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.trust-badge .trust-link:hover { color: var(--primary); }

/* a11y: skip-to-content link — hidden by default, slides into view on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary, #4F46E5);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 6px 0;
    transition: top 0.15s;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

.ai-risk-grade {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ai-risk-grade-a { background: #DCFCE7; color: #16A34A; }
.ai-risk-grade-b { background: #ECFCCB; color: #65A30D; }
.ai-risk-grade-c { background: #FEF3C7; color: #D97706; }
.ai-risk-grade-d { background: #FEE2E2; color: #DC2626; }

.ai-risk-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #DC2626;
    font-weight: 600;
    padding: 8px 12px;
    background: #FEE2E2;
    border-radius: 6px;
}

/* ===== AI assistant chat demo (used inside .ai-feature-row as the right-side demo) ===== */
.ai-chat-demo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(17, 24, 39, .06);
    overflow: hidden;
}
.ai-chat-window-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.ai-chat-window-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: #fff; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ai-chat-window-title { display: flex; flex-direction: column; line-height: 1.2; }
.ai-chat-window-title strong { font-size: 14px; color: var(--ink); font-weight: 700; }
.ai-chat-window-title span  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ai-chat-window-status {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #16A34A;
}
.ai-chat-window-status::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}
.ai-chat-body {
    display: flex; flex-direction: column; gap: 16px;
    padding: 28px;
}
.ai-chat-message { max-width: 85%; }
.ai-chat-user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
}
.ai-chat-ai {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px 18px 18px 18px;
    padding: 16px 18px;
    font-size: 14px;
    color: var(--ink);
    max-width: 95%;
}
.ai-chat-ai p { margin-bottom: 10px; color: var(--body); }

.ai-chat-badge {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ai-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-chat-list-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.ai-chat-urgent  { background: #FEE2E2; color: #DC2626; }
.ai-chat-warning { background: #FEF3C7; color: #D97706; }
.ai-chat-normal  { background: var(--bg-soft); color: var(--body); }

.ai-chat-forecast {
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.ai-chat-forecast-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--body);
}
.ai-chat-green  { color: #16A34A; font-weight: 700; }
.ai-chat-yellow { color: #D97706; font-weight: 700; }
.ai-chat-red    { color: #DC2626; font-weight: 700; }

/* ===== Closing CTA ===== */
.ai-section-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-tint), #F0FDF4);
    border-radius: 24px;
    padding: 56px 40px;
}
.ai-section-cta h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
}
.ai-section-cta > p {
    color: var(--body);
    margin-bottom: 24px;
    font-size: 16px;
}
.ai-cta-testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 540px;
    margin: 0 auto 28px;
    border-left: 4px solid var(--primary);
    text-align: left;
}
.ai-cta-testimonial p {
    font-size: 15px;
    color: var(--body);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.6;
}
.ai-cta-testimonial span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.ai-section .btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700;
}
.ai-cta-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .ai-section { padding: 60px 16px; }
    .ai-scenarios { padding: 24px 16px; }
    .ai-feature-row { gap: 24px; }
    .ai-section-cta { padding: 36px 20px; }
    .ai-risk-header,
    .ai-risk-row { grid-template-columns: 1fr auto 60px 32px; }
}

/* ===== Nav logo (brand logo) ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo span {
    font-size: 22px;
    font-weight: 900;
    color: #1E1B4B;
    letter-spacing: -1px;
}
.nav-logo:hover { opacity: 0.85; }
