/* ==========================================================================
   OUTREACH ALMANAC - Editorial Authority Design System
   ========================================================================== */

:root {
    /* Deep, sophisticated palette */
    --ink: #1a1a2e;
    --ink-soft: #2d2d44;
    --ink-muted: #4a4a5c;
    --text: #3d3d4e;
    --text-secondary: #6b6b7a;
    --surface: #f8fafb;
    --surface-warm: #f0f4f5;
    --surface-elevated: #ffffff;
    --border: #dce4e6;
    --border-subtle: #e8eeef;

    /* Authority accent: rich teal/emerald */
    --accent: #0d7377;
    --accent-hover: #095c5f;
    --accent-light: #14a3a8;
    --accent-surface: rgba(13, 115, 119, 0.08);
    --accent-surface-strong: rgba(13, 115, 119, 0.15);

    /* Emerald for secondary highlights */
    --emerald: #047857;
    --emerald-light: #059669;

    /* Success/verified */
    --verified: #047857;
    --verified-bg: rgba(4, 120, 87, 0.1);

    /* Shadows - refined, editorial */
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.06), 0 1px 3px rgba(26, 26, 46, 0.04);
    --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.08), 0 4px 8px rgba(26, 26, 46, 0.04);
    --shadow-xl: 0 24px 48px rgba(26, 26, 46, 0.1), 0 8px 16px rgba(26, 26, 46, 0.06);

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--surface);
    line-height: 1.65;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Editorial serif headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    font-optical-sizing: auto;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; margin-bottom: var(--space-xl); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin: var(--space-md) 0;
}

a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(13, 115, 119, 0.3);
    text-underline-offset: 3px;
}

/* Prevent underlines on navigational/button elements */
.logo:hover,
.nav-links a:hover,
.cta-button:hover,
.cta-primary:hover,
.cta-secondary:hover,
.cta-button-large:hover,
.tool-link:hover,
.category-card:hover,
.category-card h3 a:hover,
.badge:hover,
.pill:hover,
.tag-item:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ==========================================================================
   NAVIGATION - Refined editorial header
   ========================================================================== */

.navbar {
    background: var(--ink);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
}

.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--surface);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid var(--accent);
}

.cta-button::after {
    display: none;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION - Confident, editorial presence
   ========================================================================== */

.hero {
    background: var(--ink);
    color: var(--surface);
    padding: 7rem 0 5rem;
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(13, 115, 119, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(4, 120, 87, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Grain texture for editorial feel */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3.25rem;
    margin-bottom: var(--space-lg);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
    text-align: center;
    padding: var(--space-sm) 0;
}

.stat-number {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--accent-light);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-description {
    font-size: 1.0625rem;
    margin: var(--space-xl) auto var(--space-2xl);
    opacity: 0.8;
    max-width: 640px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(13, 115, 119, 0.3);
}

.cta-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 115, 119, 0.4);
}

.cta-secondary {
    display: inline-block;
    background: transparent;
    color: var(--surface);
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   SECTIONS - Confident spacing and structure
   ========================================================================== */

section {
    padding: var(--space-4xl) 0;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-2xl);
    text-align: center;
    color: var(--ink);
}

h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
    color: var(--ink);
}

.section-lead {
    max-width: 600px;
    margin: calc(var(--space-xl) * -1) auto var(--space-2xl);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ==========================================================================
   TOOL CARDS - Refined, editorial presentation
   ========================================================================== */

.tool-section {
    background: var(--surface);
}

.tool-section.alt {
    background: var(--surface-warm);
}

.tool-directory {
    background: var(--surface);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.tool-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--emerald) 100%);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-subtle);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.compact {
    padding: var(--space-lg);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.tool-card-header img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--surface-warm);
    padding: 6px;
    border: 1px solid var(--border-subtle);
}

.tool-card h2,
.tool-card h3 {
    margin-bottom: var(--space-xs);
    text-align: left;
}

