/**
 * Instagram Post Preview Tool
 * CreatorFlow Free Tool
 *
 * Brand Colors:
 * - Primary Accent: #d1fe17 (Lime Green)
 * - Primary Dark: #000000 (Pure Black) - ONLY dark color allowed
 * - White: #ffffff
 * - Light Grey: #f9fafb, #f3f4f6
 * - Text Grey: #374151, #6b7280
 *
 * NO box-shadows allowed (except box-shadow: none)
 * NO gradients on dark backgrounds
 * Poppins for headings
 */

/* ========================================
   BASE STYLES (Mobile First)
   ======================================== */

.tool-page {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #374151;
    line-height: 1.6;
}

/* ========================================
   SECTION 1: HERO
   ======================================== */

.tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
    background: #ffffff;
    padding: 11rem 0 1.5rem;
    text-align: center;
}

.tool-hero__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-hero__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tool-hero__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #000000 !important;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tool-hero__description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .tool-hero {
        padding: 8rem 0 1rem;
    }
}

/* Mobile (430px) */
@media (max-width: 430px) {
    .tool-hero {
        padding: 7rem 0 0.75rem;
    }

    .tool-hero__title {
        font-size: 1.25rem;
    }
}

/* Tablet+ */
@media (min-width: 640px) {
    .tool-hero__container {
        padding: 0 2.5rem;
    }

    .tool-hero__description {
        font-size: 1.125rem;
    }
}

/* ========================================
   SECTION 2: TOOL INTERFACE
   ======================================== */

.tool-interface {
    background: #f9fafb;
    padding: 2rem 0;
}

.tool-interface__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-interface__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Input Column */
.tool-input {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.tool-input__header {
    margin-bottom: 1.5rem;
}

.tool-input__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Post Type Selector */
.post-type-selector {
    margin-bottom: 1.5rem;
}

.post-type-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.post-type-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-type-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.post-type-btn:hover {
    border-color: #000000;
    color: #000000;
}

.post-type-btn--active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.post-type-btn--active:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.post-type-icon {
    display: flex;
    align-items: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #000000;
}

.input-prefix {
    padding: 0.875rem 0 0.875rem 1rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.form-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 0;
    border: none;
    font-size: 1rem;
    color: #000000;
    background: transparent;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #d1fe17;
    background: #fefff0;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    color: #9ca3af;
}

.upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.upload-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.image-preview-wrapper {
    position: relative;
}

.uploaded-image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0.5rem;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remove-image-btn:hover {
    background: #d1fe17;
    color: #000000;
}

/* Caption Textarea */
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: #000000;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-textarea::placeholder {
    color: #9ca3af;
}

.caption-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
}

.hashtag-count.warning {
    color: #f59e0b;
}

.hashtag-count.error {
    color: #ef4444;
}

/* Preview Column */
.tool-preview {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.tool-preview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tool-preview__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.device-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.device-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.device-btn:hover {
    color: #000000;
}

.device-btn--active {
    background: #ffffff;
    color: #000000;
}

/* Phone Frame */
.phone-frame {
    background: #000000;
    border-radius: 2rem;
    padding: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #000000;
    border-radius: 0 0 1rem 1rem;
    margin: 0 auto 0.5rem;
    position: relative;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #000000;
    border-radius: 3px;
}

.phone-screen {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 500px;
}

/* Instagram Post Preview */
.instagram-post {
    background: #ffffff;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-username {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000000;
}

.post-location {
    font-size: 0.6875rem;
    color: #6b7280;
}

.post-menu {
    color: #000000;
}

.post-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
}

.post-actions-left {
    display: flex;
    gap: 1rem;
    color: #000000;
}

.post-actions-right {
    color: #000000;
}

.post-likes {
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000000;
}

.post-caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.caption-username {
    font-weight: 600;
    color: #000000;
    margin-right: 0.375rem;
}

.caption-text {
    color: #000000;
    word-break: break-word;
}

