
/* ============================================================
   DESIGN TOKENS
============================================================ */

.home-page {
    --navy: #0F1B2E;
    --bg: #FFFFFF;
    --bg-soft: #F5F8F9;
    --card: #FFFFFF;
    --teal: #1B8392;
    --teal-dark: #14606C;
    --teal-tint: #E5F4F5;
    --safe: #1E8E5A;
    --safe-tint: #E8F6EF;
    --ink: #1B2430;
    --muted: #5B6773;
    --line: #E1E8EA;

    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.home-page h1,
.home-page h2,
.home-page h3 {
    font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
}


/* ============================================================
   HERO (SEO landing pages only)
============================================================ */

.cf-hero {
    padding: 55px 20px 50px;
    background: var(--bg-soft);
    color: var(--ink);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.cf-hero-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.cf-hero-label {
    margin: 0 0 14px;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--teal-dark);
    font-weight: 700;
}

.cf-hero h1 {
    margin: 0 auto;
    max-width: 900px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--navy);
}

.cf-hero-description {
    margin: 22px auto 0;
    max-width: 800px;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--muted);
}


/* ============================================================
   CENTRAL CONVERTER
============================================================ */

.converter-section {
    padding: 64px 20px 80px;
    background: var(--bg-soft);
}

.converter-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.converter-heading {
    text-align: center;
    color: var(--navy);
    margin-bottom: 28px;
}

.converter-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4.2vw, 2.5rem);
    font-weight: 600;
    color: var(--navy);
}

.converter-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================================
   CONVERTER CARD
============================================================ */

.converter-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 27, 46, 0.06);
}


/* ============================================================
   TRUST BAR (directly under the converter — addresses data
   security concerns at the exact moment someone is about to
   hand over a file)
============================================================ */

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin-top: 20px;
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 14px;

    border-radius: 999px;

    background: var(--safe-tint);
    border: 1px solid rgba(30, 142, 90, 0.22);

    color: #146643;

    font-size: 0.82rem;
    font-weight: 600;
}

.trust-bar-item .icon {
    font-size: 0.95rem;
}


/* ============================================================
   CONVERTER STATES
============================================================ */

.upload-state {
    display: block;
}

.upload-state.hidden {
    display: none;
}

.conversion-state {
    display: none;
}

.conversion-state.visible {
    display: block;
}


/* ============================================================
   DROP ZONE (the single centralized action)
============================================================ */

.file-drop-zone {
    display: block;

    border: 1.5px dashed #C3D3D6;
    border-radius: 14px;
    padding: 44px 24px;

    text-align: center;

    background: var(--bg-soft);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.file-drop-zone:hover {
    border-color: var(--teal);
    background: var(--teal-tint);
}

.file-drop-zone.dragover {
    border-color: var(--teal);
    background: var(--teal-tint);
    transform: scale(1.01);
}

.file-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-tint);
    font-size: 20px;
    margin-bottom: 16px;
}

.file-drop-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 15px 30px;
    border-radius: 10px;

    background: var(--teal);
    color: #FFFFFF;

    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;

    box-shadow: 0 6px 18px rgba(27, 131, 146, 0.28);

    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.file-drop-zone:hover .file-drop-title {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(27, 131, 146, 0.34);
}

.file-drop-text {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.88rem;
}


/*
 * Real input stays hidden; the label above is the only
 * click target, matching the original behavior exactly.
 */
#landing-file-input {
    display: none;
}


/* ============================================================
   SELECTED FILE / CONVERSION HEADER
============================================================ */

.selected-file {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--ink);
}

.selected-file-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--teal-tint);
    font-size: 21px;
}

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

.selected-file-name {
    font-weight: 600;
    word-break: break-word;
    line-height: 1.35;
    color: var(--ink);
}

.selected-file-size {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.85rem;
}

.change-file-button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--teal-dark);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.change-file-button:hover {
    background: var(--teal-tint);
    border-color: var(--teal);
}

