
:root {
    --tf-primary: #2563eb;
    --tf-primary-hover: #1d4ed8;
    --tf-primary-light: #eff6ff;
    --tf-primary-border: #dbeafe;
    --tf-indigo: #4f46e5;
    --tf-purple: #7c3aed;
    --tf-dark: #0f172a;
    --tf-slate: #1e293b;
    --tf-body: #334155;
    --tf-muted: #64748b;
    --tf-subtle: #94a3b8;
    --tf-border: #e2e8f0;
    --tf-bg-light: #f8fafc;
    --tf-white: #ffffff;
    --tf-radius-sm: 8px;
    --tf-radius-md: 12px;
    --tf-radius-lg: 16px;
    --tf-radius-xl: 20px;
    --tf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --tf-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --tf-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
    --tf-shadow-studio: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
}

.tf-brand-root {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tf-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section (Centered) */
.tf-hero-wrap {
    text-align: center;
    padding: 44px 0 24px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.tf-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tf-slate);
    box-shadow: var(--tf-shadow-sm);
    margin: 0 auto 20px;
}

.tf-pill-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.tf-hero-wrap h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: var(--tf-dark);
    margin: 0 auto 18px;
    text-align: center;
    max-width: 860px;
    word-break: break-word;
}

.tf-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.tf-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--tf-muted);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.6;
    font-weight: 450;
    text-align: center;
}

.tf-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 22px;
    flex-wrap: wrap;
}

.tf-btn-glow {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff !important;
    padding: 13px 28px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.tf-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.tf-btn-ghost {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    color: var(--tf-slate);
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.tf-btn-ghost:hover {
    background: var(--tf-bg-light);
    border-color: #cbd5e1;
    color: var(--tf-dark);
}

.tf-trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    padding: 6px 0;
}

.tf-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 250, 252, 0.95);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--tf-border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tf-body);
}

/* Studio Editor Card (Centered) */
.tf-studio-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    box-shadow: var(--tf-shadow-studio);
    margin: 24px auto 18px;
    max-width: 980px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tf-studio-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    background: var(--tf-bg-light) !important;
    border-bottom: 1px solid var(--tf-border) !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.tf-window-dots {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-shrink: 0 !important;
}

.tf-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.tf-dot-red { background: #ef4444; }
.tf-dot-yellow { background: #f59e0b; }
.tf-dot-green { background: #10b981; }

.tf-doc-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--tf-white) !important;
    border: 1px solid var(--tf-border) !important;
    padding: 6px 14px !important;
    border-radius: var(--tf-radius-sm) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    min-width: 180px !important;
    max-width: 320px !important;
    width: auto !important;
    flex: 0 1 240px !important;
    white-space: nowrap !important;
}

.tf-doc-tab-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.tf-doc-tab input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--tf-dark) !important;
    width: auto !important;
    min-width: 50px !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: unset !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.tf-ext {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.88rem !important;
    color: var(--tf-muted) !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    user-select: none !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tf-status-indicator {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #10b981 !important;
    background: #f0fdf4 !important;
    border: 1px solid #dcfce7 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

.tf-studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--tf-border);
    gap: 12px;
    flex-wrap: wrap;
}

.tf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tf-tool-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tf-slate);
}

.tf-select-control {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 550;
    background: var(--tf-bg-light);
    border: 1px solid var(--tf-border);
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--tf-dark);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.tf-select-control:focus {
    border-color: var(--tf-primary);
}

.tf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-icon-btn {
    background: var(--tf-bg-light);
    border: 1px solid var(--tf-border);
    color: var(--tf-slate);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.tf-icon-btn:hover {
    background: #f1f5f9;
    color: var(--tf-dark);
    border-color: #cbd5e1;
}

.tf-fr-drawer {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--tf-border);
    flex-wrap: wrap;
}

.tf-fr-drawer.active {
    display: flex;
}

.tf-fr-drawer input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    padding: 5px 10px;
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--tf-dark);
    min-width: 160px;
    flex: 1;
}

.tf-fr-drawer button {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--tf-slate);
}

.tf-fr-drawer button:hover {
    background: #e2e8f0;
}

.tf-fr-stats {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tf-muted);
}

.tf-canvas-wrap {
    position: relative;
    width: 100%;
}

