/* =========================================================
   RESUMALY — COVER LETTER GENERATOR
   Clean UI system
   ========================================================= */

:root {
    --cl-primary: #0d6efd;
    --cl-primary-dark: #0b5ed7;
    --cl-primary-soft: #eef5ff;

    --cl-ink: #172033;
    --cl-text: #263246;
    --cl-muted: #687386;
    --cl-muted-light: #8993a3;

    --cl-border: #e3e7ee;
    --cl-border-dark: #d5dbe5;

    --cl-bg: #ffffff;
    --cl-soft: #f7f9fc;
    --cl-soft-blue: #f6f9ff;

    --cl-success: #198754;
    --cl-success-soft: #eef8f2;

    --cl-danger: #dc3545;
    --cl-danger-soft: #fff4f4;

    --cl-warning: #b77900;
    --cl-warning-soft: #fff8e7;

    --cl-radius-sm: 10px;
    --cl-radius: 16px;
    --cl-radius-lg: 22px;

    --cl-shadow-sm: 0 4px 16px rgba(23, 32, 51, 0.05);
    --cl-shadow: 0 16px 45px rgba(23, 32, 51, 0.08);
    --cl-shadow-lg: 0 24px 70px rgba(23, 32, 51, 0.13);

    --cl-container: 1080px;
}

/* =========================================================
   BASE
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--cl-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        opacity 0.18s ease;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--cl-border);
}

.site-header .navbar {
    min-height: 68px;
}

.site-header .navbar-brand {
    padding: 0;
}

.site-header .navbar-brand img {
    display: block;
}

.site-header .nav-link {
    color: #4d596b;
    font-size: 0.93rem;
    font-weight: 500;
    padding: 0.55rem 0.75rem !important;
    border-radius: 9px;
}

.site-header .nav-link:hover {
    color: var(--cl-primary);
    background: var(--cl-primary-soft);
}

.site-header .nav-link.active {
    color: var(--cl-primary);
}

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

.cl-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -10%,
            rgba(13, 110, 253, 0.11),
            transparent 44%),
        linear-gradient(180deg,
            #f7faff 0%,
            #fbfcfe 55%,
            #ffffff 100%);
    padding: 76px 0 62px;
}

.cl-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(227, 231, 238, 0.8);
}

.cl-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cl-eyebrow,
.cl-section-kicker,
.cl-card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cl-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-eyebrow {
    padding: 8px 12px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 999px;
}

.cl-hero h1 {
    max-width: 900px;
    margin: 20px auto 18px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.cl-hero-description {
    max-width: 780px;
    margin: 0 auto;
    color: var(--cl-muted);
    font-size: 1.08rem;
    line-height: 1.78;
}

.cl-hero-points {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 24px;
}

.cl-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4d596b;
    font-size: 0.91rem;
}

.cl-hero-points i {
    color: var(--cl-success);
}

/* =========================================================
   BUILDER SECTION
   ========================================================= */

.cl-builder-section {
    position: relative;
    padding: 0 0 82px;
    background: #fff;
}

.cl-builder {
    position: relative;
    max-width: var(--cl-container);
    margin: -28px auto 0;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius-lg);
    box-shadow: var(--cl-shadow);
    overflow: hidden;
}

.cl-builder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px 25px;
    border-bottom: 1px solid #eef1f5;
}

.cl-builder-header h2 {
    margin: 7px 0 7px;
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cl-builder-header p {
    max-width: 700px;
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.65;
}

.cl-draft-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    padding: 8px 11px;
    color: #43795f;
    background: var(--cl-success-soft);
    border: 1px solid #d7ecde;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.cl-draft-status i {
    font-size: 0.85rem;
}

/* =========================================================
   PROGRESS
   ========================================================= */

.cl-progress {
    position: relative;
    padding: 27px 34px 24px;
    background: #fff;
}

.cl-progress-line {
    position: absolute;
    top: 43px;
    left: 68px;
    right: 68px;
    height: 3px;
    overflow: hidden;
    background: #e9edf3;
    border-radius: 99px;
}

.cl-progress-fill {
    width: 0;
    height: 100%;
    background: var(--cl-primary);
    border-radius: inherit;
    transition: width 0.28s ease;
}

