/* ============================================================
   plagiarism-checker.css
   Scoped styles for /plagiarism-checker.php
   Does NOT override global.css
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.pc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #6366f1 100%);
    padding: 72px 0 80px;
    text-align: center;
    color: #fff;
}

@media (max-width: 600px) {
    .pc-hero {
        padding: 48px 0 !important;
    }
}

.pc-hero__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.pc-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

.pc-orb--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #ff8a65, transparent 70%);
    top: -120px;
    left: -80px;
}

.pc-orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f472b6, transparent 70%);
    bottom: -100px;
    right: -60px;
    animation-delay: -4s;
}

@keyframes orbFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -20px) scale(1.06);
    }
}

.pc-hero__inner {
    position: relative;
    z-index: 1;
}

.pc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-5);
}

.pc-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: var(--weight-black);
    color: #fff;
    line-height: 1.1;
    margin-bottom: var(--space-5);
}

.pc-hero__title .highlight {
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pc-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto var(--space-6);
    line-height: 1.65;
}

/* Usage badge */
.pc-usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 7px 18px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.92);
    font-weight: var(--weight-medium);
}

.pc-usage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fcd34d;
    display: inline-block;
    animation: pulse 1.8s ease-in-out infinite;
}

.pc-usage-dot--green {
    background: #34d399;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

/* ── Tool Card ──────────────────────────────────────────────── */
.pc-tool {
    padding: 60px 0 48px;
    background: var(--color-bg);
}

.pc-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Split Layout */
.pc-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.pc-split-left {
    padding: 24px;
    border-right: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

.pc-split-right {
    padding: 24px;
    background: #fafbfc;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.pc-placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px;
}

/* Vertical / Stacked Layout Override (Desktop & Dashboard) */
.pc-layout-stacked {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
}

.pc-layout-stacked .pc-split-left {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border-light) !important;
    padding: 32px !important;
}

.pc-layout-stacked .pc-split-right {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
    min-height: 400px !important;
    padding: 32px !important;
}

.pc-placeholder-state > svg {
    margin-bottom: 16px;
    stroke: var(--color-border);
}

@media (max-width: 900px) {
    .pc-split-layout {
        grid-template-columns: 1fr;
    }
    .pc-split-left {
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
    }
    .pc-split-right {
        padding: 16px;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    .pc-hero__title {
        font-size: 2rem;
    }
}

.pc-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.pc-clear-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444 !important;
}

/* Editor area */
.pc-editor-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    box-shadow: none;
    margin-bottom: 0;
}

.pc-textarea {
    flex-grow: 1;
    width: 100%;
    border: none;
    resize: none;
    padding: 24px 24px 80px 24px;
    font-size: 16px;
    color: var(--color-text-primary, #1e293b);
    background: transparent;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    height: 100%;
    min-height: 400px;
}

.pc-textarea::placeholder {
    color: var(--color-text-muted, #94a3b8);
}

.pc-editor-actions {
    margin-top: 12px;
    margin-left: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 10;
}

.pc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--color-primary, #0ea5e9);
    border-radius: 20px;
    background: #ffffff;
    color: var(--color-primary, #0ea5e9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pc-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pc-action-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .pc-editor-actions {
        position: relative;
        top: 0;
        left: 0;
        margin: 16px 24px 0 24px;
        z-index: 10;
    }
    
    .pc-textarea {
        padding-top: 16px !important;
        min-height: 300px;
    }

    .pc-hero {
        padding: 40px 0;
    }
}

.pc-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid var(--color-border-light, #e2e8f0);
}

.pc-word-count {
    color: #64748b;
    font-size: 14px;
}

.pc-humanize-btn {
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-primary, #0ea5e9) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 10px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
    line-height: 1;
    width: auto !important;
    min-width: 120px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
}

.pc-humanize-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.pc-humanize-btn:active {
    transform: scale(0.98);
}

.pc-btn-loading[hidden] {
    display: none !important;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Error / alerts ────────────────────────────────────────── */
.pc-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    color: #dc2626;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-5);
}

/* ── Signup CTA ────────────────────────────────────────────── */
.pc-signup-cta {
    text-align: center;
    padding: 40px var(--space-6);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed #7dd3fc;
    margin-top: var(--space-6);
}

.pc-signup-cta__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.pc-signup-cta h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.pc-signup-cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 420px;
    margin-inline: auto;
}