.tf-canvas-wrap.dragover::after {
    content: "Drop .txt file to load into editor";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.tf-canvas-textarea {
    width: 100% !important;
    min-height: 380px !important;
    padding: 24px 28px !important;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace !important;
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
    color: var(--tf-dark) !important;
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
    resize: vertical !important;
    box-shadow: none !important;
    display: block !important;
}

.tf-canvas-textarea::placeholder {
    color: #94a3b8 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-style: normal !important;
}

.tf-studio-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--tf-bg-light);
    border-top: 1px solid var(--tf-border);
    gap: 14px;
    flex-wrap: wrap;
}

.tf-stats-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-stat-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tf-muted);
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    padding: 4px 10px;
    border-radius: 6px;
}

.tf-actions-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-action-tool-btn {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    color: var(--tf-slate);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.tf-action-tool-btn:hover {
    background: #f1f5f9;
    color: var(--tf-dark);
    border-color: #cbd5e1;
}

.tf-btn-cta-download {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.tf-btn-cta-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.tf-kbd-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Dark Mode Studio Overrides */
.tf-studio-dark {
    background: #090d16 !important;
    border-color: #1e293b !important;
}
.tf-studio-dark .tf-studio-topbar,
.tf-studio-dark .tf-studio-toolbar,
.tf-studio-dark .tf-studio-dock,
.tf-studio-dark .tf-fr-drawer {
    background: #0f172a !important;
    border-color: #1e293b !important;
}
.tf-studio-dark .tf-doc-tab {
    background: #1e293b !important;
    border-color: #334155 !important;
}
.tf-studio-dark .tf-ext {
    color: #94a3b8 !important;
}
.tf-studio-dark .tf-doc-tab input {
    color: #f8fafc !important;
}
.tf-studio-dark .tf-select-control,
.tf-studio-dark .tf-icon-btn,
.tf-studio-dark .tf-action-tool-btn,
.tf-studio-dark .tf-fr-drawer input,
.tf-studio-dark .tf-fr-drawer button {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
.tf-studio-dark .tf-stat-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
.tf-studio-dark .tf-canvas-textarea {
    background: #090d16 !important;
    color: #f8fafc !important;
}
.tf-studio-dark .tf-canvas-textarea::placeholder {
    color: #475569 !important;
}

/* Microcopy Notes Cards Under Tool */
.tf-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 18px auto 52px;
    max-width: 980px;
    width: 100%;
}

.tf-note-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    box-shadow: var(--tf-shadow-sm);
    text-align: left;
}

.tf-note-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.tf-note-content strong {
    display: block;
    color: var(--tf-dark);
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tf-note-content p {
    font-size: 0.87rem;
    color: var(--tf-muted);
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SHARED PROSE & SECTION STYLING (ALL HEADINGS & LAYOUT CENTERED)
   -------------------------------------------------------------------------- */
.tf-prose-section {
    padding: 48px 0;
    border-top: 1px solid var(--tf-border);
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.tf-section-badge {
    display: table !important;
    margin: 0 auto 14px auto !important;
    text-align: center !important;
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 4px 14px;
    border-radius: 9999px;
}

.tf-prose-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tf-dark);
    margin: 0 auto 16px auto;
    text-align: center !important;
    line-height: 1.25;
}

.tf-prose-section > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--tf-body);
    margin: 0 auto 16px auto;
    max-width: 820px;
    text-align: center;
}

/* Bento Grid */
.tf-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 28px auto 0;
    width: 100%;
    max-width: 980px;
}

.tf-bento-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 24px;
    box-shadow: var(--tf-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.tf-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
}

.tf-bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.tf-bento-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tf-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}

.tf-bento-card p {
    font-size: 0.92rem;
    color: var(--tf-muted);
    margin: 0;
    line-height: 1.55;
}

/* Steps (Workflow) */
.tf-steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 28px auto 0;
    width: 100%;
    max-width: 980px;
}

.tf-step-box {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--tf-shadow-sm);
}

.tf-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.tf-step-box h3 {
    font-size: 1rem;
    font-weight: 750;
    color: var(--tf-dark);
    margin: 0 0 8px;
    text-align: center;
}