.cl-progress-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cl-progress-step {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.cl-progress-number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 2px solid #dfe4eb;
    border-radius: 50%;
    background: #fff;
    color: #7d8797;
    font-size: 0.78rem;
    font-weight: 800;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.cl-progress-step strong {
    display: block;
    margin-bottom: 1px;
    color: #7c8798;
    font-size: 0.84rem;
    line-height: 1.2;
}

.cl-progress-step small {
    display: block;
    color: #a0a8b5;
    font-size: 0.72rem;
    line-height: 1.3;
}

.cl-progress-step.active .cl-progress-number {
    border-color: var(--cl-primary);
    background: var(--cl-primary);
    color: #fff;
}

.cl-progress-step.active strong {
    color: var(--cl-ink);
}

.cl-progress-step.active small {
    color: var(--cl-muted);
}

.cl-progress-step.completed .cl-progress-number {
    border-color: var(--cl-success);
    background: var(--cl-success);
    color: #fff;
}

.cl-progress-step.completed strong {
    color: #344154;
}

.cl-mobile-step-label {
    display: none;
}

/* =========================================================
   FORM STEP
   ========================================================= */

.cl-step {
    display: none;
    padding: 32px 34px 30px;
}

.cl-step.active {
    display: block;
}

.cl-step-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 27px;
}

.cl-step-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid #d9e7fb;
    border-radius: 13px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 1.15rem;
}

.cl-step-intro h3 {
    margin: 1px 0 5px;
    font-size: 1.26rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.cl-step-intro p {
    max-width: 760px;
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.6;
}

/* =========================================================
   RESUME UPLOAD
   ========================================================= */

.cl-upload-card {
    padding: 20px;
    background: #fbfcfe;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
}

.cl-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 285px;
    padding: 35px 24px;
    background: #fff;
    border: 1.5px dashed #cbd4e1;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cl-dropzone:hover {
    background: #fbfdff;
    border-color: #86b4f5;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.06);
}

.cl-dropzone.is-dragover {
    background: #f5f9ff;
    border-color: var(--cl-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.cl-dropzone.is-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.cl-upload-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 17px;
    border-radius: 18px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 1.7rem;
}

.cl-dropzone strong {
    color: var(--cl-ink);
    font-size: 1.05rem;
    line-height: 1.3;
}

.cl-dropzone>span {
    margin-top: 7px;
    color: #576376;
    font-size: 0.91rem;
}

.cl-dropzone>small {
    margin-top: 5px;
    color: var(--cl-muted-light);
    font-size: 0.8rem;
}

.cl-supported-files {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cl-supported-files span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    color: #667084;
    background: #f7f9fc;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    font-size: 0.73rem;
    font-weight: 600;
}

.cl-supported-files i {
    color: var(--cl-primary);
}

.cl-selected-file {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 15px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 13px;
}

.cl-file-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 1.1rem;
}

.cl-file-details {
    min-width: 0;
    flex: 1;
}

.cl-file-details strong {
    display: block;
    overflow: hidden;
    color: var(--cl-ink);
    font-size: 0.9rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-file-details span {
    display: block;
    margin-top: 2px;
    color: var(--cl-muted);
    font-size: 0.75rem;
}

.cl-file-status {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: var(--cl-success);
    font-size: 1.05rem;
}

.cl-upload-error {
    margin-top: 12px;
    padding: 11px 13px;
    color: #a61b29;
    background: var(--cl-danger-soft);
    border: 1px solid #f2cbd0;
    border-radius: 11px;
    font-size: 0.83rem;
    line-height: 1.5;
}

.cl-upload-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 0 3px;
    color: #727c8b;
    font-size: 0.76rem;
    line-height: 1.5;
}

.cl-upload-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #6e7b8e;
}

/* =========================================================
   PROCESSING CARD
   ========================================================= */

.cl-processing-card {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #dce9fb;
    border-radius: 13px;
}

.cl-processing-spinner {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 41px;
    height: 41px;
    border-radius: 11px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
}

.cl-processing-spinner .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.cl-processing-card strong {
    display: block;
    color: var(--cl-ink);
    font-size: 0.9rem;
}

.cl-processing-card p {
    margin: 3px 0 0;
    color: var(--cl-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* =========================================================
   PROFILE CARD
   ========================================================= */

.cl-profile-card {
    margin-top: 18px;
    padding: 21px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow-sm);
}

.cl-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cl-profile-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 1.1rem;
}