.tool-card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.tool-card h2 a,
.tool-card h3 a {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-card:hover h2 a,
.tool-card:hover h3 a {
    color: var(--accent);
}

.tool-card p {
    margin: 0;
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.tool-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    background: var(--surface-warm);
    color: var(--text);
    font-size: 0.8125rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.badge:hover {
    background: var(--accent-surface);
    border-color: rgba(13, 115, 119, 0.2);
    color: var(--accent-hover);
}

.badge.verified {
    background: var(--verified-bg);
    color: var(--verified);
    border-color: transparent;
}

.tool-rating {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.rating-score {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.rating-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9375rem;
}

.tool-pricing {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    color: var(--ink);
    font-weight: 600;
}

.tool-pricing .pricing-model {
    display: inline-block;
    background: var(--surface-warm);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: auto;
    align-self: flex-start;
}

.tool-link::after {
    content: '\2192';
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.tool-link:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tool-link:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   CATEGORY SECTION
   ========================================================================== */

.category-section {
    background: var(--surface-warm);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--space-lg);
    min-height: 100px;
    background: var(--surface-elevated);
    border-radius: 6px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.category-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.category-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: var(--ink);
    color: var(--surface);
    text-align: center;
    padding: var(--space-4xl) 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(13, 115, 119, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.85;
    position: relative;
}

.cta-button-large {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(13, 115, 119, 0.3);
}

.cta-button-large:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact {
    background: var(--surface-warm);
}

.contact-form-container {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form {
    max-width: 720px;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--surface-elevated);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--surface-elevated);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-group select {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a5c' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
}

.form-intro {
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.form-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-lg);
}

.form-section h4 {
    margin-bottom: var(--space-md);
    color: var(--ink);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.checkbox-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: var(--space-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--text);
}

.checkbox-label input {
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.submit-button {
    background: var(--ink);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    font-family: inherit;
}

.submit-button:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.contact-alternative {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    text-align: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-4xl);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */

.page-content {
    padding: 7rem 0 var(--space-3xl);
    min-height: calc(100vh - 200px);
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--ink);
}

.page-content article {
    max-width: 720px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--surface-warm);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.contact-info h3 {
    color: var(--ink);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   TAXONOMY PAGES
   ========================================================================== */

.categories-list .grid,
.tags-cloud {
    margin-top: var(--space-xl);
}

.categories-list .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--surface-elevated);
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.tag-item:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
}

.tag-item .count {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.category-articles,
.tag-articles {
    padding: var(--space-2xl) 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 720px;
    margin: 0 auto;
}

.article-card {
    background: var(--surface-elevated);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

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

.article-card h2 {
    margin: 0 0 var(--space-md) 0;
    font-size: 1.5rem;
    text-align: left;
}

.article-card h2 a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-card .meta {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   HERO VARIANTS
   ========================================================================== */

.hero.compact {
    padding: 6rem 0 var(--space-2xl);
}

.hero.compact .hero-subtitle {
    margin-bottom: var(--space-lg);
}

.filter-pills {
    margin-top: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   TOOL DETAIL PAGE
   ========================================================================== */

.tool-page section {
    padding: var(--space-3xl) 0;
}

.tool-hero {
    background: var(--ink);
    color: var(--surface);
    margin-top: 56px;
    padding: 6rem 0 var(--space-3xl);
    position: relative;
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(13, 115, 119, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.tool-hero h1 {
    color: #fff;
    margin: 0 0 var(--space-sm);
}

.tool-hero .tool-meta {
    color: rgba(255, 255, 255, 0.7);
}

.tool-hero .tool-badges {
    margin: var(--space-lg) 0 var(--space-xl);
}

.tool-hero .badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tool-hero .badge:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tool-content h2 {
    font-size: 1.75rem;
    margin: var(--space-2xl) 0 var(--space-md);
    text-align: left;
    color: var(--ink);
}

.tool-content h2:first-child {
    margin-top: 0;
}

.tool-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
}

.tool-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.tool-hero-meta img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-summary {
    font-size: 1.0625rem;
    opacity: 0.9;
    line-height: 1.6;
}

.tool-quick-facts {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-quick-facts h2 {
    color: #fff;
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.tool-quick-facts ul {
    list-style: none;
    display: grid;
    gap: var(--space-md);
}

.tool-quick-facts li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    font-size: 0.9375rem;
    opacity: 0.9;
}

.tool-quick-facts span {
    color: rgba(255, 255, 255, 0.7);
}

.tool-quick-facts strong {
    color: #fff;
    font-weight: 600;
}

.tool-body {
    background: var(--surface);
}

.tool-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.tool-content article h2,
.tool-content article h3 {
    text-align: left;
}

.tool-content article ul:not(.pros-cons) {
    margin: var(--space-md) 0 var(--space-xl) 1.25rem;
    list-style: disc;
}

.tool-content article li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.pros-cons {
    list-style: none;
    padding-left: 0;
}

.pros-cons li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--verified);
    font-weight: 700;
}

.cons li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: #b91c1c;
    font-weight: 700;
}

.tool-sidebar {
    display: grid;
    gap: var(--space-lg);
}

.sidebar-card {
    background: var(--surface-elevated);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    text-align: left;
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.sidebar-card ul {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
    padding-left: 0;
}

.sidebar-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-card .cta-secondary,
.sidebar-card .cta-secondary:hover {
    color: #fff;
    text-decoration: none;
}

.sidebar-card a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span[aria-hidden] {
    opacity: 0.4;
}

.breadcrumbs span[aria-current] {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */

.why-us ul {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
}

.why-us li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.why-us li:last-child {
    border-bottom: none;
}

.why-us strong {
    color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
    .tool-hero-grid,
    .tool-content {
        grid-template-columns: 1fr;
    }

    .tool-quick-facts {
        order: 2;
    }

    .tool-hero-content {
        order: 1;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .page-content {
        padding: 5rem 0 var(--space-xl);
    }

    .tool-card {
        padding: var(--space-lg);
    }

    .tool-hero {
        padding: 5rem 0 var(--space-xl);
    }

    .tool-hero-meta {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .tool-hero-meta img {
        margin: 0 auto;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .pill {
        width: 100%;
        justify-content: center;
    }

    .tool-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .tool-link {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 var(--space-md);
    }
}

/* ==========================================================================
   ANIMATIONS - Subtle entrance animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.hero-stats {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-description {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ==========================================================================
   AFFILIATE DISCLOSURE
   ========================================================================== */

.affiliate-disclosure {
    background: var(--accent-surface);
    border: 1px solid rgba(13, 115, 119, 0.2);
    border-radius: 6px;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    font-size: 0.875rem;
    color: var(--text);
}

.affiliate-disclosure p {
    margin: 0;
    line-height: 1.5;
}

.affiliate-disclosure strong {
    color: var(--accent);
}

/* ==========================================================================
   COMPARISON PAGES
   ========================================================================== */

.compare-page,
.best-page,
.alternatives-page {
    background: var(--surface);
}

.compare-hero,
.best-hero,
.alternatives-hero {
    background: var(--ink);
    color: var(--surface);
    margin-top: 56px;
    padding: 6rem 0 var(--space-2xl);
    position: relative;
}

.compare-hero::before,
.best-hero::before,
.alternatives-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(13, 115, 119, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.compare-hero h1,
.best-hero h1,
.alternatives-hero h1 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.compare-subtitle,
.best-subtitle,
.alternatives-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 700px;
}

.compare-hero .affiliate-disclosure,
.best-hero .affiliate-disclosure,
.alternatives-hero .affiliate-disclosure {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
}

.compare-hero .affiliate-disclosure strong,
.best-hero .affiliate-disclosure strong,
.alternatives-hero .affiliate-disclosure strong {
    color: var(--accent-light);
}

.compare-body,
.best-body,
.alternatives-body {
    padding: var(--space-3xl) 0;
}

/* Verdict Grid */
.compare-verdict {
    margin-bottom: var(--space-3xl);
}

.compare-verdict h2 {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.verdict-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.verdict-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.verdict-card img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--surface-warm);
    padding: 8px;
    margin-bottom: var(--space-md);
}

.verdict-card h3 {
    margin-bottom: var(--space-sm);
}

.verdict-rating {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.verdict-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.verdict-vs {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-muted);
}

/* Comparison Table */
.compare-table-wrapper {
    margin-bottom: var(--space-3xl);
}

.compare-table-wrapper h2 {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-elevated);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.compare-table th:first-child {
    width: 30%;
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--ink);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover {
    background: var(--surface-warm);
}

/* Pros/Cons Comparison */
.compare-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.pros-cons-column {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
}

.pros-cons-column h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.pros-cons-column h3 {
    font-size: 1rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

.pros-cons-column .cta-secondary {
    margin-top: var(--space-lg);
    display: inline-block;
}

/* Features Grid */
.compare-features {
    margin-bottom: var(--space-3xl);
}

.compare-features h2 {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.features-column {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
}

.features-column h3 {
    margin-bottom: var(--space-md);
}

.features-column ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.features-column li {
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

/* Compare CTA */
.compare-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--surface-warm);
    border-radius: 8px;
    margin-bottom: var(--space-3xl);
}

.compare-cta h2 {
    margin-bottom: var(--space-lg);
}

.cta-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Related Comparisons */
.related-comparisons {
    background: var(--surface-warm);
    padding: var(--space-3xl) 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    text-decoration: none;
    transition: all 0.25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.related-card h3 {
    color: var(--ink);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   LISTICLE / BEST PAGES
   ========================================================================== */

.best-content,
.alternatives-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.best-main,
.alternatives-main {
    min-width: 0;
}

.best-sidebar,
.alternatives-sidebar {
    display: grid;
    gap: var(--space-lg);
    position: sticky;
    top: calc(56px + var(--space-xl));
}

/* TOC Card */
.toc-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.toc-card h2 {
    text-align: left;
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.toc-card ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.toc-card li {
    margin-bottom: var(--space-sm);
}

.toc-card a {
    color: var(--accent);
    text-decoration: none;
}

.toc-card a:hover {
    text-decoration: underline;
}

/* Listicle Items */
.listicle-item,
.alternative-item {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.listicle-header,
.alternative-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.listicle-rank,
.alternative-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.listicle-title,
.alternative-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.listicle-title img,
.alternative-title img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface-warm);
    padding: 6px;
    border: 1px solid var(--border-subtle);
}

.listicle-title h2,
.alternative-title h3 {
    margin: 0;
    text-align: left;
}

.listicle-title h2 {
    font-size: 1.375rem;
}

.alternative-title h3 {
    font-size: 1.25rem;
}

.listicle-title h2 a,
.alternative-title h3 a {
    color: var(--ink);
    text-decoration: none;
}

.listicle-title h2 a:hover,
.alternative-title h3 a:hover {
    color: var(--accent);
}

.listicle-meta,
.alternative-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.higher-rated {
    display: inline-block;
    background: var(--verified-bg);
    color: var(--verified);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--space-sm);
}

.listicle-description,
.alternative-description {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.listicle-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--surface-warm);
    border-radius: 6px;
}

.listicle-details h3 {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.listicle-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
}

.listicle-details li {
    margin-bottom: var(--space-xs);
}

.listicle-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.listicle-pros-cons h3 {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.listicle-cta,
.alternative-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Alternative Comparison */
.alternative-comparison {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-warm);
    border-radius: 6px;
    margin-bottom: var(--space-lg);
}

.comparison-item h4 {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-item p {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.alternative-pros h4 {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

/* Base Tool Card */
.base-tool-card {
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.base-tool-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.base-tool-header img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface-elevated);
    padding: 6px;
}

.base-tool-header h2 {
    text-align: left;
    margin: 0;
    font-size: 1.375rem;
}

.base-tool-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.why-alternatives {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.why-alternatives h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.base-tool-cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.alternatives-heading {
    text-align: left;
    margin-bottom: var(--space-xl);
}

/* Mini Compare Table */
.mini-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mini-compare th,
.mini-compare td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.mini-compare th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-compare .base-row {
    background: var(--surface-warm);
    font-weight: 600;
}

.mini-compare a {
    color: var(--accent);
    text-decoration: none;
}

.mini-compare a:hover {
    text-decoration: underline;
}

/* Responsive for programmatic pages */
@media (max-width: 992px) {
    .verdict-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .verdict-vs {
        display: none;
    }

    .compare-pros-cons,
    .features-grid,
    .listicle-pros-cons {
        grid-template-columns: 1fr;
    }

    .best-content,
    .alternatives-content {
        grid-template-columns: 1fr;
    }

    .best-sidebar,
    .alternatives-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .listicle-header,
    .alternative-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .listicle-rank,
    .alternative-rank {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .listicle-details {
        grid-template-columns: 1fr;
    }

    .alternative-comparison {
        flex-direction: column;
        gap: var(--space-md);
    }
}