.tf-step-box p {
    font-size: 0.88rem;
    color: var(--tf-muted);
    line-height: 1.55;
    margin: 0;
    text-align: center;
}

/* Infographic Card (Centered) */
.tf-infographic-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 24px 18px;
    margin: 28px auto 0;
    max-width: 980px;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tf-shadow-sm);
    text-align: center;
}

.tf-infographic-svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tf-scroll-hint {
    display: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tf-muted);
    margin-top: 10px;
    text-align: center;
}

/* Benefits (Comparison) */
.tf-benefits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 28px auto 0;
    width: 100%;
    max-width: 980px;
}

.tf-benefit-box {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 22px;
    box-shadow: var(--tf-shadow-sm);
    text-align: left;
}

.tf-benefit-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tf-dark);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-benefit-box p {
    font-size: 0.92rem;
    color: var(--tf-muted);
    line-height: 1.6;
    margin: 0;
}

/* Applications (Uses Grid) */
.tf-uses-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px auto 0;
    width: 100%;
    max-width: 980px;
}

.tf-use-item {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 20px;
    box-shadow: var(--tf-shadow-sm);
    text-align: left;
}

.tf-use-item strong {
    display: block;
    color: var(--tf-dark);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tf-use-item p {
    font-size: 0.88rem;
    color: var(--tf-muted);
    margin: 0;
    line-height: 1.55;
}

/* Privacy & Security Banner (Centered) */
.tf-security-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--tf-radius-xl);
    padding: 36px 32px;
    margin: 28px auto 0;
    max-width: 860px;
    text-align: center;
    box-shadow: var(--tf-shadow-sm);
}

.tf-security-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.tf-security-text h3 {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--tf-dark);
    margin: 0 auto 12px;
    text-align: center;
}

.tf-security-text p {
    font-size: 0.98rem;
    color: var(--tf-body);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 14px;
    text-align: center;
}

.tf-security-text p:last-child {
    margin-bottom: 0;
}

/* FAQ Stack (Centered) */
.tf-faq-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px auto 0;
    max-width: 820px;
    width: 100%;
}

.tf-faq-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.tf-faq-card[open] {
    border-color: #cbd5e1;
    box-shadow: var(--tf-shadow-sm);
}

.tf-faq-card summary {
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tf-faq-card summary::-webkit-details-marker {
    display: none;
}

.tf-faq-card summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--tf-muted);
    transition: transform 0.2s ease;
    margin-left: 12px;
}

.tf-faq-card[open] summary::after {
    content: 'âˆ’';
    color: var(--tf-primary);
}

.tf-faq-content {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    color: var(--tf-body);
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* Radiant Footer CTA (Centered) */
.tf-radiant-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: var(--tf-radius-xl);
    padding: 52px 24px;
    text-align: center;
    color: #ffffff;
    margin: 48px auto 36px;
    max-width: 980px;
    box-shadow: var(--tf-shadow-lg);
    position: relative;
    overflow: hidden;
}

.tf-radiant-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    margin: 0 auto 12px;
    text-align: center;
}

.tf-radiant-cta p {
    font-size: 1.08rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 26px;
    line-height: 1.6;
    text-align: center;
}

.tf-radiant-cta .tf-btn-glow {
    margin: 0 auto;
}

/* Related Tools Dock (Centered) */
.tf-tools-dock {
    text-align: center;
    margin: 36px auto 28px;
    max-width: 980px;
}

.tf-tools-dock h3 {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--tf-dark);
    margin: 0 auto 18px;
    text-align: center;
}

.tf-pills-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.tf-nav-pill {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    color: var(--tf-slate);
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.tf-nav-pill:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary);
    background: var(--tf-primary-light);
    transform: translateY(-1px);
}

/* Byline Dock (Centered) */
.tf-byline-dock {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
    font-size: 0.86rem;
    color: var(--tf-muted);
    max-width: 980px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.tf-byline-dock a {
    color: var(--tf-primary);
    text-decoration: underline;
}

/* Floating Toast Notification */
.tf-toast-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 999999;
    display: none;
    border: 1px solid #334155;
    animation: tfFadeIn 0.2s ease-out;
}