.post-timestamp {
    padding: 0.25rem 0.75rem 0.75rem;
    font-size: 0.625rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Instagram Story Preview */
.instagram-story {
    background: #000000;
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.story-header {
    padding: 1rem 0.75rem 0.5rem;
    z-index: 10;
}

.story-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    margin-bottom: 0.75rem;
}

.story-progress-bar {
    height: 100%;
    width: 30%;
    background: #ffffff;
    border-radius: 1px;
}

.story-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d1fe17;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-username {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
}

.story-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.story-close {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
}

.story-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.story-text {
    position: relative;
    z-index: 5;
    color: #ffffff;
    font-size: 0.9375rem;
    text-align: center;
    padding: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    max-height: 300px;
    overflow: hidden;
}

/* Instagram Reel Preview */
.instagram-reel {
    background: #000000;
    min-height: 500px;
    position: relative;
    display: flex;
}

.reel-content {
    flex: 1;
    position: relative;
}

.reel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.reel-sidebar {
    position: absolute;
    right: 0.75rem;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 10;
}

.reel-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
}

.reel-audio .audio-disc {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #405DE6, #5B51D8, #833AB4, #C13584, #E1306C, #FD1D1D);
    animation: spin 3s linear infinite;
}

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

.reel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 10;
}

.reel-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reel-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.reel-user span {
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.reel-caption {
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reel-audio-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #ffffff;
    font-size: 0.6875rem;
}

/* Preview Actions */
.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.preview-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-action-btn:hover {
    background: #d1fe17;
    color: #000000;
}

.preview-action-btn--secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.preview-action-btn--secondary:hover {
    border-color: #000000;
    color: #000000;
    background: #ffffff;
}

.preview-action-btn.copied {
    background: #d1fe17;
    color: #000000;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-interface {
        padding: 3rem 0;
    }

    .tool-interface__container {
        padding: 0 2.5rem;
    }

    .tool-input,
    .tool-preview {
        padding: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-interface {
        padding: 4rem 0;
    }

    .tool-interface__grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .tool-input {
        flex: 1;
        max-width: 450px;
    }

    .tool-preview {
        flex: 1;
        position: sticky;
        top: 100px;
    }

    .post-type-btn {
        flex: none;
    }
}

/* ========================================
   SECTION 3: SEO CONTENT (TOOL INFO)
   ======================================== */

.tool-info {
    background: #ffffff;
    padding: 3rem 0;
}

.tool-info__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-info__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.tool-info__intro {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tool-info__subtitle {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.tool-info__content {
    margin-bottom: 1.5rem;
}

.tool-info__content p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tool-info__content a {
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tool-info__content a:hover {
    color: #d1fe17;
    background: #000000;
    padding: 0 0.25rem;
    text-decoration: none;
}

/* Info Steps */
.info-steps {
    margin: 2rem 0;
}

.info-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-step__number {
    width: 40px;
    height: 40px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
}

.info-step__content {
    flex: 1;
}

.info-step__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.375rem;
}

.info-step__description {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Info Benefits */
.info-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.info-benefit {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-benefit:last-child {
    border-bottom: none;
}

/* Use Case Scenarios */
.use-case-scenarios {
    margin: 2rem 0;
}

.use-case-scenario {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.use-case-scenario:hover {
    border-color: #d1fe17;
    background: #ffffff;
}

.use-case-scenario__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.use-case-scenario__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.use-case-scenario__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* Limits Table */
.limits-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.limits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.limits-table th,
.limits-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.limits-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #000000;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
}

.limits-table td {
    color: #374151;
}

.limits-table tbody tr:hover {
    background: #fefff0;
}

/* Closing */
.tool-info__closing {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin-top: 2rem;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-info {
        padding: 4rem 0;
    }

    .tool-info__container {
        padding: 0 2.5rem;
    }

    .tool-info__title {
        font-size: 1.75rem;
    }

    .info-step__number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .use-case-scenario {
        padding: 2rem;
    }

    .use-case-scenario__title {
        font-size: 1.25rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-info {
        padding: 5rem 0;
    }

    .tool-info__title {
        font-size: 2rem;
    }

    .info-step__number {
        width: 52px;
        height: 52px;
        font-size: 1.375rem;
    }
}

/* ========================================
   SECTION 4: NEXT STEP CTA
   ======================================== */

.tool-next-step {
    background: #ffffff;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.tool-next-step__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-next-step__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tool-next-step__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tool-next-step__description {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.next-step-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.next-step-feature {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.next-step__cta-button {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: inset 0px -3px rgba(255, 255, 255, 0.15);
}

.next-step__cta-button:hover {
    background: #d1fe17;
    color: #000000;
    box-shadow: inset 0px -3px rgba(0, 0, 0, 0.25);
}

.next-step__cta-button:active {
    box-shadow: inset 0px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.next-step__microcopy {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-next-step {
        padding: 4rem 0;
    }

    .tool-next-step__container {
        padding: 0 2.5rem;
    }

    .tool-next-step__title {
        font-size: 1.75rem;
    }

    .next-step-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-next-step {
        padding: 5rem 0;
    }

    .tool-next-step__title {
        font-size: 2rem;
    }

    .next-step-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   SECTION 5: COMPARISON
   ======================================== */

.tool-comparison {
    background: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.tool-comparison__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.comparison-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.comparison-title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.comparison-column {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}

.comparison-column--automated {
    border-color: #d1fe17;
    background: #fefff0;
}

.comparison-column__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    padding: 0.5rem 0;
}

.comparison-icon {
    flex-shrink: 0;
}

.comparison-cta {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: inset 0px -3px rgba(255, 255, 255, 0.15);
}

.comparison-cta:hover {
    background: #d1fe17;
    color: #000000;
    box-shadow: inset 0px -3px rgba(0, 0, 0, 0.25);
}

.comparison-cta:active {
    box-shadow: inset 0px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.comparison-microcopy {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-comparison {
        padding: 4rem 0;
    }

    .tool-comparison__container {
        padding: 0 2.5rem;
    }

    .comparison-title {
        font-size: 1.75rem;
    }

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

    .comparison-column {
        padding: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-comparison {
        padding: 5rem 0;
    }

    .comparison-title {
        font-size: 2rem;
    }
}

/* ========================================
   SECTION 6: FAQ
   ======================================== */

.tool-faq {
    background: #f9fafb;
    padding: 3rem 0;
}

.tool-faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #d1fe17;
}

.faq-item[open] {
    border-color: #d1fe17;
}

.faq-question {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.25rem 1rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

.faq-answer a {
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    color: #d1fe17;
    background: #000000;
    padding: 0 0.25rem;
    text-decoration: none;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-faq {
        padding: 4rem 0;
    }

    .tool-faq__container {
        padding: 0 2.5rem;
    }

    .faq-title {
        font-size: 1.75rem;
    }

    .faq-question {
        font-size: 1.0625rem;
        padding: 1.25rem 1.5rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-faq {
        padding: 5rem 0;
    }

    .faq-title {
        font-size: 2rem;
    }
}

/* ========================================
   SECTION 7: FINAL CTA
   ======================================== */

.tool-cta {
    background: #000000;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 1.5rem;
    margin: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-cta__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tool-cta__description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tool-cta__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.tool-cta__button {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: inset 0px -3px rgba(0, 0, 0, 0.35);
}

.tool-cta__button:hover {
    background: #e5ff4d;
    box-shadow: inset 0px -3px rgba(0, 0, 0, 0.25);
}

.tool-cta__button:active {
    box-shadow: inset 0px -1px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

/* Keep existing hover text color unchanged */
.tool-cta__button:hover {
    color: #000000;
}

.tool-cta__microcopy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* Tablet */
@media (min-width: 640px) {
    .tool-cta {
        padding: 4rem 2rem;
        border-radius: 2rem;
        margin: 2.5rem 1.5rem;
    }

    .tool-cta__title {
        font-size: 1.75rem;
    }

    .tool-cta__features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        text-align: center;
        max-width: none;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .tool-cta {
        padding: 5rem 3rem;
        margin: 3rem auto;
        max-width: 1400px;
    }

    .tool-cta__title {
        font-size: 2rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-content--active {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
