/* ================================
   testautoconocimiento.com — Design System v4
   Dual Theme: Light (pastel green / white / violet)
                Dark  (black / grey / imperial yellow)
   ================================ */

/* ================================
   CSS Custom Properties — Dark (default)
   ================================ */
:root,
[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --bg-secondary: #111111;
    --card-bg: #1c1c1c;
    --card-bg-hover: #242424;

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #787878;
    --text-on-accent: #0a0a0a;

    --accent-primary: #d4a017;
    /* Imperial Yellow */
    --accent-secondary: #e8b84b;
    --accent-glow: rgba(212, 160, 23, 0.25);
    --accent-subtle: rgba(212, 160, 23, 0.12);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(212, 160, 23, 0.35);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(212, 160, 23, 0.2);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.7);

    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 160, 23, 0.18) 0%, transparent 70%);
    --gradient-accent: linear-gradient(135deg, #d4a017 0%, #e8b84b 100%);
    --gradient-card: linear-gradient(160deg, rgba(40, 40, 40, 0.6) 0%, rgba(20, 20, 20, 0.6) 100%);
    --gradient-text: linear-gradient(135deg, #f0f0f0 0%, #a0a0a0 100%);

    --nav-bg: rgba(10, 10, 10, 0.85);
    --check-color: #4ade80;
    --cross-color: #606060;
}

/* ================================
   Light Theme
   ================================ */
[data-theme="light"] {
    --bg-main: #e8f5e9;
    --bg-secondary: #d4edda;
    --card-bg: #ffffff;
    --card-bg-hover: #f8fffe;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-tertiary: #8a8aaa;
    --text-on-accent: #ffffff;

    --accent-primary: #7c3aed;
    /* Violet */
    --accent-secondary: #9d5cf5;
    --accent-glow: rgba(124, 58, 237, 0.2);
    --accent-subtle: rgba(124, 58, 237, 0.08);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(124, 58, 237, 0.3);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.15);

    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #9d5cf5 100%);
    --gradient-card: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 255, 254, 0.9) 100%);
    --gradient-text: linear-gradient(135deg, #1a1a2e 0%, #4a4a6a 100%);

    --nav-bg: rgba(232, 245, 233, 0.88);
    --check-color: #16a34a;
    --cross-color: #c0c0d0;
}

/* ================================
   Global Transition for Theme Switch
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Theme transition only applies during active theme switch (toggled by JS) */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ================================
   Base
   ================================ */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--accent-primary, #6d28d9);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus {
    top: 1rem;
}

/* ── Screen Reader Only (Accessibility) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Focus Visible (Accessibility) ── */
:focus-visible {
    outline: 2px solid var(--accent-primary, #6d28d9);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ================================
   Typography
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

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

.section {
    padding: 7rem 0;
    position: relative;
}

.section+.section {
    border-top: 1px solid var(--border-color);
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.nav-logo span {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.05);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
}

.btn-ghost {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    background: var(--card-bg-hover);
}

/* ================================
   Cards
   ================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
}

/* Decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -150px;
    left: -100px;
    opacity: 0.08;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -80px;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 4rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-highlight);
    border-radius: 9999px;
    color: var(--accent-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease-out 0.1s both;
}

.hero h1 .accent {
    color: var(--accent-primary);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    animation: fadeUp 0.7s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeUp 0.7s ease-out 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease-out 0.4s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.04em;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    align-self: center;
}

/* ================================
   Trust Bar
   ================================ */
.trust-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item .trust-icon {
    font-size: 1.2rem;
}

/* ================================
   Block Cards (8 Pillars)
   ================================ */
.blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.block-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.block-card::before {
    content: attr(data-letter);
    position: absolute;
    bottom: -12px;
    right: -4px;
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent-primary);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.block-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-highlight);
}

.block-card:hover::before {
    opacity: 0.12;
    transform: scale(1.05) rotate(-3deg);
}

.block-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.block-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-subtle);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    flex-shrink: 0;
}

.block-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.block-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.block-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.block-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Featured block (larger) */
.block-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 2.25rem;
}

.block-card.featured h3 {
    font-size: 1.4rem;
}

.block-card.featured p {
    font-size: 0.95rem;
}

.block-card.wide {
    grid-column: span 2;
}

/* ================================
   How It Works
   ================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 1rem);
    right: calc(16.66% + 1rem);
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.3;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--text-on-accent);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ================================
   Comparison Table
   ================================ */
.comparison-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
    background: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding: 1.5rem;
}

.comparison-table thead th.col-pro {
    color: var(--accent-primary);
    position: relative;
}

.comparison-table thead th.col-pro::after {
    content: 'RECOMENDADO';
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    margin-top: 0.2rem;
    font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 2rem;
    width: 40%;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table thead th:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.comparison-table tbody tr:hover td {
    background: var(--accent-subtle);
}

.check-icon {
    color: var(--check-color);
    font-size: 1.1rem;
}

.cross-icon {
    color: var(--cross-color);
    opacity: 0.6;
    font-size: 1.1rem;
}

/* ================================
   Pricing
   ================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-glow);
    background: var(--card-bg);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px var(--accent-primary), var(--shadow-glow), var(--shadow-hover);
}

.pricing-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-highlight);
    border-radius: 9999px;
    color: var(--accent-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-card .plan-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price sup {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
    letter-spacing: 0;
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.features-list {
    flex-grow: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-list li .fi {
    color: var(--check-color);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ================================
   Testimonials
   ================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-stars {
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-on-accent);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.775rem;
    color: var(--text-tertiary);
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    text-align: center;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* ================================
   Footer
   ================================ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.footer-logo span {
    color: var(--accent-primary);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.lang-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.lang-link:hover {
    color: var(--accent-primary);
}

.lang-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.lang-divider {
    opacity: 0.3;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Dark Mode Toggle (hidden checkbox — legacy compat)
   ================================ */
.dark-mode-toggle {
    display: none;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
    .blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .block-card.featured {
        grid-column: span 2;
    }

    .block-card.wide {
        grid-column: span 2;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card.featured {
        grid-column: span 2;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

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

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .blocks-grid {
        grid-template-columns: 1fr;
    }

    .block-card.featured,
    .block-card.wide {
        grid-column: span 1;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        grid-column: span 1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .comparison-wrapper {
        overflow-x: visible;
    }

    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
        display: block;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        overflow: hidden;
        background: var(--card-bg);
    }

    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .75rem 1.25rem;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
        width: auto;
        font-size: .875rem;
    }

    .comparison-table td:first-child {
        background: var(--bg-secondary);
        font-weight: 600;
        text-align: left;
        padding-left: 1.25rem;
    }

    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: var(--text-secondary);
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .comparison-table td:first-child::before {
        content: none;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .trust-bar-inner {
        gap: 1.5rem;
    }

    .nav-logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ================================
   FAQ Accordion
   ================================ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color .25s;
}

.faq-item[open] {
    border-color: var(--border-highlight);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    gap: 1rem;
    transition: color .2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: transform .3s;
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-item[open] .faq-question {
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}