.cl-profile-heading h3 {
    margin: 4px 0 6px;
    font-size: 1.05rem;
}

.cl-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: #28754d;
    background: var(--cl-success-soft);
    border: 1px solid #d8ecdf;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.cl-profile-summary {
    margin-top: 17px;
    color: #566174;
    font-size: 0.88rem;
    line-height: 1.7;
}

.cl-profile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.cl-profile-highlights>* {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    color: #4e5a6c;
    background: #f7f9fc;
    border: 1px solid #e7ebf0;
    border-radius: 8px;
    font-size: 0.73rem;
    font-weight: 600;
}

/* =========================================================
   FORM GRID
   ========================================================= */

.cl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 18px;
}

.cl-field {
    min-width: 0;
}

.cl-field-full {
    grid-column: 1 / -1;
}

.cl-field label,
.cl-option-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3748;
    font-size: 0.85rem;
    font-weight: 700;
}

.cl-field label>span {
    color: var(--cl-danger);
}

.cl-field label small {
    margin-left: 4px;
    color: #8b95a5;
    font-size: 0.74rem;
    font-weight: 500;
}

.cl-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cl-character-count {
    color: #8a94a4;
    font-size: 0.72rem;
    white-space: nowrap;
}

.cl-field input,
.cl-field textarea {
    width: 100%;
    box-sizing: border-box;
    color: var(--cl-ink);
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 11px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.cl-field input {
    min-height: 48px;
    padding: 0 13px;
}

.cl-field textarea {
    min-height: 135px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.6;
}

.cl-field input::placeholder,
.cl-field textarea::placeholder {
    color: #a1a9b5;
}

.cl-field input:focus,
.cl-field textarea:focus {
    border-color: #83aff2;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.cl-field-help {
    margin-top: 6px;
    color: #8a94a4;
    font-size: 0.74rem;
    line-height: 1.5;
}

/* =========================================================
   JOB ANALYSIS
   ========================================================= */

.cl-job-analysis-card {
    margin-top: 21px;
    padding: 17px;
    background: #f9fbff;
    border: 1px solid #dae7fb;
    border-radius: 14px;
}

.cl-job-analysis-header {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.cl-analysis-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
}

.cl-job-analysis-header strong {
    display: block;
    margin: 1px 0 3px;
    font-size: 0.88rem;
}

.cl-job-analysis-header p {
    margin: 0;
    color: var(--cl-muted);
    font-size: 0.77rem;
    line-height: 1.5;
}

.cl-job-analysis-content {
    margin-top: 13px;
}

/* =========================================================
   STYLE OPTIONS
   ========================================================= */

.cl-style-section {
    margin-top: 28px;
    padding-top: 27px;
    border-top: 1px solid #edf0f4;
}

.cl-style-heading h3 {
    margin: 5px 0 21px;
    font-size: 1.05rem;
}

.cl-option-group+.cl-option-group {
    margin-top: 23px;
}

.cl-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.cl-option-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cl-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 82px;
    padding: 13px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 12px;
    color: var(--cl-ink);
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.cl-option:hover {
    border-color: #abc8f7;
    background: #fbfdff;
    transform: translateY(-1px);
}

.cl-option.selected {
    border-color: #79aaf1;
    background: #f7fbff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.cl-option strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.35;
}

.cl-option span {
    display: block;
    margin-top: 4px;
    color: var(--cl-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

/* =========================================================
   FACT SAFETY NOTE
   ========================================================= */

.cl-truth-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 16px;
    background: var(--cl-success-soft);
    border: 1px solid #d7ecde;
    border-radius: 13px;
}

.cl-truth-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: #e0f4e8;
    color: var(--cl-success);
}

.cl-truth-note strong {
    display: block;
    margin: 1px 0 3px;
    font-size: 0.82rem;
}

.cl-truth-note p {
    margin: 0;
    color: #5c6b61;
    font-size: 0.77rem;
    line-height: 1.55;
}

/* =========================================================
   FORM STATUS
   ========================================================= */

.cl-form-status {
    min-height: 10px;
    padding: 0 34px;
}

.cl-form-status.error {
    padding-bottom: 16px;
    color: #a61b29;
    font-size: 0.82rem;
}

.cl-form-status.success {
    padding-bottom: 16px;
    color: #28754d;
    font-size: 0.82rem;
}

/* =========================================================
   FORM ACTIONS
   ========================================================= */

.cl-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 34px;
    border-top: 1px solid #edf0f4;
    background: #fff;
}

