/* ============================================================
   TextCharm — Public Marketing Styles
   ============================================================ */

/* ── Variables ── */
:root {
    --tc-primary:     #4f46e5;
    --tc-primary-dk:  #3730a3;
    --tc-primary-lt:  #eef2ff;
    --tc-accent:      #7c3aed;
    --tc-dark:        #0f172a;
    --tc-body:        #1e293b;
    --tc-muted:       #64748b;
    --tc-border:      #e2e8f0;
    --tc-bg:          #f6f5f4;
    --tc-surface:     #f8fafc;
    --tc-white:       #ffffff;
    --tc-radius:      12px;
    --tc-radius-sm:   8px;
    --tc-shadow-sm:   0 1px 3px 0 rgb(0 0 0 / .08), 0 1px 2px -1px rgb(0 0 0 / .06);
    --tc-shadow:      0 4px 16px -2px rgb(0 0 0 / .08), 0 2px 8px -2px rgb(0 0 0 / .05);
    --tc-shadow-lg:   0 16px 48px -4px rgb(0 0 0 / .12), 0 8px 24px -4px rgb(0 0 0 / .08);
    --tc-transition:  all .2s cubic-bezier(.4, 0, .2, 1);
    --nav-height:     68px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    color: var(--tc-body);
    background: var(--tc-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Navbar ── */
.tc-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--nav-height);
    background-color: #242847;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.tc-navbar.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--tc-border);
    box-shadow: var(--tc-shadow-sm);
}

/* 3-column fluid layout */
.tc-navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
}

.tc-nav-start {
    flex: 1;
    display: flex;
    align-items: center;
}

.tc-nav-center {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.tc-nav-end {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

/* Brand */
.tc-navbar .navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .45rem;
    transition: color .3s ease;
}

.tc-navbar.scrolled .navbar-brand { color: var(--tc-dark); }

.tc-navbar .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    transition: background .3s ease;
}

.tc-navbar.scrolled .navbar-brand .brand-icon {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
}

/* Logo swap: light logo on dark hero, dark logo on white scrolled navbar */
.tc-logo-scrolled { display: none; }
.tc-navbar.scrolled .tc-logo-default { display: none; }
.tc-navbar.scrolled .tc-logo-scrolled { display: block; }

/* Nav links — transparent state (white) */
.tc-nav-link {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: .4rem .8rem !important;
    border-radius: 6px;
    transition: var(--tc-transition);
    margin-right: 10px;
}

.tc-nav-link:hover,
.tc-nav-link.active {
    color: #fff !important;
}

/* Nav links — scrolled state (dark) */
.tc-navbar.scrolled .tc-nav-link {
    color: var(--tc-primary-dk) !important;
}

.tc-navbar.scrolled .tc-nav-link:hover,
.tc-navbar.scrolled .tc-nav-link.active {
    color: var(--tc-dark) !important;
    background: var(--tc-surface);
}

/* Dropdown toggle caret */
.tc-nav-link.dropdown-toggle::after {
    margin-left: .3rem;
    vertical-align: middle;
    border-width: .3em;
}

/* Standard dropdown */
.tc-dropdown-menu {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-sm);
    box-shadow: var(--tc-shadow);
    padding: .5rem;
    min-width: 180px;
    margin-top: .5rem !important;
}

.tc-dropdown-menu .dropdown-item {
    border-radius: 6px;
    padding: .45rem .75rem;
    font-size: .875rem;
    color: var(--tc-body);
    transition: var(--tc-transition);
}

.tc-dropdown-menu .dropdown-item:hover {
    background: var(--tc-surface);
    color: var(--tc-primary);
}

