/* =============================================
   REALTYPULSE.AI — GLOBAL STYLES
   Typography: Work Sans (body) + Lora (headings)
   Optimized: Feb 2026 — consolidated duplicates,
   removed dead rules, added usability improvements
   ============================================= */

/* ── CSS Custom Properties ── */
:root {
    /* Brand Colors */
    --color-primary:       #2563eb;
    --color-primary-dark:  #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-accent:        #3b82f6;

    /* Neutrals */
    --color-text:          #1e293b;
    --color-text-muted:    #64748b;
    --color-text-light:    #94a3b8;
    --color-border:        #e2e8f0;
    --color-bg:            #ffffff;
    --color-bg-subtle:     #f8fafc;
    --color-bg-dark:       #1e293b;
    --color-bg-darkest:    #0f172a;

    /* Typography */
    --font-heading:  'Lora', Georgia, 'Times New Roman', serif;
    --font-body:     'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs:    0.75rem;
    --text-sm:    0.875rem;
    --text-base:  1.125rem;
    --text-lg:    1.3rem;
    --text-xl:    1.5rem;
    --text-2xl:   1.75rem;
    --text-3xl:   2.1rem;
    --text-4xl:   2.6rem;
    --text-5xl:   3.25rem;
    --text-6xl:   4rem;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radius */
    --radius-sm:  0.25rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Hierarchy ── */
h1, h2 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    line-height: 1.2 !important;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    line-height: 1.3;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600 !important; }
h4 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600 !important; }
h5 { font-size: 1.6rem; font-weight: 600 !important; }
h6 { font-size: 1.3rem; font-weight: 600 !important; }

p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

.lead {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Consolidated: .text-sm, small, caption */
.text-sm, small, caption {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Consolidated: .eyebrow and .section-eyebrow share the same style */
.eyebrow,
.section-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover { color: var(--color-primary-dark); }

/* Usability: visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button#save-agent-btn, .payment-confirmed-banner p {
    color: white ! Important;
}

/* ── Layout Utilities ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section    { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 640px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Usability: min touch target */
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* btn-secondary: white text/border (used on dark backgrounds in CTA/hero) */
.btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff !important;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.btn-white {
    background: white;
    color: var(--color-primary);
    border-color: transparent;
}

.btn-white:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-lg { font-size: var(--text-lg) !important; padding: 1rem 2rem; }
.btn-sm { font-size: var(--text-sm) !important; padding: 0.5rem 1rem; }

/* ── Cards ── */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

/* ── Forms ── */
label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-1);
}

.form-label,
label.form-label {
    margin-bottom: 6px !important;
    display: block !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    /* Usability: min touch target height */
    min-height: 44px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

input::placeholder, textarea::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
}

/* Dark-theme inputs (copy tool) */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="url"],
.dark input[type="number"],
.dark input[type="tel"] {
    min-height: 48px !important;
    padding: 10px 14px !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray   { background: #f1f5f9; color: #475569; }

/* ── Pricing Pills ── */
.pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1.5px solid;
}

.pricing-pill.free { color: #16a34a; border-color: #86efac; background: #f0fdf4; }
.pricing-pill.pro  { color: var(--color-primary); border-color: #93c5fd; background: var(--color-primary-light); }

/* ── Hero Section ── */
.hero {
    position: relative;
    padding: clamp(4rem, 5vw, 7rem) 0 clamp(3rem, 8vw, 3rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
    color: white;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero-title .highlight {
    font-family: var(--font-heading) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: italic;
    color: #60a5fa;
    display: inline !important;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, var(--text-xl));
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    padding-top: 2%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #94a3b8;
}

.trust-item i { color: #10b981; font-size: 0.9rem; }

/* ── Hero stats row ── */
.hero-stats,
.hero-metrics,
.stats-row,
.hero-bottom-stats {
    margin-top: 48px !important;
    padding-top: 24px !important;
}

/* ── Tool Buttons (Homepage) ── */
.tools-section {
    padding: var(--space-24) 0;
    background: var(--color-bg-subtle);
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
    margin-bottom: 48px !important;
}

.tool-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 28px 28px 32px !important;
    gap: 0 !important;
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    cursor: pointer;
}

.tool-button:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(37,99,235,0.12);
    transform: translateY(-3px);
    color: inherit;
}

.tool-button.primary .tool-icon { background: rgba(37,99,235,0.1); color: #2563eb; }
.tool-button.secondary .tool-icon { background: rgba(16,185,129,0.12); color: #059669; }

/* Consolidated .tool-icon — used in both .tool-button and .tool-card */
.tool-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    flex-shrink: 0 !important;
    margin: 0 auto 20px auto !important;
}

.tool-icon.blue  { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--color-primary); }
.tool-icon.green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }

/* Consolidated .tool-content */
.tool-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
}

.tool-content h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.tool-content p {
    font-size: 1rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: center !important;
}

.tool-cta {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.tool-cta i { font-size: 0.75rem; transition: transform 0.2s; }
.tool-button:hover .tool-cta i { transform: translateX(3px); }
.tool-arrow { display: none !important; }

/* ── Tool Card (alternate card style) ── */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Features Section ── */
.features {
    padding: 4rem 0 3rem;
    background: white;
}

.features-section { padding-bottom: 3rem !important; }

.features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-12) var(--space-8);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-8);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
}