.cl-form-actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

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

.cl-btn:disabled,
.cl-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.cl-btn-light {
    color: #4e5a6c;
    background: #fff;
    border-color: var(--cl-border);
}

.cl-btn-light:hover:not(:disabled) {
    color: var(--cl-ink);
    background: #f8fafc;
    border-color: var(--cl-border-dark);
}

.cl-btn-outline {
    color: #506074;
    background: #fff;
    border-color: var(--cl-border);
}

.cl-btn-outline:hover:not(:disabled) {
    color: var(--cl-primary);
    background: var(--cl-primary-soft);
    border-color: #b8d1f7;
}

.cl-btn-primary {
    color: #fff;
    background: var(--cl-primary);
    border-color: var(--cl-primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.18);
}

.cl-btn-primary:hover:not(:disabled) {
    color: #fff;
    background: var(--cl-primary-dark);
    border-color: var(--cl-primary-dark);
}

/* =========================================================
   LOWER CONTENT
   ========================================================= */

.cl-content-section {
    padding: 84px 0;
    background: #fff;
}

.cl-content-section-soft {
    background: #f8fafc;
}

.cl-section-heading {
    max-width: 760px;
    margin: 0 auto;
}

.cl-section-heading.text-center {
    text-align: center;
}

.cl-section-heading h2 {
    margin: 9px 0 13px;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.cl-section-heading p {
    margin: 0;
    color: var(--cl-muted);
    line-height: 1.75;
}

.cl-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: var(--cl-container);
    margin: 36px auto 0;
}

.cl-feature-card {
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow-sm);
}

.cl-feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 1.1rem;
}

.cl-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.cl-feature-card p {
    margin: 0;
    color: var(--cl-muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.cl-narrow-content {
    max-width: 850px;
}

.cl-faq-list {
    margin-top: 28px;
    border-top: 1px solid var(--cl-border);
}

.cl-faq-list details {
    border-bottom: 1px solid var(--cl-border);
}

.cl-faq-list summary {
    padding: 19px 0;
    color: var(--cl-ink);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cl-faq-list summary::-webkit-details-marker {
    display: none;
}

.cl-faq-list summary::after {
    content: "+";
    float: right;
    color: #8993a3;
    font-size: 1.2rem;
    font-weight: 400;
}

.cl-faq-list details[open] summary::after {
    content: "−";
}

.cl-faq-list p {
    margin: -4px 0 19px;
    color: var(--cl-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

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

.cl-footer {
    padding: 25px 0;
    background: #fff;
    border-top: 1px solid var(--cl-border);
}

.cl-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cl-footer small {
    color: #7b8595;
}

.cl-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}

.cl-footer-links a {
    color: #697488;
    font-size: 0.78rem;
    text-decoration: none;
}

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

/* =========================================================
   RESULT MODAL
   ========================================================= */

#resultModal {
    z-index: 1080;
}

.cl-result-modal {
    overflow: hidden;
    border: 1px solid var(--cl-border);
    border-radius: 20px;
    box-shadow: var(--cl-shadow-lg);
}

.cl-result-header {
    align-items: flex-start;
    gap: 20px;
    padding: 21px 24px;
    background: #fff;
    border-bottom: 1px solid var(--cl-border);
}

.cl-result-header h2 {
    margin: 5px 0 4px;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.cl-result-meta {
    color: var(--cl-muted);
    font-size: 0.76rem;
}

.cl-result-body {
    padding: 22px;
    background: #f8fafc;
}

.cl-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 19px;
    align-items: start;
}

.cl-result-letter-column {
    min-width: 0;
}

.cl-result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.cl-result-toolbar-left,
.cl-result-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-result-label {
    color: var(--cl-ink);
    font-size: 0.85rem;
    font-weight: 800;
}

.cl-result-word-count {
    color: #8993a3;
    font-size: 0.72rem;
}

.cl-result-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    color: #556173;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 9px;
    font-size: 0.73rem;
    font-weight: 700;
}

.cl-result-action:hover {
    color: var(--cl-primary);
    background: var(--cl-primary-soft);
    border-color: #b8d1f7;
}

.cl-result-editor-wrap {
    padding: 7px;
    background: #eef1f5;
    border-radius: 14px;
}

.cl-result-editor {
    min-height: 600px;
    padding: 31px;
    background: #fff;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    color: #273246;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 0.91rem;
    line-height: 1.78;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
}

.cl-result-editor:focus {
    border-color: #8ab7ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.cl-result-fact-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 10px 2px 0;
    color: #748092;
    font-size: 0.73rem;
    line-height: 1.5;
}

.cl-result-fact-note i {
    margin-top: 1px;
    color: var(--cl-success);
}

/* =========================================================
   RESULT ANALYSIS
   ========================================================= */

.cl-result-analysis {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.cl-result-card {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: 14px;
    box-shadow: var(--cl-shadow-sm);
}

.cl-result-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
}

.cl-result-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--cl-primary-soft);
    color: var(--cl-primary);
    font-size: 0.9rem;
}

