/* =========================================================
   FOTE - COMIC SANS FONT GENERATOR
   CSS
   ========================================================= */

.fote-comic-tool {
    --fote-primary: #3949ff;
    --fote-primary-dark: #2637e8;
    --fote-purple: #7c4dff;
    --fote-text: #071333;
    --fote-muted: #63708d;
    --fote-border: #dfe5f2;
    --fote-soft: #f7f9ff;
    --fote-card: #ffffff;
    --fote-success: #12b981;

    width: 100%;
    padding: 70px 20px;
    background: #ffffff;
    color: var(--fote-text);
    box-sizing: border-box;
}

.fote-comic-tool *,
.fote-comic-tool *::before,
.fote-comic-tool *::after {
    box-sizing: border-box;
}

.fote-comic-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.fote-comic-header {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
}

.fote-comic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--fote-primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .7px;
}

.fote-comic-header h1 {
    margin: 0 0 15px;
    color: var(--fote-text);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.fote-comic-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--fote-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   GENERATOR WRAPPER
   ========================================================= */

.fote-comic-generator {
    padding: 28px;
    border: 1px solid var(--fote-border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top left,
            rgba(57, 73, 255, .06),
            transparent 32%
        ),
        #fbfcff;
    box-shadow: 0 18px 50px rgba(20, 35, 80, .08);
}


/* =========================================================
   TEXT INPUT
   ========================================================= */

.fote-comic-input-wrap {
    margin-bottom: 22px;
}

.fote-comic-input-wrap label {
    display: block;
    margin: 0 0 9px;
    color: var(--fote-text);
    font-size: 14px;
    font-weight: 700;
}

.fote-comic-input-row {
    position: relative;
    display: flex;
    align-items: center;
}

#foteComicInput {
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0 100px 0 20px;
    border: 2px solid #cfd7eb;
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: var(--fote-text);
    font-family: inherit;
    font-size: 18px;
    box-shadow: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

#foteComicInput:focus {
    border-color: var(--fote-primary);
    box-shadow: 0 0 0 4px rgba(57, 73, 255, .10);
}

#foteComicInput::placeholder {
    color: #9aa5bc;
    opacity: 1;
}

.fote-comic-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 72px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #eef1f8;
    color: #485570;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.fote-comic-clear:hover {
    background: #e2e7f2;
    color: var(--fote-text);
}

.fote-comic-input-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 8px;
    color: #8994aa;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.fote-comic-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.fote-comic-search-wrap {
    position: relative;
    flex: 1;
    max-width: 390px;
}

.fote-comic-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
}

#foteComicSearch {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px 0 44px;
    border: 1px solid var(--fote-border);
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--fote-text);
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
}

#foteComicSearch:focus {
    border-color: var(--fote-primary);
}

