/* ============================================
   ClearSight — The Tool Page Styles
   ============================================ */

/* === Hero === */
.tool-hero {
    padding-top: calc(var(--nav-height) + var(--space-5xl));
    padding-bottom: var(--space-4xl);
    background: var(--bg-page);
    text-align: center;
}

.tool-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.tool-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--warm-100);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--warm-600);
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tool-hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--teal-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.tool-hero__title {
    margin-bottom: var(--space-lg);
}

.tool-hero__title em {
    color: var(--accent);
    font-style: italic;
}

.tool-hero__subtitle {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--text-body);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto;
}

/* === Section Variants === */
.tool-section--alt {
    background: var(--white);
}

.tool-section--dark {
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.tool-section--dark::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* === Sidebar Feature Cards === */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.tool-card {
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

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

.tool-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--teal-400);
}

.tool-card__icon svg {
    width: 24px;
    height: 24px;
}

.tool-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

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

/* === Dashboard Cards === */
.tool-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.tool-dashboard-card {
    padding: var(--space-2xl);
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

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

.tool-dashboard-card__number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--teal-500);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.tool-dashboard-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.tool-dashboard-card p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* === Quiz Cards === */
.tool-quiz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.tool-quiz-card {
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

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

.tool-quiz-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--teal-500);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.tool-quiz-card__badge--coming {
    background: var(--navy-700);
    color: var(--warm-300);
}

.tool-quiz-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.tool-quiz-card__icon svg {
    width: 24px;
    height: 24px;
}

.tool-quiz-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.015em;
}

.tool-quiz-card p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.tool-quiz-card__detail {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.tool-quiz-card__detail span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--warm-500);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.tool-quiz-card__detail span::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--teal-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* === Coming Soon Cards === */
.tool-coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.tool-coming-card {
    padding: var(--space-2xl);
    background: var(--navy-800);
    border: 1px solid var(--navy-700);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.tool-coming-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--navy-600);
}

.tool-coming-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--teal-400);
}

.tool-coming-card__icon svg {
    width: 24px;
    height: 24px;
}

.tool-coming-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.015em;
}

.tool-coming-card p {
    font-size: 0.9375rem;
    color: var(--warm-400);
    line-height: 1.7;
}

/* === CTA Actions === */
.tool-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .tool-coming-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .tool-cards,
    .tool-dashboard-grid,
    .tool-quiz-grid {
        grid-template-columns: 1fr;
    }

    .tool-coming-grid {
        grid-template-columns: 1fr;
    }

    .tool-quiz-card__detail {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .tool-hero__title {
        font-variation-settings: 'SOFT' 100, 'opsz' 9;
    }
}