.cl-result-card-icon.cl-icon-success {
    background: var(--cl-success-soft);
    color: var(--cl-success);
}

.cl-result-card-icon.cl-icon-info {
    background: #f1f6fd;
    color: #54749b;
}

.cl-result-card-heading strong {
    display: block;
    margin-top: 1px;
    color: var(--cl-ink);
    font-size: 0.82rem;
}

.cl-result-card-heading span {
    display: block;
    margin-top: 2px;
    color: #8993a3;
    font-size: 0.7rem;
    line-height: 1.45;
}

.cl-match-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.cl-match-stat {
    padding: 10px 7px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 10px;
}

.cl-match-stat strong {
    display: block;
    color: var(--cl-ink);
    font-size: 1.08rem;
    line-height: 1.2;
}

.cl-match-stat span {
    display: block;
    margin-top: 3px;
    color: #8892a1;
    font-size: 0.64rem;
    line-height: 1.3;
}

.cl-match-summary {
    margin: 11px 0 0;
    color: #626d7e;
    font-size: 0.76rem;
    line-height: 1.55;
}

.cl-insight-list {
    display: grid;
    gap: 8px;
}

.cl-insight-item {
    padding: 10px 11px;
    background: #fbfcfe;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
}

.cl-insight-item strong {
    display: block;
    color: #374255;
    font-size: 0.74rem;
    line-height: 1.4;
}

.cl-insight-item span {
    display: block;
    margin-top: 3px;
    color: #707b8c;
    font-size: 0.7rem;
    line-height: 1.5;
}

.cl-insight-empty {
    padding: 3px 0;
    color: #8b95a5;
    font-size: 0.72rem;
    line-height: 1.5;
}

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

.cl-result-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid var(--cl-border);
}

.cl-result-footer .cl-btn {
    min-height: 42px;
}

/* =========================================================
   GENERAL HIDDEN SUPPORT
   ========================================================= */

[hidden] {
    display: none !important;
}

/* =========================================================
   RESPONSIVE — 991px
   ========================================================= */