/* Mega menu — left/right aligns with Bootstrap .container at each breakpoint */
.tc-mega-menu {
    position: fixed;
    left: max(.75rem, calc((100vw - 960px) / 2));   /* lg container */
    right: max(.75rem, calc((100vw - 960px) / 2));
    top: var(--nav-height);
    background: #fff;
    border: 1px solid var(--tc-border);
    border-top: none;
    border-bottom-left-radius: var(--tc-radius);
    border-bottom-right-radius: var(--tc-radius);
    box-shadow: 0 12px 32px -4px rgb(0 0 0 / .12), 0 4px 12px -4px rgb(0 0 0 / .07);
    padding: 2rem 0 2.5rem;
    display: none;
    z-index: 1040;
    animation: slideDown .18s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tc-mega-menu.show { display: block; }

@media (min-width: 1200px) {
    .tc-mega-menu {
        left: max(.75rem, calc((100vw - 1140px) / 2));  /* xl container */
        right: max(.75rem, calc((100vw - 1140px) / 2));
    }
}
@media (min-width: 1400px) {
    .tc-mega-menu {
        left: max(.75rem, calc((100vw - 1320px) / 2));  /* xxl container */
        right: max(.75rem, calc((100vw - 1320px) / 2));
    }
}

.mega-category {
    margin-bottom: 1.25rem;
}

.mega-category-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tc-muted);
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--tc-border);
}

.mega-category-header i {
    font-size: 1rem;
}

.mega-tool-link {
    display: block;
    padding: .3rem .5rem;
    border-radius: 6px;
    font-size: 1rem;
    color: var(--tc-body);
    transition: var(--tc-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-tool-link:hover {
    background: var(--tc-primary-lt);
    color: var(--tc-primary);
}

/* Nav buttons — transparent state (white) */
.tc-btn-login {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .9) !important;
    padding: .4rem 1rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    transition: var(--tc-transition);
}

.tc-btn-login:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
}

/* Nav buttons — scrolled state */
.tc-navbar.scrolled .tc-btn-login {
    color: var(--tc-body) !important;
    border-color: var(--tc-border);
}

.tc-navbar.scrolled .tc-btn-login:hover {
    background: var(--tc-surface);
    border-color: #cbd5e1;
}

.tc-btn-cta {
    font-size: .875rem;
    font-weight: 600;
    color: #fff !important;
    padding: .4rem 1.1rem;
    background: var(--tc-primary);
    border: 1px solid var(--tc-primary);
    border-radius: 8px;
    transition: var(--tc-transition);
}

.tc-btn-cta:hover {
    background: var(--tc-primary-dk);
    border-color: var(--tc-primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(79 70 229 / .35);
}

/* Language switcher */
.tc-lang-btn {
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .7) !important;
    padding: .4rem .6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: var(--tc-transition);
    background: transparent;
    border: none;
}

.tc-lang-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .1);
}

.tc-navbar.scrolled .tc-lang-btn {
    color: var(--tc-muted) !important;
}

.tc-navbar.scrolled .tc-lang-btn:hover {
    color: var(--tc-dark) !important;
    background: var(--tc-surface);
}

/* ── Page Layout ── */
.tc-page { padding-top: 0; }

/* ── Hero ── */
.tc-hero {
    padding: calc(var(--nav-height) + 5rem) 0 5.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 90% 65% at 50% 0%, rgba(139, 148, 255, 0.18) 0%, transparent 60%),
        linear-gradient(150deg, #0f172a 0%, #1e1b4b 40%, #1e3a8a 75%, #1e40af 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Dot grid overlay */
.tc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .065) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative blurred orbs */
.tc-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tc-hero-orb-1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(99, 102, 241, .55) 0%, transparent 70%);
    filter: blur(90px);
    top: -280px; left: -180px;
    opacity: .7;
}

.tc-hero-orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, .5) 0%, transparent 70%);
    filter: blur(80px);
    top: -150px; right: -150px;
    opacity: .6;
}

.tc-hero-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, .4) 0%, transparent 70%);
    filter: blur(70px);
    bottom: -80px; left: 35%;
    opacity: .5;
}

/* Floating decorative icons */
.tc-hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, .045);
    line-height: 1;
}

/* Hero badge */
.tc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .15);
}

