/* ==========================================================================
   Risel – AI Cover Letter Generator CSS (Above-The-Fold Desktop Viewport)
   Design System: Sora + Inter, Modern SaaS, Compact Spacing, Zero Scroll
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.cl-main {
    display: block;
    flex: none;
    min-height: 0;
    padding-bottom: 32px;
}

.tool-hero,
.cl-hero {
    margin-top: 0;
    padding: 12px 0 0;
    text-align: center;
    position: relative;
}

.cl-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.tool-hero-badge,
.cl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary, #0066FF);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.tool-hero-title,
.cl-hero-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.8px;
    color: var(--text-main, #0f172a);
    margin: 0 0 6px;
    padding-top: 8px;
    padding-bottom: 6px;
    overflow: visible;
    box-sizing: content-box;
}

.tool-hero-accent,
.cl-hero-accent {
    background: linear-gradient(135deg, var(--primary, #0066FF) 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.tool-hero-desc,
.cl-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary, #475569);
    max-width: 640px;
    margin: 0 auto;
}

.cl-workspace-section {
    padding: 18px 0 32px;
}

.cl-grid,
.cl-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.cl-composer-card,
.cl-assistant-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    height: auto;
}

.cl-card-header,
.cl-composer-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cl-card-title,
.cl-composer-title {
    font-family: 'Sora', sans-serif;
    font-size: 18.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.cl-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.cl-prompts-grid,
.cl-chips-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.cl-prompt-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.cl-prompt-chip:hover {
    background: #ffffff;
    border-color: #0066FF;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.08);
}

.cl-chip-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    text-align: center;
}

.cl-chip-sub {
    font-size: 10px;
    color: #64748b;
    margin-top: 1px;
    text-align: center;
}

.cl-form-group {
    margin-bottom: 10px;
}

.cl-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.cl-options-bar {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 10px;
    margin: 8px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cl-option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-opt-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    min-width: 44px;
}

.cl-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cl-pill-opt {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.cl-pill-opt:hover {
    border-color: #0066FF;
    color: #0066FF;
}

.cl-pill-opt.active {
    background: rgba(0, 102, 255, 0.08);
    border-color: #0066FF;
    color: #0066FF;
}

.cl-btn-primary {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    background: #0066FF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
    margin-top: 10px;
    box-sizing: border-box;
}

.cl-btn-primary:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
}

/* Subtle Resume Upload Coming Soon Badge */
.cl-future-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    cursor: default;
    opacity: 0.85;
}

.cl-pill-tag {
    font-size: 9px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    color: #94a3b8;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.cl-input-wrapper {
    margin-bottom: 8px;
}

/* Optimized Composer Textarea Height */
.cl-composer-textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-main);
    resize: vertical;
    min-height: 75px;
}

.cl-composer-textarea:focus {
    outline: none;
}

.cl-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.cl-tool-left {
    display: flex;
    gap: 6px;
}

.cl-tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cl-tool-btn:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

.cl-btn-primary, .cl-btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.25);
}

.cl-btn-primary:hover, .cl-btn-send:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 102, 255, 0.35);
}



/* --- LIGHTWEIGHT AI CONVERSATION STEP BUBBLE (COMPACT) --- */
.cl-conversation-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-step-bubble {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    animation: cl-fade 0.3s ease;
}

