/* ============================================================
   TWITTER BIO SCRAPER — REDESIGNED STYLES
   Aesthetic: Modern SaaS / Data-tool — clean, confident, data-forward
   Typography: Plus Jakarta Sans (headings) + Source Sans 3 (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg: #FAFBFC;
    --color-surface: #FFFFFF;
    --color-hero: #0F1923;
    --color-hero-accent: #152736;
    --color-text: #1A2332;
    --color-text-muted: #5A6B7D;
    --color-text-inverse: #F0F4F8;
    --color-primary: #0891B2;
    --color-primary-hover: #0E7490;
    --color-primary-light: #ECFEFF;
    --color-accent: #F59E0B;
    --color-accent-hover: #D97706;
    --color-success: #10B981;
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;
    --color-code-bg: #F1F5F9;
    --color-badge-free: #ECFDF5;
    --color-badge-free-text: #065F46;
    --color-badge-trust: #EFF6FF;
    --color-badge-trust-text: #1E40AF;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);

    --max-width: 1200px;
    --section-pad: 80px;
    --section-pad-sm: 48px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--color-code-bg); padding: 2px 6px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; }

/* ---------- Utility ---------- */
.section-sub {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
}
.btn-secondary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-secondary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
    font-size: 0.85rem;
    padding: 8px 16px;
}
.btn-ghost:hover { background: var(--color-border-light); color: var(--color-text); }
.btn-download {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}
.btn-download:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
    transform: translateY(-1px);
}
.btn-full { width: 100%; }
.btn svg { flex-shrink: 0; }

.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-hero);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 32px; width: auto; }
.main-nav {
    display: flex;
    gap: 32px;
}
.main-nav a {
    color: var(--color-text-inverse);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 1; color: var(--color-text-inverse); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-inverse);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- TOOL NAV ---------- */
.tool-nav {
    background: var(--color-hero-accent);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tool-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
}
.tool-nav-item {
    color: rgba(240,244,248,0.6);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 18px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tool-nav-item:hover { color: var(--color-text-inverse); }
.tool-nav-item.active {
    color: var(--color-text-inverse);
    border-bottom-color: var(--color-primary);
}

/* ---------- HERO ---------- */
.hero {
    background: var(--color-hero);
    padding: 60px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 120%;
    height: 180%;
    background: radial-gradient(ellipse at 30% 20%, rgba(8,145,178,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(245,158,11,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.badge {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}
.badge-free { background: var(--color-badge-free); color: var(--color-badge-free-text); }
.badge-trust { background: var(--color-badge-trust); color: var(--color-badge-trust-text); }

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text-inverse);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.h1-break {
    display: block;
    font-size: 0.55em;
    font-weight: 500;
    color: rgba(240,244,248,0.65);
    margin-top: 8px;
    letter-spacing: 0;
}
.hero-sub {
    color: rgba(240,244,248,0.6);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-ctas .btn-outline {
    color: var(--color-text-inverse);
    border-color: rgba(240,244,248,0.3);
}
.hero-ctas .btn-outline:hover {
    background: rgba(240,244,248,0.1);
    border-color: rgba(240,244,248,0.5);
    color: var(--color-text-inverse);
}

/* ---------- TOOL SECTION ---------- */
.tool-section {
    padding: var(--section-pad) 24px;
    background: var(--color-bg);
}
.tool-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.tool-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.tool-card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}
.tool-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Form styles */
.tool-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}
.form-group input {
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--color-surface);
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.form-group input::placeholder { color: #A0AEC0; }
.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.link-subtle { color: var(--color-primary); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-result {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}
.form-result.success { background: var(--color-badge-free); color: var(--color-badge-free-text); }
.form-result.error { background: #FEF2F2; color: #991B1B; }

/* What You Get panel */
.tool-card--info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.check-icon {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}
.feature-list li div {
    font-size: 0.9rem;
    line-height: 1.5;
}
.feature-list li strong {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

/* Signup section */
.signup-section { border-top: 1px solid var(--color-border); padding-top: 20px; }
.signup-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    padding: 8px 0;
}
.signup-toggle .chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}
.signup-toggle.open .chevron { transform: rotate(180deg); }
.signup-form {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- RESULTS SECTION ---------- */
.results-section {
    padding: var(--section-pad) 24px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.results-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.results-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: auto;
}
.results-subtitle {
    width: 100%;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: -8px;
}
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 0;
}
.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab:hover { color: var(--color-text); }
.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab svg { opacity: 0.7; }
.tab.active svg { opacity: 1; }

.tab-panel { display: none; padding: 24px 0; }
.tab-panel.active { display: block; }

/* Table controls */
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    flex: 1;
    max-width: 360px;
}
.table-search svg { color: var(--color-text-muted); flex-shrink: 0; }
.table-search input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-family: var(--font-body);
    width: 100%;
    outline: none;
}
.table-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.truncate-notice {
    color: var(--color-accent);
    font-weight: 500;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    max-height: 600px;
    overflow-y: auto;
    background: var(--color-surface);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 900px;
}
.data-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}
.data-table th {
    background: var(--color-hero);
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.data-table th:hover { background: var(--color-hero-accent); }
.data-table th .sort-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.4;
}
.data-table th.sorted .sort-arrow { opacity: 1; color: var(--color-accent); }
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-light);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--color-primary-light); }
.data-table td img.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