.tc-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
    margin-bottom: 1.25rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.tc-hero h1 .highlight {
    background: linear-gradient(135deg, #a5b4fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tc-hero p.lead {
    font-size: 1.45rem;
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.tc-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.tc-hero-note {
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

.tc-hero-note i { margin-right: .2rem; }

/* Outline button adapted for dark hero */
.tc-hero .btn-outline-tc {
    color: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .28);
}

.tc-hero .btn-outline-tc:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    transform: translateY(-1px);
}

/* Hero image */
.tc-hero-image {
    margin-top: 4rem;
    position: relative;
    display: inline-block;
    max-width: 900px;
    width: 100%;
}

.tc-hero-image img,
.tc-hero-image .tc-hero-mockup {
    width: 100%;
    border-radius: var(--tc-radius);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .1);
}

.tc-hero-mockup {
    background: rgba(255, 255, 255, .055);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: var(--tc-radius);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
    text-align: left;
    min-height: 240px;
}

.tc-hero-mockup .mockup-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.tc-hero-mockup .mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tc-hero-mockup .mockup-dot:nth-child(1) { background: #f87171; }
.tc-hero-mockup .mockup-dot:nth-child(2) { background: #fbbf24; }
.tc-hero-mockup .mockup-dot:nth-child(3) { background: #34d399; }

.tc-hero-mockup .mockup-content {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.mockup-line {
    height: 10px;
    background: rgba(255, 255, 255, .1);
    border-radius: 100px;
}

.mockup-line.w-75 { width: 75%; }
.mockup-line.w-90 { width: 90%; }
.mockup-line.w-55 { width: 55%; }
.mockup-line.w-80 { width: 80%; }
.mockup-line.w-40 { width: 40%; }

.mockup-line.accent {
    background: linear-gradient(90deg, #a5b4fc, #e879f9);
    opacity: .6;
}

/* ── Buttons ── */
.btn-primary-tc {
    background: var(--tc-primary);
    color: #fff;
    border: 1px solid var(--tc-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    padding: .7rem 1.6rem;
    transition: var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-primary-tc:hover {
    background: var(--tc-primary-dk);
    border-color: var(--tc-primary-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(79 70 229 / .35);
}

.btn-outline-tc {
    background: transparent;
    color: var(--tc-dark);
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    padding: .7rem 1.6rem;
    transition: var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-outline-tc:hover {
    background: var(--tc-surface);
    border-color: #cbd5e1;
    color: var(--tc-dark);
    transform: translateY(-1px);
}

/* ── Section titles ── */
.tc-section { padding: 5rem 0; }
.tc-section-sm { padding: 3.5rem 0; }
.tc-section-alt { background: var(--tc-surface); }

.tc-section-label {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--tc-primary);
    margin-bottom: .75rem;
}

.tc-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--tc-dark);
    line-height: 1.2;
    margin-bottom: .75rem;
}

.tc-section-subtitle {
    font-size: 1.1rem;
    max-width: 520px;
    line-height: 1.65;
}

/* ── Feature cards ── */
.tc-feature-card {
    background: var(--tc-white);
    border: none;
    border-radius: var(--tc-radius);
    padding: 1rem;
    height: 100%;
    transition: var(--tc-transition);
}

.tc-feature-card:hover {
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, .2);
}

.tc-feature-icon {
    width: 110px;
    height: 110px;
    background: var(--tc-primary-lt);
    color: var(--tc-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.25rem;
    margin-bottom: 2.1rem;
    flex-shrink: 0;
    margin: auto;
}

.tc-feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tc-dark);
    margin-bottom: .45rem;
    letter-spacing: -.01em;
}

.tc-feature-card p {
    font-size: .95rem;
    color: var(--tc-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Category tabs ── */
.tc-category-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tc-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 100px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--tc-muted);
    background: var(--tc-white);
    border: 1px solid var(--tc-border);
    cursor: pointer;
    transition: var(--tc-transition);
}

.tc-cat-tab:hover {
    color: var(--tc-primary);
    border-color: rgba(79, 70, 229, .3);
    background: var(--tc-primary-lt);
}

.tc-cat-tab.active {
    color: var(--tc-primary);
    background: var(--tc-primary-lt);
    border-color: rgba(79, 70, 229, .25);
}

/* ── Tool cards ── */
.tc-tool-card {
    background: var(--tc-white);
    border: none;
    border-radius: var(--tc-radius);
    padding: 1.4rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--tc-transition);
    position: relative;
}

.tc-tool-card:hover {
    box-shadow: var(--tc-shadow);
    border-color: rgba(79, 70, 229, .2);
}

.tc-tool-card:hover .tc-tool-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.tc-tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .8rem;
}

.tc-tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    flex-shrink: 0;
}

.tc-credits-badge {
    font-size: .7rem;
    font-weight: 700;
    color: var(--tc-muted);
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 100px;
    padding: .15rem .55rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.tc-tool-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: .35rem;
    letter-spacing: -.01em;
}

.tc-tool-card p {
    font-size: 1rem;
    color: var(--tc-muted);
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.tc-tool-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--tc-primary);
    opacity: 0;
    transition: var(--tc-transition);
    font-size: .85rem;
}