.cl-ai-bubble {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.cl-avatar-ai {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-step-content {
    flex: 1;
}

/* --- COLLAPSIBLE ADVANCED DRAWER (COMPACT) --- */
.cl-details-drawer, .cl-advanced-drawer {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.cl-details-summary, .cl-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.cl-details-summary:hover, .cl-drawer-toggle:hover {
    background: #f8fafc;
    color: var(--text-main);
}

.cl-drawer-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl-drawer-chevron, .cl-chevron-icon {
    transition: transform 0.25s ease;
    color: var(--text-secondary);
}

.cl-advanced-drawer.active .cl-drawer-chevron, .cl-chevron-icon {
    transform: rotate(180deg);
}

.cl-drawer-body {
    padding: 12px 14px 16px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.cl-form-group {
    margin-bottom: 10px;
}

.cl-form-row {
    display: flex;
    gap: 10px;
}

.cl-flex-1 {
    flex: 1;
}

.cl-sublabel, .cl-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cl-sublabel, .cl-optional {
    font-weight: 400;
    color: var(--text-secondary);
}

.cl-input,
.cl-select,
.cl-textarea {
    width: 100%;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-main);
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cl-input:focus,
.cl-select:focus,
.cl-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

#cl-prompt-input.cl-textarea,
.cl-composer-card .cl-textarea {
    height: 115px;
    min-height: 95px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    resize: vertical;
    box-sizing: border-box;
}

.cl-textarea-sm {
    min-height: 50px;
    resize: vertical;
}

.cl-pills-wrap, .cl-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cl-pill-opt {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cl-pill-opt.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- RIGHT OUTPUT PANEL WORKSPACE --- */
.cl-preview-card,
.cl-output-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 560px;
    height: auto;
    box-sizing: border-box;
}

.cl-preview-topbar,
.cl-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: nowrap;
    gap: 12px;
    box-sizing: border-box;
}

.cl-output-tabs,
.cl-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 0;
}

.cl-output-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cl-output-tab:hover {
    color: #0f172a;
}

.cl-output-tab.active {
    background: #ffffff;
    color: #0066FF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Actions Toolbar */
.cl-preview-actions,
.cl-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.cl-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cl-action-btn:hover:not(:disabled) {
    border-color: #0066FF;
    color: #0066FF;
    background: rgba(0, 102, 255, 0.04);
}

.cl-action-btn.action-primary {
    background: #0066FF;
    color: #ffffff;
    border-color: #0066FF;
}

.cl-action-btn.action-primary:hover:not(:disabled) {
    background: #0052cc;
    color: #ffffff;
}

.cl-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Status Bar Removed */
.cl-status-bar,
.cl-secondary-bar {
    display: none !important;
}

/* Output Body */
.cl-document-wrapper,
.cl-output-body {
    padding: 24px;
    background: #f8fafc;
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 20px 20px;
    min-height: 480px;
    box-sizing: border-box;
}

/* Empty State */
.cl-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    padding: 36px 20px;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.cl-empty-state h3,
.cl-empty-heading {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    word-wrap: break-word;
    padding-top: 4px;
    padding-bottom: 6px;
    box-sizing: content-box;
}

.cl-empty-state p,
.cl-empty-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
    overflow: visible;
}

.cl-empty-icon,
.cl-empty-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 102, 255, 0.07);
    color: #0066FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

/* Panel Tab Animation */
.cl-panel-content, .cl-tab-panel {
    animation: cl-fade 0.3s ease;
}

@keyframes cl-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TAB 1: A4 DOCUMENT PREVIEW --- */
.cl-paper-page, .cl-a4-document {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    font-size: 13px;
}

.cl-paper-header, .cl-doc-header {
    text-align: center;
    margin-bottom: 16px;
}

.cl-candidate-name, .cl-doc-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.cl-candidate-meta, .cl-doc-contact {
    font-size: 11px;
    color: #64748b;
}

.cl-paper-divider, .cl-doc-divider {
    height: 1.5px;
    background: #0066FF;
    margin: 12px 0 18px;
}

.cl-paper-date, .cl-doc-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

.cl-recipient-box, .cl-doc-recipient {
    font-size: 12px;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.5;
}

.cl-salutation, .cl-doc-salutation {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.cl-paper-body p, .cl-body-paragraphs p, .cl-doc-paragraphs p {
    margin-bottom: 12px;
    color: #334155;
}

.cl-signoff, .cl-doc-closing {
    margin-top: 20px;
    color: #0f172a;
}

/* --- TAB 2: LINKEDIN MESSAGE CARD --- */
.cl-outreach-card, .cl-linkedin-card {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    max-width: 560px;
    margin: 8px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.cl-outreach-head, .cl-social-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.cl-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0a66c2;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-outreach-type, .cl-social-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.cl-social-meta {
    font-size: 11px;
    color: #64748b;
}

.cl-outreach-box, .cl-message-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #1e293b;
    white-space: pre-line;
    font-family: inherit;
}

.cl-outreach-footer, .cl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.cl-char-badge, .cl-char-count {
    font-size: 11px;
    color: #64748b;
}

.cl-btn-inline-copy {
    background: transparent;
    border: 1px solid #0066FF;
    color: #0066FF;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cl-btn-inline-copy:hover {
    background: #0066FF;
    color: white;
}

/* --- TAB 3: COLD EMAIL PREVIEW --- */
.cl-outreach-card, .cl-email-card {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    max-width: 580px;
    margin: 8px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.cl-outreach-head, .cl-email-header-bar {
    background: #f1f5f9;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cl-email-field, .cl-email-row {
    display: flex;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}

.cl-email-field:last-child, .cl-email-row:last-child {
    margin-bottom: 0;
}

.cl-ef-label, .cl-email-label {
    width: 55px;
    font-weight: 600;
    color: #64748b;
}

.cl-ef-val, .cl-email-val {
    color: #0f172a;
}

.cl-email-subject {
    font-weight: 700;
    color: #0f172a;
}

.cl-outreach-box, .cl-email-body {
    padding: 18px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
    white-space: pre-line;
}

/* --- SKELETON LOADING STATE --- */
.cl-skeleton-loader, .cl-skeleton-wrapper {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 8px auto;
    width: 100%;
}

.cl-thinking-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cl-spin-icon {
    animation: cl-spin 2s linear infinite;
}

@keyframes cl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cl-skel-line, .cl-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: cl-shimmer 1.5s infinite;
}

.cl-sk-title { height: 18px; width: 40%; margin-bottom: 16px; }
.cl-sk-w100 { width: 100%; }
.cl-sk-w95 { width: 95%; }
.cl-sk-w90 { width: 90%; }
.cl-sk-w80 { width: 80%; }
.cl-sk-w70 { width: 70%; }
.cl-skel-block, .cl-skeleton-space { height: 12px; }

@keyframes cl-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- FEATURES / BENEFITS SECTION (FIRST VIEWPORT BOTTOM MATCH) --- */
.cl-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cl-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.cl-section-header h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.cl-section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.cl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cl-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cl-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 255, 0.25);
}