@keyframes tfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tf-brand-root {
        padding: 0 14px 60px;
    }
    .tf-hero-wrap {
        padding: 28px 0 18px;
    }
    .tf-studio-topbar,
    .tf-studio-toolbar,
    .tf-studio-dock {
        padding: 10px 14px;
    }
    .tf-canvas-textarea {
        padding: 16px !important;
        min-height: 280px !important;
    }
    .tf-scroll-hint {
        display: block;
    }
    .tf-infographic-card {
        justify-content: flex-start;
    }
    .tf-radiant-cta {
        padding: 36px 18px;
    }
}


@media (max-width: 640px) {
    .tf-studio-topbar {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .tf-doc-tab {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .tf-status-indicator {
        order: 1 !important;
        margin-left: auto !important;
    }
}


/* --------------------------------------------------------------------------
   PROCESS IMAGES & MOBILE SCREENSHOT SHOWCASE
   -------------------------------------------------------------------------- */
.tf-mobile-process-wrap {
    margin: 36px auto 0;
    max-width: 980px;
    width: 100%;
}

.tf-mobile-showcase-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    padding: 36px 32px;
    box-shadow: var(--tf-shadow-md);
    text-align: left;
}

.tf-mobile-showcase-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: center;
}

@media (max-width: 860px) {
    .tf-mobile-showcase-card {
        padding: 24px 18px;
    }
    .tf-mobile-showcase-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.tf-phone-frame-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tf-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tf-primary);
    background: var(--tf-primary-light);
    border: 1px solid var(--tf-primary-border);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
    white-space: nowrap;
}

.tf-phone-mockup-wrapper {
    position: relative;
    max-width: 270px;
    width: 100%;
    margin: 0 auto;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #0f172a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tf-phone-mockup-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.tf-phone-screen-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 36px;
}

.tf-mobile-details-col {
    display: flex;
    flex-direction: column;
}

.tf-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.tf-mobile-details-col h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--tf-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.tf-mobile-details-col > p {
    font-size: 0.98rem;
    color: var(--tf-muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.tf-mobile-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.tf-m-step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tf-m-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--tf-primary);
    border: 1px solid #dbeafe;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tf-m-step-item strong {
    display: block;
    color: var(--tf-dark);
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tf-m-step-item p {
    font-size: 0.88rem;
    color: var(--tf-muted);
    margin: 0;
    line-height: 1.5;
}

.tf-m-download-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 12px 16px;
    box-shadow: var(--tf-shadow-sm);
}

.tf-m-preview-thumbnail {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.tf-m-badge-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.tf-m-preview-caption span {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tf-dark);
}

.tf-m-preview-caption small {
    font-size: 0.8rem;
    color: var(--tf-muted);
}




/* Specialized Tool Extensions */
.tf-dropzone-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--tf-radius-md);
    background: #f8fafc;
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tf-dropzone-box:hover,
.tf-dropzone-box.tf-dragover {
    border-color: var(--tf-primary);
    background: #eff6ff;
    transform: scale(1.005);
}
.tf-dropzone-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: inline-block;
}
.tf-dropzone-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-dark);
    margin-bottom: 6px;
}
.tf-dropzone-sub {
    font-size: 0.88rem;
    color: var(--tf-muted);
    max-width: 440px;
}
.tf-dropzone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--tf-dark);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 8px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.15s ease;
}
.tf-dropzone-btn:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary);
}
.tf-progress-card {
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-md);
    padding: 24px;
    margin: 16px;
    display: none;
    box-shadow: var(--tf-shadow-sm);
}
.tf-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.tf-progress-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tf-dark);
}
.tf-progress-track {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}
.tf-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 9999px;
    transition: width 0.2s ease;
}
.tf-viewer-card-body {
    display: flex;
    position: relative;
    background: #ffffff;
    min-height: 380px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.6;
}
.tf-viewer-gutter {
    width: 54px;
    padding: 16px 8px 16px 0;
    text-align: right;
    color: #94a3b8;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    user-select: none;
    flex-shrink: 0;
    font-size: 0.82rem;
}
.tf-viewer-code-content {
    flex: 1;
    padding: 16px 20px;
    color: #1e293b;
    white-space: pre;
    overflow-x: auto;
    outline: none;
}
.tf-viewer-code-content.tf-wrap {
    white-space: pre-wrap !important;
    word-break: break-word !important;
}
.tf-search-highlight {
    background: #fef08a !important;
    color: #0f172a !important;
    border-radius: 2px !important;
    padding: 0 1px !important;
}
.tf-search-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
}