.discovery-loading {
    display: none;
    margin: 0 0 18px;
    padding: 11px 13px;
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.discovery-loading.visible {
    display: block;
}

.conversion-selection-header {
    display: none;
    margin: 0 0 20px;
}

.conversion-selection-header.visible {
    display: block;
}

.conversion-selection-title {
    margin: 0;
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 600;
}

.conversion-selection-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ============================================================
   CUSTOM OUTPUT FORMAT SELECTOR
============================================================ */

.format-section {
    display: none;
    margin-top: 24px;
}

.format-section.visible {
    display: block;
}

.format-label {
    display: block;
    margin-bottom: 8px;

    font-weight: 600;
    color: var(--ink);
}


/*
 * Main custom dropdown
 */

.format-dropdown {
    position: relative;
    width: 100%;
}


/*
 * Clickable selector
 */

.format-dropdown-toggle {
    width: 100%;

    min-height: 48px;

    padding: 13px 44px 13px 14px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: white;
    color: var(--ink);

    font-size: 1rem;
    text-align: left;

    cursor: pointer;

    position: relative;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.format-dropdown-toggle:hover {
    border-color: var(--teal);
}

.format-dropdown.open .format-dropdown-toggle {
    border-color: var(--teal);

    box-shadow:
        0 0 0 3px rgba(27, 131, 146, 0.16);
}

.format-dropdown-toggle.placeholder {
    color: var(--muted);
}

.format-dropdown-arrow {
    position: absolute;

    right: 15px;
    top: 50%;

    transform:
        translateY(-50%);

    font-size: 18px;

    transition:
        transform 0.2s ease;
}

.format-dropdown.open .format-dropdown-arrow {
    transform:
        translateY(-50%)
        rotate(180deg);
}


/*
 * Two-level menu
 */

.format-menu {
    display: none;

    position: absolute;

    z-index: 1000;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    min-height: 210px;

    background: white;

    border: 1px solid var(--line);
    border-radius: 12px;

    box-shadow:
        0 14px 35px rgba(15, 27, 46, 0.14);

    overflow: hidden;
}

.format-dropdown.open .format-menu {
    display: flex;
}


/*
 * LEFT CATEGORY COLUMN
 */

.format-categories {
    width: 42%;

    flex-shrink: 0;

    padding: 8px;

    background: var(--bg-soft);

    border-right: 1px solid var(--line);
}


/*
 * Individual category
 */

.format-category {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 12px 12px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: var(--ink);

    font-size: 0.95rem;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.format-category:hover,
.format-category.active {
    background: rgba(27, 131, 146, 0.12);
    color: var(--teal-dark);
}

.format-category.disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.format-category.disabled:hover {
    background: transparent;
    color: var(--ink);
}

.format-category-icon {
    width: 25px;

    flex-shrink: 0;

    font-size: 19px;

    text-align: center;
}

.format-category-name {
    flex: 1;
}

.format-category-arrow {
    flex-shrink: 0;

    font-size: 16px;

    opacity: 0.65;
}


/*
 * RIGHT FORMAT COLUMN
 */

.format-options {
    flex: 1;

    padding: 14px;

    min-width: 0;

    background: white;
}

.format-options-title {
    margin: 0 0 10px;

    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.format-options-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


/*
 * Individual output format
 */

.format-option {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 42px;

    padding: 9px 11px;

    border: 1px solid var(--line);

    border-radius: 8px;

    background: white;

    color: var(--ink);

    font-size: 0.9rem;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.format-option:hover {
    border-color: var(--teal);

    background: #EEF9FA;

    color: var(--teal-dark);

    transform: translateY(-1px);
}

.format-option.selected {
    border-color: var(--teal);

    background: rgba(27, 131, 146, 0.12);

    color: var(--teal-dark);
}


/*
 * Empty state
 */

.format-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 145px;

    padding: 20px;

    color: var(--muted);

    font-size: 0.9rem;

    text-align: center;
    line-height: 1.5;
}


/*
 * Selected format display
 */

.selected-format {
    margin-top: 9px;

    min-height: 18px;

    color: var(--muted);

    font-size: 0.82rem;
}

.selected-format strong {
    color: var(--teal-dark);
}


/* ============================================================
   CONVERT BUTTON
   (solid teal + white text keeps strong contrast regardless
   of the light page background, and stays the one clear
   action to press next)
============================================================ */

.convert-button {
    display: none;

    width: 100%;

    margin-top: 22px;

    padding: 16px 20px;

    border: none;
    border-radius: 10px;

    background: var(--teal);

    color: #FFFFFF;

    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(27, 131, 146, 0.3);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.convert-button.visible {
    display: block;
}

.convert-button:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(27, 131, 146, 0.36);
}

.convert-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


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

.converter-status {
    display: none;

    margin-top: 22px;
    padding: 15px;

    border-radius: 10px;

    background: var(--bg-soft);

    color: var(--ink);

    text-align: center;
}

.converter-status.visible {
    display: block;
}

.status-message {
    font-weight: 600;
}

.progress-container {
    display: none;
    margin-top: 14px;
}

.progress-container.visible {
    display: block;
}

.progress-bar-background {
    width: 100%;
    height: 10px;

    background: var(--line);

    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;

    background: var(--teal);

    transition: width 0.3s ease;
}

.progress-value {
    margin-top: 7px;

    font-size: 0.85rem;
    color: var(--muted);
}


/* ============================================================
   DOWNLOAD
============================================================ */

.download-section {
    display: none;

    margin-top: 22px;

    text-align: center;
}

.download-section.visible {
    display: block;
}

.download-button {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 10px;

    background: var(--safe);

    color: white;

    text-decoration: none;

    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;

    box-shadow: 0 8px 20px rgba(30, 142, 90, 0.28);
}

.download-button:hover {
    color: white;
    text-decoration: none;
    background: #17734A;
}


/* ============================================================
   ERROR
============================================================ */

.converter-error {
    display: none;

    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 9px;

    background: rgba(161, 38, 38, 0.14);

    color: #F5A3A3;

    border: 1px solid rgba(161, 38, 38, 0.35);
}

.converter-error.visible {
    display: block;
}


/* ============================================================
   POPULAR TOOLS
============================================================ */

.tools-section {
    padding: 56px 20px;
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tools-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tools-heading {
    text-align: center;
    margin-bottom: 30px;
}

.tools-heading h2 {
    margin-bottom: 6px;
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    color: var(--ink);
    font-weight: 600;
}

.tools-heading p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.tool-button {
    display: block;

    padding: 16px 14px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: white;

    color: var(--ink);

    text-align: left;
    text-decoration: none;

    font-size: 0.92rem;
    font-weight: 600;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tool-button:hover {
    color: var(--teal-dark);
    text-decoration: none;

    border-color: var(--teal);

    box-shadow: 0 4px 14px rgba(27, 131, 146, 0.14);
}


/* ============================================================
   FEATURE CARDS
============================================================ */

.feature-section {
    padding: 55px 20px;
    background: var(--bg-soft);
}

.feature-grid {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.feature-card {
    display: block;

    overflow: hidden;

    border-radius: 12px;

    background: white;

    text-decoration: none;

    color: inherit;

    border: 1px solid var(--line);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(15, 27, 46, 0.14);

    text-decoration: none;
}

.feature-card img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}

.feature-card-body {
    padding: 20px;
}

.feature-card-title {
    margin: 0;

    font-size: 1.15rem;

    color: var(--ink);
}

.feature-card-text {
    margin: 10px 0 0;

    color: var(--muted);

    font-size: 0.9rem;
    line-height: 1.5;
}


/* ============================================================
   EXTRA IMAGE TOOLS
============================================================ */

.image-tools-section {
    padding: 40px 20px;
    background: var(--bg-soft);
    text-align: center;
}

.image-tools-grid {
    display: flex;

    justify-content: center;
    align-items: stretch;

    flex-wrap: wrap;

    gap: 25px;
}

.image-tool {
    width: 220px;

    color: white;

    text-decoration: none;
}

.image-tool:hover {
    color: white;
    text-decoration: none;
}

.image-tool-image {
    width: 100%;
    height: 170px;

    object-fit: cover;

    border-radius: 12px;

    transition: transform 0.2s ease;
}

.image-tool:hover .image-tool-image {
    transform: scale(1.04);
}

.image-tool-caption {
    margin-top: 10px;

    font-size: 0.95rem;
    font-weight: 600;
}


/* ============================================================
   FAQ
============================================================ */


.faqs {
    padding: 56px 20px 64px;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faqs .section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.faqs .eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--teal-dark);

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.faqs h2 {
    margin: 0;

    text-align: center;

    font-size: clamp(1.6rem, 3.6vw, 2.1rem);

    color: var(--ink);
    font-weight: 600;
}

.faq-item {
    margin-bottom: 10px;

    padding: 0;

    background: var(--bg-soft);

    border: 1px solid var(--line);

    border-radius: 10px;

    overflow: hidden;
}

.faq-question {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 17px;

    cursor: pointer;

    font-weight: 600;
    font-size: 15px;

    color: var(--ink);
}

.toggle-icon {
    flex-shrink: 0;

    font-size: 20px;

    color: var(--teal);
}

.faq-answer {
    display: none;

    padding: 0 17px 17px;

    font-size: 14px;

    line-height: 1.6;

    color: var(--muted);
}


/* ============================================================
   SHARED: EYEBROW LABEL + SECTION HEAD
============================================================ */

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--teal-dark);

    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    font-weight: 600;
    color: var(--navy);
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ============================================================
   FORMAT QUICKLIST (shortcut chips next to the converter)
============================================================ */

.format-quicklist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin-top: 16px;
}

.format-chip {
    padding: 7px 14px;
    border-radius: 999px;

    background: white;
    border: 1px solid var(--line);
    color: var(--ink);

    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;

    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.format-chip:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: var(--teal-tint);
    text-decoration: none;
}


/* ============================================================
   HOW IT WORKS
============================================================ */

.how-it-works {
    padding: 56px 20px;
    background: white;
}

.how-it-works-container {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.step-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;

    border-radius: 50%;
    background: var(--teal);
    color: white;

    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.step-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--navy);
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}


/* ============================================================
   WHY CONVERSIONFREE (benefits grid)
============================================================ */

.benefits-section {
    padding: 56px 20px;
    background: var(--bg-soft);
}

.benefits-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.benefit-card {
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    text-align: left;
}

.benefit-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.benefit-card h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-family: 'Space Grotesk', Arial, sans-serif;
    color: var(--navy);
}

.benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}


/* ============================================================
   SECURITY
============================================================ */

.security-section {
    padding: 56px 20px;
    background: white;
}

.security-container {
    max-width: 1000px;
    margin: 0 auto;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.security-card {
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--safe-tint);
    border-color: rgba(30, 142, 90, 0.2);
}

.security-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.security-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: var(--navy);
}

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


