/* TalkHub Sub-Page Styles */
/* Extends linkify.css base styles */

/* TalkHub-specific variables */
:root {
    --th-primary: #0071e3;
    --th-primary-dark: #005bb5;
    --th-green: #10b981;
    --th-green-light: #d1fae5;
    --th-dark: #0a0a0a;
    --th-red: #ef4444;
    --th-red-light: #fef2f2;
}

/* Wider container for TalkHub */
.th-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section title shared */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--th-primary);
    padding: 4px 16px;
    border-radius: var(--radius-btn);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-secondary {
    background: transparent;
    color: var(--th-primary);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    font-weight: 400;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--card);
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

/* ==================== TH HERO ==================== */
.th-hero {
    padding: 120px 0 60px;
    background: var(--bg);
}

.th-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.th-hero-badge {
    display: inline-block;
    background: var(--th-green-light);
    color: #065f46;
    padding: 4px 16px;
    border-radius: var(--radius-btn);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.th-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--fg);
}

.th-hero h1 span {
    color: var(--accent);
}

.th-hero-lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.th-hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.th-hero-trust {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.th-hero-trust > span {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 10px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trust-item {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
}

/* Hero Visual / Flow Diagram */
.th-hero-visual {
    background: var(--card);
    border-radius: var(--radius-card);
    padding: 28px;
    border: 1px solid var(--border);
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.flow-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    flex: 1;
}

.flow-box.highlight {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.flow-icon { font-size: 1.25rem; margin-bottom: 6px; }
.flow-box h4 { font-size: 0.75rem; margin-bottom: 6px; font-weight: 600; }
.flow-box ul { list-style: none; font-size: 0.65rem; color: var(--muted); }
.flow-box.highlight ul { color: rgba(255,255,255,0.7); }

.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.flow-arrow { font-size: 1.25rem; color: var(--accent); font-weight: bold; }
.flow-label { font-size: 0.55rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==================== WHAT IS ==================== */
.what-is {
    padding: 60px 0;
    background: var(--card);
}

.what-is-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.what-is-card {
    border-radius: 20px;
    padding: 28px;
}

.is-card { background: #f0fdf4; border: 1px solid #bbf7d0; }
.isnot-card { background: var(--th-red-light); border: 1px solid #fecaca; }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.is-header .card-icon { background: var(--th-green); color: white; }
.isnot-header .card-icon { background: var(--th-red); color: white; }
.card-header h3 { font-size: 1.15rem; font-weight: 600; }

.check-list, .cross-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li, .cross-list li {
    padding-left: 24px;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--fg);
}

.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--th-green); font-weight: bold; }
.cross-list li::before { content: "\2717"; position: absolute; left: 0; color: var(--th-red); font-weight: bold; }

/* ==================== USP ==================== */
.usp {
    padding: 60px 0;
    background: var(--fg);
    color: white;
}

.usp .section-title h2 { color: white; }
.usp .section-title p { color: rgba(255,255,255,0.6); }

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.usp-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.2s;
}

.usp-card:hover { transform: translateY(-3px); }
.usp-card.featured { border-color: var(--th-green); background: rgba(16, 185, 129, 0.08); }

.usp-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.usp-card.featured .usp-number { color: rgba(16, 185, 129, 0.3); }
.usp-card h4 { color: white; margin-bottom: 8px; font-size: 1rem; }
.usp-card.featured h4 { color: var(--th-green); }
.usp-card p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 60px 0;
    background: var(--bg);
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arch-layer { display: flex; gap: 12px; justify-content: center; width: 100%; }
.arch-bottom { gap: 10px; }

.arch-box {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 1;
}

.arch-ai { background: #f3e8ff; border: 1px solid #c084fc; max-width: 360px; }
.arch-ai h4 { color: #7c3aed; font-size: 0.9rem; }
.arch-ai p { color: #6b21a8; font-size: 0.8rem; }
.arch-ai .arch-detail { font-size: 0.7rem; color: #9333ea; display: block; margin-top: 6px; }

.arch-talkhub { background: var(--accent); border: 1px solid var(--th-primary-dark); max-width: 440px; color: white; }
.arch-talkhub h4 { color: white; margin-bottom: 10px; font-size: 0.9rem; }

.arch-features { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.arch-features span { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: var(--radius-btn); font-size: 0.7rem; }

.arch-provider { background: #fef3c7; border: 1px solid #fbbf24; }
.arch-provider h4 { color: #92400e; font-size: 0.8rem; }
.arch-provider p { color: #a16207; font-size: 0.7rem; }

.arch-pbx { background: #e0e7ff; border: 1px solid #818cf8; }
.arch-pbx h4 { color: #4338ca; font-size: 0.8rem; }
.arch-pbx p { color: #4f46e5; font-size: 0.7rem; }

.arch-internal { background: var(--th-green-light); border: 1px solid var(--th-green); }
.arch-internal h4 { color: #065f46; font-size: 0.8rem; }
.arch-internal p { color: #047857; font-size: 0.7rem; }

.arch-connector-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
}

.connector-line { width: 2px; height: 12px; background: var(--border); }
.connector-label { font-size: 0.65rem; color: var(--muted); background: var(--card); padding: 2px 10px; border-radius: 8px; border: 1px solid var(--border); white-space: nowrap; }

/* Center row: TalkHub + horizontal connector + CRM/Custom */
.arch-center-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.arch-center-row .arch-talkhub {
    flex: 1;
    max-width: none;
}

.arch-connector-horizontal {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
    flex-shrink: 0;
}

.connector-line-h { height: 2px; width: 16px; background: var(--border); }

.arch-side-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 160px;
}

.arch-crm { background: #fef3c7; border: 1px solid #fbbf24; }
.arch-crm h4 { color: #92400e; font-size: 0.8rem; }
.arch-crm p { color: #a16207; font-size: 0.7rem; }

.arch-custom { background: #f0fdf4; border: 1px solid #86efac; }
.arch-custom h4 { color: #065f46; font-size: 0.8rem; }
.arch-custom p { color: #047857; font-size: 0.7rem; }

/* ==================== USE CASE ==================== */
.use-case {
    padding: 60px 0;
    background: var(--card);
}

.use-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.use-case-text h2 { font-size: 1.75rem; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.02em; }
.use-case-text > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.6; }

.use-case-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }

.use-case-item { display: flex; gap: 12px; align-items: flex-start; }

.use-case-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    border-radius: 10px;
}

.use-case-item strong { display: block; margin-bottom: 2px; font-size: 0.9rem; }
.use-case-item p { font-size: 0.8rem; color: var(--muted); margin: 0; }

.use-case-highlight {
    background: var(--th-green-light);
    border-left: 3px solid var(--th-green);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: #065f46;
    font-size: 0.9rem;
}

.phone-scenario {
    background: var(--bg);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
}

.scenario-step { display: flex; align-items: center; gap: 12px; position: relative; padding-bottom: 20px; }
.scenario-step.last { padding-bottom: 0; }

.step-icon {
    width: 40px; height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-line { position: absolute; left: 19px; top: 40px; width: 2px; height: 20px; background: var(--border); z-index: 1; }
.step-text { font-size: 0.85rem; color: var(--fg); }

/* ==================== PROBLEM ==================== */
.problem {
    padding: 60px 0;
    background: var(--bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.problem-card {
    background: var(--th-red-light);
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.problem-card .icon { font-size: 1.5rem; margin-bottom: 12px; }
.problem-card h4 { margin-bottom: 6px; color: #991b1b; font-size: 0.9rem; }
.problem-card p { font-size: 0.8rem; color: #7f1d1d; }

/* ==================== INTEGRATIONS ==================== */
.integrations {
    padding: 60px 0;
    background: var(--card);
}

.integration-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.integration-table th {
    background: var(--bg);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border);
}

.integration-table td {
    padding: 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.integration-table tr:hover { background: var(--bg); }

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-btn);
    font-size: 0.7rem;
    font-weight: 600;
}

.status-ok { background: #d1fae5; color: #065f46; }
.status-test { background: #fef3c7; color: #92400e; }
.status-wip { background: #dbeafe; color: #1e40af; }
.status-pending { background: #f1f5f9; color: #64748b; }

.legend { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }

/* ==================== MORE INTEGRATIONS ==================== */
.more-integrations {
    padding: 60px 0;
    background: var(--bg);
}

.more-int-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.more-int-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.2s;
}

.more-int-card:hover { transform: translateY(-3px); }
.more-int-icon { font-size: 1.75rem; margin-bottom: 12px; }
.more-int-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--fg); font-weight: 600; }
.more-int-card > p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

.more-int-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.more-int-logos span { background: var(--bg); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; color: var(--fg); }

.more-int-note { text-align: center; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ==================== PARTNER ==================== */
.partner {
    padding: 60px 0;
    background: var(--fg);
    color: white;
}

.partner .section-title h2 { color: white; }
.partner .section-title p { color: rgba(255,255,255,0.6); }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.pricing-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-3px); }

.pricing-card.featured {
    border-color: var(--th-green);
    background: rgba(16, 185, 129, 0.06);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--th-green);
    color: white;
    padding: 3px 16px;
    border-radius: var(--radius-btn);
    font-size: 0.7rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.pricing-header h3 { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: white; line-height: 1; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.4); }
.pricing-card.featured .pricing-price { color: var(--th-green); }
.pricing-sub { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 6px; }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-features li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    padding-left: 22px;
    position: relative;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--th-green);
    font-weight: bold;
}

.pricing-note { text-align: center; margin-bottom: 40px; }
.pricing-note p { font-size: 0.8rem; color: rgba(255,255,255,0.35); max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* Connector Explainer */
.connector-explainer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 40px;
}

.connector-text h3 { color: white; font-size: 1.15rem; margin-bottom: 10px; }
.connector-text p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 6px; }
.connector-hint { font-size: 0.8rem !important; color: rgba(255,255,255,0.35) !important; font-style: italic; }

/* Admin Highlight */
.admin-highlight {
    background: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
}

.admin-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.admin-feat { display: flex; gap: 10px; align-items: flex-start; }
.admin-feat > span { font-size: 1.25rem; flex-shrink: 0; }
.admin-feat strong { color: white; display: block; margin-bottom: 3px; font-size: 0.85rem; }
.admin-feat p { font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.4; margin: 0; }

/* Hosting */
.hosting-section { margin-bottom: 40px; }
.hosting-section h3 { color: white; font-size: 1.25rem; text-align: center; margin-bottom: 6px; }
.hosting-sub { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 24px; }

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.hosting-option {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.hosting-option:hover { transform: translateY(-2px); }
.hosting-icon { font-size: 1.5rem; margin-bottom: 8px; }
.hosting-option strong { display: block; color: white; margin-bottom: 3px; font-size: 0.8rem; }
.hosting-option p { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin: 0; }
.hosting-note { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.3); font-style: italic; }

/* Partner CTA */
.partner-cta {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
}

.partner-cta h3 { font-size: 1.25rem; margin-bottom: 10px; color: white; }
.partner-cta p { color: rgba(255,255,255,0.6); margin-bottom: 20px; font-size: 0.9rem; }

/* Live Config */
.live-config { padding: 60px 0; background: var(--card); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.config-card { background: var(--bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border); }
.config-card h4 { margin-bottom: 12px; font-size: 0.9rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .th-hero-content { grid-template-columns: 1fr; }
    .th-hero h1 { font-size: 2.25rem; }
    .what-is-grid { grid-template-columns: 1fr; }
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .more-int-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .admin-features-list { grid-template-columns: repeat(2, 1fr); }
    .hosting-grid { grid-template-columns: repeat(2, 1fr); }
    .use-case-content { grid-template-columns: 1fr; }
    .arch-center-row { flex-direction: column; }
    .arch-connector-horizontal { flex-direction: column; padding: 6px 0; }
    .connector-line-h { width: 2px; height: 12px; }
    .arch-side-stack { flex-direction: row; min-width: auto; width: 100%; }
    .arch-side-stack .arch-box { flex: 1; }
}

@media (max-width: 640px) {
    .th-hero { padding: 100px 0 40px; }
    .th-hero h1 { font-size: 1.75rem; }
    .usp-grid, .problem-grid { grid-template-columns: 1fr; }
    .admin-features-list { grid-template-columns: 1fr; }
    .arch-bottom { flex-direction: column; }
    .arch-side-stack { flex-direction: column; }
    .flow-diagram { flex-direction: column; }
    .flow-connector { flex-direction: row; }
    .flow-arrow { transform: rotate(90deg); }
    .th-hero-buttons { flex-direction: column; }
    .integration-table { font-size: 0.8rem; }
    .integration-table th, .integration-table td { padding: 8px; }
    .section-title h2 { font-size: 1.5rem; }
    .legend { flex-wrap: wrap; gap: 10px; }
}