.cl-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-blue { background: rgba(0, 102, 255, 0.1); color: #0066FF; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.cl-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cl-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* --- SEO SECTION --- */
.cl-seo-section {
    padding: 40px 0;
}

.cl-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.cl-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.cl-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.cl-faq-section {
    padding: 40px 0 60px;
}

.cl-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.cl-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.06);
}

.cl-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.cl-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.cl-faq-item.active .cl-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.cl-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.cl-faq-item.active .cl-faq-ans {
    display: block;
}

/* --- TOAST NOTIFICATION --- */
.cl-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.cl-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) and (min-width: 769px) {
    .cl-grid,
    .cl-workspace {
        grid-template-columns: 45% 1fr;
        gap: 20px;
    }

    .cl-composer-card,
    .cl-assistant-panel,
    .cl-preview-card,
    .cl-output-panel {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .cl-grid,
    .cl-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cl-hero {
        padding: 32px 0 0;
    }

    .cl-composer-card,
    .cl-assistant-panel,
    .cl-preview-card,
    .cl-output-panel {
        padding: 20px;
    }
    
    .cl-preview-topbar,
    .cl-output-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cl-output-tabs,
    .cl-tabs-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .cl-preview-actions,
    .cl-actions-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .cl-paper-page,
    .cl-a4-document {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .cl-prompts-grid,
    .cl-chips-container {
        grid-template-columns: 1fr;
    }

    .cl-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cl-composer-toolbar {
        flex-direction: flex-start;
    }
}