.pc-login-link {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.pc-login-link:hover {
    color: var(--color-primary);
}

/* ── Info Row ───────────────────────────────────────────────── */
.pc-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 860px;
    margin: var(--space-10) auto 0;
}

.pc-info-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pc-info-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.pc-info-card h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.pc-info-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pc-card {
        padding: 28px 20px;
    }

    .pc-info-row {
        grid-template-columns: 1fr;
    }
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.pc-faq {
    padding: 72px 0 88px;
    background: white;
}

.pc-faq .section-label {
    display: block;
    text-align: center;
    margin-bottom: var(--space-3);
}

.pc-faq .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.pc-faq__list {
    max-width: 760px;
    margin: 0 auto;
}

.pc-faq__item {
    border-top: 1px solid var(--color-border);
}

.pc-faq__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.pc-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    gap: var(--space-4);
    transition: color var(--transition-fast);
}

.pc-faq__question:hover {
    color: var(--color-primary);
}

.pc-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: transform var(--transition-base), color var(--transition-fast);
}

.pc-faq__item--open .pc-faq__icon {
    transform: rotate(0deg);
    color: var(--color-primary);
}

.pc-faq__item:not(.pc-faq__item--open) .pc-faq__icon {
    transform: rotate(180deg);
}

.pc-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding-bottom: 0;
}

.pc-faq__item--open .pc-faq__answer {
    max-height: 400px;
    padding-bottom: 22px;
}

.pc-faq__answer p {
    font-size: var(--text-sm);
    color: #4f5b8b;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .pc-faq {
        padding: 52px 0 64px;
    }

    .pc-faq__question {
        font-size: var(--text-sm);
        padding: 18px 0;
    }
}

/* ============================================================
   Plagiarism Check Results Styling
   ============================================================ */
.pc-results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 24px;
    animation: fadeUp 0.4s ease both;
}

.pc-score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .pc-score-grid {
        grid-template-columns: 1fr;
    }
}

.pc-score-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.pc-score-card:hover {
    transform: translateY(-2px);
}

.pc-score-card--unique {
    border-top: 4px solid #10b981;
}

.pc-score-card--plagiarized {
    border-top: 4px solid #ef4444;
}

.pc-score-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.pc-score-value--unique {
    color: #10b981;
}

.pc-score-value--plagiarized {
    color: #ef4444;
}

.pc-score-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: var(--weight-medium);
}

.pc-progress-wrapper {
    margin-top: 8px;
}