/* ============================================================
   FINAL CTA
============================================================ */

.final-cta-section {
    padding: 64px 20px 72px;
    background: var(--navy);
}

.final-cta {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.final-cta h2 {
    margin: 0 0 10px;
    color: white;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    font-weight: 600;
}

.final-cta p {
    margin: 0 0 24px;
    color: #B9C2CE;
    font-size: 1rem;
}

.final-cta-button {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 10px;

    background: var(--teal);
    color: white;

    text-decoration: none;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;

    box-shadow: 0 8px 20px rgba(27, 131, 146, 0.32);

    transition: background 0.15s ease, transform 0.15s ease;
}

.final-cta-button:hover {
    background: var(--teal-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

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

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

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

    .security-grid {
        grid-template-columns: 1fr;
    }

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

        max-width: 500px;
    }
}


@media (max-width: 700px) {

    /*
     * On smaller screens the two-column dropdown becomes
     * a stacked/touch-friendly menu.
     */

    .format-menu {
        position: absolute;

        min-height: 0;

        max-height: 430px;

        overflow-y: auto;
    }

    .format-categories {
        width: 45%;
    }

    .format-options {
        padding: 10px;
    }

    .format-options-list {
        grid-template-columns:
            1fr;
    }

    .format-category {
        padding: 11px 8px;
    }

    .format-category-name {
        font-size: 0.88rem;
    }
}


@media (max-width: 600px) {

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .cf-hero {
        padding: 42px 18px 45px;
    }

    .converter-section {
        padding: 40px 14px 56px;
    }

    .converter-card {
        padding: 20px;
        border-radius: 13px;
    }

    .file-drop-zone {
        padding: 32px 15px;
    }

    .tools-grid {
        grid-template-columns:
            1fr;
    }

    .tool-button {
        padding: 14px;
    }

    .feature-card img {
        height: 200px;
    }

    .image-tool {
        width: 180px;
    }

    .image-tool-image {
        height: 145px;
    }

    .format-menu {
        width: 100%;
    }

    .format-categories {
        width: 44%;
    }

    .format-category-icon {
        font-size: 17px;
    }

    .format-category-arrow {
        display: none;
    }
}


@media (max-width: 420px) {

    .image-tools-grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .image-tool {
        width: 100%;
    }

    .image-tool-image {
        height: 125px;
    }

    .format-menu {
        /*
         * Keep the menu usable on very small screens.
         */
        max-height: 380px;
    }

    .format-categories {
        width: 46%;
    }

    .format-category {
        min-height: 44px;

        padding: 9px 7px;
    }

    .format-category-icon {
        width: 20px;
        font-size: 15px;
    }

    .format-category-name {
        font-size: 0.8rem;
    }

    .format-options {
        padding: 8px;
    }

    .format-option {
        font-size: 0.82rem;
        padding: 8px;
    }
}



/* ============================================================
   SPECIALIZED TOOLS — secondary links below format dropdown
   ============================================================ */

.specialized-tools-container {
    margin-top: 18px;
    padding: 16px 18px;
    background: #F6F8FB;
    border: 1px solid #E1E8EA;
    border-radius: 10px;
}

.specialized-tools-heading {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5B6773;
}

.specialized-tools-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.specialized-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E1E8EA;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1B8392;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.specialized-tool-link:hover {
    background: #E5F4F5;
    border-color: #1B8392;
    transform: translateY(-1px);
}