.feature-card:last-child { margin-bottom: 0 !important; }
.feature-card:nth-child(even) { direction: rtl; }
.feature-card:nth-child(even) > * { direction: ltr; }

/* Consolidated: .feature-visual and .feature-image share the same style */
.feature-visual,
.feature-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-visual img,
.feature-image img { width: 100%; height: auto; display: block; }

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: var(--space-4);
}

/* Consolidated: .feature-title and .feature-content h3 */
.feature-title,
.feature-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

/* Consolidated: .feature-description and .feature-content p */
.feature-description,
.feature-content p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-8);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: #475569;
    margin-bottom: var(--space-3);
}

.feature-list li i { color: #10b981; font-size: 0.85rem; flex-shrink: 0; }

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.2s ease;
    min-height: 44px;
}

.feature-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

/* ── About / Excellence Section ── */
.about,
.about-section,
section.about-section {
    padding: 3.5rem 0;
    background: white;
    text-align: center;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-12);
    line-height: 1.75;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.stat-item {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.03em;
}

/* Consolidated: .stat-item p and .about-stats .stat-item p */
.stat-item p {
    font-family: var(--font-body);
    font-size: 1.1rem !important;
    color: #374151;
    font-weight: 500;
    line-height: 1.5 !important;
    margin: 0;
}

/* ── Contact / CTA Section ── */
.contact {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #0f172a, #1e3a5f, #1e293b);
    color: white;
    text-align: center;
}

.contact .section-title { color: white; margin-bottom: var(--space-6); }

.contact-text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: #cbd5e1;
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Market Pulse Cards ── */
.market-pulse .card h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-family: var(--font-body) !important;
}