/* Tool grid panels */
.tc-tool-panel { display: none; }
.tc-tool-panel.active { display: block; }

/* ── Stats bar ── */
.tc-stats {
    background: var(--tc-dark);
    color: #fff;
    padding: 3rem 0;
}

.tc-stat-item {
    text-align: center;
    padding: .5rem;
}

.tc-stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: .35rem;
    letter-spacing: -.04em;
}

.tc-stat-label {
    font-size: .82rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ── CTA Section ── */
.tc-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tc-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, .2) 0%, transparent 65%);
    pointer-events: none;
}

.tc-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.tc-cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.btn-white-tc {
    background: #fff;
    color: var(--tc-primary);
    border: 1px solid #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 2rem;
    transition: var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn-white-tc:hover {
    background: rgba(255,255,255,.92);
    color: var(--tc-primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.tc-cta-login {
    margin-top: 1.25rem;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

.tc-cta-login a {
    color: rgba(255,255,255,.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Footer ── */
.tc-footer {
    background: var(--tc-dark);
    color: rgba(255,255,255,.65);
    padding: 4rem 0 2rem;
}

.tc-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
}

.tc-footer .footer-brand .brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: #fff;
}

.tc-footer .footer-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    margin: 0;
}

.tc-footer .footer-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.45);
    margin-bottom: .85rem;
}

.tc-footer .footer-link {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .55rem;
    transition: var(--tc-transition);
}

.tc-footer .footer-link:hover {
    color: #fff;
}

.tc-footer .footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 2.5rem 0 1.5rem;
}

.tc-footer .footer-copy {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

/* Mobile hamburger icon adapts with scroll state */
.tc-hamburger { color: rgba(255, 255, 255, .85); transition: color .3s ease; }
.tc-navbar.scrolled .tc-hamburger { color: var(--tc-dark); }

/* ── Utilities ── */
.text-gradient {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Tool landing pages ─────────────────────────────────────────────────── */

/* Page hero (light, no dark gradient) */
.tc-tool-page-hero {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    padding: calc(var(--nav-height) + 3.5rem) 0 4rem;
    border-bottom: 1px solid var(--tc-border);
}
.tc-tool-page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--tc-dark);
}
.tc-tool-page-hero .tc-tool-page-lead {
    font-size: 1.15rem;
    color: var(--tc-muted);
    max-width: 580px;
}
.tc-tool-category-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #eff6ff;
    color: var(--tc-primary);
    border: 1px solid #bfdbfe;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .85rem;
    margin-bottom: 1.25rem;
}

/* How it works steps */
.tc-steps { counter-reset: step-counter; }
.tc-step-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.tc-step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tc-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
}
.tc-step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: .35rem;
}
.tc-step-card p {
    font-size: .95rem;
    color: var(--tc-muted);
    margin: 0;
}