/* --------------------------------------------------------------------------
   ABOUT & CONTACT PAGES STYLING
   -------------------------------------------------------------------------- */

/* Stats Milestone Strip */
.tf-stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px 24px;
    margin: 36px auto 44px;
    box-shadow: var(--tf-shadow-sm);
    text-align: center;
}

@media (max-width: 768px) {
    .tf-stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        padding: 24px 16px;
    }
}

.tf-stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf-stat-num {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--tf-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tf-stat-num span {
    color: var(--tf-primary);
}

.tf-stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tf-muted);
}

/* Tool Showcase Grid (About page) */
.tf-tool-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.tf-tool-showcase-card {
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--tf-shadow-sm);
}

.tf-tool-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tf-shadow-md);
    border-color: #cbd5e1;
}

.tf-tool-showcase-top {
    margin-bottom: 16px;
}

.tf-tool-showcase-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.tf-tool-showcase-card h3 {
    font-size: 1.12rem;
    font-weight: 750;
    color: var(--tf-dark);
    margin: 0 0 8px;
}

.tf-tool-showcase-card p {
    font-size: 0.92rem;
    color: var(--tf-muted);
    line-height: 1.55;
    margin: 0;
}

.tf-tool-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.tf-tool-badge {
    font-size: 0.74rem;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 6px;
}

.tf-tool-arrow {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tf-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Contact Page Grid */
.tf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 32px;
    margin: 40px auto;
    max-width: 1020px;
    align-items: start;
}

@media (max-width: 860px) {
    .tf-contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Left Contact Channels Card */
.tf-contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tf-channel-card {
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 20px 22px;
    box-shadow: var(--tf-shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tf-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
}

.tf-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tf-channel-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--tf-dark);
    margin: 0 0 4px;
}

.tf-channel-body p {
    font-size: 0.88rem;
    color: var(--tf-muted);
    line-height: 1.5;
    margin: 0 0 8px;
}

.tf-channel-link {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--tf-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tf-channel-link:hover {
    color: var(--tf-primary-hover);
    text-decoration: underline;
}

/* Direct Email Highlight Card */
.tf-email-highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--tf-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--tf-shadow-sm);
}

.tf-email-highlight-box strong {
    font-size: 0.95rem;
    color: var(--tf-dark);
    display: block;
    margin-bottom: 6px;
}

.tf-email-highlight-box p {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 12px;
    line-height: 1.5;
}

.tf-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.94rem;
    font-weight: 650;
    color: var(--tf-primary);
    background: #ffffff;
    border: 1px solid #93c5fd;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
}

/* Right Column: Modern Contact Form Card */
.tf-contact-form-card {
    background: #ffffff;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    padding: 36px 32px;
    box-shadow: var(--tf-shadow-studio);
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .tf-contact-form-card {
        padding: 26px 20px;
    }
}

.tf-contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
}

.tf-form-header {
    margin-bottom: 24px;
}

.tf-form-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--tf-dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.tf-form-header p {
    font-size: 0.92rem;
    color: var(--tf-muted);
    margin: 0;
    line-height: 1.55;
}

.tf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .tf-form-row {
        grid-template-columns: 1fr;
    }
}

.tf-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tf-form-label {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--tf-slate);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tf-form-req {
    color: #ef4444;
}

.tf-form-input,
.tf-form-select,
.tf-form-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--tf-radius-sm);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--tf-dark);
    transition: all 0.15s ease;
    outline: none;
}

.tf-form-input:focus,
.tf-form-select:focus,
.tf-form-textarea:focus {
    background: #ffffff;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tf-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.tf-form-note {
    font-size: 0.82rem;
    color: var(--tf-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.tf-form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--tf-radius-sm);
    padding: 12px 24px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tf-form-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.tf-form-success {
    display: none;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--tf-radius-md);
    padding: 24px;
    text-align: center;
    margin-top: 16px;
}

.tf-form-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tf-form-success h3 {
    font-size: 1.15rem;
    font-weight: 750;
    color: #065f46;
    margin: 0 0 6px;
}

.tf-form-success p {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.55;
}