/* ---------- WORDCLOUD ---------- */
.wordcloud-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    min-height: 400px;
}
.wordcloud-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    min-height: 360px;
}
.wordcloud-area .cloud-word {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
}
.wordcloud-area .cloud-word:hover {
    transform: scale(1.15);
    opacity: 0.85;
    background: rgba(8,145,178,0.1);
}
.wordcloud-sidebar {
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.wordcloud-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}
.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.keyword-item:hover { background: var(--color-primary-light); }
.keyword-item .kw-name { font-weight: 600; }
.keyword-item .kw-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.keyword-item .kw-bar {
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-top: 4px;
    transition: width 0.3s ease;
}

/* ---------- ANALYTICS ---------- */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.chart-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.chart-card-header { margin-bottom: 16px; }
.chart-card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.chart-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.chart-canvas-wrap {
    position: relative;
    height: 220px;
    width: 100%;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}
.filter-pills button {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    transition: all 0.2s;
}
.filter-pills button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.filter-pills button.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- HOW IT WORKS ---------- */
.how-section {
    padding: var(--section-pad) 24px;
    background: var(--color-bg);
}
.how-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.how-inner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.step {
    text-align: left;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.step p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- DATA FIELDS ---------- */
.fields-section {
    padding: var(--section-pad) 24px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.fields-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.fields-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }

.accordion { text-align: left; margin-top: 32px; }
.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    text-align: left;
}
.accordion-trigger:hover { background: var(--color-border-light); }
.accordion-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-content { padding: 0 20px 16px; }

.fields-table { width: 100%; border-collapse: collapse; }
.fields-table tr { border-bottom: 1px solid var(--color-border-light); }
.fields-table tr:last-child { border-bottom: none; }
.fields-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
    vertical-align: top;
}
.fields-table td:first-child {
    width: 220px;
    font-weight: 500;
    white-space: nowrap;
}
.fields-table td:last-child { color: var(--color-text-muted); }

/* ---------- SOCIAL PROOF ---------- */
.proof-section {
    padding: var(--section-pad-sm) 24px;
    background: var(--color-hero);
    text-align: center;
}
.proof-inner { max-width: var(--max-width); margin: 0 auto; }
.proof-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-inverse);
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(240,244,248,0.55);
}
.proof-note {
    color: rgba(240,244,248,0.5);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.proof-logos {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ---------- PRICING ---------- */
.pricing-section {
    padding: var(--section-pad) 24px;
    background: var(--color-bg);
}
.pricing-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.pricing-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.price-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: left;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.price-card--popular {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 16px;
    border-radius: 20px;
}
.price-tier {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.price-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--color-text);
    margin-bottom: 24px;
}
.price-currency { font-size: 1.2rem; vertical-align: super; }
.price-period { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.price-features li {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding-left: 22px;
    position: relative;
}
.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: var(--section-pad) 24px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.faq-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.faq-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 32px; }
.faq-list { text-align: left; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
}
.faq-trigger:hover { color: var(--color-primary); }
.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 0 20px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- RELATED TOOLS ---------- */
.related-section {
    padding: var(--section-pad) 24px;
    background: var(--color-bg);
}
.related-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.related-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.related-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-text);
}
.related-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.related-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-hero);
    padding: 56px 24px 32px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(240,244,248,0.5);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--color-text-inverse);
    font-size: 0.88rem;
    opacity: 0.7;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--color-text-inverse); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(240,244,248,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .tool-section-inner { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
        --section-pad-sm: 40px;
    }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-hero);
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-toggle { display: flex; }

    .hero h1 { font-size: 1.8rem; }
    .h1-break { font-size: 0.6em; }
    .hero-sub { font-size: 1rem; }

    .form-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .wordcloud-container { grid-template-columns: 1fr; }

    .proof-stats { gap: 32px; }
    .stat-num { font-size: 1.6rem; }

    .results-header h2 { font-size: 1.2rem; }
    .tabs { overflow-x: auto; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 280px; }
    .tool-card { padding: 24px 20px; }
    .results-actions { width: 100%; }
    .results-actions .btn { flex: 1; }
}