.market-pulse .card .metric p {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.market-pulse .card .source a,
.market-pulse .card .source span {
    font-size: 13px !important;
}

/* Market Insights: all card/analysis text 18px */
.market-pulse-card,
.market-pulse-card p,
.market-pulse-card span,
.market-pulse-card h3,
.market-pulse-card h4,
.pulse-label,
.pulse-value,
.ai-insight-card,
.ai-insight-card p,
.ai-insight-card h3,
.insight-card,
.insight-card p,
.insight-card h3,
.market-analysis,
.market-analysis p,
.market-analysis h3,
.analysis-text,
.analysis-content p {
    font-size: 18px !important;
    font-family: var(--font-body) !important;
}

/* ── Copy Tool: Action Buttons ── */
.regenerate-button,
.copy-button {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.regenerate-button span,
.copy-button span {
    color: #ffffff !important;
}

/* Usability: min touch target on action buttons */
.regenerate-button,
.copy-button,
button[class*="action-button"] {
    min-height: 36px;
    min-width: 60px;
}

/* Copy tool: specific Tailwind button overrides */
button.regenerate-button.action-button.bg-purple-600.hover\:bg-purple-700.text-white.text-sm.py-1.px-3.rounded-md,
button.regenerate-button.action-button.bg-teal-600.hover\:bg-teal-700.text-white.text-sm.py-1.px-3.rounded-md,
button#reset-agent-btn,
button#reset-property-btn {
    color: white !important;
}

/* Copy tool: "Powered by Gemini" subtitle spacing */
p.text-blue-400.text-sm.font-medium.mt-1.text-center {
    padding-top: 1% !important;
}

/* Copy tool: section header size */
h4.text-md.font-medium.text-gray-300 {
    font-size: 18px;
}

/* Copy tool: output boxes */
.output-box,
.small-output-box,
.large-output-box,
.youtube-desc-box,
.blog-body-box {
    color: #ffffff !important;
    font-size: 18px !important;
    font-family: var(--font-body) !important;
    line-height: 1.6 !important;
}

/* Copy tool: Tailwind h4/h3 labels (Video Title, Caption, etc.) */
h4.text-md,
h4.text-sm,
h4.font-medium,
h3.text-md,
h3.text-sm,
h3.font-medium {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* Copy tool: platform section headers (Reels/Shorts/TikTok, etc.) */
h3.text-lg,
h3.text-xl,
.platform-name,
.section-name,
.platform-header,
.section-header,
.platform-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Copy tool: output section labels */
.output-section h3,
.output-section h4,
.output-label,
.field-label,
.copy-section h3,
.copy-section h4,
.platform-section h3,
.platform-section h4,
.content-section h3,
.content-section h4,
.tab-content h3,
.tab-content h4 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: var(--font-body) !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

/* ── Modal hover: keep text white ── */
.modal .btn:hover,
.modal button:hover,
.article-modal .btn:hover,
.modal-footer .btn:hover,
.modal .close-btn:hover,
[class*="modal"] button:hover,
[class*="modal"] a:hover {
    color: #ffffff !important;
}

/* ── Global font override (beats Tailwind/Inter) ── */
body, p, li, span, td, th, label, input, textarea, select, button {
    font-family: var(--font-body) !important;
    font-size: 18px;
    line-height: 1.4;
}

/* Nav links */
.nav-link, nav a { font-size: 1.05rem !important; }

/* Buttons */
.btn, button.btn, input[type="submit"], input[type="button"] { font-size: 1rem !important; }

/* Source body line-height */
.source-body p, .source-content p, .source-description p, .data-source-body p {
    line-height: 1.65;
}

/* ── Footer ── */
.footer-brand,
.realtypulse-footer .footer-brand,
.footer-logo-text,
.realtypulse-footer .brand-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.footer-copyright,
.footer-copyright p,
.footer-copyright a,
.footer-bottom .copyright {
    font-size: 0.8rem !important;
}

.footer-bottom .powered-by,
.footer-bottom a.powered-by,
.footer-bottom .support-link,
.footer-bottom a.support-link,
.footer-copyright .powered-by,
.footer-copyright a,
.footer-bottom-links a,
.footer-bottom a[href*="gemini"],
.footer-bottom a[href*="support"] {
    font-size: 13px !important;
    padding: 6px 12px !important;
}

/* ── Data Sources Page ── */
.source-link,
.source-body a.source-link,
a.source-link {
    font-family: var(--font-body) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-top: 1.5rem !important;
    display: inline-block !important;
    letter-spacing: normal !important;
}

.source-body p {
    line-height: 1.65 !important;
    margin-bottom: 0.75rem !important;
    font-size: 18px !important;
    color: #444 !important;
}

/* ── Support Page ── */
.faq-item,
.support-faq .faq-item {
    margin-bottom: 2rem !important;
}

.faq-question,
.support-faq h3,
.support-faq h4 {
    margin-top: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.faq-answer,
.support-faq p,
.support-content p {
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

.support-card {
    border-left: 5px solid #3949ab !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tool-buttons {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title    { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions  { flex-direction: column; align-items: center; }
    .trust-indicators { gap: var(--space-4); }

    .feature-card {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
        gap: var(--space-8);
        padding: var(--space-8) var(--space-6);
    }
    .feature-card:nth-child(even) { direction: ltr; }

    .about-stats { grid-template-columns: 1fr; gap: var(--space-4); }
    .contact-buttons { flex-direction: column; align-items: center; }

    /* Footer: center all content on mobile */
    .realtypulse-footer,
    .realtypulse-footer .footer-grid,
    .realtypulse-footer .footer-col,
    .realtypulse-footer p,
    .realtypulse-footer a,
    .realtypulse-footer li,
    .realtypulse-footer ul,
    .realtypulse-footer h3,
    .realtypulse-footer h4,
    .footer-bottom,
    .footer-copyright,
    .footer-tagline {
        text-align: center !important;
    }

    .realtypulse-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .realtypulse-footer ul {
        padding-left: 0 !important;
        list-style: none !important;
    }

    .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .hero-title    { font-size: 1.875rem; }
    .section-title { font-size: 1.75rem; }
    .tool-button   { flex-direction: column; }
    .tool-icon     { margin-bottom: var(--space-2); }
}

/* Usability: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