@media (max-width: 991.98px) {

    .cl-hero {
        padding: 62px 0 50px;
    }

    .cl-hero h1 {
        font-size: clamp(2.25rem, 6vw, 3.35rem);
    }

    .cl-builder {
        margin-top: -22px;
    }

    .cl-result-layout {
        grid-template-columns: 1fr;
    }

    .cl-result-analysis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-result-analysis .cl-result-card:first-child,
    .cl-result-analysis .cl-result-card:last-child {
        grid-column: 1 / -1;
    }

    .cl-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   RESPONSIVE — 767px
   ========================================================= */

@media (max-width: 767.98px) {

    .site-header .navbar {
        min-height: 62px;
    }

    .cl-hero {
        padding: 48px 0 42px;
    }

    .cl-hero h1 {
        margin-top: 17px;
        font-size: clamp(2.15rem, 9vw, 3rem);
    }

    .cl-hero-description {
        font-size: 0.98rem;
    }

    .cl-hero-points {
        align-items: flex-start;
        flex-direction: column;
        max-width: 360px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .cl-builder-section {
        padding-bottom: 64px;
    }

    .cl-builder {
        margin-top: -14px;
        border-radius: 17px;
    }

    .cl-builder-header {
        flex-direction: column;
        padding: 23px 20px 19px;
    }

    .cl-builder-header h2 {
        font-size: 1.35rem;
    }

    .cl-draft-status {
        white-space: normal;
    }

    .cl-progress {
        padding: 22px 20px 19px;
    }

    .cl-progress-line,
    .cl-progress-step small {
        display: none;
    }

    .cl-progress-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cl-progress-step {
        justify-content: center;
    }

    .cl-progress-step>div:last-child {
        display: none;
    }

    .cl-progress-number {
        width: 34px;
        height: 34px;
    }

    .cl-mobile-step-label {
        display: block;
        margin-top: 10px;
        color: var(--cl-muted);
        text-align: center;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .cl-step {
        padding: 25px 20px 24px;
    }

    .cl-step-intro {
        margin-bottom: 22px;
    }

    .cl-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .cl-field-full {
        grid-column: auto;
    }

    .cl-option-grid,
    .cl-option-grid-three {
        grid-template-columns: 1fr;
    }

    .cl-feature-grid {
        grid-template-columns: 1fr;
    }

    .cl-content-section {
        padding: 64px 0;
    }

    .cl-footer-inner {
        flex-direction: column;
        justify-content: center;
    }

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

    .cl-result-body {
        padding: 14px;
    }

    .cl-result-analysis {
        grid-template-columns: 1fr;
    }

    .cl-result-analysis .cl-result-card:first-child,
    .cl-result-analysis .cl-result-card:last-child {
        grid-column: auto;
    }

    .cl-result-editor {
        min-height: 500px;
        padding: 22px;
    }

}

/* =========================================================
   RESPONSIVE — 575px
   ========================================================= */

@media (max-width: 575.98px) {

    .site-header .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .cl-hero {
        padding: 40px 0 35px;
    }

    .cl-eyebrow {
        font-size: 0.7rem;
    }

    .cl-hero h1 {
        letter-spacing: -0.038em;
    }

    .cl-hero-description {
        line-height: 1.68;
    }

    .cl-builder {
        border-radius: 14px;
    }

    .cl-builder-header {
        padding: 21px 17px 17px;
    }

    .cl-progress {
        padding-right: 17px;
        padding-left: 17px;
    }

    .cl-step {
        padding-right: 17px;
        padding-left: 17px;
    }

    .cl-upload-card {
        padding: 13px;
    }

    .cl-dropzone {
        min-height: 250px;
        padding: 28px 16px;
    }

    .cl-upload-icon {
        width: 57px;
        height: 57px;
        margin-bottom: 14px;
    }

    .cl-supported-files {
        gap: 5px;
    }

    .cl-supported-files span {
        padding: 5px 7px;
        font-size: 0.68rem;
    }

    .cl-profile-card {
        padding: 16px;
    }

    .cl-form-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 17px;
        gap: 9px;
    }

    .cl-form-actions>#back-btn {
        width: 100%;
    }

    .cl-form-actions-right {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 8px;
    }

    .cl-form-actions-right .cl-btn {
        width: 100%;
    }

    .cl-form-actions-right #generate-btn {
        grid-column: 1 / -1;
    }

    .cl-form-status {
        padding-right: 17px;
        padding-left: 17px;
    }

    .cl-footer {
        padding: 22px 0;
    }

    .cl-footer-links {
        gap: 11px;
    }

    .cl-result-header {
        padding: 17px;
    }

    .cl-result-body {
        padding: 11px;
    }

    .cl-result-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 13px;
    }

    .cl-result-footer .cl-btn {
        width: 100%;
    }

    .cl-result-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cl-result-toolbar-left,
    .cl-result-toolbar-right {
        width: 100%;
    }

    .cl-result-toolbar-right {
        justify-content: flex-start;
    }

    .cl-result-editor {
        min-height: 440px;
        padding: 18px;
        font-size: 0.87rem;
    }

    .cl-match-stats {
        gap: 5px;
    }

    .cl-match-stat {
        padding-right: 4px;
        padding-left: 4px;
    }

}

/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

    .cl-hero h1 {
        font-size: 2rem;
    }

    .cl-progress-number {
        width: 31px;
        height: 31px;
        font-size: 0.7rem;
    }

    .cl-form-actions-right {
        grid-template-columns: 1fr;
    }

    .cl-form-actions-right #generate-btn {
        grid-column: auto;
    }

}


/* Made by Nishat */
.top_line{
    margin-bottom: 8px
}