/* Article length cards */
.tc-length-card {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 2rem 1.75rem;
    background: #fff;
    height: 100%;
    position: relative;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.tc-length-card:hover {
    box-shadow: 0 8px 24px -4px rgb(0 0 0 / .1);
}
.tc-length-card.tc-length-featured {
    border-color: var(--tc-primary);
    border-width: 2px;
}
.tc-length-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tc-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .22rem .9rem;
    border-radius: 99px;
    white-space: nowrap;
}
.tc-length-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: .25rem;
}
.tc-length-credits {
    font-size: .85rem;
    font-weight: 600;
    color: var(--tc-primary);
    background: #eff6ff;
    border-radius: 99px;
    padding: .2rem .7rem;
    display: inline-block;
    margin-bottom: .5rem;
}
.tc-length-wordcount {
    font-size: .85rem;
    color: var(--tc-muted);
    margin-bottom: 1rem;
}
.tc-length-description {
    font-size: .92rem;
    color: var(--tc-text);
    margin-bottom: 1.25rem;
}
.tc-length-includes {
    border-top: 1px solid var(--tc-border);
    padding-top: 1.1rem;
    margin-top: auto;
}
.tc-length-includes-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tc-muted);
    margin-bottom: .5rem;
}
.tc-length-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.tc-length-includes ul li {
    font-size: .85rem;
    color: var(--tc-text);
    display: flex;
    align-items: flex-start;
    gap: .45rem;
}
.tc-length-includes ul li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232563eb' opacity='.12'/%3E%3Cpath d='M4.5 8l2.25 2.25L11.5 5.75' stroke='%232563eb' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* Audience cards (who it's for) */
.tc-audience-card {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow .2s ease;
}
.tc-audience-card:hover { box-shadow: 0 4px 16px -4px rgb(0 0 0 / .09); }
.tc-audience-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.tc-audience-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: .4rem;
}
.tc-audience-card p {
    font-size: .9rem;
    color: var(--tc-muted);
    margin: 0;
}

/* FAQ accordion */
.tc-faq .accordion-item {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.tc-faq .accordion-button {
    font-weight: 600;
    font-size: .97rem;
    color: var(--tc-dark);
    background: #fff;
    box-shadow: none;
    padding: 1.1rem 1.4rem;
}
.tc-faq .accordion-button:not(.collapsed) {
    color: var(--tc-primary);
    background: #f8faff;
    box-shadow: none;
}
.tc-faq .accordion-button::after {
    filter: none;
}
.tc-faq .accordion-body {
    font-size: .92rem;
    color: var(--tc-muted);
    padding: .75rem 1.4rem 1.25rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 991.98px) {
    .tc-tool-page-hero { padding: calc(var(--nav-height) + 2.5rem) 0 3rem; }
    .tc-tool-page-hero h1 { font-size: 2rem; }
    .tc-tool-page-hero .tc-tool-page-lead { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
    .tc-tool-page-hero h1 { font-size: 1.75rem; }
}

/* ── Mobile / Offcanvas nav ── */
@media (max-width: 991.98px) {
    .tc-navbar-inner { padding: 0 1.25rem; }
    .tc-hero { padding: calc(var(--nav-height) + 3.5rem) 0 3rem; }
    .tc-hero h1 { font-size: 2.2rem; }
    .tc-section { padding: 3.5rem 0; }
    .tc-cta-section { padding: 4rem 0; }
    .tc-stats { padding: 2rem 0; }
    .tc-stat-number { font-size: 1.75rem; }

    .tc-mega-menu { left: 1.25rem; right: 1.25rem; overflow-y: auto; max-height: calc(100vh - var(--nav-height)); }

    /* Mobile: scrolled nav is dark to match hero bg */
    .tc-navbar { background: transparent; }
    .tc-navbar.scrolled { background: rgba(255, 255, 255, .96); }
}

@media (max-width: 575.98px) {
    .tc-navbar-inner { padding: 0 1rem; }
    .tc-hero { padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem; }
    .tc-hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary-tc, .btn-outline-tc { justify-content: center; }
    .tc-category-tabs { gap: .35rem; }
    .tc-cat-tab { font-size: .77rem; padding: .35rem .75rem; }
}



.flag-img {
	width: 22px;
	height: 22px;
	margin-right: 5px;
}