.pc-progress-bar {
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.pc-progress-fill {
    height: 100%;
    transition: width 0.8s ease-in-out;
}

.pc-progress-fill--unique {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.pc-progress-fill--plagiarized {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.pc-verdict-box {
    background: #f8fafc;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pc-verdict-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.pc-verdict-text {
    font-size: 14.5px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.pc-breakdown-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.pc-breakdown-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.pc-text-display {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-primary);
    background: #fafbfc;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border-light);
    max-height: 350px;
    overflow-y: auto;
}

.pc-sentence {
    position: relative;
    border-radius: 3px;
    padding: 2px 0;
    transition: background-color 0.2s ease;
}

.pc-sentence--plagiarized {
    background-color: rgba(239, 68, 68, 0.12);
    border-bottom: 2px dashed #f87171;
    cursor: help;
}

.pc-sentence--plagiarized:hover {
    background-color: rgba(239, 68, 68, 0.22);
}

.pc-suggestions-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.pc-suggestions-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.pc-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-suggestion-item {
    display: flex;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.pc-suggestion-bullet {
    color: #ef4444;
    font-weight: bold;
}

/* ============================================================
   Upgraded Resource Hub & EEAT Styling
   ============================================================ */

.pc-resource-section {
    padding: 80px 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
}

.pc-resource-section--alt {
    background: var(--color-surface-alt);
}

.pc-resource-section--white {
    background: #ffffff;
}

.pc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

@media (max-width: 900px) {
    .pc-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.pc-creator-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.pc-creator-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.pc-creator-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.pc-creator-card__title h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.pc-creator-card__title p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 2px 0 0 0;
}

.pc-creator-card__quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-style: italic;
    border-left: 3px solid var(--color-primary);
    padding-left: var(--space-4);
}

.pc-creator-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Before / After Styling */
.pc-comparisons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (max-width: 900px) {
    .pc-comparisons-grid {
        grid-template-columns: 1fr;
    }
}

.pc-comp-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pc-comp-card__title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-comp-card__box {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
}

.pc-comp-card__box--before {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.pc-comp-card__box--after {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.pc-comp-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.pc-comp-card__badge--before {
    background: #fde68a;
    color: #b45309;
}

.pc-comp-card__badge--after {
    background: #a7f3d0;
    color: #047857;
}

.pc-comp-card__explanation {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px dashed var(--color-border);
}

/* Bullet list patterns */
.pc-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-bullet-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.pc-bullet-list li strong {
    color: var(--color-text-primary);
}

.pc-bullet-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.pc-bullet-list--check li::before {
    content: "✓";
    color: #10b981;
}

.pc-bullet-list--cross li::before {
    content: "✗";
    color: #ef4444;
}

.pc-hub-box {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.pc-hub-box--warning {
    border-color: #fca5a5;
    background: #fff8f8;
}

.pc-hub-box h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-hub-box--warning h3 {
    color: #991b1b;
}

/* Trust / Limitations styling */
.pc-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (max-width: 900px) {
    .pc-trust-row {
        grid-template-columns: 1fr;
    }
}

.pc-trust-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.pc-trust-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-trust-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Comparison table */
.pc-comparison-table-wrapper {
    overflow-x: auto;
    margin-top: var(--space-6);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
    background: #ffffff;
}

.pc-comparison-table th, 
.pc-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.pc-comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--color-text-primary);
}

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

.pc-comparison-table td strong {
    color: var(--color-primary);
}

/* Cards grids for Roles and Content Types */
.pc-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.pc-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (max-width: 1024px) {
    .pc-cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pc-cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pc-cards-grid-4 {
        grid-template-columns: 1fr;
    }
    .pc-cards-grid-3 {
        grid-template-columns: 1fr;
    }
}

.pc-feature-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pc-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.pc-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.pc-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ── FAQ Section ────────────────────────────────── */
.pc-faq {
    padding: 80px 0 100px;
    background: #ffffff;
    border-top: 1px solid var(--color-border-light);
}

.pc-faq__list {
    max-width: 760px;
    margin: 0 auto;
}

/* Each FAQ item */
.pc-faq__item {
    border-top: 1px solid var(--color-border);
}

.pc-faq__item:last-child {
    border-bottom: 1px solid var(--color-border);
}

/* Question button */
.pc-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    gap: var(--space-4);
    transition: color var(--transition-fast);
}

.pc-faq__question:hover {
    color: var(--color-primary);
}

/* Chevron icon */
.pc-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: transform var(--transition-base), color var(--transition-fast);
}

.pc-faq__item--open .pc-faq__icon {
    transform: rotate(0deg);
    color: var(--color-primary);
}

/* closed state: icon points down */
.pc-faq__item:not(.pc-faq__item--open) .pc-faq__icon {
    transform: rotate(180deg);
}

/* Answer panel */
.pc-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding-bottom: 0;
}

.pc-faq__item--open .pc-faq__answer {
    max-height: 400px;
    padding-bottom: 22px;
}

.pc-faq__answer p {
    font-size: var(--text-sm);
    color: #4f5b8b;
    line-height: 1.75;
    margin: 0;
}

.pc-faq__answer strong {
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
}

@media (max-width: 768px) {
    .pc-faq {
        padding: 52px 0 64px;
    }

    .pc-faq__question {
        font-size: var(--text-sm);
        padding: 18px 0;
    }
}

/* ── Explore Tools Section (Shared) ────────────────────────────────── */
.aih-explore {
    padding: 80px 0 100px;
    background: #f8fafc;
    border-top: 1px solid var(--color-border-light);
}

.aih-explore__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.aih-explore__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styling */
.aih-explore__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.aih-explore__card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.12);
}

.aih-explore__icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.aih-explore__card:hover .aih-explore__icon {
    color: #6366f1;
}

.aih-explore__icon svg {
    width: 22px;
    height: 22px;
}

.aih-explore__name {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aih-explore__card:hover .aih-explore__name {
    color: #6366f1;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .aih-explore__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .aih-explore__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .aih-explore__grid {
        grid-template-columns: 1fr;
    }
    
    .aih-explore {
        padding: 60px 0 80px;
    }
    
    .aih-explore__header {
        margin-bottom: 30px;
    }
    
    .aih-explore__card {
        padding: 14px 18px;
    }
}