.fote-comic-copy-all {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--fote-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.fote-comic-copy-all:hover {
    background: var(--fote-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(57, 73, 255, .20);
}


/* =========================================================
   GENERATED FONT CARDS
   JS WILL ADD:
   .fote-comic-style-card
   .fote-comic-style-number
   .fote-comic-style-preview
   .fote-comic-style-name
   .fote-comic-copy-btn
   ========================================================= */

.fote-comic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fote-comic-style-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 210px;
    padding: 18px;
    flex-direction: column;
    border: 1px solid var(--fote-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(20, 35, 80, .04);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.fote-comic-style-card:hover {
    transform: translateY(-3px);
    border-color: #c6ceff;
    box-shadow: 0 12px 28px rgba(20, 35, 80, .09);
}

.fote-comic-style-number {
    position: absolute;
    top: 13px;
    right: 15px;
    color: #c2cada;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.fote-comic-style-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 100px;
    padding: 18px 8px 12px;
    color: #17203a;
    font-size: 24px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fote-comic-style-name {
    margin: 8px 0 12px;
    color: #7a869f;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.fote-comic-copy-btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #dce2ef;
    border-radius: 10px;
    background: #f8faff;
    color: var(--fote-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.fote-comic-copy-btn:hover {
    border-color: var(--fote-primary);
    background: var(--fote-primary);
    color: #ffffff;
}

.fote-comic-copy-btn.is-copied {
    border-color: var(--fote-success);
    background: var(--fote-success);
    color: #ffffff;
}


/* =========================================================
   EMPTY SEARCH
   ========================================================= */

.fote-comic-empty {
    margin-top: 20px;
    padding: 30px 20px;
    border: 1px dashed #d5dcec;
    border-radius: 14px;
    background: #ffffff;
    color: var(--fote-muted);
    font-size: 15px;
    text-align: center;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.fote-comic-section-heading {
    max-width: 700px;
    margin: 0 auto 28px;
    text-align: center;
}

.fote-comic-section-heading > span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--fote-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fote-comic-section-heading h2 {
    margin: 0;
    color: var(--fote-text);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.6px;
}


/* =========================================================
   FEATURES
   ========================================================= */

.fote-comic-features {
    padding: 80px 0 20px;
}

.fote-comic-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fote-comic-feature-card {
    padding: 28px;
    border: 1px solid var(--fote-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(20, 35, 80, .05);
}

.fote-comic-feature-icon {
    display: flex;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef0ff;
    color: var(--fote-primary);
    font-size: 18px;
    font-weight: 800;
}

.fote-comic-feature-card h3 {
    margin: 0 0 9px;
    color: var(--fote-text);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}

.fote-comic-feature-card p {
    margin: 0;
    color: var(--fote-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   SEO CONTENT
   ========================================================= */

.fote-comic-content {
    max-width: 900px;
    margin: 65px auto 0;
}

.fote-comic-content-block {
    padding: 28px 0;
    border-bottom: 1px solid #e8ecf4;
}

.fote-comic-content-block:first-child {
    padding-top: 0;
}

.fote-comic-content-block h2 {
    margin: 0 0 13px;
    color: var(--fote-text);
    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;
}

.fote-comic-content-block p,
.fote-comic-content-block li {
    color: var(--fote-muted);
    font-size: 16px;
    line-height: 1.8;
}

.fote-comic-content-block p {
    margin: 0;
}

.fote-comic-content-block ol {
    margin: 0;
    padding-left: 24px;
}

.fote-comic-content-block li {
    margin-bottom: 6px;
}


/* =========================================================
   FAQ
   ========================================================= */

.fote-comic-faq {
    max-width: 900px;
    margin: 75px auto 0;
}

.fote-comic-faq-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.fote-comic-faq-item {
    overflow: hidden;
    border: 1px solid var(--fote-border);
    border-radius: 13px;
    background: #ffffff;
}

.fote-comic-faq-question {
    display: flex;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 17px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    background: #ffffff;
    color: var(--fote-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.fote-comic-faq-plus {
    display: flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0ff;
    color: var(--fote-primary);
    font-size: 19px;
    transition: transform .25s ease;
}

.fote-comic-faq-item.is-open .fote-comic-faq-plus {
    transform: rotate(45deg);
}

.fote-comic-faq-answer {
    display: none;
    padding: 0 20px 19px;
}

.fote-comic-faq-item.is-open .fote-comic-faq-answer {
    display: block;
}

.fote-comic-faq-answer p {
    margin: 0;
    color: var(--fote-muted);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   PRO CTA
   ========================================================= */

.fote-comic-pro-cta {
    display: flex;
    margin-top: 75px;
    padding: 36px 40px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #273ee8 0%,
            #7145f5 100%
        );
    box-shadow: 0 18px 45px rgba(67, 64, 220, .20);
}

.fote-comic-pro-copy {
    max-width: 720px;
}

.fote-comic-pro-label {
    display: inline-block;
    margin-bottom: 9px;
    color: #dfe3ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.fote-comic-pro-copy h2 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 800;
}

.fote-comic-pro-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.7;
}

.fote-comic-pro-button {
    display: inline-flex;
    min-width: 150px;
    min-height: 50px;
    padding: 0 22px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ffffff;
    color: #3043e8 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.fote-comic-pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(0, 0, 0, .15);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .fote-comic-tool {
        padding: 55px 18px;
    }

    .fote-comic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fote-comic-feature-grid {
        grid-template-columns: 1fr;
    }

    .fote-comic-feature-card {
        padding: 24px;
    }

    .fote-comic-pro-cta {
        padding: 32px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fote-comic-tool {
        padding: 42px 14px;
    }

    .fote-comic-header {
        margin-bottom: 27px;
    }

    .fote-comic-header h1 {
        font-size: 34px;
        letter-spacing: -.8px;
    }

    .fote-comic-header p {
        font-size: 15px;
    }

    .fote-comic-generator {
        padding: 16px;
        border-radius: 16px;
    }

    #foteComicInput {
        height: 58px;
        padding-left: 15px;
        padding-right: 80px;
        font-size: 16px;
    }

    .fote-comic-clear {
        right: 8px;
        min-width: 62px;
        height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .fote-comic-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .fote-comic-search-wrap {
        max-width: none;
    }

    .fote-comic-copy-all {
        width: 100%;
    }

    .fote-comic-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fote-comic-style-card {
        min-height: 190px;
    }

    .fote-comic-features {
        padding-top: 60px;
    }

    .fote-comic-content {
        margin-top: 50px;
    }

    .fote-comic-content-block h2 {
        font-size: 23px;
    }

    .fote-comic-content-block p,
    .fote-comic-content-block li {
        font-size: 15px;
    }

    .fote-comic-faq {
        margin-top: 60px;
    }

    .fote-comic-pro-cta {
        margin-top: 60px;
        padding: 27px 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .fote-comic-pro-copy h2 {
        font-size: 25px;
    }

    .fote-comic-pro-button {
        width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .fote-comic-header h1 {
        font-size: 30px;
    }

    .fote-comic-generator {
        padding: 13px;
    }

    .fote-comic-style-preview {
        font-size: 21px;
    }

    .fote-comic-section-heading h2 {
        font-size: 25px;
    }
}